收藏
回答

getShareInfo:fail?

getShareInfo:fail data unknow error code iPhone11 系统13.6 微信版本7.0.21

onShow: function (options{
  let that = this
  if (options && options.scene == 1044) {
 if (options.shareTicket) {
            wx.login({
                successfunction (res{
                    if(res.code){
                    wx.getShareInfo({
                        shareTicket: options.shareTicket, 
                        successfunction (res{
                          
                        },
                        failfunction (res{
                             wx.showModal({
                                title'提示',
                                content'getShareInfofail:'+ res.errMsg,
                                confirmText"确定",
                                })
                        }
                    });
                    }
                }, 
                failfunction (res{
                }
            });
        }
  }
 },
回答关注问题邀请回答
收藏

1 个回答

  • 😶
    😶
    2021-01-22

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2021-01-22
    有用
    回复
登录 后发表内容
问题标签