【新增】增加控制个人中心【增值业务】【服务商品】【优惠券】【拼团】【团购】【接龙】【签到】按钮的展示。通过后台【商城设置】【平台设置】【特殊开关】开启和关闭。

This commit is contained in:
大灰灰
2022-09-25 01:13:24 +08:00
parent 647eb61ce5
commit 893fddddfc
5 changed files with 186 additions and 55 deletions

View File

@@ -170,7 +170,7 @@
</view>
<!--增值业务-->
<view class="coreshop-padding-top-10 coreshop-padding-left-10 coreshop-padding-right-10 coreshop-padding-bottom-30 coreshop-bg-white coreshop-margin-top-15 coreshop-user-info-tools-box">
<view class="coreshop-padding-top-10 coreshop-padding-left-10 coreshop-padding-right-10 coreshop-padding-bottom-30 coreshop-bg-white coreshop-margin-top-15 coreshop-user-info-tools-box" v-if="showVas">
<view class="coreshop-padding-10 tools-view">
<view class="coreshop-text-black coreshop-text-bold coreshop-font-lg tools-title">增值业务</view>
</view>
@@ -280,12 +280,12 @@
router: '/pages/member/invoice/index',
showItem: true
},
myServices: {
name: '我的服务卡',
icon: 'bell',
router: '/pages/member/serviceOrder/index/index',
showItem: true
},
//myServices: {
// name: '我的服务卡',
// icon: 'bell',
// router: '/pages/member/serviceOrder/index/index',
// showItem: true
//},
myIntegral: {
name: '我的' + this.$store.state.config.pointShowName,
icon: 'integral',
@@ -311,6 +311,7 @@
showItem: true
},
},
showVas: false,
vas: {
storeMap: {
name: '门店列表',
@@ -322,43 +323,43 @@
name: '服务商品',
icon: 'list-dot',
router: '/pages/serviceGoods/index/index',
showItem: true
showItem: false
},
coupons: {
name: '优惠券',
icon: 'red-packet',
router: '/pages/coupon/coupon',
showItem: true
showItem: false
},
pinTuan: {
name: '拼团',
icon: 'grid',
router: '/pages/activity/pinTuan/list/list',
showItem: true
showItem: false
},
seckill: {
name: '秒杀',
icon: 'clock',
router: '/pages/activity/seckill/list/list',
showItem: true
showItem: false
},
groupBuying: {
name: '团购',
icon: 'trash',
router: '/pages/activity/groupBuying/list/list',
showItem: true
showItem: false
},
solitaire: {
name: '接龙',
icon: 'bag',
router: '/pages/activity/solitaire/list/list',
showItem: true
showItem: false
},
calendar: {
name: '签到',
icon: 'calendar',
router: '/pages/activity/checkIn/checkIn/checkIn',
showItem: true
showItem: false
},
},
other: {
@@ -473,33 +474,33 @@
var _this = this
//判断是开启分销还是原始推广
this.config = this.$store.state.config;
if (this.config.openDistribution == 2) {
//屏蔽分销按钮
_this.isDistribution = false
} else if (this.config.openDistribution == 1) {
_this.isDistribution = true
}
if (this.config.isOpenAgent == 1 && this.config.isShowAgentPortal == 1) {
_this.isAgent = true
} else if (this.config.openDistribution == 1) {
//屏蔽代理中心入库
_this.isAgent = false
}
if (this.config.showInviter == 1) {
//不显示-邀请好友
_this.other.invite.showItem = true;
} else if (this.config.showInviter == 2) {
//显示-邀请好友
_this.other.invite.showItem = false;
}
if (this.config.showStoresSwitch == 1) {
//不显示-门店展示列表
_this.vas.storeMap.showItem = true;
} else if (this.config.showStoresSwitch == 2) {
//显示-门店展示列表
_this.vas.storeMap.showItem = false;
}
this.getUserInfo();
//分销中心
_this.isDistribution = this.config.openDistribution == 1;
//代理中心
_this.isAgent = this.config.isOpenAgent == 1 && this.config.isShowAgentPortal == 1;
//邀请好友
_this.other.invite.showItem = this.config.showInviter == 1;
//显示营销功能
_this.showVas = this.config.showVas == 1;
//门店展示列表
_this.vas.storeMap.showItem = _this.config.showStoresSwitch == 1;
//服务商品
_this.vas.servicePackage.showItem = _this.config.showServicePackage == 1;
//优惠券
_this.vas.coupons.showItem = _this.config.showCoupon == 1;
//拼团
_this.vas.pinTuan.showItem = _this.config.showPinTuan == 1;
//秒杀
_this.vas.seckill.showItem = _this.config.showSeckill == 1;
//团购
_this.vas.groupBuying.showItem = _this.config.showGroupBuying == 1;
//接龙
_this.vas.solitaire.showItem = _this.config.showSolitaire == 1;
//签到
_this.vas.calendar.showItem = _this.config.showCalendar == 1;
//获取用户信息
_this.getUserInfo();
},
getUserInfo() {
var _this = this