|
@@ -24,11 +24,14 @@
|
|
|
>
|
|
|
<view class="user-item">
|
|
|
<view class="user-item-tips vip" v-if="userIdentity == 2">
|
|
|
- <image class="tips-icon" :src="StaticUrl + '/icon/icon-member-svip@2x.png'" mode=""></image>
|
|
|
- {{ userType }}
|
|
|
+ <image class="tips-icon" :src="userVipIcon" mode=""></image> {{ userType }}
|
|
|
</view>
|
|
|
- <view class="user-item-tips" v-if="userIdentity == 4">
|
|
|
- <image class="tips-icon" :src="StaticUrl + '/icon/icon-member-vip@2x.png'" mode=""></image>
|
|
|
+ <view
|
|
|
+ class="user-item-tips"
|
|
|
+ v-if="userIdentity == 4"
|
|
|
+ :class="userVip.vipFlag == 0 ? 'none' : ''"
|
|
|
+ >
|
|
|
+ <image class="tips-icon" v-if="userVip.vipFlag == 1" :src="userVipIcon" mode=""></image>
|
|
|
{{ userType }}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -58,21 +61,29 @@
|
|
|
<view class="main-member-none-btn">立即开通</view>
|
|
|
</view>
|
|
|
<template v-else>
|
|
|
- <view class="main-member-svip" v-if="userVip.vipFlag == 1" @click="navigator('/pages/user/member/member')">
|
|
|
+ <view
|
|
|
+ class="main-member-svip"
|
|
|
+ v-if="userVip.vipFlag == 1"
|
|
|
+ @click="navigator('/pages/user/member/member')"
|
|
|
+ >
|
|
|
<view class="main-member-svip-h1">已开通采美·超级会员</view>
|
|
|
<view class="main-member-svip-p">有效期至:{{ userVip.endTime }}</view>
|
|
|
- <view class="main-member-svip-icon">
|
|
|
- <text class="iconfont icon-xiayibu"></text>
|
|
|
- </view>
|
|
|
+ <view class="main-member-svip-icon"> <text class="iconfont icon-xiayibu"></text> </view>
|
|
|
</view>
|
|
|
- <view class="main-member-svip" v-if="userVip.vipFlag == -1" @click="navigator('/pages/user/member/member')">
|
|
|
+ <view
|
|
|
+ class="main-member-svip"
|
|
|
+ v-if="userVip.vipFlag == -1"
|
|
|
+ @click="navigator('/pages/user/member/member')"
|
|
|
+ >
|
|
|
<view class="main-member-svip-h1 red">采美·超级会员已过期</view>
|
|
|
<view class="main-member-svip-p">有效期至:2021-10-01</view>
|
|
|
- <view class="main-member-svip-icon">
|
|
|
- <text class="iconfont icon-xiayibu"></text>
|
|
|
- </view>
|
|
|
+ <view class="main-member-svip-icon"> <text class="iconfont icon-xiayibu"></text> </view>
|
|
|
</view>
|
|
|
- <view class="main-member-none" v-if="userVip.vipFlag == 0" @click="navigator('/pages/user/member/member')">
|
|
|
+ <view
|
|
|
+ class="main-member-none"
|
|
|
+ v-if="userVip.vipFlag == 0"
|
|
|
+ @click="navigator('/pages/user/member/member')"
|
|
|
+ >
|
|
|
<view class="main-member-none-text">开通采美·超级会员,享专属特权</view>
|
|
|
<view class="main-member-none-btn">立即开通</view>
|
|
|
</view>
|
|
@@ -85,7 +96,10 @@
|
|
|
<view class="main-account-text">我的资产</view>
|
|
|
</view>
|
|
|
<view class="main-account-ri">
|
|
|
- <view class="main-account-ri-view account" @click="navigator('/pages/user/account/account')">
|
|
|
+ <view
|
|
|
+ class="main-account-ri-view account"
|
|
|
+ @click="navigator('/pages/user/account/account')"
|
|
|
+ >
|
|
|
<view class="main-account-icon" v-if="hasLogin">{{ userMoney }}</view>
|
|
|
<view class="main-account-icon none" v-else>-</view>
|
|
|
<view class="main-account-text">账户余额</view>
|
|
@@ -100,7 +114,10 @@
|
|
|
<view class="main-account-icon none" v-else>-</view>
|
|
|
<view class="main-account-text">采美豆</view>
|
|
|
</view>
|
|
|
- <view class="main-account-ri-view coupon" @click="navigator('/pages/user/coupon/coupon')">
|
|
|
+ <view
|
|
|
+ class="main-account-ri-view coupon"
|
|
|
+ @click="navigator('/pages/user/coupon/coupon')"
|
|
|
+ >
|
|
|
<view class="main-account-icon" v-if="hasLogin">{{
|
|
|
couponNum ? couponNum : 0
|
|
|
}}</view>
|
|
@@ -388,11 +405,11 @@ export default {
|
|
|
isModify: false,
|
|
|
isActivityBean: false,
|
|
|
isCmcustom: false,
|
|
|
- bgImgUrl: 'https://img.caimei365.com/group1/M00/03/B0/Cmis217Z_i6ASHobAAhl69yz3SM078.png',
|
|
|
+ userVipIcon: '',
|
|
|
name: '',
|
|
|
userType: '',
|
|
|
headpic: '',
|
|
|
- userVip:{},// 超级会员信息
|
|
|
+ userVip: {}, // 超级会员信息
|
|
|
userBeans: 0,
|
|
|
userMoney: '0.00',
|
|
|
couponNum: 0,
|
|
@@ -403,13 +420,13 @@ export default {
|
|
|
bindMobile: '',
|
|
|
isSvip: false,
|
|
|
isSvipType: 2,
|
|
|
- clubStatus: '', // 机构升级资质机构审核状态1:待审核 91:审核失败
|
|
|
- userIdentity: '', // 机构等级
|
|
|
- confirmedCount: 0, // 待确认
|
|
|
- paymentCount: 0, // 待付款角标
|
|
|
- waitShipmentsCount: 0, // 待收货角标
|
|
|
- shipmentsCount: 0, // 已发货角标
|
|
|
- salesReturnCount: '', // 退货/款角标
|
|
|
+ clubStatus: '', // 机构升级资质机构审核状态1:待审核 91:审核失败
|
|
|
+ userIdentity: '', // 机构等级
|
|
|
+ confirmedCount: 0, // 待确认
|
|
|
+ paymentCount: 0, // 待付款角标
|
|
|
+ waitShipmentsCount: 0, // 待收货角标
|
|
|
+ shipmentsCount: 0, // 已发货角标
|
|
|
+ salesReturnCount: '', // 退货/款角标
|
|
|
firstList: [
|
|
|
{
|
|
|
name: '运营人员管理',
|
|
@@ -455,6 +472,11 @@ export default {
|
|
|
this.userType = '个人机构'
|
|
|
}
|
|
|
this.userVip = data.vip // 超级会员信息
|
|
|
+ if (this.userVip.vipFlag == 1) {
|
|
|
+ this.userVipIcon = this.StaticUrl + '/icon/icon-member-svip@2x.png'
|
|
|
+ } else {
|
|
|
+ this.userVipIcon = this.StaticUrl + '/icon/icon-member-vip@2x.png'
|
|
|
+ }
|
|
|
this.userBeans = data.user.userBeans // 采美豆数量
|
|
|
this.headpic = data.user.image // 会所头像
|
|
|
this.bindMobile = data.user.bindMobile // 登录手机号
|
|
@@ -667,25 +689,29 @@ page {
|
|
|
flex: 1;
|
|
|
height: 64rpx;
|
|
|
line-height: 64rpx;
|
|
|
- .user-item-tips{
|
|
|
+ .user-item-tips {
|
|
|
display: inline-block;
|
|
|
float: left;
|
|
|
width: 140rpx;
|
|
|
height: 34rpx;
|
|
|
- background: #E7EAEF;
|
|
|
+ background: #e7eaef;
|
|
|
border-radius: 20rpx;
|
|
|
line-height: 34rpx;
|
|
|
font-size: $font-size-22;
|
|
|
text-align: center;
|
|
|
color: #627386;
|
|
|
box-sizing: border-box;
|
|
|
- padding:0 11rpx 0 41rpx;
|
|
|
+ padding: 0 11rpx 0 41rpx;
|
|
|
position: relative;
|
|
|
- &.vip{
|
|
|
- background: #FFF2D5;
|
|
|
- color: #E4AA43;
|
|
|
+ &.none {
|
|
|
+ width: 120rpx;
|
|
|
+ padding: 0 11rpx 0 11rpx;
|
|
|
+ }
|
|
|
+ &.vip {
|
|
|
+ background: #fff2d5;
|
|
|
+ color: #e4aa43;
|
|
|
}
|
|
|
- .tips-icon{
|
|
|
+ .tips-icon {
|
|
|
width: 34rpx;
|
|
|
height: 34rpx;
|
|
|
display: block;
|
|
@@ -814,7 +840,7 @@ page {
|
|
|
width: 100%;
|
|
|
height: 88rpx;
|
|
|
box-sizing: border-box;
|
|
|
- padding:28rpx 0 20rpx 0;
|
|
|
+ padding: 28rpx 0 20rpx 0;
|
|
|
line-height: 40rpx;
|
|
|
.main-member-none-text {
|
|
|
font-size: $font-size-26;
|
|
@@ -929,13 +955,13 @@ page {
|
|
|
.main-account-ri-view {
|
|
|
height: 100%;
|
|
|
float: left;
|
|
|
- &.account{
|
|
|
+ &.account {
|
|
|
width: 40%;
|
|
|
}
|
|
|
- &.beans{
|
|
|
+ &.beans {
|
|
|
width: 32%;
|
|
|
}
|
|
|
- &.coupon{
|
|
|
+ &.coupon {
|
|
|
width: 28%;
|
|
|
}
|
|
|
.main-account-icon {
|