Showing
1 changed file
with
5 additions
and
1 deletions
@@ -78,7 +78,11 @@ function render(data) { | @@ -78,7 +78,11 @@ function render(data) { | ||
78 | $chosePanel.find('.text-info>.name').text(cartInfo.name); | 78 | $chosePanel.find('.text-info>.name').text(cartInfo.name); |
79 | $chosePanel.find('.sale-price').text(cartInfo.salePrice); | 79 | $chosePanel.find('.sale-price').text(cartInfo.salePrice); |
80 | if (!cartInfo.price) { | 80 | if (!cartInfo.price) { |
81 | - $chosePanel.find('.sale-price').addClass('no-price'); | 81 | + if (data.isSecKill === 'Y') { |
82 | + $('.price').append('<span class="market-price">' + cartInfo.salePrice + '</span>'); | ||
83 | + } else { | ||
84 | + $chosePanel.find('.sale-price').addClass('no-price'); | ||
85 | + } | ||
82 | } else { | 86 | } else { |
83 | $chosePanel.find('.market-price').text(cartInfo.price).removeClass(dbClass); | 87 | $chosePanel.find('.market-price').text(cartInfo.price).removeClass(dbClass); |
84 | } | 88 | } |
-
Please register or login to post a comment