From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 九月 2025 18:43:14 +0800
Subject: [PATCH] 最新版本541200007

---
 h5/pages/driver/forgetPsd.vue |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/h5/pages/driver/forgetPsd.vue b/h5/pages/driver/forgetPsd.vue
index 7512424..acb83b1 100644
--- a/h5/pages/driver/forgetPsd.vue
+++ b/h5/pages/driver/forgetPsd.vue
@@ -7,14 +7,14 @@
     <view class="login_list">
       <view class="login_list_item">
         <image src="@/static/login_ic_phone@2x.png" mode="widthFix" />
-        <input v-model="form.phone" maxlength="18" placeholder="璇疯緭鍏ユ墜鏈哄彿" />
+        <input v-model="form.phone"  type="tel" :maxlength="11" placeholder="璇疯緭鍏ユ墜鏈哄彿" />
       </view>
       <view class="login_list_item">
         <image src="@/static/ic_captcha.png" mode="widthFix"></image>
         <input
           v-model="form.validCode"
           placeholder="璇疯緭鍏ラ獙璇佺爜"
-          type="text"
+           type="number"
         />
         <text class="captcha" v-if="countDown == 0" @click="initCaptcha"
           >鑾峰彇楠岃瘉鐮�</text
@@ -55,7 +55,10 @@
     }
   },
 
-  onLoad() {
+  onLoad(option) {
+		if(option.phone){
+			this.$set(this.form, 'phone', option.phone || '')
+		}
   },
 
   methods: {
@@ -102,16 +105,12 @@
         ...form
       }).then(res => {
         if (res && res.code == 200) {
+					this.showToast('瀵嗙爜淇敼鎴愬姛,璇烽噸鏂扮櫥褰�')
           setTimeout(() => {
-            uni.showToast({
-              title: '瀵嗙爜淇敼鎴愬姛,璇烽噸鏂扮櫥褰�',
-              icon: 'success',
-              duration: 2000
-            })
-          })
-          uni.redirectTo({
-            url: "/pages/staffLogin/login"
-          })
+						uni.redirectTo({
+						  url: "/pages/driver/login"
+						})
+					}, 500)
         }
       })
     }

--
Gitblit v1.9.3