From 4201a2237ac7b724989e93f8ac4ae16da2800528 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 30 七月 2024 17:00:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_staff/pages/login/index.js |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/wechat_staff/pages/login/index.js b/wechat_staff/pages/login/index.js
index 90f7f48..084b641 100644
--- a/wechat_staff/pages/login/index.js
+++ b/wechat_staff/pages/login/index.js
@@ -64,6 +64,25 @@
       code,
       phone
     } = this.data
+    if (!this.data.agreementFalg) {
+      return wx.showToast({
+        title: '璇峰厛闃呰骞跺悓鎰忕浉鍏冲崗璁�',
+        icon: 'none'
+      })
+    }
+    if (phone.length != 11) {
+      return wx.showToast({
+        title: '璇疯緭鍏ユ纭殑鎵嬫満鍙�',
+        icon: 'none'
+      })
+    }
+    if (!code) {
+      return wx.showToast({
+        title: '璇疯緭鍏ラ獙璇佺爜',
+        icon: 'none'
+      })
+    }
+
     loginByPhone({
       code,
       phone
@@ -98,12 +117,6 @@
     })
   },
   changeStatus() {
-    if (!this.data.agreementFalg) {
-      return wx.showToast({
-        title: '璇峰厛闃呰骞跺悓鎰忕浉鍏冲崗璁�',
-        icon: 'none'
-      })
-    }
     this.setData({
       status: '1'
     })

--
Gitblit v1.9.3