...
|
...
|
@@ -357,6 +357,11 @@ function validateForm() { |
|
|
},
|
|
|
mobile: function(phone) {
|
|
|
var message = '';
|
|
|
var originMobile = $('.origin-user-mobile').val();
|
|
|
|
|
|
if (originMobile === phone) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (!phoneReg.test(phone)) {
|
|
|
message = '手机号码不能为空';
|
...
|
...
|
@@ -404,12 +409,6 @@ function saveAddress(id) { |
|
|
telCode = $telCode.val(),
|
|
|
tel = $tel.val();
|
|
|
|
|
|
// var $err_name = $name.siblings('.error'),
|
|
|
// $err_province = $province.siblings('.error'),
|
|
|
// $err_address = $address.siblings('.error'),
|
|
|
// $err_phone = $phone.siblings('.error'),
|
|
|
// $err_tel = $tel.siblings('.error');
|
|
|
|
|
|
var postData = {
|
|
|
orderCode: id,
|
|
|
userName: name,
|
...
|
...
|
@@ -429,6 +428,10 @@ function saveAddress(id) { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (postData.mobile === $('.origin-user-mobile').val()) {
|
|
|
delete postData.mobile;
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'post',
|
|
|
url: '/home/orders/modifyAddress',
|
...
|
...
|
|