|
@@ -37,7 +37,7 @@
|
|
|
请点击登录
|
|
|
</view>
|
|
|
<view v-else>
|
|
|
- <view class="user-name">{{userInfo.userNameCN || '游客'}}</view>
|
|
|
+ <view class="user-name">{{userInfo.userNameCN || userInfo.mobile}}</view>
|
|
|
<view>{{userInfo.orgName}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -176,7 +176,7 @@
|
|
|
methods: {
|
|
|
pageInit(){
|
|
|
if(this.hasLogin){
|
|
|
- this.avatarUrl = this.userInfo.extInfo.userExtInfo ? this.userInfo.extInfo.userExtInfo.headImage : ''
|
|
|
+ this.avatarUrl = this.userInfo.extInfo&&this.userInfo.extInfo.userExtInfo ? this.userInfo.extInfo.userExtInfo.headImage : ''
|
|
|
// 获取扫描记录
|
|
|
this.getVinLog()
|
|
|
|
|
@@ -189,10 +189,10 @@
|
|
|
this.$store.dispatch("getScanNums")
|
|
|
// 获取最大扫描次数
|
|
|
this.getMaxQty()
|
|
|
+ // 查询门店认证信息
|
|
|
+ this.findLastApply()
|
|
|
}
|
|
|
|
|
|
- // 查询门店认证信息
|
|
|
- this.findLastApply()
|
|
|
}else{
|
|
|
uni.removeStorageSync('token')
|
|
|
}
|
|
@@ -272,7 +272,7 @@
|
|
|
this.status = "loading"
|
|
|
// VISITOR:游客,EMPLOYEE:雇员
|
|
|
getScanVinLogList({ pageNo:1, pageSize:5, identifyType: this.userInfo.identifyType }).then(res => {
|
|
|
- this.vinList = res.data.list || []
|
|
|
+ this.vinList = res.data&&res.data.list || []
|
|
|
this.vinList = this.vinList.filter(item => item.vinCode)
|
|
|
this.status = 'nomore'
|
|
|
})
|