5eb34117 by joe

#5,#16

1 parent e40c995b
...@@ -224,7 +224,7 @@ module.exports = { ...@@ -224,7 +224,7 @@ module.exports = {
224 verifyCodeGet: "Get verification codee", 224 verifyCodeGet: "Get verification codee",
225 SMSVerificationCode:"SMS verification code", 225 SMSVerificationCode:"SMS verification code",
226 tips: { 226 tips: {
227 e1: "Please enter account", 227 e1: "Please enter user name",
228 e2: "Please enter the password", 228 e2: "Please enter the password",
229 e3: "Please enter the picture verification code", 229 e3: "Please enter the picture verification code",
230 e4: "Agree with Ping An Hong Kong’s Online Account Service Agreement", 230 e4: "Agree with Ping An Hong Kong’s Online Account Service Agreement",
...@@ -233,7 +233,7 @@ module.exports = { ...@@ -233,7 +233,7 @@ module.exports = {
233 // e7: "Your password has been mistyped 5 times. You can't log in again in 24 hours!", 233 // e7: "Your password has been mistyped 5 times. You can't log in again in 24 hours!",
234 e6: "Your SMS verification code has been mistyped 4 times. Your account will be locked soon!", 234 e6: "Your SMS verification code has been mistyped 4 times. Your account will be locked soon!",
235 e7: "Your SMS verification code has been mistyped 5 times. You can't log in again in 24 hours!", 235 e7: "Your SMS verification code has been mistyped 5 times. You can't log in again in 24 hours!",
236 e8: "The mobile no. has not been registered, please register before using!", 236 e8: "The user name was not registered, please register before using!",
237 oe0: "Invalidate mobile no. , please re-enter", 237 oe0: "Invalidate mobile no. , please re-enter",
238 oe1: "Please get SMS verification code first", 238 oe1: "Please get SMS verification code first",
239 oe2: "Please enter the picture verification code", 239 oe2: "Please enter the picture verification code",
...@@ -284,7 +284,8 @@ module.exports = { ...@@ -284,7 +284,8 @@ module.exports = {
284 e11: "Registration failed, please contact the staff", 284 e11: "Registration failed, please contact the staff",
285 e12: "Success", 285 e12: "Success",
286 e13: "The name can't not contain numbers, special numbers", 286 e13: "The name can't not contain numbers, special numbers",
287 e14: "Please enter your name" 287 e14: "Please setup user name",
288 e15: "The user name has been registered."
288 }, 289 },
289 account:"Account", 290 account:"Account",
290 accountPlaceholder:"Please setup user name", 291 accountPlaceholder:"Please setup user name",
......
...@@ -210,7 +210,7 @@ module.exports = { ...@@ -210,7 +210,7 @@ module.exports = {
210 loginType1: "動態密碼登錄", 210 loginType1: "動態密碼登錄",
211 loginType2: "動態密碼登入", 211 loginType2: "動態密碼登入",
212 account: "賬號", 212 account: "賬號",
213 accountPlaceholder: "請輸入用戶名", 213 accountPlaceholder: "請輸入用戶名",
214 password: "密碼", 214 password: "密碼",
215 passwordPlaceholder: "輸入登入密碼", 215 passwordPlaceholder: "輸入登入密碼",
216 verifyPlaceholder: "請輸入驗證碼", 216 verifyPlaceholder: "請輸入驗證碼",
...@@ -226,7 +226,7 @@ module.exports = { ...@@ -226,7 +226,7 @@ module.exports = {
226 verifyCodeGet: "獲取驗證碼", 226 verifyCodeGet: "獲取驗證碼",
227 SMSVerificationCode:"手機短信驗證碼", 227 SMSVerificationCode:"手機短信驗證碼",
228 tips: { 228 tips: {
229 e1: "請輸入賬號信息", 229 e1: "請輸入用戶名",
230 e2: "請輸入密碼", 230 e2: "請輸入密碼",
231 e3: "請輸入圖像驗證碼", 231 e3: "請輸入圖像驗證碼",
232 e4: "請同意《平安香港會員網上帳戶服務協定》", 232 e4: "請同意《平安香港會員網上帳戶服務協定》",
...@@ -235,7 +235,7 @@ module.exports = { ...@@ -235,7 +235,7 @@ module.exports = {
235 // e7: "您的密碼已輸錯5次,24小時內無法再登入!", 235 // e7: "您的密碼已輸錯5次,24小時內無法再登入!",
236 e6: "您的验证码已輸錯4次,帳戶即將被鎖定!", 236 e6: "您的验证码已輸錯4次,帳戶即將被鎖定!",
237 e7: "您的验证码已輸錯5次,24小時內無法再登入!", 237 e7: "您的验证码已輸錯5次,24小時內無法再登入!",
238 e8: "您的手機號還未註冊,請註冊後再使用!", 238 e8: "您的用戶名還未註冊,請註冊後再使用!",
239 oe0: "請輸入正確的手機號", 239 oe0: "請輸入正確的手機號",
240 oe1: "請先獲取短信驗證碼", 240 oe1: "請先獲取短信驗證碼",
241 oe2: "請輸入圖片驗證碼", 241 oe2: "請輸入圖片驗證碼",
...@@ -285,10 +285,11 @@ module.exports = { ...@@ -285,10 +285,11 @@ module.exports = {
285 e11: "註冊失敗,請聯繫工作人員", 285 e11: "註冊失敗,請聯繫工作人員",
286 e12: "註冊成功", 286 e12: "註冊成功",
287 e13: "姓名不能包含數字、特殊號碼", 287 e13: "姓名不能包含數字、特殊號碼",
288 e14: "請輸入您的姓名" 288 e14: "請輸入您的用戶名",
289 e15: "用戶名已經被註冊,請使用其他用戶名註冊或直接登入",
289 }, 290 },
290 account:"賬號", 291 account:"賬號",
291 accountPlaceholder:"請設置用戶名", 292 accountPlaceholder:"請設置用戶名",
292 }, 293 },
293 session: { 294 session: {
294 sidExpire: "長時間未操作,為了您賬戶的安全,請登入後再操作" 295 sidExpire: "長時間未操作,為了您賬戶的安全,請登入後再操作"
......
...@@ -230,7 +230,7 @@ module.exports = { ...@@ -230,7 +230,7 @@ module.exports = {
230 verifyCodeGet: "获取验证码", 230 verifyCodeGet: "获取验证码",
231 SMSVerificationCode:"手机短信验证码", 231 SMSVerificationCode:"手机短信验证码",
232 tips: { 232 tips: {
233 e1: "请输入账号信息", 233 e1: "请输入用户名",
234 e2: "请输入密码", 234 e2: "请输入密码",
235 e3: "请输入图像验证码", 235 e3: "请输入图像验证码",
236 e4: "请同意《平安香港会员网上账户服务协议》", 236 e4: "请同意《平安香港会员网上账户服务协议》",
...@@ -239,7 +239,7 @@ module.exports = { ...@@ -239,7 +239,7 @@ module.exports = {
239 // e7: "您的密码已输错5次, 24小时内无法再登录!", 239 // e7: "您的密码已输错5次, 24小时内无法再登录!",
240 e6: "您的验证码已输错4次,账户即将被锁定!", 240 e6: "您的验证码已输错4次,账户即将被锁定!",
241 e7: "您的验证码已输错5次, 24小时内无法再登录!", 241 e7: "您的验证码已输错5次, 24小时内无法再登录!",
242 e8: "您的手机号还未注册,请注册后再使用!", 242 e8: "您的用户名还未注册,请注册后再使用!",
243 oe0: "请输入正确的手机号", 243 oe0: "请输入正确的手机号",
244 oe1: "请先获取短信验证码", 244 oe1: "请先获取短信验证码",
245 oe2: "请输入图片验证码", 245 oe2: "请输入图片验证码",
...@@ -292,7 +292,8 @@ module.exports = { ...@@ -292,7 +292,8 @@ module.exports = {
292 e11: "注册失败,请联系工作人员", 292 e11: "注册失败,请联系工作人员",
293 e12: "注册成功", 293 e12: "注册成功",
294 e13: "姓名不能包含数字、特殊字符", 294 e13: "姓名不能包含数字、特殊字符",
295 e14: "請輸入您的姓名" 295 e14: "請輸入您的用户名",
296 e15: "用户名已经被注册,请使用其他用户名注册或直接登入",
296 }, 297 },
297 account:"账号", 298 account:"账号",
298 accountPlaceholder:"请设置用户名", 299 accountPlaceholder:"请设置用户名",
......
...@@ -68,9 +68,10 @@ export default { ...@@ -68,9 +68,10 @@ export default {
68 // res.push({ "recordId": "10", "bizNo": "P000000000000322", "letterType": "2", "printTime": "2020-05-07 16:02:21", "key": "c4ace2829737459cb6c95f523e0f5223", "isRead": "Y" }) 68 // res.push({ "recordId": "10", "bizNo": "P000000000000322", "letterType": "2", "printTime": "2020-05-07 16:02:21", "key": "c4ace2829737459cb6c95f523e0f5223", "isRead": "Y" })
69 // res.push({ "recordId": "10", "bizNo": "P000000000000323", "letterType": "2", "printTime": "2020-05-08 16:02:21", "key": "c4ace2829737459cb6c95f523e0f5223", "isRead": "Y" }) 69 // res.push({ "recordId": "10", "bizNo": "P000000000000323", "letterType": "2", "printTime": "2020-05-08 16:02:21", "key": "c4ace2829737459cb6c95f523e0f5223", "isRead": "Y" })
70 // } 70 // }
71 console.log(res);
71 for (let index = 0; index < res.length; index++) { 72 for (let index = 0; index < res.length; index++) {
72 let letter = res[index]; 73 let letter = res[index];
73 if (letter.letterType == "2") { 74 if (letter.letterType == "5") {
74 this.originalList.push(letter); 75 this.originalList.push(letter);
75 this.contentList.push(letter); 76 this.contentList.push(letter);
76 } 77 }
......
...@@ -134,12 +134,12 @@ export default { ...@@ -134,12 +134,12 @@ export default {
134 134
135 let b = b1 || b2 || b3 || b4; 135 let b = b1 || b2 || b3 || b4;
136 136
137 if (!b) { 137 // if (!b) {
138 let mobile = this.loginForm.userId; 138 // let mobile = this.loginForm.userId;
139 let m1 = contactMethodCheck('hkmobile', mobile); 139 // let m1 = contactMethodCheck('hkmobile', mobile);
140 let m2 = contactMethodCheck('mobile', mobile); 140 // let m2 = contactMethodCheck('mobile', mobile);
141 b = b || !(m1 || m2); 141 // b = b || !(m1 || m2);
142 } 142 // }
143 143
144 return b; 144 return b;
145 }, 145 },
...@@ -256,13 +256,17 @@ export default { ...@@ -256,13 +256,17 @@ export default {
256 }, 256 },
257 userIdLegalCheck() { 257 userIdLegalCheck() {
258 let mobile = this.loginForm.userId; 258 let mobile = this.loginForm.userId;
259 let m1 = contactMethodCheck('hkmobile', mobile); 259 if (!mobile) {
260 let m2 = contactMethodCheck('mobile', mobile); 260 this.errorTips.oe1 = this.i18n.login.tips.e1;
261 // console.log("userIdLegalCheck:", m1, m2)
262 if (!m1 && !m2) {
263 this._showMobileNoIllegalTip()
264 return false; 261 return false;
265 } 262 }
263 // let m1 = contactMethodCheck('hkmobile', mobile);
264 // let m2 = contactMethodCheck('mobile', mobile);
265 // console.log("userIdLegalCheck:", m1, m2)
266 // if (!m1 && !m2) {
267 // this._showMobileNoIllegalTip()
268 // return false;
269 // }
266 return true; 270 return true;
267 }, 271 },
268 // 不接入一账通登陆 272 // 不接入一账通登陆
...@@ -309,25 +313,40 @@ export default { ...@@ -309,25 +313,40 @@ export default {
309 sendOTPWhenOneAccountCenterOff() { 313 sendOTPWhenOneAccountCenterOff() {
310 // 发送短信验证码 314 // 发送短信验证码
311 315
312 let m1 = contactMethodCheck('hkmobile', this.loginForm.userId); 316 if (!this.loginForm.userId) {
313 let m2 = contactMethodCheck('mobile', this.loginForm.userId); 317 this.errorTips.e1 = this.i18n.login.tips.e1;
314 if (!m1 && !m2) {
315 this._showMobileNoIllegalTip();
316 return; 318 return;
317 } 319 }
320 // let m1 = contactMethodCheck('hkmobile', this.loginForm.userId);
321 // let m2 = contactMethodCheck('mobile', this.loginForm.userId);
322 // if (!m1 && !m2) {
323 // this._showMobileNoIllegalTip();
324 // return;
325 // }
318 if (this.times.remain > 0) { 326 if (this.times.remain > 0) {
319 return; 327 return;
320 } 328 }
329 if (this.loading) {
330 return;
331 }
332 this.loading = true;
321 let data = { 333 let data = {
322 mobile: this.loginForm.userId, 334 mobile: this.loginForm.userId,
323 lan: this.locale 335 lan: this.locale
324 } 336 }
325 this._startTimeClick();
326 httpPost({ 337 httpPost({
327 url: api.refreshSmgOtp, 338 url: api.refreshSmgOtp,
328 data: data 339 data: data
329 }).then(res => { 340 }).then(res => {
341 this.loading = false;
342 this._startTimeClick();
330 }).catch(e => { 343 }).catch(e => {
344 this.loading = false;
345 switch (e.code) {
346 case 1106:
347 this.errorTips.e1 = this.i18n.login.tips.e8;
348 break;
349 }
331 console.error(e); 350 console.error(e);
332 }) 351 })
333 }, 352 },
......
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
116 let b2 = false; 116 let b2 = false;
117 let b3 = !this.registerCheck.agreeProtocol; 117 let b3 = !this.registerCheck.agreeProtocol;
118 let b4 = !this.registerForm.mobileNo ? true : false; 118 let b4 = !this.registerForm.mobileNo ? true : false;
119 let b5 = !this.registerForm.userId ? true : false; 119 let b5 = !this.registerForm.userId || this.registerForm.userId < 5 ? true : false;
120 return b1 || b2 || b3 || b4 || b5; 120 return b1 || b2 || b3 || b4 || b5;
121 }, 121 },
122 submitDisabled() { 122 submitDisabled() {
...@@ -310,10 +310,10 @@ export default { ...@@ -310,10 +310,10 @@ export default {
310 this.errorTips.e1 = this.i18n.register.tips.e14; 310 this.errorTips.e1 = this.i18n.register.tips.e14;
311 return false; 311 return false;
312 } 312 }
313 if (!checkName(this.registerForm.userId)) { 313 // if (!checkName(this.registerForm.userId)) {
314 this.errorTips.e1 = this.i18n.register.tips.e13; 314 // this.errorTips.e1 = this.i18n.register.tips.e13;
315 return false; 315 // return false;
316 } 316 // }
317 return true; 317 return true;
318 }, 318 },
319 registerV2Handler() { 319 registerV2Handler() {
...@@ -332,8 +332,8 @@ export default { ...@@ -332,8 +332,8 @@ export default {
332 } 332 }
333 this._checkMobileLegal().then(() => { 333 this._checkMobileLegal().then(() => {
334 let data = { 334 let data = {
335 account: this.registerForm.mobileNo, 335 mobile: this.registerForm.mobileNo,
336 userName: this.registerForm.userId, 336 account: this.registerForm.userId,
337 otp: this.registerForm.otp 337 otp: this.registerForm.otp
338 }; 338 };
339 this.loading = true; 339 this.loading = true;
...@@ -350,12 +350,14 @@ export default { ...@@ -350,12 +350,14 @@ export default {
350 this.loading = false; 350 this.loading = false;
351 switch (e.code) { 351 switch (e.code) {
352 case 1103: 352 case 1103:
353 let message = this.i18n.register.tips.e5; 353 this.errorTips.e1 = this.i18n.register.tips.e15;
354 this.errorTips.p1 = message;
355 break; 354 break;
356 case 1104: 355 case 1104:
357 this.errorTips.p2 = this.i18n.login.tips.oe4; 356 this.errorTips.p2 = this.i18n.login.tips.oe4;
358 break; 357 break;
358 case 1105:
359 this.errorTips.p1 = this.i18n.login.tips.e5;
360 break;
359 } 361 }
360 }); 362 });
361 }); 363 });
...@@ -659,10 +661,10 @@ export default { ...@@ -659,10 +661,10 @@ export default {
659 }).catch(e => { 661 }).catch(e => {
660 switch (e.code) { 662 switch (e.code) {
661 case 1103: 663 case 1103:
664 case 1105:
662 this.errorTips.p1 = this.i18n.register.tips.e5 665 this.errorTips.p1 = this.i18n.register.tips.e5
663 break; 666 break;
664 } 667 }
665 console.error(e);
666 }) 668 })
667 }, 669 },
668 }, 670 },
......