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