|
@@ -41,7 +41,6 @@
|
|
|
</view>
|
|
|
<!-- <image src="../../static/img/sign/authentication@3x.png" mode=""></image> -->
|
|
|
</view>
|
|
|
-
|
|
|
<!-- <view class='cu-item' @click='scanCode'>
|
|
|
<view>
|
|
|
<text class="cuIcon-scan icon text-grey"></text>
|
|
@@ -66,7 +65,6 @@
|
|
|
|
|
|
</neil-modal>
|
|
|
</view>
|
|
|
-
|
|
|
</template>
|
|
|
<script>
|
|
|
import dragButton from "@/components/drag-button/drag-button.vue";
|
|
@@ -158,7 +156,6 @@
|
|
|
// show:true
|
|
|
// },
|
|
|
// {
|
|
|
-
|
|
|
{
|
|
|
num: 0,
|
|
|
name: '身份认证',
|
|
@@ -229,7 +226,6 @@
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- console.log(uni.getStorageSync('userInfo'))
|
|
|
uni.showTabBar()
|
|
|
this.loadData()
|
|
|
},
|
|
@@ -239,8 +235,9 @@
|
|
|
}else if(this.userInfo.avatarUrl != "" || this.userInfo.avatarUrl != null){
|
|
|
this.headUrl = this.userInfo.avatarUrl
|
|
|
}
|
|
|
- if(this.userInfo.userName != null || this.userInfo.userName != ""){
|
|
|
- this.username = this.userInfo.userName
|
|
|
+ this.username = this.userInfo.userName
|
|
|
+ if( this.username == null || this.username == ""){
|
|
|
+ this.username = "请更改昵称"
|
|
|
}
|
|
|
if(this.userInfo.phone != null || this.userInfo.phone != ""){
|
|
|
this.userphone = this.userInfo.phone
|
|
@@ -310,13 +307,11 @@
|
|
|
// uni.setStorageSync("task", data.task);
|
|
|
// uni.setStorageSync("contract", data.contract);
|
|
|
// uni.setStorageSync('showTran', data.showTran);
|
|
|
-
|
|
|
// that.showTran = data.showTran
|
|
|
// that.gridList[4].tips = data.task
|
|
|
// that.gridList[2].tips = data.contract
|
|
|
// that.companyId = data.companyId
|
|
|
// uni.hideLoading()
|
|
|
-
|
|
|
// })
|
|
|
},
|
|
|
gridClick(item, index) {
|
|
@@ -354,7 +349,6 @@
|
|
|
that.mycarStyle = "height:" + height + "rpx;width:" + width + "rpx"
|
|
|
that.modalName = 'MycarModal'
|
|
|
}
|
|
|
-
|
|
|
uni.hideLoading()
|
|
|
})
|
|
|
|
|
@@ -365,7 +359,6 @@
|
|
|
url: item.url + `?companyId=${that.companyId}`
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
toLogin() {
|
|
|
if (!this.hasLogin) {
|
|
@@ -416,16 +409,13 @@
|
|
|
uni.clearStorageSync();
|
|
|
that.$store.commit('logout')
|
|
|
that.$api.logout()
|
|
|
- // uni.navigateTo({
|
|
|
- // url: `/pages/public/login`
|
|
|
- // })
|
|
|
- console.log(that.$api)
|
|
|
- console.log("成功没?")
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/public/login`
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
/**
|
|
|
* 统一跳转接口,拦截未登录路由
|
|
|
* navigator标签现在默认没有转场动画,所以用view
|
|
@@ -443,14 +433,12 @@
|
|
|
uni.navigateTo({
|
|
|
url: `/pageB/car/mycar_detail?carNo=${carNo}`
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
qrClick(userInfo) {
|
|
|
this.modalName = null
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/user/qr`
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
scanCode() {
|
|
|
uni.scanCode({
|