|
@@ -25,14 +25,19 @@
|
|
|
</view>
|
|
|
<view class="item-box">
|
|
|
<image class="arc" src="/static/img/arc.png"></image>
|
|
|
- <view class="mendian" v-if="userInfo.level == 1 && userInfo.service == 0">
|
|
|
- <view class="mendian-lift">
|
|
|
+ <view class="mendian" >
|
|
|
+ <view class="mendian-lift" v-if="userInfo.level == 1 && userInfo.service == 0">
|
|
|
<view class="img"><image src="../../static/img/mendian01.png" mode=""></image></view>
|
|
|
<text class="null-mendian">{{ userInfo.store_name}}</text>
|
|
|
</view>
|
|
|
- <view class="mendian-lift" @click="openhym">
|
|
|
+ <view class="mendian-lift" v-else>
|
|
|
+ </view>
|
|
|
+ <view class="mendian-lift" @click="openhym" v-if="userInfo.vip.card_no">
|
|
|
NO:{{userInfo.vip.card_no}}<image src="../../static/icon/hym.png" mode="" class="hym" >
|
|
|
</view>
|
|
|
+ <view class="mendian-lift" @click="openhym" v-else>
|
|
|
+ NO:{{userInfo.SN}}<image src="../../static/icon/hym.png" mode="" class="hym" >
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="my-order">
|
|
|
<view class="box-title flex borde-b">
|
|
@@ -250,7 +255,11 @@ export default {
|
|
|
...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
|
|
|
// 打开会员码
|
|
|
openhym() {
|
|
|
- this.hym = this.userInfo.vip.card_no
|
|
|
+ if(this.userInfo.vip.card_no){
|
|
|
+ this.hym = this.userInfo.vip.card_no
|
|
|
+ }else {
|
|
|
+ this.hym = this.userInfo.SN
|
|
|
+ }
|
|
|
this.$refs.hympop.open()
|
|
|
|
|
|
},
|