增加调试订阅通知的按钮
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">
|
||||||
@ -82,8 +84,8 @@
|
|||||||
<view class="title no-border acea-row row-between-wrapper">
|
<view class="title no-border acea-row row-between-wrapper">
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<div class="name line1">
|
<div class="name line1">
|
||||||
<span class="iconfont icon-jingpintuijian"></span>
|
<span class="iconfont icon-jingpintuijian"></span>
|
||||||
<span class="label">精品推荐</span>
|
<span class="label">精品推荐</span>
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
<view @click="goHotNewGoods(1)" class="more">
|
<view @click="goHotNewGoods(1)" class="more">
|
||||||
@ -98,8 +100,8 @@
|
|||||||
<view class="title acea-row row-between-wrapper">
|
<view class="title acea-row row-between-wrapper">
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<view class="name line1">
|
<view class="name line1">
|
||||||
<span class="iconfont icon-xinpin"></span>
|
<span class="iconfont icon-xinpin"></span>
|
||||||
<span class="label">首发新品</span>
|
<span class="label">首发新品</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view @click="goHotNewGoods(3)" class="more">
|
<view @click="goHotNewGoods(3)" class="more">
|
||||||
@ -125,9 +127,9 @@
|
|||||||
<view class="title acea-row row-center">
|
<view class="title acea-row row-center">
|
||||||
<view class="text text-center">
|
<view class="text text-center">
|
||||||
<div class="name line1 new-name">
|
<div class="name line1 new-name">
|
||||||
<span class="iconfont icon-shoucang"></span>
|
<span class="iconfont icon-shoucang"></span>
|
||||||
<span class="txt">猜你喜欢</span>
|
<span class="txt">猜你喜欢</span>
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view @click="goGoodsPromotion(4)" class="more">
|
<!-- <view @click="goGoodsPromotion(4)" class="more">
|
||||||
更多
|
更多
|
||||||
@ -250,11 +252,11 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed:{
|
computed: {
|
||||||
singNew() {
|
singNew() {
|
||||||
return this.roll.length > 0 ? this.roll[0] : "你还没添加通知哦!";
|
return this.roll.length > 0 ? this.roll[0] : "你还没添加通知哦!";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
this.getLocation()
|
this.getLocation()
|
||||||
let that = this;
|
let that = this;
|
||||||
@ -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)
|
||||||
@ -388,4 +398,4 @@
|
|||||||
height: 98rpx
|
height: 98rpx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user