请问一下 小程序 转发 onShareAppMessage 正式版错误
发布于 6 年前 作者 yaoli 7792 次浏览 来自 问答

转发 在  测试版 开发版 没有问题 但是 在正式版 就有问题 不能执行   wx.request 请大神看一下

onShareAppMessage: function (option) {

var that=this

return {

title: ‘小程序’,

desc: ‘小程序!’,

path: ‘/pages/index/index’,

success: function (res) {

var yhqid=option.target.dataset.yhqid;

//获取列表

wx.request({

url: app.globalData.url + ‘/my_in_coupon’,

method: “post”,

data: {

coupon_id: yhqid,

openid: wx.getStorageSync(‘openId’),

},

success: function (res) {

if (res.data.zt == 1) {

wx.showToast({

title: res.data.msg,

icon: ‘success’,

duration: 2000

})

} else {

wx.showToast({

title: res.data.msg,

icon: ‘fail’,

duration: 2000

})

}

that.onLoad();

},

})

},

}

}

1 回复

转发没有回调的!!!

回到顶部