增加调试订阅通知的按钮
This commit is contained in:
@ -10,6 +10,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="fixed-header-box"></view>
|
||||
<button @click="testTemplate">测试模板消息</button>
|
||||
|
||||
<view class="slider-banner banner">
|
||||
<swiper indicatorDots="true" v-if="banner.length > 0" autoplay circular>
|
||||
<block v-for="(item, bannerIndex) in banner" :key="bannerIndex">
|
||||
@ -250,7 +252,7 @@
|
||||
}
|
||||
};
|
||||
},
|
||||
computed:{
|
||||
computed: {
|
||||
singNew() {
|
||||
return this.roll.length > 0 ? this.roll[0] : "你还没添加通知哦!";
|
||||
}
|
||||
@ -279,6 +281,14 @@
|
||||
},
|
||||
methods: {
|
||||
...mapActions(["getLocation"]),
|
||||
testTemplate() {
|
||||
console.log('测试')
|
||||
// 调用订阅
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: [''],
|
||||
success(res) {}
|
||||
})
|
||||
},
|
||||
goRoll(item) {
|
||||
if (item.uniapp_url) {
|
||||
this.$yrouter.push(item.uniapp_url)
|
||||
|
Reference in New Issue
Block a user