手机端购买续费问题

This commit is contained in:
“wanyongkang”
2021-03-15 15:21:53 +08:00
parent 1de342ed5e
commit 0765e3abfc
2 changed files with 5 additions and 1 deletions

View File

@@ -549,6 +549,7 @@
checkOneAccount() { checkOneAccount() {
if (this.OneBuyModel.Account.length > 10 || this.OneBuyModel.Account.length < 5) { if (this.OneBuyModel.Account.length > 10 || this.OneBuyModel.Account.length < 5) {
this.OneChecker.AccountOk = false; this.OneChecker.AccountOk = false;
alert('账号长度必须在5-10位');
return false; return false;
} }
this.OneChecker.AccountOk = true; this.OneChecker.AccountOk = true;
@@ -557,6 +558,7 @@
checkOnePwd() { checkOnePwd() {
if (this.OneBuyModel.Pwd.length > 6 || this.OneBuyModel.Pwd.length <1) { if (this.OneBuyModel.Pwd.length > 6 || this.OneBuyModel.Pwd.length <1) {
this.OneChecker.PwdOk = false; this.OneChecker.PwdOk = false;
alert('密码长度必须在1-6位');
return false; return false;
} }
this.OneChecker.PwdOk = true; this.OneChecker.PwdOk = true;
@@ -565,6 +567,7 @@
checkMoreAccount() { checkMoreAccount() {
if (this.MoreBuyModel.Account.length > 10 || this.MoreBuyModel.Account.length < 3) { if (this.MoreBuyModel.Account.length > 10 || this.MoreBuyModel.Account.length < 3) {
this.MoreChecker.AccountOk = false; this.MoreChecker.AccountOk = false;
alert('账号长度必须在5-10位');
return false; return false;
} }
this.MoreChecker.AccountOk = true; this.MoreChecker.AccountOk = true;
@@ -573,6 +576,7 @@
checkMorePwd() { checkMorePwd() {
if (this.MoreBuyModel.Pwd.length > 6 || this.MoreBuyModel.Pwd.length < 1) { if (this.MoreBuyModel.Pwd.length > 6 || this.MoreBuyModel.Pwd.length < 1) {
this.MoreChecker.PwdOk = false; this.MoreChecker.PwdOk = false;
alert('密码长度必须在1-6位');
return false; return false;
} }
this.MoreChecker.PwdOk = true; this.MoreChecker.PwdOk = true;

View File

@@ -317,7 +317,7 @@
}, },
payCallback: function (data) { payCallback: function (data) {
this.OrderInfo = data.OrderInfo; this.OrderInfo = data.OrderInfo;
if (!data.PayData) { alert("下单失败"); return; } if (!data.PayData) { alert("下单成功"); return; }
var payChannel = this.OrderInfo.PayChannel; var payChannel = this.OrderInfo.PayChannel;
if (payChannel == 10) { if (payChannel == 10) {
this.h5WxPay(data.PayData) this.h5WxPay(data.PayData)