Merge remote-tracking branch 'origin/hotfix/product' into gray
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -68,7 +68,7 @@ function render(data) { | @@ -68,7 +68,7 @@ function render(data) { | ||
68 | var cartInfo = data.cartInfo; | 68 | var cartInfo = data.cartInfo; |
69 | var thumbClone = $chosePanel.find('.thumb').remove(); | 69 | var thumbClone = $chosePanel.find('.thumb').remove(); |
70 | 70 | ||
71 | - for (var i = 0; i < cartInfo.thumbs.length; i++) { | 71 | + for (var i = cartInfo.thumbs.length - 1; i >= 0; i--) { |
72 | var thumbEle = thumbClone.clone(); | 72 | var thumbEle = thumbClone.clone(); |
73 | 73 | ||
74 | thumbEle.attr('src', cartInfo.thumbs[i].img); | 74 | thumbEle.attr('src', cartInfo.thumbs[i].img); |
-
Please register or login to post a comment