收藏
回答

请问一下 小程序 转发 onShareAppMessage 正式版错误

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug onShareAppMessage 客户端 6.7.4 2.4.2

转发 在  测试版 开发版 没有问题 但是 在正式版 就有问题 不能执行   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();

},

})

},

}

}


回答关注问题邀请回答
收藏

2 个回答

  • 禾店短剧系统
    禾店短剧系统
    2021-06-08

    10月10日起新提交的版本,用户从小程序小游戏中分享消息给好友时,开发者将无法获知用户是否分享完成,也无法在分享后立即获得群ID。请参考调整指引

    2021-06-08
    有用 1
    回复
  • ==
    ==
    2018-12-21

    转发没有回调的!!!

    2018-12-21
    有用
    回复 5
    • ipeng
      ipeng
      2018-12-21

      有的

      2018-12-21
      回复
    • ==
      ==
      2018-12-21回复ipeng

      https://developers.weixin.qq.com/community/develop/doc/000eacab888a20e8a2579099754401

      分享没有返回值了!

      2018-12-21
      回复
    • ipeng
      ipeng
      2018-12-21回复==

      看来以前写的分享功能要调整了,多谢道友!

      2018-12-21
      回复
    • ==
      ==
      2018-12-21回复ipeng

      没事!道友闭关修炼多年!可见毅力不凡

      2018-12-21
      回复
    • ipeng
      ipeng
      2018-12-21回复==

      哈哈!一直在祭炼bug,无暇修炼新的功法,惭愧~惭愧!左道友才是功力非凡!

      2018-12-21
      回复
登录 后发表内容