Authored by Aiden Xu

分期订单

@@ -15,14 +15,14 @@ @@ -15,14 +15,14 @@
15 <div class="field"> 15 <div class="field">
16 <label for="identityCardNo">身份证号:</label> 16 <label for="identityCardNo">身份证号:</label>
17 17
18 - <input id="identityCardNo" name="identityCardNo" type="text" placeholder="请填写身份证号" maxlength="18"/> 18 + <input id="identityCardNo" name="identityCardNo" type="number" pattern="\d*" inputmode="numeric" placeholder="请填写身份证号" maxlength="18"/>
19 <div class="clearfix"></div> 19 <div class="clearfix"></div>
20 </div> 20 </div>
21 21
22 <div class="field"> 22 <div class="field">
23 <label for="name">卡号:</label> 23 <label for="name">卡号:</label>
24 24
25 - <input id="cardNo" name="cardNo" type="text" placeholder="银行卡号" size="26" maxlength="30"/> 25 + <input id="cardNo" name="cardNo" type="tel" placeholder="银行卡号" size="26" maxlength="30"/>
26 <div class="clearfix"></div> 26 <div class="clearfix"></div>
27 </div> 27 </div>
28 28
@@ -35,13 +35,13 @@ @@ -35,13 +35,13 @@
35 35
36 <div class="field"> 36 <div class="field">
37 <label for="name">手机号:</label> 37 <label for="name">手机号:</label>
38 - <input id="mobile" name="mobile" type="text" placeholder="银行预留手机号码" maxlength="11"/> 38 + <input id="mobile" name="mobile" type="tel" placeholder="银行预留手机号码" maxlength="11"/>
39 <div class="clearfix"></div> 39 <div class="clearfix"></div>
40 </div> 40 </div>
41 41
42 <div class="field"> 42 <div class="field">
43 <label for="name">验证码:</label> 43 <label for="name">验证码:</label>
44 - <input id="sns-check-code" name="snsCheckCode" type="text" placeholder="请输入验证码" size="14" maxlength="6"/> 44 + <input id="sns-check-code" style="width: 120px;" name="snsCheckCode" type="number" pattern="\d*" placeholder="请输入验证码" size="6" maxlength="6"/>
45 <button id="send-sms" class="count-down">获取验证码</button> 45 <button id="send-sms" class="count-down">获取验证码</button>
46 <div class="clearfix"></div> 46 <div class="clearfix"></div>
47 </div> 47 </div>
@@ -173,7 +173,6 @@ $('#cardNo').keyup(function() { @@ -173,7 +173,6 @@ $('#cardNo').keyup(function() {
173 173
174 $(this).val(value.replace(/[^\d]/g, '').replace(/(\d{4})(?=\d)/g, '$1 ')).trigger('change'); 174 $(this).val(value.replace(/[^\d]/g, '').replace(/(\d{4})(?=\d)/g, '$1 ')).trigger('change');
175 175
176 -  
177 if (cardNo && cardNo.length >= 15) { 176 if (cardNo && cardNo.length >= 15) {
178 debounceFn(cardNo); 177 debounceFn(cardNo);
179 } else { 178 } else {
@@ -70,9 +70,11 @@ @@ -70,9 +70,11 @@
70 border-radius: 4px; 70 border-radius: 4px;
71 background: transparent; 71 background: transparent;
72 color: #84c990; 72 color: #84c990;
73 - width: 180px; 73 + width: 130px;
74 height: 55px; 74 height: 55px;
75 float: right; 75 float: right;
  76 + white-space: nowrap;
  77 + padding: 0;
76 } 78 }
77 79
78 .data-encryption { 80 .data-encryption {
@@ -87,7 +89,9 @@ @@ -87,7 +89,9 @@
87 float: left; 89 float: left;
88 } 90 }
89 91
90 - input[type=text] { 92 + input[type=text],
  93 + input[type=number],
  94 + input[type=tel] {
91 font-size: 27px; 95 font-size: 27px;
92 height: 40px; 96 height: 40px;
93 color: #444; 97 color: #444;