公众号wx-open-subscribe标签无法显示?
发布于 3 年前 作者 yandong 10423 次浏览 来自 官方Issues

公众号wx-open-subscribe标签,

wx.config({
  debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印
  appId: '', // 必填,公众号的唯一标识
  timestamp: , // 必填,生成签名的时间戳
  nonceStr: '', // 必填,生成签名的随机串
  signature: '',// 必填,签名
  jsApiList: [], // 必填,需要使用的JS接口列表
  openTagList: [] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
});
都配了
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 回复

你好,无法显示订阅标签的问题

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、代码、报错信息和截图。

回到顶部