API名称:wx-open-launch-weapp
按钮使用普通模式和vue嵌入模式按钮都不能正常显示,输出信息显示微信网页签名已成功了。
<wx-open-launch-weapp id="launch-btn" username="gh_" path="pages/home">
<template>
<style>
.wx-btn {color: #f00;width: 120px;height: 30px;display: block;padding: 12px;}
</style><button class="wx-btn">跳转小程序</button>
</template>
</wx-open-launch-weapp>
wx.config({
debug: false,
appId: returnData.AppId,
timestamp: returnData.Timestamp,
nonceStr: returnData.NonceStr,
signature: returnData.Signature,
jsApiList: ['onMenuShareAppMessage'],
openTagList: ['wx-open-launch-weapp'],
});
wx.ready(() => { console.log("Signature成功"); });
wx.error((err) => { console.log(JSON.stringify(err), 'error'); });
问题已修复,jswexin引用问题
微信版本:7.0.18
Android版本:6.0.1
你好,问题未解决的话,麻烦补充下复现链接