优惠券组优化
parent
ec729dcb4e
commit
511bde2ad1
|
@ -95,10 +95,16 @@
|
|||
}
|
||||
},
|
||||
onShow() {
|
||||
if(uni.getStorageSync('authorization')==1){
|
||||
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
|
||||
this.$toolAll.tools.showToast('加载中...','loading')
|
||||
this.checkPoint()//调用自主预约列表事件
|
||||
}
|
||||
}else{
|
||||
this.$toolAll.tools.showToast('加载中...','loading')
|
||||
this.checkPoint()//调用自主预约列表事件
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
checkPoint(){//查询自主预约列表事件
|
||||
|
|
|
@ -116,6 +116,7 @@
|
|||
onLoad(options) {
|
||||
this.detailId = options.id
|
||||
this.category_id = options.category_id
|
||||
if(uni.getStorageSync('authorization')==1){
|
||||
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
|
||||
this.checkDetail(options.id);
|
||||
this.$requst.get('index/base-config').then(res=>{
|
||||
|
@ -123,6 +124,13 @@
|
|||
this.name = res.data.logo_title;
|
||||
})
|
||||
}
|
||||
}else{
|
||||
this.checkDetail(options.id);
|
||||
this.$requst.get('index/base-config').then(res=>{
|
||||
this.headImg = this.$http + res.data.logo;
|
||||
this.name = res.data.logo_title;
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {//触底事件
|
||||
if(this.total!=this.dataList.length){
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
<view @tap="allReceive" class="fon30 radius20 tc colf bold" style="margin: 0 83rpx;height: 90rpx;line-height: 90rpx;" :style="{background:publicColor}">{{['一键领取','立即使用'][dataList[0].get]}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="disjcac" v-if="ifLing" style="position: fixed;top: 0;left: 0;bottom: 0;right: 0;background-color: rgba(0, 0, 0, .7);z-index: 2;padding: 0 100rpx;">
|
||||
<view class="tcenter radius30 bacf width100 pad-sx50">
|
||||
<view class="bold pad-s30" style="font-size: 48rpx;">恭喜您领取成功</view>
|
||||
|
@ -77,7 +78,7 @@
|
|||
},
|
||||
onShareAppMessage() {
|
||||
// 调用tools.js中的种植埋点事件
|
||||
console.log(`${this.$http}${this.share_img}`,`${this.share_title}`,212121212)
|
||||
// console.log(`${this.$http}${this.share_img}`,`${this.share_title}`,212121212)
|
||||
var shareObj = {
|
||||
title: `${this.share_title}`, // 默认是小程序的名称(可以写slogan等)
|
||||
path: `/pagesB/couponGroup/couponGroup?group_id=${this.groupId}&share_id=${uni.getStorageSync('userId')}&invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||
|
@ -86,9 +87,13 @@
|
|||
return shareObj;
|
||||
},
|
||||
onLoad(op) {
|
||||
if(uni.getStorageSync('authorization')==1){
|
||||
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
|
||||
this.checkAllList(op.group_id);
|
||||
}
|
||||
}else{
|
||||
this.checkAllList(op.group_id);
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue