From 27da067243b78340dac4f75c5131059617594037 Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期六, 22 六月 2024 16:01:45 +0800
Subject: [PATCH] 页面调整注册页面添加

---
 pages/registerCompany/registerCompany.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pages/registerCompany/registerCompany.vue b/pages/registerCompany/registerCompany.vue
index 8efc6a1..aef62fc 100644
--- a/pages/registerCompany/registerCompany.vue
+++ b/pages/registerCompany/registerCompany.vue
@@ -83,7 +83,7 @@
 </template>
 
 <script>
-	import { registerCompany, checkCode, getCode } from '@/api/auth.js'
+	import { registerCompany, checkCode, getNewVerify } from '@/api/auth.js'
 	import { upload } from '@/common/upload'
 	import { config } from '@/common/config.js'
 	export default {
@@ -137,11 +137,13 @@
 					uni.showLoading({
 						title: '姝e湪鑾峰彇楠岃瘉鐮�'
 					})
-					getCode({phone: this.form.companyPhone }).then(val => {
+					getNewVerify({phone: this.form.companyPhone }).then(val => {
+						if(val.data.code == 200) {
 							this.startCountdown()
 							uni.hideLoading();
 							this.tips = `${this.countdownTime}s鍚庨噸鏂拌幏鍙朻
 							uni.$u.toast('楠岃瘉鐮佸凡鍙戦��');
+						}
 					})
 				} else {
 					uni.$u.toast('鍊掕鏃剁粨鏉熷悗鍐嶅彂閫�');

--
Gitblit v1.9.1