|
@@ -52,7 +52,7 @@ export default {
|
|
timestamp: data.timestamp,
|
|
timestamp: data.timestamp,
|
|
nonceStr: data.noncestr,
|
|
nonceStr: data.noncestr,
|
|
signature: data.sign,
|
|
signature: data.sign,
|
|
- jsApiList: ['updateAppMessageShareData', 'chooseImage'],
|
|
|
|
|
|
+ jsApiList: ['updateAppMessageShareData', 'chooseImage', 'onMenuShareAppMessage'],
|
|
});
|
|
});
|
|
this.$wx.ready(() => {
|
|
this.$wx.ready(() => {
|
|
console.log('in ready');
|
|
console.log('in ready');
|
|
@@ -64,7 +64,7 @@ export default {
|
|
},
|
|
},
|
|
async toShare() {
|
|
async toShare() {
|
|
this.$wx.ready(() => {
|
|
this.$wx.ready(() => {
|
|
- this.$wx.updateAppMessageShareData({
|
|
|
|
|
|
+ this.$wx.onMenuShareAppMessage({
|
|
title: this.title,
|
|
title: this.title,
|
|
desc: this.desc,
|
|
desc: this.desc,
|
|
// imgUrl: this.img,
|
|
// imgUrl: this.img,
|