diff --git a/coupon/details.html b/coupon/details.html index b37c66b..5f7c6f1 100644 --- a/coupon/details.html +++ b/coupon/details.html @@ -251,54 +251,63 @@ this.acctype = "text"; switch (Number(newVal)) { case 0: - return this.placeholder = "请输入昵称"; + this.placeholder = "请输入昵称"; + break; case 1: this.acctype = "tel"; this.placeholder = "请输入手机号"; this.maxlen = 11; - return + break; case 2: - return this.placeholder = "请输入邮箱"; + this.placeholder = "请输入邮箱"; + break; case 3: - return this.placeholder = "请输入手机号或邮箱"; + this.placeholder = "请输入手机号或邮箱"; + break; case 4: this.placeholder = "请输入QQ号"; this.acctype = "tel"; this.maxlen = 10; - return + break; case 5: this.placeholder = "请输入手机号或QQ号"; this.maxlen = 11; this.acctype = "tel"; - return + break; case 6: - return this.placeholder = "请输入邮箱或QQ号"; + this.placeholder = "请输入邮箱或QQ号"; + break; case 7: - return this.placeholder = "请输入手机号/邮箱/QQ号"; + this.placeholder = "请输入手机号/邮箱/QQ号"; + break; case 8: this.placeholder = "请输入微信号"; this.maxlen = 20; - return + break; case 9: this.placeholder = "请输入手机号或微信"; this.maxlen = 20; - return + break; case 10: - return this.placeholder = "请输入邮箱或微信号"; + this.placeholder = "请输入邮箱或微信号"; + break; case 11: - return this.placeholder = "请输入手机号/邮箱/微信号"; + this.placeholder = "请输入手机号/邮箱/微信号"; + break; case 12: this.placeholder = "请输入QQ号或微信号"; this.maxlen = 20; - return + break; case 13: this.placeholder = "请输入手机号/QQ号/微信号"; this.maxlen = 20; - return + break; case 14: - return this.placeholder = "请输入邮箱/QQ号/微信号"; + this.placeholder = "请输入邮箱/QQ号/微信号"; + break; default: - return this.placeholder = "请输入手机号/邮箱/QQ号/微信号"; + this.placeholder = "请输入手机号/邮箱/QQ号/微信号"; + break; } } } @@ -421,39 +430,54 @@ switch (Number(this.productType)) { case 0: this.placeholder = "请输入昵称"; - return regFlag = nameReg + regFlag = nameReg + break; case 1: - return regFlag = phoneReg + regFlag = phoneReg + break; case 2: - return regFlag = emailsReg + regFlag = emailsReg + break; case 3: - return regFlag = phoneReg || emailsReg + regFlag = phoneReg || emailsReg + break; case 4: - return regFlag = qqReg + regFlag = qqReg + break; case 5: - return regFlag = phoneReg || qqReg + regFlag = phoneReg || qqReg + break; case 6: - return regFlag = emailsReg || qqReg + regFlag = emailsReg || qqReg + break; case 7: - return regFlag = phoneReg || emailsReg || qqReg + regFlag = phoneReg || emailsReg || qqReg + break; case 8: - return regFlag = weiXinReg + regFlag = weiXinReg + break; case 9: - return regFlag = phoneReg || weiXinReg + regFlag = phoneReg || weiXinReg + break; case 10: - return regFlag = emailsReg || weiXinReg + regFlag = emailsReg || weiXinReg + break; case 11: - return regFlag = phoneReg || emailsReg || weiXinReg + regFlag = phoneReg || emailsReg || weiXinReg + break; case 12: - return regFlag = qqReg || weiXinReg + regFlag = qqReg || weiXinReg + break; case 13: - return regFlag = phoneReg || qqReg || weiXinReg + regFlag = phoneReg || qqReg || weiXinReg + break; case 14: - return regFlag = emailsReg || qqReg || weiXinReg + regFlag = emailsReg || qqReg || weiXinReg + break; default: - return regFlag = phoneReg || emailsReg || qqReg || weiXinReg + regFlag = phoneReg || emailsReg || qqReg || weiXinReg + break; } - if (!regFlag) { this.openDialog("充值账号格式不正确!"); return false; @@ -519,11 +543,11 @@ createdPay (orderNumber) { req.axiosGet('/key/coupon/createPay/' + orderNumber).then(res => { if (res.code == 200) { - if(res.data.pay_status){//pay_status 2已支付 - window.location.replace('http://test.86885.cn/paysuccess.html?order_number='+res.data.order_number); - }else{ + if (res.data.pay_status) {//pay_status 2已支付 + window.location.replace('http://test.86885.cn/paysuccess.html?order_number=' + res.data.order_number); + } else { this.payWayRun(res.data); - } + } } else { this.openErrorDialog(res.message); }