07 2020 档案

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

Live2D