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/register.vue | 25 ++++++++++---------------
1 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/h5/pages/driver/register.vue b/h5/pages/driver/register.vue
index ae1b1a5..743db75 100644
--- a/h5/pages/driver/register.vue
+++ b/h5/pages/driver/register.vue
@@ -3,7 +3,7 @@
<image class="login_bg" src="@/static/login_bg@2x.png" />
<image class="login_logo" src="@/static/logo@2x.png" mode="widthFix" />
<view class="login_title">瀹夋嘲鐗╂祦鏅烘収鍥尯</view>
- <view class="login_title">鐗╂祦杞﹀徃鏈虹櫥褰�</view>
+ <view class="login_title">鐗╂祦杞﹀徃鏈�</view>
<view class="login_list">
<view class="login_list_item">
<image src="@/static/login_ic_phone@2x.png" mode="widthFix" />
@@ -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