<wx-open-subscribe>公众号开放标签不会调起授权?
进入公众号点击开放标签按钮之后,不会调起授权信息,wx.config测试是通过的。appid:wx5701316c42c28f35,代码如下:
<wx-open-subscribe template="noZ9hn093wlgALyjri0tMtcwC9ZUgnDAGguDn4DTS8A" id="subscribe-btn">
<script type="text/wxtag-template" id="demo">
<style>
.subscribe-btn {
/*对应标签样式*/
width: 100%;
height: 50px;
text-align: center;
line-height: 50px;
color: #fff;
background-color: #07c160;
}
</style>
<div class="subscribe-btn">一次性模版消息订阅</div>
</script>
</wx-open-subscribe>
<script>
var btn = document.getElementById('subscribe-btn');
btn.addEventListener('success', function (e) {
alert("333")
});
btn.addEventListener('error', function (e) {
alert("555")
});
</script>