fix(wechat): 将wx-open-launch-app改为wx-open-launch-weapp
更新微信JSSDK配置和组件标签,使用正确的微信小程序开放标签
This commit is contained in:
@@ -22,11 +22,11 @@
|
||||
</ul>
|
||||
<div v-if="route.path=='/'" class="mt20 imgsize-100X100 text-center font-24 pos-rel">
|
||||
<img src="@/assets/side-link.png" alt="">
|
||||
<wx-open-launch-app id="launch-btn" :appid="third_mp.appId" :username="third_mp.username" :path="third_mp.path" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
|
||||
<wx-open-launch-weapp id="launch-btn" :appid="third_mp.appId" :username="third_mp.username" :path="third_mp.path" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
|
||||
<component :is="'script'" type="text/wxtag-template">
|
||||
<div class="btn" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;opacity: 0;">打开小程序</div>
|
||||
</component>
|
||||
</wx-open-launch-app>
|
||||
</wx-open-launch-weapp>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
+1
-1
@@ -124,7 +124,7 @@ export const WechatJSSDK = {
|
||||
nonceStr: config.nonceStr,
|
||||
signature: config.signature,
|
||||
jsApiList: config.jsApiList,
|
||||
openTagList: ['wx-open-launch-app']
|
||||
openTagList: ['wx-open-launch-weapp']
|
||||
});
|
||||
|
||||
window.wx.ready(() => {
|
||||
|
||||
Reference in New Issue
Block a user