From e3a8d46ed7f215a7ad1d61d7e6d3a853e3922361 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 19:13:47 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_staff/pages/login/index.js | 33 ++++++++++++++++++++++++++-------
1 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/wechat_staff/pages/login/index.js b/wechat_staff/pages/login/index.js
index 040036a..084b641 100644
--- a/wechat_staff/pages/login/index.js
+++ b/wechat_staff/pages/login/index.js
@@ -54,11 +54,35 @@
}, 1000)
})
},
+ handleJudge(e) {
+ const flag = e.currentTarget.dataset.flag
+ console.log(e);
+ this.setData({ agreementFalg: flag, showModal: false })
+ },
loginPhone() {
const {
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
@@ -93,12 +117,6 @@
})
},
changeStatus() {
- if (!this.data.agreementFalg) {
- return wx.showToast({
- title: '璇峰厛闃呰骞跺悓鎰忕浉鍏冲崗璁�',
- icon: 'none'
- })
- }
this.setData({
status: '1'
})
@@ -111,7 +129,8 @@
onLoad(options) {
var app = getApp().globalData
this.setData({
- primary: app.primary
+ primary: app.primary,
+ bottomLift: app.bottomLift
})
this.initData()
},
--
Gitblit v1.9.3