From 990e2f0ff40ad6e4ee8e257070d041affd667718 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 31 Mar 2023 17:16:14 +0800 Subject: [PATCH 1/3] bug --- src/apps/AppAskForm/components/List.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/apps/AppAskForm/components/List.vue b/src/apps/AppAskForm/components/List.vue index c9a2340b..f7069542 100644 --- a/src/apps/AppAskForm/components/List.vue +++ b/src/apps/AppAskForm/components/List.vue @@ -168,18 +168,24 @@ export default { desc: this.info.tableExplain, link: this.linkUrl, imgUrl: this.info.headPicture - }, () => { + }, e => { + console.log(e) this.isShow = false - }]) + }]).then(e => { + console.log(e) + }) } else { this.wxInvoke(['shareWechatMessage', { title: this.info.title, desc: this.info.tableExplain, link: this.linkUrl, imgUrl: this.info.headPicture - }, () => { + }, e => { + console.log(e) this.isShow = false - }]) + }]).then(e => { + console.log(e) + }) } } } From c8981d640f863e74622655c34ec5b3590dda46c1 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 31 Mar 2023 17:32:21 +0800 Subject: [PATCH 2/3] bug --- src/apps/AppAskForm/components/List.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/apps/AppAskForm/components/List.vue b/src/apps/AppAskForm/components/List.vue index f7069542..54ab8edc 100644 --- a/src/apps/AppAskForm/components/List.vue +++ b/src/apps/AppAskForm/components/List.vue @@ -163,7 +163,7 @@ export default { } if (data.tapIndex === 0 || data.tapIndex === 1) { if (data.tapIndex === 0) { - this.wxInvoke(['shareAppMessage', { + this.wx.invoke(['shareAppMessage', { title: this.info.title, desc: this.info.tableExplain, link: this.linkUrl, @@ -171,11 +171,9 @@ export default { }, e => { console.log(e) this.isShow = false - }]).then(e => { - console.log(e) - }) + }]) } else { - this.wxInvoke(['shareWechatMessage', { + this.wx.invoke(['shareWechatMessage', { title: this.info.title, desc: this.info.tableExplain, link: this.linkUrl, @@ -183,9 +181,7 @@ export default { }, e => { console.log(e) this.isShow = false - }]).then(e => { - console.log(e) - }) + }]) } } } From fbb39b6d5087c1803db43a098851671e2eda0126 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 31 Mar 2023 17:40:09 +0800 Subject: [PATCH 3/3] bug --- src/apps/AppAskForm/components/List.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/apps/AppAskForm/components/List.vue b/src/apps/AppAskForm/components/List.vue index 54ab8edc..a4eeace1 100644 --- a/src/apps/AppAskForm/components/List.vue +++ b/src/apps/AppAskForm/components/List.vue @@ -163,25 +163,27 @@ export default { } if (data.tapIndex === 0 || data.tapIndex === 1) { if (data.tapIndex === 0) { - this.wx.invoke(['shareAppMessage', { + wx.invoke('shareAppMessage', { title: this.info.title, desc: this.info.tableExplain, link: this.linkUrl, - imgUrl: this.info.headPicture + imgUrl: this.info.headPicture, + enableIdTrans: 0 }, e => { console.log(e) this.isShow = false - }]) + }) } else { - this.wx.invoke(['shareWechatMessage', { + wx.invoke('shareWechatMessage', { title: this.info.title, desc: this.info.tableExplain, link: this.linkUrl, - imgUrl: this.info.headPicture + imgUrl: this.info.headPicture, + enableIdTrans: 0 }, e => { console.log(e) this.isShow = false - }]) + }) } } }