...
|
...
|
@@ -9655,6 +9655,7 @@ require("js/me/address"); |
|
|
require("js/me/suggest");
|
|
|
require("js/me/browse-record");
|
|
|
require("js/me/address-act");
|
|
|
require("js/me/address-modify");
|
|
|
require("js/me/logistic");
|
|
|
require("js/me/pay");
|
|
|
require("js/me/personal-details");
|
...
|
...
|
@@ -12112,6 +12113,66 @@ if (chinaAddressList) { |
|
|
}
|
|
|
|
|
|
});
|
|
|
define("js/me/address-modify", ["jquery","hammer"], function(require, exports, module){
|
|
|
/**
|
|
|
* 订单 地址修改
|
|
|
* @author: liangxiaosong
|
|
|
* @date: 2016/5/11
|
|
|
*/
|
|
|
|
|
|
var $ = require("jquery"),
|
|
|
tip = require("js/plugin/tip");
|
|
|
|
|
|
var $confimMod = $('.confim-modify-mask'),
|
|
|
$modifyAdd = $('.modifyAdd'),
|
|
|
orderCode = $modifyAdd.data('orderCode'),
|
|
|
selectId;
|
|
|
|
|
|
require("js/common");
|
|
|
|
|
|
$('.address-item').on('touchend', function() {
|
|
|
selectId = $(this).data('addressId');
|
|
|
|
|
|
if ($modifyAdd.data('rel') === true) {
|
|
|
$confimMod.find('.content').text('关联订单的收货地址将会一起修改且不可修改第二次,请确认是否修改?');
|
|
|
$confimMod.fadeIn();
|
|
|
} else {
|
|
|
$confimMod.find('.content').text('收货地址仅且只能修改一次,请确认是否修改?');
|
|
|
$confimMod.fadeIn();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$confimMod.on('touchend', '.cancel', function(e) {
|
|
|
selectId = null;
|
|
|
$confimMod.fadeOut();
|
|
|
return false;
|
|
|
}).on('touchend', '.confim', function() {
|
|
|
$.ajax({
|
|
|
method: 'GET',
|
|
|
url: '/home/chooseAddress',
|
|
|
data: {
|
|
|
addressId: selectId,
|
|
|
orderCode: orderCode
|
|
|
}
|
|
|
}).then(function(res) {
|
|
|
if ($.type(res) !== 'object') {
|
|
|
res = {};
|
|
|
}
|
|
|
if (res.code !== 200) {
|
|
|
$confimMod.fadeOut();
|
|
|
tip.show(res.message || '网络出了点问题~');
|
|
|
} else {
|
|
|
window.location.href = '/home/orderdetail?order_code=' + orderCode;
|
|
|
}
|
|
|
}).fail(function() {
|
|
|
tip.show('网络出了点问题~');
|
|
|
}).always(function() {
|
|
|
selectId = null;
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
});
|
|
|
define("js/me/logistic", ["jquery","hammer","mlellipsis","lazyload"], function(require, exports, module){
|
|
|
/**
|
|
|
* 物流信息页面
|
...
|
...
|
|