|
|
@@ -22,19 +22,15 @@
|
|
|
</text>
|
|
|
<text class="item-price">
|
|
|
<text class="unit">¥</text>
|
|
|
- <text class="price">{{ parseFloat(item.userPrice) || 0 }}</text>
|
|
|
+
|
|
|
+ <text class="price" v-if="item.bigCount > 0">{{ parseFloat((Number(item.bigCount) * Number(item.userPrice)).toFixed(2)) }}</text>
|
|
|
+ <text class="price" v-else>{{ parseFloat((Number(item.smallCount) * Number(item.userPrice)).toFixed(2)) }}</text>
|
|
|
+
|
|
|
</text>
|
|
|
</view>
|
|
|
|
|
|
<view style="text-align: right; position: relative">
|
|
|
- <text
|
|
|
- style="position: absolute; right: 300upx; top: 2upx; font-size: 28upx; color: green; font-weight: bold"
|
|
|
- v-if="item.bigCount > 0"
|
|
|
- >¥{{ parseFloat((Number(item.bigCount) * Number(item.userPrice)).toFixed(2)) }}</text
|
|
|
- >
|
|
|
- <text style="position: absolute; right: 300upx; top: 2upx; font-size: 28upx; color: green; font-weight: bold" v-else
|
|
|
- >¥{{ parseFloat((Number(item.smallCount) * Number(item.userPrice)).toFixed(2)) }}</text
|
|
|
- >
|
|
|
+ <text style="position: absolute; right: 300upx; top: 2upx; font-size: 28upx; color: #3385ff; font-weight: bold">¥{{ parseFloat(item.userPrice) || 0 }}</text>
|
|
|
<text
|
|
|
v-if="showFinance == 1"
|
|
|
:class="[Number(item.avCost) > Number(item.userPrice) && item.bigCount > 0 ? 'warning-price' : 'normal-price']"
|