优惠券组优化

master
Lee 2023-01-04 17:24:34 +08:00
parent ec729dcb4e
commit 511bde2ad1
22 changed files with 42 additions and 23 deletions

View File

@ -95,10 +95,16 @@
}
},
onShow() {
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
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(){//

View File

@ -116,7 +116,15 @@
onLoad(options) {
this.detailId = options.id
this.category_id = options.category_id
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
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=>{
this.headImg = this.$http + res.data.logo;
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;

View File

@ -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,7 +87,11 @@
return shareObj;
},
onLoad(op) {
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
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);
}
},

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