Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

XMLWAN 4 years ago
parent
commit
419267e91b

+ 1 - 1
src/pages/home/active.vue View File

@@ -83,7 +83,7 @@ export default {
83 83
 <style lang="scss" scoped>
84 84
 .page_active{
85 85
     // overflow-y: auto;
86
-    background: url("https://images.shengws.com/2020/4/26/admin_avatar_1587890355876.png") no-repeat;
86
+    background: url("https://images.shengws.com/2020/4/27/admin_avatar_1587979750798.png") no-repeat;
87 87
     background-size:100%;
88 88
     height:114rem;
89 89
     position: relative;

+ 3 - 3
src/pages/home/forgetPassword/index.vue View File

@@ -12,7 +12,7 @@
12 12
             <el-input
13 13
               class="phoneInput"
14 14
               placeholder="请填写手机号码"
15
-              v-model="forgetForm.phone"
15
+              v-model.trim="forgetForm.phone"
16 16
               v-on:input="watchNum"
17 17
               maxlength="11"
18 18
               @input="change(forgetForm.phone)"
@@ -23,7 +23,7 @@
23 23
           <div class="code">
24 24
             <i class="iconfont icon-dunpai dunpai"></i>
25 25
             <el-input
26
-              v-model="forgetForm.code"
26
+              v-model.trim="forgetForm.code"
27 27
               placeholder="请填写验证码"
28 28
               v-on:input="watchNum"
29 29
             ></el-input>
@@ -37,7 +37,7 @@
37 37
             <i class="el-icon-lock lock"></i>
38 38
             <el-input
39 39
               class="phoneInput"
40
-              v-model="psd"
40
+              v-model.trim="psd"
41 41
               placeholder="请填写新密码"
42 42
               show-password
43 43
               v-on:input="watchNum"

+ 31 - 24
src/pages/home/login.vue View File

@@ -10,12 +10,12 @@
10 10
             <el-input
11 11
               placeholder="请填写手机号码"
12 12
               prefix-icon="el-icon-mobile"
13
-              v-model="LoginForm.tel"
13
+              v-model.trim="LoginForm.tel"
14 14
               clearable
15
-              v-on:blur="watchNum"
16
-              v-on:input="watchNum"
17 15
               maxlength="11"
18 16
               @input="change(LoginForm.tel)"
17
+              v-on:blur="watchNum"
18
+              v-on:input="watchNum"
19 19
             ></el-input>
20 20
           </el-form-item>
21 21
           <el-form-item>
@@ -23,7 +23,7 @@
23 23
              class="noRight"
24 24
               placeholder="请填写密码"
25 25
               prefix-icon="el-icon-lock"
26
-              v-model="LoginForm.psd"
26
+              v-model.trim="LoginForm.psd"
27 27
               show-password
28 28
               clearable
29 29
               v-on:blur="watchNum"
@@ -137,27 +137,34 @@ export default {
137 137
       this.LoginForm.tel = val.replace(/[^0-9]+/g, "");
138 138
     },
139 139
     watchNum() {
140
-      if (
141
-        this.LoginForm.tel === "" ||
142
-        this.LoginForm.psd === "" ||
143
-        this.checked == false
144
-      ) {
145
-        this.loginshow = false;
146
-        this.loginshowtwo = true;
147
-      } else {
140
+      // if (
141
+      //   this.LoginForm.tel === "" ||
142
+      //   this.LoginForm.psd === "" ||
143
+      //   this.checked == false
144
+      // ) {
145
+      //   this.loginshow = false;
146
+      //   this.loginshowtwo = true;
147
+      // } else {
148
+      //   this.loginshow = true;
149
+      //   this.loginshowtwo = false;
150
+      // }
151
+      // if (this.LoginForm.psd.length < 6) {
152
+      //   this.loginshow = false;
153
+      //   this.loginshowtwo = true;
154
+      // }
155
+      // if (this.LoginForm.psd.length > 6) {
156
+      //   this.loginshow = true;
157
+      //   this.loginshowtwo = false;
158
+      // }
159
+      // if (this.LoginForm.tel.length < 11) {
160
+      //   this.loginshow = false;
161
+      //   this.loginshowtwo = true;
162
+      // }
163
+      if(this.LoginForm.psd.length >= 6 && this.LoginForm.tel.length == 11 && this.checked == true){
148 164
         this.loginshow = true;
149 165
         this.loginshowtwo = false;
150
-      }
151
-      if (this.LoginForm.psd.length < 6) {
152
-        this.loginshow = false;
153
-        this.loginshowtwo = true;
154
-      }
155
-      if (this.LoginForm.psd.length > 6) {
156
-        this.loginshow = true;
157
-        this.loginshowtwo = false;
158
-      }
159
-      if (this.LoginForm.tel.length < 11) {
160
-        this.loginshow = false;
166
+      }else{
167
+          this.loginshow = false;
161 168
         this.loginshowtwo = true;
162 169
       }
163 170
     },
@@ -290,7 +297,7 @@ export default {
290 297
     LoginForm:{
291 298
       handler: function(obj) {
292 299
         //do something
293
-        if(obj.tel != '' && obj.psd){
300
+        if(obj.tel.length == 11  && obj.psd.length >= 6){
294 301
           this.loginshow = true
295 302
           this.loginshowtwo = false
296 303
         }

+ 2 - 2
src/pages/home/noPassword/index.vue View File

@@ -12,7 +12,7 @@
12 12
             <el-input
13 13
               class="phoneInput"
14 14
               placeholder="请填写手机号码"
15
-              v-model="NoPassForm.phone"
15
+              v-model.trim="NoPassForm.phone"
16 16
               v-on:input="watchNum"
17 17
               :maxlength="11"
18 18
               @input="change(NoPassForm.phone)"
@@ -24,7 +24,7 @@
24 24
             <i class="iconfont icon-dunpai dunpai"></i>
25 25
             <el-input
26 26
               class="yzm"
27
-              v-model="NoPassForm.code"
27
+              v-model.trim="NoPassForm.code"
28 28
               placeholder="请填写验证码"
29 29
               v-on:input="watchNum"
30 30
             ></el-input>

+ 3 - 3
src/pages/home/register/register.vue View File

@@ -11,7 +11,7 @@
11 11
             <i class="el-icon-mobile mobile"></i>
12 12
             <el-input
13 13
               placeholder="请填写手机号码"
14
-              v-model="registerForm.phone"
14
+              v-model.trim="registerForm.phone"
15 15
               v-on:input="watchNum"
16 16
               maxlength="11"
17 17
               @input="change(registerForm.phone)"
@@ -22,7 +22,7 @@
22 22
           <div class="code">
23 23
             <i class="iconfont icon-dunpai dunpai"></i>
24 24
             <el-input
25
-              v-model="registerForm.code"
25
+              v-model.trim="registerForm.code"
26 26
               placeholder="请填写验证码"
27 27
               v-on:input="watchNum"
28 28
             ></el-input>
@@ -38,7 +38,7 @@
38 38
             <i class="el-icon-lock lock"></i>
39 39
             <el-input
40 40
               v-on:input="watchNum"
41
-              v-model="registerForm.password"
41
+              v-model.trim="registerForm.password"
42 42
               show-password
43 43
               clearable
44 44
               maxlength="20"

+ 3 - 3
src/pages/my/modifyPassword.vue View File

@@ -12,7 +12,7 @@
12 12
             <el-input
13 13
               class="phoneInput"
14 14
               placeholder="请填写手机号码"
15
-              v-model="forgetForm.phone"
15
+              v-model.trim="forgetForm.phone"
16 16
               v-on:input="watchNum"
17 17
               maxlength="11"
18 18
               readonly
@@ -24,7 +24,7 @@
24 24
           <div class="code">
25 25
             <i class="iconfont icon-dunpai dunpai"></i>
26 26
             <el-input
27
-              v-model="forgetForm.code"
27
+              v-model.trim="forgetForm.code"
28 28
               placeholder="请填写验证码"
29 29
               v-on:input="watchNum"
30 30
             ></el-input>
@@ -38,7 +38,7 @@
38 38
             <i class="el-icon-lock lock"></i>
39 39
             <el-input
40 40
               class="phoneInput"
41
-              v-model="psd"
41
+              v-model.trim="psd"
42 42
               placeholder="请填写新密码"
43 43
               show-password
44 44
               v-on:input="watchNum"