wx.requestSubscribeMessage(Object object)消息訂閱詳解

微信新增消息訂閱功能:html

1.打開官方文檔developers.weixin.qq.com/miniprogram…bash

2.根據文檔配置模板iD微信

3.經過按鈕點擊或者用戶支付回調進行調用工具


handleClick(){
    wx.requestSubscribeMessage({  tmplIds: ['模板id1''模板id2'],//注意版本號,版本過低只能支持1個消息模板,還有開發者
工具是無法測試的,只能真機調試
  success (res) { }
})
} 
複製代碼
相關文章
相關標籤/搜索