收藏
回答

onShareAppMessage分享的同时页面跳转,分享小卡片不显示?

onShareAppMessage(res) {
			let that = this;
			that.doCancelShare();
				
			if (res.from === 'button') {
				console.log('分享这里分享')
				return {
					title: this.share.title,
					path: `/moduleOrder/pages/orderReplace/index?info=${JSON.stringify(this.shareInfo)}`,
					imageUrl: this.share.imageUrl
				}
			}
		},
doCancelShare方法:
// 取消代付分享
			doCancelShare() {
						uni.switchTab({
							url:'/pages/order/pages/supplier/index'
						})
				this.isVisiable = false
			},


工具没问题,手机预览小卡片不出现


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

1 个回答

  • Demons
    Demons
    2022-09-30

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

    2022-09-30
    有用
    回复 1
    • 廾匸
      廾匸
      2022-10-11
      onShareAppMessage分享的同时页面跳转,分享小卡片不显示?标题就是问题,代码贴上去了
      2022-10-11
      回复
登录 后发表内容