摘要:
function PromiseAuth(scope){ return new Promise(function (resolve, reject) { if (wx.getSetting) { wx.getSetting({ success: function (res) { if (res.authSetting[scope]) {... 阅读全文
posted @ 2018-09-26 15:47
梦蝶庄周
阅读(963)
评论(1)
推荐(0)
摘要:
1 场景 点击自定义的分享按钮 2 解决 既可以点击整个item进入详情页,又可以点击分享按钮,出现的冒泡问题。 出现的现象: 点击分享按钮时,分享的内容弹框出现,但是页面又跳进到商品的详情页。 button 按钮上要同时加上open-type='share' catchtap = '方法名称' 阅读全文
posted @ 2018-09-26 10:39
梦蝶庄周
阅读(572)
评论(0)
推荐(0)
摘要:
//index.json 文件 { "enablePullDownRefresh": true } //关键代码 index.js Page({ data: { list: [], page: 1, hidden: false, //是否显示上拉加载的图标 show: false, //是否显示 文字(已经没有数据了) }, ... 阅读全文
posted @ 2018-09-26 10:19
梦蝶庄周
阅读(1886)
评论(0)
推荐(0)