306132416@qq.com 4 years ago
parent
commit
ef822800c9
1 changed files with 17 additions and 19 deletions
  1. 17 19
      front-page/fission-page.html

+ 17 - 19
front-page/fission-page.html

@@ -94,24 +94,6 @@
                 else {
                     console.log('show share modal');
                     this.isShareFlag = true;
-                    wx.ready(function () {
-                        wx.updateAppMessageShareData({
-                            title: '语言训练认知图片大全AAAA',				// 分享标题
-                            desc: '已有239218领取成功语言训练认知图片大全AAAA',				// 分享描述
-                            link: thisUrl,				// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
-                            imgUrl: this.headSrc,				// 分享图标
-                            //    type: 'link',				// 分享类型:music | video | link,默认为:link
-                            //     dataUrl: '',			// 如果type为:music | video,则要提供数据,默认为:空
-                            success: function(){
-                                alert('share success')
-                                this.startCount--;
-                                if(this.startCount === 0){
-                                    this.isShareFlag = false;
-                                }
-                            },
-                        })
-                    })
-
                 }
             },
             subStrUrlCode: function () {
@@ -238,7 +220,23 @@
         }
     })
 
-
+   wx.ready(function () {
+       wx.updateAppMessageShareData({
+           title: '语言训练认知图片大全AAAA',				// 分享标题
+           desc: '已有239218领取成功语言训练认知图片大全AAAA',				// 分享描述
+           link: thisUrl,				// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
+           imgUrl: this.headSrc,				// 分享图标
+           //    type: 'link',				// 分享类型:music | video | link,默认为:link
+           //     dataUrl: '',			// 如果type为:music | video,则要提供数据,默认为:空
+           success: function(){
+               alert('share success')
+               this.startCount--;
+               if(this.startCount === 0){
+                   this.isShareFlag = false;
+               }
+           },
+       })
+   })
 </script>