在使用vue框架页面,按照文档先后配置好了js接口安全域名——1.6.0版本jssdk——配置config opentaglist——使用<script type="text/wxtag-template"></script>包括button,html代码如下
<wx-open-launch-weapp
username="gh_ebfb250249c1"
@error="launchAppError"
@launch="launchAppLaunch"
@ready="launchAppReady"
>
<script type="text/wxtag-template">
<style>.btn { display: flex;align-items: center; }</style>
<button class="btn"
style="border-radius: 55px;font-size:15px;color:#ffffff;font-weight:700;padding: 0 50px;height:45px;line-height: 45px;background-color: #FF9700;margin: 0 auto;"
>立即打开小程序</button>
</script>
</wx-open-launch-weapp>
你好,你这是少了template标签,建议对照文档用例自查https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html
两个问题:
1.官方给的demo代码button的闭合标签缺少"/" 2.jsApiList需要配置,随便写个功能名称比如 ['onMenuShareTimeline']
微信如此垃圾,做不好就别做这么复杂,一大堆问题
是测试号的问题,换成线上的就好了
请问最后到底是怎么解决的呢,没看出你们找到的问题点在哪呢
请问最后解决了么?
应该是你们没获取signature的问题,我一测试就过了 php+html
测试过没有问题,要真机测试,用开发者工具不行的
看楼上的用户修改了我的代码还是不显示啊,安卓和ios都不显示
config提示ok的 链接:http://www.bitaochain.com/wx.html?data=2