Authored by mali

尺码可修改

... ... @@ -526,14 +526,16 @@
colorName = goodsName = $('.group-color .actived').text();
}
var oldColorSizeTableData = that.colorSizeTableData;
that.colorSizeTableData.rows = [];
$('.size-item:checked').each(function(index, item) {
that.colorSizeTableData.rows.push({
colorName: colorName,
goodsName: goodsName,
size: $(item).parent().text(),
sku: '-',
suggestPrice: '-'
sku: oldColorSizeTableData.rows.length > index && oldColorSizeTableData.rows[index].sku ? oldColorSizeTableData.rows[index].sku : '-',
suggestPrice: oldColorSizeTableData.rows.length > index && oldColorSizeTableData.rows[index].suggestPrice ? oldColorSizeTableData.rows[index].suggestPrice : '-'
});
});
... ...