摘要: const pages = getCurrentPages(); //获取当前页面栈 const beforePage = pages[pages.length - 2]; //前一个页面,我的需求是需要我-2的,需要的朋友自行调整 beforePage.$vm.getIdValue(); //ge 阅读全文
posted @ 2021-06-25 10:10 温柔本肉 阅读(854) 评论(0) 推荐(0) 编辑
摘要: //预览图片 lookUpIm:function(){ var imgList = this.viewData.Files; // 图片 console.log(imgList); var lookImg = []; for(var i =0;i<imgList.length;i++){ lookI 阅读全文
posted @ 2021-06-25 10:05 温柔本肉 阅读(191) 评论(0) 推荐(0) 编辑
摘要: <view class="bottom"> <view class="but" v-if="openSettingBtnHidden" @click="saveEwm"><text>保存图片</text></view> </view> export default { data() { return 阅读全文
posted @ 2021-06-16 14:22 温柔本肉 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 1、首先是页面部分 <view class="qrcode"> <canvas style="width: 200upx;height: 200upx;" canvas-id="couponQrcode"></canvas> </view> 2、JS部分 const qrCode = require 阅读全文
posted @ 2021-06-16 11:20 温柔本肉 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 一开始我使用二维码预览或者真机调试之类的方法都没有用,获取位置的方法都调用了,但是就是不打开位置的界面,然后尝试一下打开了调试,然后就可以测试位置了,后面查了一下很多功能都需要打开调试,才可以正常的使用查看功能 阅读全文
posted @ 2021-06-09 15:57 温柔本肉 阅读(301) 评论(0) 推荐(0) 编辑
摘要: // 获取用户信息 getUserMessage() { var phoneText = uni.getStorageSync("user").Phone; // 这里是我项目里全局保存的用户信息,这里拿到了当前登录用户的手机号码 console.log('电话号码:',phoneText) var 阅读全文
posted @ 2021-06-05 15:36 温柔本肉 阅读(512) 评论(1) 推荐(0) 编辑
摘要: exitLogin(){ uni.removeStorageSync('token'); uni.removeStorageSync('user'); uni.reLaunch({ url:"/pages/mainview/tap/tap" }) }, <view class="bottom" @c 阅读全文
posted @ 2021-06-05 15:32 温柔本肉 阅读(3034) 评论(0) 推荐(0) 编辑
摘要: // 上拉加载更多moreData() { var that = this; that.page += 1; var parm = { rows:that.rows, page:that.page } this.requestToken('接口路径?statusList='+ that.status 阅读全文
posted @ 2021-06-05 15:29 温柔本肉 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: "tabBar": { "backgroundColor":"#FFFFFF", "list": [ { "pagePath":"pages/mainview/tap/tap", "text":"首页" }, { "pagePath":"pages/mainview/tap/tap", "text" 阅读全文
posted @ 2021-06-05 14:23 温柔本肉 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 写这个GUID主要是开发中有这个需要,然后去百度了一下,在这里自己做一下记录,更多的,可以参照这个:https://jingyan.baidu.com/article/380abd0adb45a01d90192c9a.html // 保存全局的GUIDthis.id = this.getGuid() 阅读全文
posted @ 2021-06-04 17:58 温柔本肉 阅读(444) 评论(0) 推荐(0) 编辑