|
|
@@ -17,8 +17,10 @@
|
|
|
<text class="priceZ">{{ selected.integerPart }}</text>
|
|
|
<text class="priceF">.{{ selected.decimalPart }}</text>
|
|
|
</view>
|
|
|
- <text class="line"></text>
|
|
|
- <text class="discountPrice">优惠前 ¥{{ selected.originalPrice }}</text>
|
|
|
+ <block wx:if="{{ selected.originalPrice > selected.salePrice }}">
|
|
|
+ <text class="line"></text>
|
|
|
+ <text class="discountPrice">优惠前 ¥{{ selected.originalPrice }}</text>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
|
|
|
<!-- <image class="img_back" bind:tap="onBack" src="./images/icon-back.png"></image> -->
|
|
|
@@ -64,8 +66,10 @@
|
|
|
<text class="priceZ">{{ item.integerPart }}</text>
|
|
|
<text class="priceF">.{{ item.decimalPart }}</text>
|
|
|
</view>
|
|
|
- <text class="line"></text>
|
|
|
- <text class="discountPrice"><text>优惠前</text>¥{{ item.originalPrice }}</text>
|
|
|
+ <block wx:if="{{ item.originalPrice > item.salePrice }}">
|
|
|
+ <text class="line"></text>
|
|
|
+ <text class="discountPrice"><text>优惠前</text>¥{{ item.originalPrice }}</text>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|