gpc-ui 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/gpc-ui.common.js +48 -52
- package/lib/gpc-ui.common.js.map +1 -1
- package/lib/gpc-ui.css +1 -1
- package/lib/gpc-ui.umd.js +48 -52
- package/lib/gpc-ui.umd.js.map +1 -1
- package/lib/gpc-ui.umd.min.js +1 -1
- package/lib/gpc-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gpc-login/index.vue +19 -12
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div style="color: #018a46; font-size: 40px; font-style: unset; text-align: right;">
|
|
5
5
|
{{systemTitle}}
|
|
6
6
|
</div>
|
|
7
|
-
<div style="color: #018a46; font-size: 32px; font-style: unset; text-align: right;"
|
|
7
|
+
<div style="color: #018a46; font-size: 32px; font-style: unset; text-align: right;">{{subtitle}}</div>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="wrap-box">
|
|
10
10
|
<div class="box-content">
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</drag-verify>
|
|
38
38
|
<div class="buttons clearfix">
|
|
39
39
|
<el-button class="btn-login fr button" :loading="loading" @click="getAccountLogin">登录</el-button>
|
|
40
|
-
<el-button type="text" style="color: #028037;" size="small" @click="getRegister">重置密码</el-button
|
|
40
|
+
<!-- <el-button type="text" style="color: #028037;" size="small" @click="getRegister">重置密码</el-button>-->
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
</TabPane>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</div>
|
|
55
55
|
<div class="input-box">
|
|
56
56
|
<div class="drag-verify-box">
|
|
57
|
-
<input type="text" placeholder="验证码" v-model="verifyFrom.
|
|
57
|
+
<input type="text" placeholder="验证码" v-model="verifyFrom.code">
|
|
58
58
|
<el-button style="border-color: #028037; color: #028037;" plain size="small" @click="getLoginVerifyCode" :disabled="isDisabledLogin">{{buttonLoginText}}</el-button>
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
</div>
|
|
80
80
|
<div class="input-box">
|
|
81
81
|
<div class="drag-verify-box">
|
|
82
|
-
<input type="text" placeholder="验证码" v-model="resetFrom.
|
|
82
|
+
<input type="text" placeholder="验证码" v-model="resetFrom.code">
|
|
83
83
|
<el-button style="border-color: #028037; color: #028037;" plain size="small" @click="getRestVerifyCode" :disabled="isDisabledRest">{{buttonRestText}}</el-button>
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
177
177
|
verifyFrom:{
|
|
178
178
|
phoneNum: "",
|
|
179
179
|
authCode: "",
|
|
180
|
-
|
|
180
|
+
code: "",
|
|
181
181
|
},
|
|
182
182
|
// 滑块验证 - 验证码登录
|
|
183
183
|
isPassingLogin: false,
|
|
@@ -187,7 +187,7 @@ export default {
|
|
|
187
187
|
resetFrom:{
|
|
188
188
|
phoneNum: "",
|
|
189
189
|
authCode: "",
|
|
190
|
-
|
|
190
|
+
code: "",
|
|
191
191
|
},
|
|
192
192
|
// 滑块验证 - 验证码登录
|
|
193
193
|
isPassingRest: false,
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
209
209
|
console.log('getCodeRequest', type, authCode)
|
|
210
210
|
if(type === 'account'){
|
|
211
211
|
this.accountFrom.authCode = authCode
|
|
212
|
-
} else if(type === '
|
|
212
|
+
} else if(type === 'code'){
|
|
213
213
|
this.verifyFrom.authCode = authCode
|
|
214
214
|
} else if(type === 'rest'){
|
|
215
215
|
this.resetFrom.authCode = authCode
|
|
@@ -260,7 +260,7 @@ export default {
|
|
|
260
260
|
// 校验公共逻辑
|
|
261
261
|
if (!this.validateVerifyForm()) return false;
|
|
262
262
|
// 校验短信验证码
|
|
263
|
-
if (!this.verifyFrom.
|
|
263
|
+
if (!this.verifyFrom.code) {
|
|
264
264
|
this.$notify.error({ message: '请输入短信验证码' });
|
|
265
265
|
return false;
|
|
266
266
|
}
|
|
@@ -293,7 +293,7 @@ export default {
|
|
|
293
293
|
if(this.isPassingLogin){
|
|
294
294
|
this.$emit('applySMSCodeRequest', this.verifyFrom);
|
|
295
295
|
this.isDisabledLogin = true
|
|
296
|
-
this.countdownLogin =
|
|
296
|
+
this.countdownLogin = 60
|
|
297
297
|
const interval = setInterval(()=>{
|
|
298
298
|
this.countdownLogin--
|
|
299
299
|
if(this.countdownLogin === 0){
|
|
@@ -306,7 +306,7 @@ export default {
|
|
|
306
306
|
},
|
|
307
307
|
// 验证码登录- 发送获取authCode
|
|
308
308
|
passCallLoginBack() {
|
|
309
|
-
this.$emit('getCodeRequest', '
|
|
309
|
+
this.$emit('getCodeRequest', 'code');
|
|
310
310
|
},
|
|
311
311
|
resetLogin() {
|
|
312
312
|
this.isPassingLogin = false;
|
|
@@ -339,7 +339,7 @@ export default {
|
|
|
339
339
|
if (!this.validateResetForm()) return false;
|
|
340
340
|
|
|
341
341
|
// 校验短信验证码
|
|
342
|
-
if (!this.resetFrom.
|
|
342
|
+
if (!this.resetFrom.code) {
|
|
343
343
|
this.$notify.error({ message: '请输入短信验证码' });
|
|
344
344
|
return false;
|
|
345
345
|
}
|
|
@@ -373,7 +373,7 @@ export default {
|
|
|
373
373
|
if(this.isPassingRest){
|
|
374
374
|
this.$emit('applySMSCodeRequest', this.resetFrom);
|
|
375
375
|
this.isDisabledRest = true
|
|
376
|
-
this.countdownRest =
|
|
376
|
+
this.countdownRest = 60
|
|
377
377
|
const interval = setInterval(()=>{
|
|
378
378
|
this.countdownRest--
|
|
379
379
|
if(this.countdownRest === 0){
|
|
@@ -387,6 +387,13 @@ export default {
|
|
|
387
387
|
passCallRestBack() {
|
|
388
388
|
this.$emit('getCodeRequest', 'rest');
|
|
389
389
|
},
|
|
390
|
+
resetPwNotice(){
|
|
391
|
+
this.accountFrom.username = this.resetFrom.phoneNum
|
|
392
|
+
this.resetFrom.phoneNum = ''
|
|
393
|
+
this.resetFrom.code = ''
|
|
394
|
+
this.resetFrom.smsCode = ''
|
|
395
|
+
this.getLogin()
|
|
396
|
+
},
|
|
390
397
|
resetPw() {
|
|
391
398
|
this.isPassingRest = false;
|
|
392
399
|
this.$refs.dragVerifyRest.reset()
|