From b5f084460e9e639358fbf91056a86be8d0a5c4b2 Mon Sep 17 00:00:00 2001
From: yaolonglong <yaolonglong15@163.com>
Date: 星期四, 09 十月 2025 20:18:57 +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