|
|
@@ -61,7 +61,20 @@
|
|
|
}
|
|
|
else {
|
|
|
console.log('show share modal');
|
|
|
- wx.onMenuShareAppMessage()
|
|
|
+ wx.onMenuShareAppMessage({
|
|
|
+ title: '语言训练认知图片大全', // 分享标题
|
|
|
+ desc: '已有239218领取成功', // 分享描述
|
|
|
+ link: '', // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
+ imgUrl: this.headSrc, // 分享图标
|
|
|
+ type: 'link', // 分享类型:music | video | link,默认为:link
|
|
|
+ dataUrl: '', // 如果type为:music | video,则要提供数据,默认为:空
|
|
|
+ success: function(){
|
|
|
+ console.log('share success')
|
|
|
+ },
|
|
|
+ cancel: function(){
|
|
|
+ console.log('share cancel')
|
|
|
+ },
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
subStrUrlCode: function () {
|
|
|
@@ -113,13 +126,12 @@
|
|
|
nonceStr : param.nonceStr,
|
|
|
signature: param.signature,
|
|
|
jsApiList: [
|
|
|
- 'imagePreview', 'chooseImage', 'uploadImage'
|
|
|
+ 'imagePreview', 'chooseImage', 'uploadImage','onMenuShareAppMessage'
|
|
|
]
|
|
|
});
|
|
|
},
|
|
|
sendCodeRequest(){
|
|
|
let that = this , jsUrl = location.href.split('#')[0];
|
|
|
- console.log(jsUrl)
|
|
|
axios({
|
|
|
method: 'post', //请求方式 有常用的有get post等
|
|
|
url: apiUrl, //请求地址
|