不支持canvas
摘要: <a :href="'tel:' + phone">{{phone}}</a> 阅读全文
posted @ 2020-03-14 23:21 pycmsj 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: //request.js var host = 'https://www.xxx.com';//请求域名 module.exports = function (type, params, method) { return new Promise((resolve, reject) => { wx.r 阅读全文
posted @ 2020-01-16 15:37 pycmsj 阅读(247) 评论(0) 推荐(0) 编辑
摘要: index.wxml <view class="hotLine" bindtap="callPhone" data-phone="{{mobile}}">{{mobile}}</view> index.js Page({ /** * 页面的初始数据 */ data: { mobile:'100861 阅读全文
posted @ 2020-01-13 11:27 pycmsj 阅读(379) 评论(0) 推荐(0) 编辑
摘要: var that = this;that.hello().then(res => { return that.world(res);}).then(res => { console.log(res); }) function hello(){ var that = this; var p = new 阅读全文
posted @ 2019-12-30 10:53 pycmsj 阅读(745) 评论(0) 推荐(0) 编辑
摘要: data: { pageNo: 1,//当前页 pageSize: 10,//每页条数 count:'',//总条数 orderList: [], }, onLoad: function () { var that = this; var data = `${that.data.type}/${th 阅读全文
posted @ 2019-12-26 16:56 pycmsj 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: .wxml <view class="evaluateLv"> <view class="leftCont">星级评价:</view> <view class="rightCont flex flex-ac"> <block wx:for="{{lvList}}" wx:key="item"> <v 阅读全文
posted @ 2019-11-01 18:39 pycmsj 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 1.在app.js的onLaunch中添加如下方法: App({ onLaunch: function () { var that = this; wx.onNetworkStatusChange(function (res) { if (res.networkType == 'none') { t 阅读全文
posted @ 2019-10-25 18:22 pycmsj 阅读(1990) 评论(0) 推荐(0) 编辑
摘要: 1.app.json文件“tabBar”里面“custom”设置为true。 2.新建custom-tab-bar文件夹在该文件下面新建index页面。(注意:custom-tab-bar必须与pages同级且命名必须这样写) 3.根据项目需求在custom-tab-bar下index页面写自己的自 阅读全文
posted @ 2019-10-23 10:11 pycmsj 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: 有一段时间没做小程序了,最近又开始做小程序了。现在做的项目发现头部导航带有小房子的图标点击返回首页,打开之前的项目发现也都有了这样的图标,于是去社区看了看,发现了答案。 隐藏返回首页按钮。微信7.0.7版本起,当用户打开的小程序最底层页面是非首页时,默认展示“返回首页”按钮,开发者可在页面 onSh 阅读全文
posted @ 2019-10-22 09:35 pycmsj 阅读(12348) 评论(0) 推荐(1) 编辑
摘要: 小程序未启动时更新 开发者在管理后台发布新版本的小程序之后,如果某个用户本地有小程序的历史版本,此时打开的可能还是旧版本。微信客户端会有若干个时机去检查本地缓存的小程序有没有更新版本,如果有则会静默更新到新版本。总的来说,开发者在后台发布新版本之后,无法立刻影响到所有现网用户,但最差情况下,也在发布 阅读全文
posted @ 2019-10-21 18:54 pycmsj 阅读(416) 评论(0) 推荐(0) 编辑