关于服务号订阅通知灰度测试,按照官方的方法为什么不显示订阅按钮呢?
发布于 5 年前 作者 yanwan 3653 次浏览 来自 问答
<wx-open-subscribe template="TenvU22BA1jCp4YHfYEpRuESXYReQyDuhs4vbdWA99I" id="subscribe-btn">
    <template slot="style">
    <style>
      .subscribe-btn {
          color: #fff;
          background-color: #07c160;
      }
     </style>
     </template>
     <template>
        <button class="subscribe-btn">
         一次性模版消息订阅              
         </button>
      </template>
</wx-open-subscribe>
<script>
var btn = document.getElementById('subscribe-btn');   btn.addEventListener('success', function(e){            
      console.log('e.detail');
});   
btn.addEventListener('error',function(e){             
        console.log('fail', e.detail);
});
</script>
按照官方上的例子测试后发现并不能正常显示订阅按钮,请问是有什么限制吗?
回到顶部