...
|
...
|
@@ -194,6 +194,7 @@ exports.getUserAddressList = function() { |
|
|
isHide = 'active address_select';
|
|
|
hasDefault++;
|
|
|
addressText = '默认地址';
|
|
|
$('#recordMobileNumb').val(addressData[i].completeMobile);
|
|
|
|
|
|
} else {
|
|
|
isChecked = '';
|
...
|
...
|
@@ -208,6 +209,7 @@ exports.getUserAddressList = function() { |
|
|
'" data-areaCode="' + addressData[i].areaCode +
|
|
|
'" data-addressDesc="' + addressData[i].addressDesc +
|
|
|
'" data-mobile="' + addressData[i].mobile +
|
|
|
'" data-completeMobile="' + addressData[i].completeMobile +
|
|
|
'" data-phoneNum="' + addressData[i].phoneNum +
|
|
|
'" data-phoneCode="' + addressData[i].phoneCode +
|
|
|
'" data-zipCode="' + addressData[i].zipCode +
|
...
|
...
|
@@ -448,7 +450,6 @@ exports.saveAddress = function() { |
|
|
var telCodeReg = /^[0-9]{3,5}$/;
|
|
|
var telReg = /^[0-9]{5,10}$/;
|
|
|
|
|
|
|
|
|
function hasText(val) {
|
|
|
|
|
|
if (val === telCode) {
|
...
|
...
|
@@ -479,7 +480,7 @@ exports.saveAddress = function() { |
|
|
.find('input[name="address"]').attr('checked', 'checked');
|
|
|
|
|
|
$('.address-list span').removeAttr('expand');
|
|
|
|
|
|
$('#recordMobileNumb').val($('.exist-address-list li.active input').attr('data-completemobile'));
|
|
|
refreshAddressStatus();
|
|
|
|
|
|
}
|
...
|
...
|
@@ -521,6 +522,7 @@ exports.saveAddress = function() { |
|
|
if (!!$saveBtn.attr('data-id')) {
|
|
|
postData.id = $saveBtn.attr('data-id');
|
|
|
}
|
|
|
$('#recordMobileNumb').val(phone);
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'post',
|
...
|
...
|
@@ -649,7 +651,6 @@ exports.saveAddress = function() { |
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 支付及送货时间选择
|
|
|
$('.pay-time-modify .pay-btn').click(function() {
|
|
|
|
...
|
...
|
|