From 69a74309ed12cc13f0fa9fb90c5bffad17ade360 Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期四, 27 六月 2024 13:34:56 +0800
Subject: [PATCH] 问题修改

---
 policy/changePhone/changePhone.vue |   32 ++++++++++++++++++++++++--------
 1 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/policy/changePhone/changePhone.vue b/policy/changePhone/changePhone.vue
index 88d9645..592dccd 100644
--- a/policy/changePhone/changePhone.vue
+++ b/policy/changePhone/changePhone.vue
@@ -49,9 +49,11 @@
 			}
 		},
 		onLoad(options) {
-			console.log(options)
 			if(options.code) {
 				this.form.userType = options.code
+			}
+			if(options.companyId) {
+				this.form.companyId = options.companyId
 			}
 		},
 		onUnload() {
@@ -149,13 +151,27 @@
 				}
 				updatePhone(this.form).then(val => {
 					if(val.data.code == 200) {
-						uni.showToast({
-							title: '淇敼鎴愬姛',
-							icon: 'none'
-						})
-						setTimeout(() => {
-							uni.navigateBack()
-						}, 500)
+					
+						if(val.data.data == 1) {
+							uni.showToast({
+								title: '淇敼鎴愬姛锛岃閲嶆柊鐧诲綍',
+								icon: 'none'
+							})
+							uni.clearStorage()
+							setTimeout(() => {
+								uni.reLaunch({
+									url: '/pages/companyLogin/companyLogin?code=02'
+								})
+							}, 500)
+						} else {
+							uni.showToast({
+								title: '淇敼鎴愬姛',
+								icon: 'none'
+							})
+							setTimeout(() => {
+								uni.navigateBack()
+							}, 500)
+						}
 					}
 					
 				})

--
Gitblit v1.9.1