gpc-ui 0.1.18 → 0.1.20
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 +45 -45
- package/lib/gpc-ui.common.js.map +1 -1
- package/lib/gpc-ui.css +1 -1
- package/lib/gpc-ui.umd.js +45 -45
- 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 +14 -14
package/package.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<TabPane label="验证码登录" name="2">
|
|
45
45
|
<div>
|
|
46
46
|
<div class="input-box">
|
|
47
|
-
<input type="text" placeholder="手机号" v-model="verifyFrom.
|
|
47
|
+
<input type="text" placeholder="手机号" v-model="verifyFrom.phoneNum">
|
|
48
48
|
</div>
|
|
49
49
|
<div class="input-box">
|
|
50
50
|
<drag-verify ref="dragVerifyLogin" :width="300" :isPassing.sync="isPassingLogin" text="请按住滑块拖动" successText="验证通过" progressBarBg="#11C36A"
|
|
@@ -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>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<div>
|
|
70
70
|
<h3>重置密码</h3>
|
|
71
71
|
<div class="input-box">
|
|
72
|
-
<input type="text" placeholder="手机号" v-model="resetFrom.
|
|
72
|
+
<input type="text" placeholder="手机号" v-model="resetFrom.phoneNum">
|
|
73
73
|
</div>
|
|
74
74
|
<div class="input-box">
|
|
75
75
|
<drag-verify ref="dragVerifyRest" :width="320" :isPassing.sync="isPassingRest" text="请按住滑块拖动" successText="验证通过" progressBarBg="#11C36A"
|
|
@@ -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>
|
|
@@ -175,9 +175,9 @@ export default {
|
|
|
175
175
|
isPassingAccount: false,
|
|
176
176
|
// 验证码登录
|
|
177
177
|
verifyFrom:{
|
|
178
|
-
|
|
178
|
+
phoneNum: "",
|
|
179
179
|
authCode: "",
|
|
180
|
-
|
|
180
|
+
code: "",
|
|
181
181
|
},
|
|
182
182
|
// 滑块验证 - 验证码登录
|
|
183
183
|
isPassingLogin: false,
|
|
@@ -185,9 +185,9 @@ export default {
|
|
|
185
185
|
isDisabledLogin: false,
|
|
186
186
|
// 重置密码
|
|
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
|
|
@@ -240,7 +240,7 @@ export default {
|
|
|
240
240
|
this.$notify.error({ message: '表单数据未正确初始化,请刷新页面重试。' });
|
|
241
241
|
return false;
|
|
242
242
|
}
|
|
243
|
-
if (!this.verifyFrom.
|
|
243
|
+
if (!this.verifyFrom.phoneNum) {
|
|
244
244
|
this.$notify.error({ message: '请输入手机号' });
|
|
245
245
|
return false;
|
|
246
246
|
}
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -318,7 +318,7 @@ export default {
|
|
|
318
318
|
this.$notify.error({ message: '表单数据未正确初始化,请刷新页面重试。' });
|
|
319
319
|
return false;
|
|
320
320
|
}
|
|
321
|
-
if (!this.resetFrom.
|
|
321
|
+
if (!this.resetFrom.phoneNum) {
|
|
322
322
|
this.$notify.error({ message: '请输入手机号' });
|
|
323
323
|
return false;
|
|
324
324
|
}
|
|
@@ -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
|
}
|