From 2869f7864d77838f1115dca1286c940bee44af1b Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 03 八月 2022 19:02:15 +0800
Subject: [PATCH] 修改http请求超时为60s

---
 src/views/login/components/loginForm.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/login/components/loginForm.vue b/src/views/login/components/loginForm.vue
index be923d7..ca53a63 100644
--- a/src/views/login/components/loginForm.vue
+++ b/src/views/login/components/loginForm.vue
@@ -12,22 +12,22 @@
           >
             <el-form-item prop="loginName">
               <el-input
-                v-model="user.loginName"
+                v-model.trim="user.loginName"
                 placeholder="璇疯緭鍏ユ墜鏈哄彿 / 鐢ㄦ埛鍚�"
               >
                 <i slot="prefix" class="iconfont">&#xe603;</i>
               </el-input>
             </el-form-item>
             <el-form-item prop="password" class="password-form-item">
-              <el-input
+              <PwInput v-model="user.password" :showPreIcon="true"> </PwInput>
+              <!--   <el-input
                 show-password
                 @keyup.enter.native="userLogin"
                 v-model="user.password"
                 autocomplete="off"
                 placeholder="璇疯緭鍏ュ瘑鐮�"
               >
-                <i slot="prefix" class="iconfont">&#xe608;</i>
-              </el-input>
+              </el-input> -->
             </el-form-item>
             <el-form-item>
               <el-button
@@ -239,11 +239,12 @@
           this.codeDisabled = true;
           this.getValidStr();
           this.timer = setInterval(this.getValidStr, 1000);
-          makeVerifyCode({ phoneNum: this.phone.phoneNum })
+          makeVerifyCode({ phoneNum: this.phone.phoneNum, type: 0 })
             .then(() => {
               this.gotCode = true;
             })
             .catch((err) => {
+              console.log(this.$refs[formName].fields);
               this.$refs[formName].fields[0].validateState = "error";
               setTimeout(() => {
                 if (document.querySelector(".el-form-item__error")) {
@@ -378,7 +379,7 @@
   width: 660px;
   height: 454px;
   left: 240px;
-  top: 313px;
+  top: 25vh;
   box-sizing: border-box;
   background-color: #fff;
 

--
Gitblit v1.8.0