zhongtianhaoyuan %!s(int64=3) %!d(string=hai) anos
pai
achega
2cba562b1c
Modificáronse 2 ficheiros con 14 adicións e 3 borrados
  1. 1 0
      pages/mine/index.vue
  2. 13 3
      pages/riders/checkPage.vue

+ 1 - 0
pages/mine/index.vue

@@ -215,6 +215,7 @@
 						driverPhone: this.userInfo.phone,
 					}).then(res => {
 						this.firstAuthentication = res.data
+						uni.setStorageSync("firstAuthentication",res.data)//更新缓存数据(解决pc端审核后未及时更新缓存  用于车友判断)
 						console.log("this.firstAuthentication", this.firstAuthentication)
 						if (this.firstAuthentication) {
 							this.isFirstSH = false

+ 13 - 3
pages/riders/checkPage.vue

@@ -23,9 +23,6 @@
 			}
 		},
 		onShow() {
-			
-		},
-		onLoad() {
 			this.statusVal = uni.getStorageSync("firstAuthentication").authenticationStatus
 			if (this.statusVal == '未认证' || !this.statusVal) {
 				this.tipsInfo = "认证司机身份后即可查看车友信息哦"
@@ -38,7 +35,20 @@
 				this.tipsInfo = "您的身份没用通过审核哦,您可以重新认证身份~"
 				this.type = 3
 			}
+			if(this.statusVal == "已认证"){
+				uni.setTabBarItem({
+					index: 1,
+					text: '车友',
+					pagePath: "/pages/riders/index",
+					iconPath: 'static/images/common/zhaoche.png',
+					selectedIconPath: 'static/images/common/zhaoche_check.png'
+				})
+				uni.switchTab({
+					url: '/pages/riders/index'
+				});
+			}
 		},
+		onLoad() {},
 		methods:{
 			authentication(num){
 				if (num == 1) {