Showing
1 changed file
with
4 additions
and
2 deletions
@@ -526,14 +526,16 @@ | @@ -526,14 +526,16 @@ | ||
526 | colorName = goodsName = $('.group-color .actived').text(); | 526 | colorName = goodsName = $('.group-color .actived').text(); |
527 | } | 527 | } |
528 | 528 | ||
529 | + var oldColorSizeTableData = that.colorSizeTableData; | ||
530 | + | ||
529 | that.colorSizeTableData.rows = []; | 531 | that.colorSizeTableData.rows = []; |
530 | $('.size-item:checked').each(function(index, item) { | 532 | $('.size-item:checked').each(function(index, item) { |
531 | that.colorSizeTableData.rows.push({ | 533 | that.colorSizeTableData.rows.push({ |
532 | colorName: colorName, | 534 | colorName: colorName, |
533 | goodsName: goodsName, | 535 | goodsName: goodsName, |
534 | size: $(item).parent().text(), | 536 | size: $(item).parent().text(), |
535 | - sku: '-', | ||
536 | - suggestPrice: '-' | 537 | + sku: oldColorSizeTableData.rows.length > index && oldColorSizeTableData.rows[index].sku ? oldColorSizeTableData.rows[index].sku : '-', |
538 | + suggestPrice: oldColorSizeTableData.rows.length > index && oldColorSizeTableData.rows[index].suggestPrice ? oldColorSizeTableData.rows[index].suggestPrice : '-' | ||
537 | }); | 539 | }); |
538 | }); | 540 | }); |
539 | 541 |
-
Please register or login to post a comment