...
|
...
|
@@ -362,7 +362,7 @@ function packGoogsList() { |
|
|
$checkBox.each(function() {
|
|
|
var $par = $(this).parent().parent(),
|
|
|
$next = $par.next(),
|
|
|
goodsInfo;
|
|
|
goodsInfo, cskc;
|
|
|
|
|
|
if (verifyTip.length) {
|
|
|
return;
|
...
|
...
|
@@ -382,9 +382,16 @@ function packGoogsList() { |
|
|
goodsInfo.returned_reason = goodsInfo.reason;
|
|
|
} else {
|
|
|
goodsInfo.exchange_reason = goodsInfo.reason;
|
|
|
goodsInfo.new_goods_id = $par.find('.exchange-color').val() * 1;
|
|
|
goodsInfo.new_product_sku = $par.find('.exchange-size').val() * 1;
|
|
|
|
|
|
cskc = $par.find('.exchange-color').val() * 1;
|
|
|
|
|
|
$par.find('.exchange-color').each(function() {
|
|
|
if (cskc === +$(this).attr('value')) {
|
|
|
goodsInfo.new_goods_id = $(this).data('goodsid');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (!verifyTip && !goodsInfo.new_goods_id) {
|
|
|
verifyTip = '请选择要换的颜色';
|
|
|
}
|
...
|
...
|
|