From bf7fa741bc4bba6c474e760041349e52eb5770a8 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 23 Jan 2026 13:59:33 +0800
Subject: [PATCH] feat:登录修改

---
 uniapps/work-app/src/pages/login/index.vue |   24 ++----------------------
 1 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/uniapps/work-app/src/pages/login/index.vue b/uniapps/work-app/src/pages/login/index.vue
index b4b4a41..b5b459f 100644
--- a/uniapps/work-app/src/pages/login/index.vue
+++ b/uniapps/work-app/src/pages/login/index.vue
@@ -31,13 +31,6 @@
     </div>
 
     <button class="login-btn" :style="[inputStyle]" @tap="submit">登录</button>
-    <button class="login-btn" :style="[inputStyle]" @tap="submit1">登录1</button>
-  <!--  <view class="agreement">
-      <label>
-        <checkbox :checked="agreed" @click="agreed = !agreed" />
-        同意《用户协议》与《隐私政策》
-      </label>
-    </view> -->
   </view>
 </template>
 
@@ -92,11 +85,7 @@
   username: "admin",
   password: "admin",
 });
-function submit1() {
-   gdLogin();
-}
 async function submit() {
-  // 调用工单登录接口
 
   if (!loginForm.value.username.trim()) {
     uni.showToast({
@@ -163,7 +152,8 @@
       console.error('处理位置服务失败:', error);
     }
 
-
+ // 调用工单登录接口
+    await gdLogin()
 
     uni.reLaunch({
       url: "/pages/work/index",
@@ -418,16 +408,6 @@
   .link {
     color: $u-warning;
   }
-}
-.agreement {
-  position: absolute;
-  bottom: 40rpx;
-  left: 0;
-  right: 0;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  text-align: center;
 }
 .forgotPassword {
   font-family: PingFang SC, PingFang SC;

--
Gitblit v1.9.3