fix:修复商品详情支付不验证问题

This commit is contained in:
wangsongsole 2022-10-18 15:12:49 +08:00
parent 15b481e107
commit d74fd5c71d
1 changed files with 61 additions and 37 deletions

View File

@ -251,54 +251,63 @@
this.acctype = "text"; this.acctype = "text";
switch (Number(newVal)) { switch (Number(newVal)) {
case 0: case 0:
return this.placeholder = "请输入昵称"; this.placeholder = "请输入昵称";
break;
case 1: case 1:
this.acctype = "tel"; this.acctype = "tel";
this.placeholder = "请输入手机号"; this.placeholder = "请输入手机号";
this.maxlen = 11; this.maxlen = 11;
return break;
case 2: case 2:
return this.placeholder = "请输入邮箱"; this.placeholder = "请输入邮箱";
break;
case 3: case 3:
return this.placeholder = "请输入手机号或邮箱"; this.placeholder = "请输入手机号或邮箱";
break;
case 4: case 4:
this.placeholder = "请输入QQ号"; this.placeholder = "请输入QQ号";
this.acctype = "tel"; this.acctype = "tel";
this.maxlen = 10; this.maxlen = 10;
return break;
case 5: case 5:
this.placeholder = "请输入手机号或QQ号"; this.placeholder = "请输入手机号或QQ号";
this.maxlen = 11; this.maxlen = 11;
this.acctype = "tel"; this.acctype = "tel";
return break;
case 6: case 6:
return this.placeholder = "请输入邮箱或QQ号"; this.placeholder = "请输入邮箱或QQ号";
break;
case 7: case 7:
return this.placeholder = "请输入手机号/邮箱/QQ号"; this.placeholder = "请输入手机号/邮箱/QQ号";
break;
case 8: case 8:
this.placeholder = "请输入微信号"; this.placeholder = "请输入微信号";
this.maxlen = 20; this.maxlen = 20;
return break;
case 9: case 9:
this.placeholder = "请输入手机号或微信"; this.placeholder = "请输入手机号或微信";
this.maxlen = 20; this.maxlen = 20;
return break;
case 10: case 10:
return this.placeholder = "请输入邮箱或微信号"; this.placeholder = "请输入邮箱或微信号";
break;
case 11: case 11:
return this.placeholder = "请输入手机号/邮箱/微信号"; this.placeholder = "请输入手机号/邮箱/微信号";
break;
case 12: case 12:
this.placeholder = "请输入QQ号或微信号"; this.placeholder = "请输入QQ号或微信号";
this.maxlen = 20; this.maxlen = 20;
return break;
case 13: case 13:
this.placeholder = "请输入手机号/QQ号/微信号"; this.placeholder = "请输入手机号/QQ号/微信号";
this.maxlen = 20; this.maxlen = 20;
return break;
case 14: case 14:
return this.placeholder = "请输入邮箱/QQ号/微信号"; this.placeholder = "请输入邮箱/QQ号/微信号";
break;
default: default:
return this.placeholder = "请输入手机号/邮箱/QQ号/微信号"; this.placeholder = "请输入手机号/邮箱/QQ号/微信号";
break;
} }
} }
} }
@ -421,39 +430,54 @@
switch (Number(this.productType)) { switch (Number(this.productType)) {
case 0: case 0:
this.placeholder = "请输入昵称"; this.placeholder = "请输入昵称";
return regFlag = nameReg regFlag = nameReg
break;
case 1: case 1:
return regFlag = phoneReg regFlag = phoneReg
break;
case 2: case 2:
return regFlag = emailsReg regFlag = emailsReg
break;
case 3: case 3:
return regFlag = phoneReg || emailsReg regFlag = phoneReg || emailsReg
break;
case 4: case 4:
return regFlag = qqReg regFlag = qqReg
break;
case 5: case 5:
return regFlag = phoneReg || qqReg regFlag = phoneReg || qqReg
break;
case 6: case 6:
return regFlag = emailsReg || qqReg regFlag = emailsReg || qqReg
break;
case 7: case 7:
return regFlag = phoneReg || emailsReg || qqReg regFlag = phoneReg || emailsReg || qqReg
break;
case 8: case 8:
return regFlag = weiXinReg regFlag = weiXinReg
break;
case 9: case 9:
return regFlag = phoneReg || weiXinReg regFlag = phoneReg || weiXinReg
break;
case 10: case 10:
return regFlag = emailsReg || weiXinReg regFlag = emailsReg || weiXinReg
break;
case 11: case 11:
return regFlag = phoneReg || emailsReg || weiXinReg regFlag = phoneReg || emailsReg || weiXinReg
break;
case 12: case 12:
return regFlag = qqReg || weiXinReg regFlag = qqReg || weiXinReg
break;
case 13: case 13:
return regFlag = phoneReg || qqReg || weiXinReg regFlag = phoneReg || qqReg || weiXinReg
break;
case 14: case 14:
return regFlag = emailsReg || qqReg || weiXinReg regFlag = emailsReg || qqReg || weiXinReg
break;
default: default:
return regFlag = phoneReg || emailsReg || qqReg || weiXinReg regFlag = phoneReg || emailsReg || qqReg || weiXinReg
break;
} }
if (!regFlag) { if (!regFlag) {
this.openDialog("充值账号格式不正确!"); this.openDialog("充值账号格式不正确!");
return false; return false;