更新:我的订单兼容多种商品订单(电子书、课程、vip)显示
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<image :src="goods[selectedIndex].productImages" mode="aspectFit" class="goods-cover" />
|
||||
<view class="info">
|
||||
<text class="name">{{ goods[selectedIndex].productName }}</text>
|
||||
<text v-if="selectedGoodsPrice" class="price">NZ$ {{ selectedGoodsPrice }}</text>
|
||||
<text v-if="selectedGoodsPrice" class="price">{{ selectedGoodsPrice }} 天医币</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -30,21 +30,21 @@
|
||||
|
||||
<!-- VIP优惠价 -->
|
||||
<view v-if="item.isVipPrice === 1 && item.vipPrice" class="price-info">
|
||||
<text class="vip-price">NZ$ {{ parseFloat(item.vipPrice).toFixed(2) }}</text>
|
||||
<text class="vip-price">{{ parseFloat(item.vipPrice).toFixed(2) }} 天医币</text>
|
||||
<text class="vip-label">VIP到手价</text>
|
||||
<text class="original-price">NZ$ {{ parseFloat(item.price).toFixed(2) }}</text>
|
||||
<text class="original-price">{{ parseFloat(item.price).toFixed(2) }} 天医币</text>
|
||||
</view>
|
||||
|
||||
<!-- 活动价 -->
|
||||
<view v-else-if="item.activityPrice && item.activityPrice > 0" class="price-info">
|
||||
<text class="activity-price">NZ$ {{ parseFloat(item.activityPrice).toFixed(2) }}</text>
|
||||
<text class="activity-price">{{ parseFloat(item.activityPrice).toFixed(2) }} 天医币</text>
|
||||
<text class="activity-label">活动价</text>
|
||||
<text class="original-price">NZ$ {{ parseFloat(item.price).toFixed(2) }}</text>
|
||||
<text class="original-price">{{ parseFloat(item.price).toFixed(2) }} 天医币</text>
|
||||
</view>
|
||||
|
||||
<!-- 普通价格 -->
|
||||
<view v-else class="price-info">
|
||||
<text class="normal-price">NZ$ {{ parseFloat(item.price).toFixed(2) }}</text>
|
||||
<text class="normal-price">{{ parseFloat(item.price).toFixed(2) }} 天医币</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user