Commit 8ef56730 by sunchao

四位验证码调整成6位

parent 8e7aba60
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</div> </div>
<!--获取验证码 --> <!--获取验证码 -->
<div class="codeSection inputControl"> <div class="codeSection inputControl">
<input style="width:100%" id="code" type="tel" maxlength="4" placeholder="短信验证码" /> <input style="width:100%" id="code" type="tel" maxlength="6" placeholder="短信验证码" />
</div> </div>
<!--姓名 --> <!--姓名 -->
<div class="codeSection inputControl"> <div class="codeSection inputControl">
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</div> </div>
<!--获取验证码 --> <!--获取验证码 -->
<div class="codeSection inputControl"> <div class="codeSection inputControl">
<input id="loginCode" type="tel" maxlength="4" placeholder="短信验证码" /> <input id="loginCode" type="tel" maxlength="6" placeholder="短信验证码" />
</div> </div>
<!--登录 --> <!--登录 -->
<button class="goBuyBtn commonBtn" id="loginIn">登录</button> <button class="goBuyBtn commonBtn" id="loginIn">登录</button>
......
...@@ -285,7 +285,7 @@ $(function () { ...@@ -285,7 +285,7 @@ $(function () {
//验证登录验证码 //验证登录验证码
function checkLoginVerificationCode() { function checkLoginVerificationCode() {
$("#loginCode").keyup(function () { $("#loginCode").keyup(function () {
if ($("#loginCode").val().length == 4) { if ($("#loginCode").val().length == 6) {
const verificationCodeRequest = { const verificationCodeRequest = {
mobileNo: $("#loginPhone").val(), mobileNo: $("#loginPhone").val(),
verificationCode: $("#loginCode").val(), verificationCode: $("#loginCode").val(),
...@@ -604,7 +604,7 @@ $(function () { ...@@ -604,7 +604,7 @@ $(function () {
//验证验证码 //验证验证码
function checkVerificationCode() { function checkVerificationCode() {
$("#code").keyup(function () { $("#code").keyup(function () {
if ($("#code").val().length == 4) { if ($("#code").val().length == 6) {
const verificationCodeRequest = { const verificationCodeRequest = {
mobileNo: $("#phone").val(), mobileNo: $("#phone").val(),
verificationCode: $("#code").val(), verificationCode: $("#code").val(),
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</div> </div>
<!--获取验证码 --> <!--获取验证码 -->
<div class="codeSection inputControl"> <div class="codeSection inputControl">
<input type='tel' maxlength="4" name="code" placeholder="短信验证码" [(ngModel)]="loginData.code" <input type='tel' maxlength="6" name="code" placeholder="短信验证码" [(ngModel)]="loginData.code"
(blur)="scrollTo()" /> (blur)="scrollTo()" />
</div> </div>
<!--姓名--> <!--姓名-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment