Browse Source

增加开启消息通知

master
赵鹏 2 months ago
parent
commit
76c55bafda
  1. 17
      pages/owner.vue

17
pages/owner.vue

@ -19,10 +19,10 @@
<u--image src="/static/images/owner/message.png" width="20px" height="20px" mode="aspectFit"></u--image>
<text class="wd-font-800">消息通知</text>
</view>
<view class="wd-flex wd-flex-row wd-items-center" style="gap: 8px">
<u-count-to :startVal="30" :endVal="500" fontSize="14px" separator=","></u-count-to>
<u-icon name="arrow-right"></u-icon>
</view>
<view class="wd-flex wd-flex-row wd-items-center" style="gap: 8px" @click="openSubMessage">
<text>点击开启</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="section wd-flex wd-flex-row wd-justify-between">
<view class="wd-flex wd-flex-row" style="gap: 8px">
@ -86,6 +86,15 @@ export default {
this.user = res.data
})
},
openSubMessage(){
uni.requestSubscribeMessage({
//ID
tmplIds: ['E8RK91cPLMios6ZHoKx6FJOV4H2kodx6yPWYp7jpLJY'],
success(res) {
console.log('requestSubscribeMessage', res)
}
})
},
edit() {
uni.navigateTo({
url: '/sub/owner/edit'

Loading…
Cancel
Save