gpc-ui 0.1.19 → 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 +37 -37
- package/lib/gpc-ui.common.js.map +1 -1
- package/lib/gpc-ui.css +1 -1
- package/lib/gpc-ui.umd.js +37 -37
- 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 +8 -8
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -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
|
}
|