unipp+vue3+vite开发公众号
jssdk是1.6版本的
<view class="subscribeBlock" v-if="showSubscribe">
<wx-open-subscribe id="subscribe-btn" ref="subscribeBtn"
style="position: fixed;z-idnex:9999; top: 0px, left: 0px;bottom:0px;right:0px;width: 100%;height: 100%;"
template="Qw2bWImUYSgS5y9UoAGa-fd3RUC2aXZ5m25MApxIpA4" id="subscribe-btn">
<!-- Qw2bWImUYSgS5y9UoAGa-fd3RUC2aXZ5m25MApxIpA4 测试 -->
<!-- NtmNRrJl5FMKND8FuyZhZxL_jbRLNg0-h-iNCr0z0ak 正式 -->
<script type="text/wxtag-template">
<div style="position: fixed;z-idnex:9999; top: 0px, left: 0px;bottom:0px;right:0px;width: 100%;height: 100%;" />
</script>
</wx-open-subscribe>
</view>
使用wx-open-subscribe开放标签进行订阅功能开发,控制台抛出错误,按钮内容没渲染,单独写一个<wx-open-subscribe></wx-open-subscribe>也是,移除该标签就不提示。
[WXTAG] [JSCORE] TypeError: (intermediate value)(intermediate value).match is not a function
jsconfig注入是没问题的,只要写写这个开放标签,就会提示.match not a function,这问题是出什么那里呢?

你好,用微信原生还有这个问题吗?
<wx-open-subscribe template="1VB8RypmJzJIY1kQBQoGVtu_jmUCE6cBc1p5phalwj0,67RlfypPmHzBwSYZ_Igbe9WqJMHKwnbmEeDmbpFV_34"class="recharge-btn" style="display: block;position: absolute; top: 50%; left: 50%;opacity: 1;transform: translate(-50%, -50%);" id="subscribe-btn"@success="onSubscribeSuccess" @error="onSubscribeError"><script type="text/wxtag-template" slot="style"><style>.subscribe-btn {color: #fff;background-color: #07c160;width: 100%;height: 100%;}</style></script><script type="text/wxtag-template"><button class="subscribe-btn ">一次性模版消息订阅</button></script></wx-open-subscribe>这里还是显示如图所示