wx-open-launch-weapp 不展示按钮?
<template>
<wx-open-launch-weapp
id="launch-btn"
username="gh_bbc1673996b8"
path="/pages/index/index.html"
@ready="launchAppReady"
>
<script type="text/wxtag-template">
<style>.btn { padding: 12px }</style>
<button class="btn">打开小程序</button>
</script>
</wx-open-launch-weapp>
</template>
<script>
wx.config({
beta: true,
// debug: true, // 开启调试模式
appId: appid, // 必填,公众号的唯一标识
timestamp: timestamp, // 必填,生成签名的时间戳
nonceStr: nonceStr, // 必填,生成签名的随机串
signature: nonceStr, // 必填,签名,见附录1
jsApiList: [
"updateAppMessageShareData",
"updateTimelineShareData"
],
openTagList: ["wx-open-launch-app"] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
});
wx.ready(function() {
console.log(11111111111);
});
wx.error(function(res) {
console.log(res);
});
</script>