gpc-ui 0.1.15 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpc-ui",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "二小UI",
5
5
  "private": false,
6
6
  "main": "lib/gpc-ui.umd.min.js",
@@ -190,6 +190,7 @@ export default {
190
190
  methods: {
191
191
  // 获取传入验证码
192
192
  getCodeRequest(type, authCode){
193
+ console.log('getCodeRequest', type, authCode)
193
194
  if(type === 'account'){
194
195
  this.accountFrom.authCode = authCode
195
196
  } else if(type === 'login'){
@@ -199,14 +200,16 @@ export default {
199
200
  }
200
201
  },
201
202
  // 账号登录
202
- getAccountLogin(){
203
- if(!this.accountFrom.authCode){
204
- this.$notify.error({message: '请先验证滑块'});
205
- } else if(!this.accountFrom.username){
203
+ getAccountLogin() {
204
+ if (!this.accountFrom.username) {
206
205
  this.$notify.error({message: '请先输入账号或手机号'});
207
- } else if(!this.accountFrom.password){
206
+ } else if (!this.accountFrom.password) {
208
207
  this.$notify.error({message: '请先输入密码'});
209
- } else {
208
+ } else if(this.isPassingAccount == false) {
209
+ this.$notify.error({message: '请先进行滑块验证'});
210
+ } else if (!this.accountFrom.authCode){
211
+ this.$notify.error({message: '验证滑块码获取失败,请刷新页面,重新获取。'});
212
+ } else {
210
213
  this.$emit('applyAccountLoginRequest', this.accountFrom);
211
214
  }
212
215
  },