diff --git a/Host/Views.Mobile/Product/buy.cshtml b/Host/Views.Mobile/Product/buy.cshtml index d75b1c9..d8df558 100644 --- a/Host/Views.Mobile/Product/buy.cshtml +++ b/Host/Views.Mobile/Product/buy.cshtml @@ -226,7 +226,7 @@

批量注册的账号会使用【账号前缀】+【开始数】+【个数】顺序进行注册,

-

如:注册账号前缀为【user】开始数为【6】个数为【10】,则注册的账号为:user06,user07,user08,....user14

+

如:注册账号前缀为【user】开始数为【2】个数为【10】,则注册的账号为:user2,user3,user4,....user11

IP账号前缀: @@ -240,7 +240,7 @@ IP开始号:
- +
@@ -248,7 +248,15 @@ IP注册个数:
- + +
+
+
+
+ 即将生成的账号: +
+
+

{{acount_list}}

@@ -369,6 +377,7 @@ var app = new Vue({ el: '#app', data: { + acount_list:'', showPayType:true, payHandler:null, Tip:'', @@ -546,37 +555,45 @@ } }) }, + hasNumAndChar(str) { + var zg = /^[0-9a-zA-Z]*$/; + if (!zg.test(str)) { + return false; + } else { + return true; + } + }, checkOneAccount() { - if (this.OneBuyModel.Account.length > 10 || this.OneBuyModel.Account.length < 5) { + if (this.OneBuyModel.Account.length > 10 || this.OneBuyModel.Account.length < 5|| !this.hasNumAndChar(this.OneBuyModel.Account)) { this.OneChecker.AccountOk = false; - alert('账号长度必须在5-10位'); + alert('账号长度必须在5-10位,且不能包含特殊字符'); return false; } this.OneChecker.AccountOk = true; return true; }, checkOnePwd() { - if (this.OneBuyModel.Pwd.length > 6 || this.OneBuyModel.Pwd.length <1) { + if (this.OneBuyModel.Pwd.length > 6 || this.OneBuyModel.Pwd.length <1 || !this.hasNumAndChar(this.OneBuyModel.Pwd)) { this.OneChecker.PwdOk = false; - alert('密码长度必须在1-6位'); + alert('密码长度必须在1-6位,且不能包含特殊字符'); return false; } this.OneChecker.PwdOk = true; return true; }, checkMoreAccount() { - if (this.MoreBuyModel.Account.length > 10 || this.MoreBuyModel.Account.length < 3) { + if (this.MoreBuyModel.Account.length > 10 || this.MoreBuyModel.Account.length < 3|| !this.hasNumAndChar(this.MoreBuyModel.Account)) { this.MoreChecker.AccountOk = false; - alert('账号长度必须在5-10位'); + alert('账号长度必须在5-10位,且不能包含特殊字符'); return false; } this.MoreChecker.AccountOk = true; return true; }, checkMorePwd() { - if (this.MoreBuyModel.Pwd.length > 6 || this.MoreBuyModel.Pwd.length < 1) { + if (this.MoreBuyModel.Pwd.length > 6 || this.MoreBuyModel.Pwd.length < 1 || !this.hasNumAndChar(this.MoreBuyModel.Pwd)) { this.MoreChecker.PwdOk = false; - alert('密码长度必须在1-6位'); + alert('密码长度必须在1-6位,且不能包含特殊字符'); return false; } this.MoreChecker.PwdOk = true; @@ -734,6 +751,24 @@ clearInterval(this.payHandler); $('.payMask').hide(); $('#qrcode').empty(); + }, + changeAccountCount() { + this.acount_list = ''; + let start_account = this.MoreBuyModel.MinPostfix; + let end_account = this.MoreBuyModel.MaxPostfix; + if(end_account>3){ + for(let i = start_account;i

批量注册的账号会使用【账号前缀】+【开始数】+【个数】顺序进行注册,

-

如:注册账号前缀为【user】开始数为【6】个数为【10】,则注册的账号为:user06,user07,user08,....user14

+

如:注册账号前缀为【user】开始数为【2】个数为【10】,则注册的账号为:user2,user3,user4,....user11

IP账号前缀: @@ -272,7 +272,7 @@ 开始号:
- +
本批次账号的起始账号的尾数 @@ -283,13 +283,21 @@ 注册个数:
- +

一次最多注册500个

本批次的账号个数
+
+
+ 即将生成的账号: +
+
+

{{acount_list}}

+
+
IP产品密码: @@ -438,6 +446,7 @@ var app = new Vue({ el: '#app', data: { + acount_list:'', payHandler: null, Tip: '', RestAmount: @(userEntity.RestAmount), @@ -771,6 +780,24 @@ clearInterval(this.payHandler); $('.payMask').hide(); $('#qrcode').empty(); + }, + changeAccountCount() { + this.acount_list = ''; + let start_account = this.MoreBuyModel.MinPostfix; + let end_account = this.MoreBuyModel.MaxPostfix; + if(end_account>3){ + for(let i = start_account;i