收藏
回答

wx.showShareImageMenu 部分手机没有反应?

图片地址已经配置合法域名,部分手机好用,部分手机拉取不了,showShareImageMenu没反应,打开调试工具后就好用了


 wx.downloadFile({
        url: this.data.shareImgList.shareUrl1,//服务器的图片地址,已设置合法域名
        success: (res) => {
          console.log(res.tempFilePath)
          wx.showShareImageMenu({
            path: res.tempFilePath
          })
回答关注问题邀请回答
收藏

3 个回答

  • 安逸
    安逸
    2021-06-25

    猜测是基础库太低导致,具体要看报错信息。

    👇点个[ 有用 ],让答案帮助更多的人^_^

    2021-06-25
    有用 2
    回复
  • 大熊
    大熊
    2022-04-06
    微信管理后台已经设置最低基础库为2.16.1,真机调试跟开发工具都有效果,手机上无效
    
    
    wx.downloadFile({
          url: this.data.downList[this.data.currentIndex],
          success: (res) => {
            console.log(res,'res')
            wx.showShareImageMenu({
              path: res.tempFilePath,
            })
          }
        })
    
    2022-04-06
    有用
    回复
  • Amoo_
    Amoo_
    2021-06-25

    downloadFile保存的临时地址也需要配置合法域名么


    2021-06-25
    有用
    回复 2
    • 大熊
      大熊
      2022-04-06
      临时地址我直接用的没有配置合法域名,这个有影响吗
      2022-04-06
      回复
    • 小康¹⁸
      小康¹⁸
      2022-07-05
      正式版或者不开调试的话必须配
      2022-07-05
      回复
登录 后发表内容