{errMsg: "requestSubscribeMessage:fail can only be invoked by user TAP gesture."}
如果注释掉前三行, 就不会报错。
console.log(e)
var item = e.currentTarget.dataset.item;
console.log(item.templateMessage.templateId);
<block wx:for="{{msg_list}}" wx:key="{{index}}"> <view class="msg_item"> <button data-item="{{item}}" bindtap="btn_click" class="layui-btn background-color">订阅消息【{{item.templateMessage.title}}】</button> <text>消息剩余数量:{{item.num}}</text> </view> </block>
站长微信:xiaomao0055
站长QQ:14496453