From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 h5/pages/driver/register.vue |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/h5/pages/driver/register.vue b/h5/pages/driver/register.vue
index ae1b1a5..3221f3a 100644
--- a/h5/pages/driver/register.vue
+++ b/h5/pages/driver/register.vue
@@ -49,12 +49,11 @@
 </template>
 
 <script>
-import { resetPassword, sendSms } from '@/api'
+import { driverRegister, sendSms } from '@/api'
 export default {
   data() {
     return {
-      form: {
-      },
+      form: {},
       isShowProtocol: false,
       countDown: 0
     }
@@ -84,7 +83,7 @@
     onLogin() {
       const { form } = this
 			if (!form.name) return uni.showToast({
-			  title: '鎵嬫満鍙峰鍚�',
+			  title: '濮撳悕涓嶈兘涓虹┖',
 			  icon: 'none'
 			})
       if (!form.phone) return uni.showToast({
@@ -99,20 +98,16 @@
         title: '瀵嗙爜涓嶈兘涓虹┖',
         icon: 'none'
       })
-      resetPassword({
+      driverRegister({
         ...form
       }).then(res => {
         if (res && res.code == 200) {
+					this.showToast('娉ㄥ唽鎴愬姛,璇峰墠寰�鐧诲綍')
           setTimeout(() => {
-            uni.showToast({
-              title: '娉ㄥ唽鎴愬姛,璇峰墠寰�鐧诲綍',
-              icon: 'success',
-              duration: 2000
-            })
-          })
-          uni.redirectTo({
-            url: "/pages/driver/login"
-          })
+						uni.redirectTo({
+						  url: "/pages/driver/login"
+						})
+					}, 500)
         }
       })
     }

--
Gitblit v1.9.3