z***@163.com
z***@163.com
  • 发布:2025-11-10 17:52
  • 更新:2025-11-10 17:55
  • 阅读:15

小程序3.10.2以前基础库无法拉起分享,之前的版本可以

分类:uni-app
 onShareAppMessage() {  
      const param = {  
        shop_id: this.shopId  
      }  
      const strparam = JSON.stringify(param)  
      try {  
        return {  
          title: `${this.sharename},${this.sharemsg}`,  
          path: `/human/webview/webview?url=shop/shopindex&param=${strparam}`,  
          imageUrl: 'https://shuogeshi-1255375710.cos.ap-beijing.myqcloud.com/javashop703a4315-1179-4002-8777-d7c67eae99e2.png'  
        }  
      }catch(err){  
        console.log('这是报错哦');  
      }  
    }

2025-11-10 17:52 负责人:无 分享
已邀请:
DCloud_UNI_JBB

DCloud_UNI_JBB

试试原生微信小程序有没有这个问题

  • z***@163.com (作者)

    也有诶,是小程序原生基础库的问题吗

    2025-11-10 18:04

  • DCloud_UNI_JBB

    回复 z***@163.com: 估计是微信的bug,可以去微信社区反馈一下

    2025-11-10 19:12

要回复问题请先登录注册