公众号wx-open-subscribe标签,
wx.config({
debug: true,
appId: '',
timestamp: ,
nonceStr: '',
signature: '',
jsApiList: [],
openTagList: []
});
都配了
js-sdk版本,1.6
下面是调起的html
<wx-open-subscribe
template="96YFK7nDJGBgcqRXtPu1s7hCcIW652fzQivY5BWTs7c"
id="subscribe-btn2"
style="width: 5rem; height: 3rem"
(success)="subSuccess($event)"
(error)="subError($event)"
>
<template slot="style">
<style>
.subscribe-btn {
color: #fff;
background-color: #07c160;
}
</style>
</template>
<template>
<button class="subscribe-btn">
一次性模版消息订阅222
</button>
</template>
</wx-open-subscribe>
<wx-open-subscribe
template="96YFK7nDJGBgcqRXtPu1s7hCcIW652fzQivY5BWTs7c"
id="subscribe-btn3"
style="width: 5rem; height: 3rem"
>
<template slot="style">
<style>
.subscribe-btn {
color: #fff;
background-color: #07c160;
}
</style>
</template>
<template>
<button class="subscribe-btn">
一次性模版消息订阅33333
</button>
</template>
</wx-open-subscribe>
你好,无法显示订阅标签的问题
1、请注意更新到最新版的开发者工具,下载地址:https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
2、请确认 wx.config 里有申请开放标签的权限,参考文档:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html
3、如仍未调试成功,请提供具体的appid、代码、报错信息和截图。
<wx-open-subscribe
template="96YFK7nDJGBgcqRXtPu1s7hCcIW652fzQivY5BWTs7c"
id="subscribe-btn3"
style="width: 5rem; height: 3rem"
>
<button class="subscribe-btn">
一次性模版消息订阅33333
</button>
</wx-open-subscribe>
能显示出来标签了,但是点击毫无反应,无法调起授权弹窗