|
@@ -39,7 +39,7 @@
|
|
|
<form class="mui-input-group">
|
|
|
<div class="mui-input-row line-bottom">
|
|
|
<label>您的姓名</label>
|
|
|
- <input type="text" id="ipt-name" placeholder="填写您的姓名">
|
|
|
+ <input type="text" maxlength="10" id="ipt-name" placeholder="填写您的姓名">
|
|
|
</div>
|
|
|
<div class="mui-input-row line-bottom">
|
|
|
<label>出生日期</label>
|
|
@@ -47,7 +47,7 @@
|
|
|
</div>
|
|
|
<div class="mui-input-row line-bottom">
|
|
|
<label>手机号码</label>
|
|
|
- <input type="text" id="ipt-phone" placeholder="填写您的手机号码">
|
|
|
+ <input type="text" id="ipt-phone" maxlength="11" placeholder="填写您的手机号码">
|
|
|
</div>
|
|
|
<div class="mui-input-row line-bottom">
|
|
|
<label>验 证 码</label>
|
|
@@ -222,7 +222,33 @@
|
|
|
sessionStorage.setItem('code_data', JSON.stringify(obj));
|
|
|
}
|
|
|
//ajax
|
|
|
- //$("#btn-submit").removeAttr("disabled").addClass("active");
|
|
|
+ $.ajax(base_path + '/wechat/apparatus/send_phone?dates=' + new Date().getTime(), {
|
|
|
+ data: {
|
|
|
+ "phone": phone
|
|
|
+ },
|
|
|
+ dataType: 'json',
|
|
|
+ xhrFields: {
|
|
|
+ withCredentials: true
|
|
|
+ },
|
|
|
+ crossDomain: true,
|
|
|
+ type: 'get',
|
|
|
+ timeout: 15000,
|
|
|
+ success: function(dt) {
|
|
|
+ //console.log(dt);
|
|
|
+ if(dt.isRedirect) {
|
|
|
+ location.href = dt.redirectURL;
|
|
|
+ } else {
|
|
|
+ if(dt.stauts) {
|
|
|
+ console.log("获取短信成功!");
|
|
|
+ } else {
|
|
|
+ mui.alert("获取短信失败!请稍后重试");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ console.log(xhr);
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
if(phone != '') {
|
|
|
show_msg = '手机号码格式不正确';
|