|
@@ -13,11 +13,11 @@
|
|
|
<view class="user-name-id">
|
|
|
<view class="user-name clamp2">{{ userInfo.nickname || '游客'}}</view>
|
|
|
<view class="user-shop flex" v-if="userInfo.uid">
|
|
|
- <view class="user-shop-item" v-if="userInfo.enroll_status == 2 " style="width: 180rpx;">
|
|
|
+ <view class="user-shop-item" v-if="userInfo.level> 0 " style="width: 180rpx;">
|
|
|
<image class="user-shop-icon" src="../../static/img/level.png" mode=""
|
|
|
style="width: 180rpx;"></image>
|
|
|
<view class="user-shopname" style="padding-left: 70rpx;">
|
|
|
- 代理
|
|
|
+ {{userInfo.level_name}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class="user-shop-item" >
|
|
@@ -26,9 +26,9 @@
|
|
|
{{userInfo.identity == 0?'粉丝':(userInfo.identity == 1?'店员':userInfo.identity == 2?'店长':'')}}
|
|
|
</view>
|
|
|
</view> -->
|
|
|
- <!-- </view> -->
|
|
|
- <!-- <view class="user-uid">UID:{{ userInfo.uid || ''}}</view> -->
|
|
|
- <!-- <view class="user-shop" v-if="userInfo.user_rule != 'user'">
|
|
|
+ <!-- </view> -->
|
|
|
+ <!-- <view class="user-uid">UID:{{ userInfo.uid || ''}}</view> -->
|
|
|
+ <!-- <view class="user-shop" v-if="userInfo.user_rule != 'user'">
|
|
|
<view class="user-shopname">{{ userInfo.identity == 2 ? '店长' : userInfo.identity == 1 ? '店员' : '粉丝' }}</view>
|
|
|
</view> -->
|
|
|
</view>
|
|
@@ -58,7 +58,8 @@
|
|
|
</image>
|
|
|
</view>
|
|
|
<!-- -->
|
|
|
- <image src="../../static/img/sqdl.png" mode="widthFix" class="sqdl" @click="sqdl" v-if="userInfo.enroll_status != 2"></image>
|
|
|
+ <image src="../../static/img/sqdl.png" mode="widthFix" class="sqdl" @click="sqdl"
|
|
|
+ v-if="userInfo.enroll_status != 2"></image>
|
|
|
<view class="main-box">
|
|
|
<view class="title flex" @click="navTo('/pages/order/order?state=0')">
|
|
|
<view class="title-left">
|
|
@@ -154,7 +155,8 @@
|
|
|
import {
|
|
|
orderData,
|
|
|
getUserInfo,
|
|
|
- check
|
|
|
+ check,
|
|
|
+ getLevelList
|
|
|
} from '@/api/user.js';
|
|
|
import {
|
|
|
saveUrl,
|
|
@@ -175,6 +177,7 @@
|
|
|
store_name: '',
|
|
|
achievement: '',
|
|
|
code: '',
|
|
|
+ levelList: [],
|
|
|
text: '' //客服微信
|
|
|
};
|
|
|
},
|
|
@@ -216,17 +219,17 @@
|
|
|
methods: {
|
|
|
...mapMutations('user', ['setUserInfo']),
|
|
|
sqdl() {
|
|
|
- if(this.hasLogin) {
|
|
|
- if(this.userInfo.enroll_status == 1) {
|
|
|
-
|
|
|
+ if (this.hasLogin) {
|
|
|
+ if (this.userInfo.enroll_status == 1) {
|
|
|
+
|
|
|
uni.showModal({
|
|
|
- title:"提示",
|
|
|
+ title: "提示",
|
|
|
content: '您提交的申请正在审核中,请耐心等待审核'
|
|
|
})
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.navTo('/pages/user/sqdl')
|
|
|
}
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.navTo('/pages/user/sqdl')
|
|
|
}
|
|
|
},
|
|
@@ -307,16 +310,21 @@
|
|
|
},
|
|
|
// 加载初始数据
|
|
|
loadBaseData() {
|
|
|
- getUserInfo({})
|
|
|
- .then(({
|
|
|
- data
|
|
|
- }) => {
|
|
|
- console.log(data.nickname)
|
|
|
- this.setUserInfo(data);
|
|
|
- })
|
|
|
- .catch(e => {
|
|
|
- console.log(e);
|
|
|
- });
|
|
|
+ const obj = this
|
|
|
+ getLevelList().then(res => {
|
|
|
+ obj.levelList = res.data
|
|
|
+ getUserInfo({})
|
|
|
+ .then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ obj.setUserInfo(data);
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
/**
|
|
|
* 统一跳转接口,拦截未登录路由
|
|
@@ -581,7 +589,7 @@
|
|
|
}
|
|
|
|
|
|
.user-shopname {
|
|
|
- padding-left:60rpx;
|
|
|
+ padding-left: 60rpx;
|
|
|
position: relative;
|
|
|
z-index: 2;
|
|
|
font-size: 30rpx;
|
|
@@ -673,7 +681,7 @@
|
|
|
|
|
|
.title-font {
|
|
|
margin-left: 20rpx;
|
|
|
- font-size:30rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
color: #333333;
|
|
@@ -913,9 +921,10 @@
|
|
|
height: 23rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.sqdl {
|
|
|
display: block;
|
|
|
width: 689rpx;
|
|
|
margin: 20rpx auto 20rpx;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|