|
@@ -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}}', // 分享标题
|