Эх сурвалжийг харах

Merge branch 'master' of http://47.118.43.255:3000/jjhc/jucai

sandm 2 жил өмнө
parent
commit
38539b2bf1

+ 8 - 1
public/themes/default/views/mobile/module/section/html_end.blade.php

@@ -97,7 +97,14 @@
             signature: "{{$wechat->get('signature')}}",// 必填,签名,见附录1
             jsApiList: ['updateAppMessageShareData','updateTimelineShareData','openLocation'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
         });
-
+    wx.checkJsApi({
+        jsApiList: ['updateAppMessageShareData','updateTimelineShareData','openLocation'], // 需要检测的JS接口列表,所有JS接口列表见附录2,
+        success: function(res) {
+            console.log(res);
+            // 以键值对的形式返回,可用的api值true,不可用为false
+            // 如:{"checkResult":{"chooseImage":true},"errMsg":"checkJsApi:ok"}
+        }
+    });
         wx.ready(function () {
             wx.updateAppMessageShareData({
                 title: '{{empty($share_title) ? '聚才网' : $share_title}}', // 分享标题