|
@@ -10,11 +10,6 @@
|
|
|
<view class="user-name-row" @click="changeNameFn()">
|
|
<view class="user-name-row" @click="changeNameFn()">
|
|
|
<text class="user-name">{{ data.name }}</text>
|
|
<text class="user-name">{{ data.name }}</text>
|
|
|
<i class="iconfont iconbianji edit-icon"></i>
|
|
<i class="iconfont iconbianji edit-icon"></i>
|
|
|
- <view
|
|
|
|
|
- v-if="Number(data.vip) == 1"
|
|
|
|
|
- class="vip-tag vip-active"
|
|
|
|
|
- @click.stop="openVipPopup"
|
|
|
|
|
- >{{ Number(data.vip) == 1 ? 'VIP' : '非VIP' }}</view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="user-detail-info">
|
|
<view class="user-detail-info">
|
|
|
<text class="user-real-name">{{ data.originName }}</text>
|
|
<text class="user-real-name">{{ data.originName }}</text>
|
|
@@ -22,7 +17,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="member-level-badge" v-if="Number(data.member)>0">
|
|
|
|
|
|
|
+ <view class="member-level-badge" v-if="((useVip == true && Number(data.vip) == 1) || (useVip == false)) && Number(data.member)>0">
|
|
|
<view class="member-badge-row" @click.stop="openVipPopup">
|
|
<view class="member-badge-row" @click.stop="openVipPopup">
|
|
|
<image v-if="data.member == 1" class="member-badge-icon" style="width:76upx;height:76upx;" src="@/static/member-icons/member-1.svg" mode="aspectFit"></image>
|
|
<image v-if="data.member == 1" class="member-badge-icon" style="width:76upx;height:76upx;" src="@/static/member-icons/member-1.svg" mode="aspectFit"></image>
|
|
|
<image v-else-if="data.member == 2" class="member-badge-icon" style="width:74upx;height:74upx;" src="@/static/member-icons/member-2.svg" mode="aspectFit"></image>
|
|
<image v-else-if="data.member == 2" class="member-badge-icon" style="width:74upx;height:74upx;" src="@/static/member-icons/member-2.svg" mode="aspectFit"></image>
|
|
@@ -32,6 +27,9 @@
|
|
|
<text class="member-name">{{ data.memberName }}</text>
|
|
<text class="member-name">{{ data.memberName }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view v-else-if="useVip == true && Number(data.vip) == 0">
|
|
|
|
|
+ <button class="admin-button-com middle" @click="openVipPopup">开启会员</button>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="user-bottom">
|
|
<view class="user-bottom">
|
|
@@ -426,11 +424,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
|
|
|
|
|
- <modal-module :show="vipModal" @click="vipModalClick" :maskClosable="false" title="VIP设置" padding="28rpx 28rpx" >
|
|
|
|
|
|
|
+ <modal-module :show="vipModal" @click="vipModalClick" :maskClosable="false" title="会员设置" padding="28rpx 28rpx" >
|
|
|
<template v-slot:content>
|
|
<template v-slot:content>
|
|
|
<view class="app-modal-input-wrap">
|
|
<view class="app-modal-input-wrap">
|
|
|
<view class="vip-switch-row">
|
|
<view class="vip-switch-row">
|
|
|
- <text class="vip-switch-label">{{ vipForm.vip == 1 ? 'VIP' : '非VIP' }}</text>
|
|
|
|
|
|
|
+ <text class="vip-switch-label">{{ vipForm.vip == 1 ? '会员' : '非会员' }}</text>
|
|
|
<switch
|
|
<switch
|
|
|
style="transform:scale(0.7,0.7)"
|
|
style="transform:scale(0.7,0.7)"
|
|
|
:checked="vipForm.vip == 1"
|
|
:checked="vipForm.vip == 1"
|
|
@@ -587,6 +585,7 @@ export default {
|
|
|
showBalanceDetail: false,
|
|
showBalanceDetail: false,
|
|
|
memberLevelSet:0,
|
|
memberLevelSet:0,
|
|
|
memberLevelData:[],
|
|
memberLevelData:[],
|
|
|
|
|
+ useVip: false, // 是否启用会员
|
|
|
vipModal: false,
|
|
vipModal: false,
|
|
|
vipForm: {
|
|
vipForm: {
|
|
|
vip: 0
|
|
vip: 0
|
|
@@ -606,6 +605,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
this.initInfo()
|
|
this.initInfo()
|
|
|
|
|
+
|
|
|
|
|
+ const reachVip = uni.getStorageSync('reachVip')
|
|
|
|
|
+ if (reachVip != "0.00") {
|
|
|
|
|
+ this.useVip = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.useVip = false
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
init(){},
|
|
init(){},
|
|
@@ -1006,28 +1012,6 @@ export default {
|
|
|
color: #999;
|
|
color: #999;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .vip-tag {
|
|
|
|
|
- position: relative;
|
|
|
|
|
- right: 0;
|
|
|
|
|
- top: 12upx;
|
|
|
|
|
- flex-shrink: 0;
|
|
|
|
|
- display: inline-flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- height: 40upx;
|
|
|
|
|
- padding: 0 18upx;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- font-size: 24upx;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- border-radius: 20upx;
|
|
|
|
|
- line-height: 1;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- margin-left: auto;
|
|
|
|
|
-
|
|
|
|
|
- &.vip-active {
|
|
|
|
|
- background-color: rgba(58, 218, 9, 0.76);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.user-detail-info {
|
|
.user-detail-info {
|
|
@@ -1333,7 +1317,7 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
- padding: 30upx 20upx;
|
|
|
|
|
|
|
+ padding: 25upx 20upx;
|
|
|
|
|
|
|
|
.vip-switch-label {
|
|
.vip-switch-label {
|
|
|
font-size: 32upx;
|
|
font-size: 32upx;
|