优惠券组优化

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() { onShow() {
if(uni.getStorageSync('authorization')==1){
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
this.$toolAll.tools.showToast('加载中...','loading') this.$toolAll.tools.showToast('加载中...','loading')
this.checkPoint()// this.checkPoint()//
} }
}else{
this.$toolAll.tools.showToast('加载中...','loading')
this.checkPoint()//
}
}, },
methods: { methods: {
checkPoint(){// checkPoint(){//

View File

@ -116,6 +116,7 @@
onLoad(options) { onLoad(options) {
this.detailId = options.id this.detailId = options.id
this.category_id = options.category_id this.category_id = options.category_id
if(uni.getStorageSync('authorization')==1){
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
this.checkDetail(options.id); this.checkDetail(options.id);
this.$requst.get('index/base-config').then(res=>{ this.$requst.get('index/base-config').then(res=>{
@ -123,6 +124,13 @@
this.name = res.data.logo_title; 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() {// onReachBottom() {//
if(this.total!=this.dataList.length){ if(this.total!=this.dataList.length){

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 @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> </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="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="tcenter radius30 bacf width100 pad-sx50">
<view class="bold pad-s30" style="font-size: 48rpx;">恭喜您领取成功</view> <view class="bold pad-s30" style="font-size: 48rpx;">恭喜您领取成功</view>
@ -77,7 +78,7 @@
}, },
onShareAppMessage() { onShareAppMessage() {
// tools.js // 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 = { var shareObj = {
title: `${this.share_title}`, // (slogan) title: `${this.share_title}`, // (slogan)
path: `/pagesB/couponGroup/couponGroup?group_id=${this.groupId}&share_id=${uni.getStorageSync('userId')}&invite_code=${uni.getStorageSync('invite_code')}`, // / 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; return shareObj;
}, },
onLoad(op) { onLoad(op) {
if(uni.getStorageSync('authorization')==1){
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){ if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){
this.checkAllList(op.group_id); this.checkAllList(op.group_id);
} }
}else{
this.checkAllList(op.group_id);
}
}, },
onUnload() { 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