|
@@ -51,14 +51,14 @@ export default {
|
|
],
|
|
],
|
|
});
|
|
});
|
|
wx.ready(() => {
|
|
wx.ready(() => {
|
|
- let method = 'updateAppMessageShareData';
|
|
|
|
- if (this.type !== 'py') method = 'updateTimelineShareData';
|
|
|
|
wx.updateAppMessageShareData({
|
|
wx.updateAppMessageShareData({
|
|
title: this.title,
|
|
title: this.title,
|
|
desc: this.desc,
|
|
desc: this.desc,
|
|
imgUrl: this.img,
|
|
imgUrl: this.img,
|
|
link: shareUrl,
|
|
link: shareUrl,
|
|
success: res => {
|
|
success: res => {
|
|
|
|
+ console.log(res);
|
|
|
|
+ console.log(shareUrl);
|
|
console.log('in function:share success');
|
|
console.log('in function:share success');
|
|
},
|
|
},
|
|
error: err => {
|
|
error: err => {
|