From 5a85dcab83e969d6b21c599b512a15117e9b8651 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 04 七月 2024 08:54:30 +0800
Subject: [PATCH] ''

---
 h5/pages/staffLogin/login.vue |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/h5/pages/staffLogin/login.vue b/h5/pages/staffLogin/login.vue
index 572006f..d4a0c8b 100644
--- a/h5/pages/staffLogin/login.vue
+++ b/h5/pages/staffLogin/login.vue
@@ -84,7 +84,12 @@
   onLoad() {
     this.initCaptcha()
   },
-
+  onBackPress(options) {
+    uni.redirectTo({
+      url: '/pages/login/login'
+    })
+    return true
+  },
   methods: {
     ...mapMutations(["setToken", "setUserInfo"]),
     changeFalg() {
@@ -122,10 +127,10 @@
         title: '瀵嗙爜涓嶈兘涓虹┖',
         icon: 'none'
       })
-      // if (!form.code) return uni.showToast({
-      //   title: '楠岃瘉鐮佷笉鑳戒负绌�',
-      //   icon: 'none'
-      // })
+      if (!form.code) return uni.showToast({
+        title: '楠岃瘉鐮佷笉鑳戒负绌�',
+        icon: 'none'
+      })
       loginPost({
         ...form,
         uuid: this.captcha.uuid,
@@ -151,7 +156,7 @@
   width: 100%;
   height: 100vh;
   display: flex;
-  padding-top: 160rpx;
+  padding-top: 130rpx;
   box-sizing: border-box;
   align-items: center;
   flex-direction: column;
@@ -218,7 +223,6 @@
     margin-top: 60rpx;
     .for_psd {
       color: $uni-color-primary;
-      margin-top: 40rpx;
       width: 140rpx;
       text-align: center;
       margin: 40rpx auto;
@@ -242,7 +246,7 @@
     width: 100%;
     left: 0;
     text-align: center;
-    bottom: 108rpx;
+    bottom: 88rpx;
     display: flex;
     justify-content: center;
     align-items: center;

--
Gitblit v1.9.3