|
@@ -15,15 +15,16 @@
|
|
|
height="56px" shape='circle'></u--image>
|
|
|
<view class='information' v-if='hasLogin'>
|
|
|
<view class='flex items-center'>
|
|
|
- <view class='username'>{{userName}} {{cargoCall}}</view>
|
|
|
+ <view v-if='userName' class='username'>{{userName}} {{cargoCall}}</view>
|
|
|
+ <view v-else class='username'>{{userInfo.userName}} </view>
|
|
|
<view v-if='status' class='currectstatus'>已认证</view>
|
|
|
- <view v-if='!status' class='currectstatus1'>{{CargoOwner.authenticationStatus}}</view>
|
|
|
+ <view v-if='!status' class='currectstatus1'>{{CargoOwner.authenticationStatus?CargoOwner.authenticationStatus:'未认证'}}</view>
|
|
|
</view>
|
|
|
<view class='phone'>{{starUserphone}}</view>
|
|
|
</view>
|
|
|
<view class='information' v-else @click="toLogin">立即登录</view>
|
|
|
</view>
|
|
|
- <view v-if='hasLogin&&!status' class='authentication flex flex-space-between'>
|
|
|
+ <view v-if='hasLogin&&!status1' class='authentication flex flex-space-between'>
|
|
|
<view>
|
|
|
<view style='font-size:14px;'>货主身份认证</view>
|
|
|
<view style='color:#DDA558;font-size:12px;'>您还没有完成货主认证哦~</view>
|
|
@@ -155,6 +156,7 @@
|
|
|
userName: '',
|
|
|
phone: '',
|
|
|
status: false,
|
|
|
+ status1:false,
|
|
|
alertContent: '您尚未登录,是否立即登录?',
|
|
|
cargoCall: "",
|
|
|
};
|
|
@@ -172,14 +174,21 @@
|
|
|
if (res.data) {
|
|
|
this.CargoOwner = res.data
|
|
|
if (res.data.authenticationStatus == '审核中' || res.data.authenticationStatus == '已驳回' || res
|
|
|
- .data.authenticationStatus == '未认证'||res.data.authenticationStatus == '已过期') {
|
|
|
+ .data.authenticationStatus == '未认证') {
|
|
|
+ if(res.data.authenticationStatus == '未认证'){
|
|
|
+ this.status1 = false
|
|
|
+ }else{
|
|
|
+ this.status1 = true
|
|
|
+ }
|
|
|
this.status = false
|
|
|
} else {
|
|
|
this.status = true
|
|
|
+ this.status1 = true
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
this.status = false
|
|
|
+ this.status1 = false
|
|
|
}
|
|
|
})
|
|
|
.catch(res => {
|
|
@@ -196,14 +205,13 @@
|
|
|
uni.setStorageSync("firstAuthentication", res.data)
|
|
|
if (res.data) {
|
|
|
this.userName = res.data.call
|
|
|
- if (res.data.sex == '男') {
|
|
|
- this.cargoCall = "先生"
|
|
|
- } else {
|
|
|
- this.cargoCall = "女士"
|
|
|
+ if(res.data.sex){
|
|
|
+ if (res.data.sex == '男') {
|
|
|
+ this.cargoCall = "先生"
|
|
|
+ } else {
|
|
|
+ this.cargoCall = "女士"
|
|
|
+ }
|
|
|
}
|
|
|
- } else {
|
|
|
- this.userName = this.userInfo.userName
|
|
|
- this.cargoCall = ""
|
|
|
}
|
|
|
this.$forceUpdate()
|
|
|
})
|