07 2020 档案
摘要:<rich-text class="rich-text" :nodes="dataList.activityDetails | formatRichText"></rich-text> filters: { formatRichText(html) { //控制小程序中图片大小 let newCon
阅读全文
摘要:一行 overflow:hidden; text-overflow:ellipsis; white-space:nowrap; 两行 overflow: hidden; text-overflow: ellipsis; display:-webkit-box; -webkit-box-orient:
阅读全文
摘要:在manifest.json里面修改 "permission" : { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位 } } 在menthods使用 getLocation(success) { //打
阅读全文
摘要:在onShow 中调用 wx.hideHomeButton() onShow() { wx.hideHomeButton() },
阅读全文
摘要:height: uni.getSystemInfoSync().screenHeight
阅读全文
摘要:pages.json文件中与pages同级 { "pages": [{ "path": "pages/index/index", "style": { ...} }, { "path": "pages/login/login", "style": { ...} }], "subPackages":
阅读全文
摘要:line-height: normal;
阅读全文
摘要:调取手机摄像头 <view @click="scan">扫码验证</view> scan() { //扫码验证 var _this = this; uni.scanCode({ onlyFromCamera: true, //为true只允许相机扫码,不加允许相册扫码 success: functi
阅读全文
摘要:与methods同级,可以直接调取小程序右上角的分享 onShareAppMessage(res) { if (res.from 'button') {// 来自页面内分享按钮 console.log(res.target) } return { title: '分享的标题', path: '分享的
阅读全文
摘要:let arr = res.data.data.list this.userInfo = arr.map((item,index)=>{ return Object.assign(item, ) })
阅读全文

浙公网安备 33010602011771号