Browse Source

增加调试订阅通知的按钮

master
gaoxs 5 years ago
parent
commit
800ec7477b
  1. 12
      pages/home/index.vue

12
pages/home/index.vue

@ -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)

Loading…
Cancel
Save