shish 5 месяцев назад
Родитель
Сommit
1ae04d7f90
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      ghsApp/src/pagesPurchase/details.vue

+ 3 - 3
ghsApp/src/pagesPurchase/details.vue

@@ -12,15 +12,15 @@
 									<view class="info-line">
 										<text class="item-name">{{ item.name||'' }}</text>
 										<text class="item-price">
-											<text class="price">¥{{item.userPrice ? item.userPrice : 0}}</text>
+											<text class="price" v-if="Number(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="Number(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:6upx;font-size:30upx;color:#3385ff;font-weight:bold;">¥{{item.userPrice ? item.userPrice : 0}}</text>
 
 										<view class="open-bx">
 										<i class="iconfont iconjian" @click.stop="delItemFn(item)" v-if="item.bigCount > 0" ></i>