wxml:
<button catchtap="toMsg">订阅消息</button>
wxjs: toMsg:function() { const templateIdOne = 'OoszB0nyyby0n_vxSLvdGyfbXrmsRVHbpBkN8VV0B7o' const templateIdTwo = 'dvbUu73WOH5xmOTMfFI_OCWoySbDwsDrguTG7hhbQQc' const templateIdThree = 'wDwdSlVz7v0hMg8tvmwK1pakKRL0-ljdtusRgXdUsnA' wx.requestSubscribeMessage({ tmplIds: [templateIdOne,templateIdTwo,templateIdThree], success: (res) =>{ //成功回调 console.log(res) } }) }