随笔分类 - uni-app
摘要:data() { return { boundList:[], list:[], checked:false } }, // 单选 isBoundFun(item,index) { if(item.isBound) { item.isBound = false }else { item.isBoun
阅读全文
摘要:<view class="header-box"> <view v-for="(item,index) in list" :key="index" @click.stop="isClickFun(item,index)"> <text v-if="item.isClick" class="showC
阅读全文
摘要:<rich-text class="contBox" :nodes="viewData.Resolved"></rich-text>
阅读全文
摘要:// 获取用户收货地址。调起用户编辑收货地址原生界面,并在编辑完成后返回用户选择的地址 chooseAddr(){ const that = this uni.chooseAddress({ success(res){ that.inputData.ToAddress = res.provinceN
阅读全文
摘要:const pages = getCurrentPages(); //获取当前页面栈 const beforePage = pages[pages.length - 2]; //前一个页面,我的需求是需要我-2的,需要的朋友自行调整 beforePage.$vm.getIdValue(); //ge
阅读全文
摘要://预览图片 lookUpIm:function(){ var imgList = this.viewData.Files; // 图片 console.log(imgList); var lookImg = []; for(var i =0;i<imgList.length;i++){ lookI
阅读全文
摘要:<view class="bottom"> <view class="but" v-if="openSettingBtnHidden" @click="saveEwm"><text>保存图片</text></view> </view> export default { data() { return
阅读全文
摘要:1、首先是页面部分 <view class="qrcode"> <canvas style="width: 200upx;height: 200upx;" canvas-id="couponQrcode"></canvas> </view> 2、JS部分 const qrCode = require
阅读全文
摘要:一开始我使用二维码预览或者真机调试之类的方法都没有用,获取位置的方法都调用了,但是就是不打开位置的界面,然后尝试一下打开了调试,然后就可以测试位置了,后面查了一下很多功能都需要打开调试,才可以正常的使用查看功能
阅读全文
摘要:exitLogin(){ uni.removeStorageSync('token'); uni.removeStorageSync('user'); uni.reLaunch({ url:"/pages/mainview/tap/tap" }) }, <view class="bottom" @c
阅读全文
摘要:"tabBar": { "backgroundColor":"#FFFFFF", "list": [ { "pagePath":"pages/mainview/tap/tap", "text":"首页" }, { "pagePath":"pages/mainview/tap/tap", "text"
阅读全文
摘要:接口传值: 就是直接在接口后面像字符串连接一样就可以完成传值了 's/a/t/a?p=' + that.p + '&money=' + that.money + '&Id=' + that.Id 以对象的形式进行 var requestData = { page: 1, size: 10, user
阅读全文


浙公网安备 33010602011771号