- 小程序分享朋友圈,ios部分手机无效
onShow: function () { const that = this; wx.cloud.callFunction({ name: 'getUser', success: res => { if(res.result.data.lock==undefined){ that.data.openid = that.data.options.shareid; } } }) wx.showShareMenu({ withShareTicket: true, menus: ['shareAppMessage', 'shareTimeline'] }) }, /*用户点击右上角分享*/ onShareAppMessage: function () { return { title: this.data.title, path: '/pages/article/index?shareid='+this.data.openid+'&id='+this.data.options.id } }, onShareTimeline: function () { return { title: this.data.title, query: 'shareid='+this.data.openid+'&id='+this.data.options.id } }
2020-11-26 - 变量只要写入scroll-view就没作用了
https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html 变量只要写到scroll-view行内,就没用了(msgId是变量,初始是0,执行后+1)[图片] 上面是没有添加数据 下面是添加数据后id号涨了,但是scroll行内变量还是不变 [图片]
2020-03-18