收藏
回答

为什么小程序转发成功后不进入success或complete方法

onShareAppMessage: function(e) {


var that = this

var relaytype = e.target.dataset.relaytype

var userInfo = wx.getStorageSync("userInfo")

wx.showShareMenu({

withShareTicket: true

})


if (e.from === 'button') {

if (!that.data.Forwardsuccess){

return {

title: userInfo.nick_name + '请你免费喝咖啡',

path: '/page/tabBar/startLoadingTheawards/startLoadingTheawards?openId=' + userInfo.open_id + '&orderId=' + that.data.orderId + '&relaytype=' + relaytype + '&selectprizecomponent=' + that.data.selectprizecomponent + '&magna_id=' + that.data.magna_id + '&change_id=' + that.data.change_id + '&nick_name=' + userInfo.nick_name,

width: 20,

height: 20,

imageUrl: wx.getStorageSync("config").wx_start_img,

success: function (e) {

wx.showShareMenu({

withShareTicket: true

})

that.setData({

Forwardsuccess: true,

isrelaytype:4,

selectprizecomponents:null

})

},

complete:function(){

wx.showShareMenu({

withShareTicket: true

})

that.setData({

Forwardsuccess: true,

isrelaytype: 4,

selectprizecomponents: null

})

}

}

}

}


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

20 个回答

  • 2018-11-23

    楼主是不是刚休完产假回来?

    2018-11-23
    有用 8
    回复
  • 孝杰 👣'
    孝杰 👣'
    2018-11-23

    大哥,你玩单机版?

    2018-11-23
    有用 4
    回复
  • 2018-11-23

    各位大佬,意思是onShareAppMessage的回调都用不了?


    2018-11-23
    有用 2
    回复 3
  • 禾店科技
    禾店科技
    2021-05-08

    哈哈哈,村里刚连上网🤣🤣🤣

    2021-05-08
    有用 1
    回复
  • 2018-11-28

    楼主你是活化石啊

    2018-11-28
    有用 1
    回复
  • 马蹄(深圳)教育科技有限公司
    马蹄(深圳)教育科技有限公司
    2018-11-26

    我倒,你也网上冲浪啊

    2018-11-26
    有用 1
    回复
  • 2018-11-26

    楼主估计是封闭开发了几个月,一结束世界都变了。

    2018-11-26
    有用
    回复
  • Yoฉันคิดถึง
    Yoฉันคิดถึง
    2018-11-26

    多久没看官方文档了

    2018-11-26
    有用
    回复
  • 林存昕
    林存昕
    2018-11-26

    你也在网上冲浪啊

    2018-11-26
    有用
    回复
  • 睡前原谅一切
    睡前原谅一切
    2018-11-26

    村里刚连上网 谢谢大家。

    2018-11-26
    有用
    回复

正在加载...

登录 后发表内容