dev.provider_res_tencent.json

      //微信accesstoken,用于分享等功能
      "ticket": {
        "url": {
          "root": "https://api.weixin.qq.com",
          "accessToken": "{root}/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={secret}"
          ,
          "jsTicket": "{root}/cgi-bin/ticket/getticket?access_token={access_token}&type=jsapi"
        }
      }


  //微信accesstoken,用于分享等功能
      "ticket": {
        "url": {
          "root": "https://api.weixin.qq.com",
          "accessToken": "{root}/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={secret}",
          "jsTicket": "{root}/cgi-bin/ticket/getticket?access_token={access_token}&type=jsapi"
        }
      }

      "ticket": {
        "{onwerId}": {
          "jsApiList": [
            "updateAppMessageShareData",
            "updateTimelineShareData",
            "onMenuShareWeibo",
            "onMenuShareQZone",
            "startRecord",
            "stopRecord",
            "onVoiceRecordEnd",
            "playVoice",
            "pauseVoice",
            "stopVoice",
            "onVoicePlayEnd",
            "uploadVoice",
            "downloadVoice",
            "chooseImage",
            "previewImage",
            "uploadImage",
            "downloadImage",
            "translateVoice",
            "getNetworkType",
            "openLocation",
            "getLocation",
            "hideOptionMenu",
            "showOptionMenu",
            "hideMenuItems",
            "showMenuItems",
            "hideAllNonBaseMenuItem",
            "showAllNonBaseMenuItem",
            "closeWindow",
            "scanQRCode",
            "chooseWXPay",
            "openProductSpecificView",
            "addCard",
            "chooseCard",
            "openCard"
          ]
        }
      }

jsApiList说明:

https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#63

index.html


 <script type="text/javascript" src="//res2.wx.qq.com/open/js/jweixin-1.6.0.js ">

  </script>
文档更新时间: 2021-08-29 08:00   作者:admin