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
 <style lang="scss" scoped>
83
 <style lang="scss" scoped>
84
 .page_active{
84
 .page_active{
85
     // overflow-y: auto;
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
     background-size:100%;
87
     background-size:100%;
88
     height:114rem;
88
     height:114rem;
89
     position: relative;
89
     position: relative;

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

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

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

10
             <el-input
10
             <el-input
11
               placeholder="请填写手机号码"
11
               placeholder="请填写手机号码"
12
               prefix-icon="el-icon-mobile"
12
               prefix-icon="el-icon-mobile"
13
-              v-model="LoginForm.tel"
13
+              v-model.trim="LoginForm.tel"
14
               clearable
14
               clearable
15
-              v-on:blur="watchNum"
16
-              v-on:input="watchNum"
17
               maxlength="11"
15
               maxlength="11"
18
               @input="change(LoginForm.tel)"
16
               @input="change(LoginForm.tel)"
17
+              v-on:blur="watchNum"
18
+              v-on:input="watchNum"
19
             ></el-input>
19
             ></el-input>
20
           </el-form-item>
20
           </el-form-item>
21
           <el-form-item>
21
           <el-form-item>
23
              class="noRight"
23
              class="noRight"
24
               placeholder="请填写密码"
24
               placeholder="请填写密码"
25
               prefix-icon="el-icon-lock"
25
               prefix-icon="el-icon-lock"
26
-              v-model="LoginForm.psd"
26
+              v-model.trim="LoginForm.psd"
27
               show-password
27
               show-password
28
               clearable
28
               clearable
29
               v-on:blur="watchNum"
29
               v-on:blur="watchNum"
137
       this.LoginForm.tel = val.replace(/[^0-9]+/g, "");
137
       this.LoginForm.tel = val.replace(/[^0-9]+/g, "");
138
     },
138
     },
139
     watchNum() {
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
         this.loginshow = true;
164
         this.loginshow = true;
149
         this.loginshowtwo = false;
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
         this.loginshowtwo = true;
168
         this.loginshowtwo = true;
162
       }
169
       }
163
     },
170
     },
290
     LoginForm:{
297
     LoginForm:{
291
       handler: function(obj) {
298
       handler: function(obj) {
292
         //do something
299
         //do something
293
-        if(obj.tel != '' && obj.psd){
300
+        if(obj.tel.length == 11  && obj.psd.length >= 6){
294
           this.loginshow = true
301
           this.loginshow = true
295
           this.loginshowtwo = false
302
           this.loginshowtwo = false
296
         }
303
         }

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

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

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

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

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

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