|
@@ -79,7 +79,7 @@
|
|
|
</div>
|
|
|
<div class="mui-input-row">
|
|
|
<label>手机号</label>
|
|
|
- <input type="tel" maxlength="11" class="mui-input-clear" placeholder="请填写物流发货时预留的手机号" id="ipt-phone">
|
|
|
+ <input type="tel" maxlength="11" class="mui-input-clear" placeholder="请输入您的手机号码" id="ipt-phone">
|
|
|
</div>
|
|
|
<div class="mui-input-row">
|
|
|
<label>验 证 码</label>
|
|
@@ -239,7 +239,36 @@
|
|
|
mui(this).button('reset');
|
|
|
}.bind(this), 2000);
|
|
|
//mui.alert("本批watero试用机为新机,请您在试用过程中足够爱惜,切勿刮划机身及损坏包装,感谢您的配合!");
|
|
|
- var data_array = {
|
|
|
+ var data_all = {
|
|
|
+ "phoneCode":$('#ipt-code').val(),
|
|
|
+ "userName":$('#ipt-name').val(),
|
|
|
+ "userTel":$('#ipt-phone').val(),
|
|
|
+ "userEmail":$('#ipt-email').val(),
|
|
|
+ "numberWatero":$('#ipt-water').attr('txtvalue'),
|
|
|
+ "numberProvince":numberProvince,
|
|
|
+ "numberCity":numberCity,
|
|
|
+ "numberDistrict":numberDistrict
|
|
|
+ };
|
|
|
+ $.ajax({
|
|
|
+ type: 'post',
|
|
|
+ url: base_path + '/qrcode/add_warranty_card',
|
|
|
+ data:data_all,
|
|
|
+ dataType: 'json',
|
|
|
+ timeout: 15000,
|
|
|
+ success: function(dt) {
|
|
|
+ if (dt.status) {
|
|
|
+ mui.openWindow({
|
|
|
+ url: '/wateroPF/view/warranty_card.html'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ mui.alert(dt.message);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ mui.alert("请检查网络或刷新页面重试!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ /*var data_array = {
|
|
|
"userTel":$('#ipt-phone').val()
|
|
|
};
|
|
|
$.ajax({
|
|
@@ -301,7 +330,7 @@
|
|
|
error: function(xhr, type, errorThrown) {
|
|
|
mui.alert("请检查网络或刷新页面重试!");
|
|
|
}
|
|
|
- });
|
|
|
+ });*/
|
|
|
}else{
|
|
|
console.log("未通过");
|
|
|
mui.alert(alert_msg);
|