瀏覽代碼

null 历史消费处理

twt 2 月之前
父節點
當前提交
42ee60dd4b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/user/historyDetail.vue

+ 2 - 2
pages/user/historyDetail.vue

@@ -262,11 +262,11 @@
 				<view class="yhmx" v-if="DiscountMoneyDetail&&dmShow"><!-- 优惠明细 -->
 					<view class="goodscostLine" v-for="(item,index) in orderData.discountList" v-if="DiscountMoneyDetailNullZero&&item.price!=0">
 						<view class="goodscostTxt">{{item.type}}</view>
-						<view class="goodsCostNum3">¥{{item.price}}</view>
+						<view class="goodsCostNum3">¥{{item.price?item.price:0}}</view>
 					</view>
 					<view class="goodscostLine" v-for="(item,index) in orderData.discountList" v-if="!DiscountMoneyDetailNullZero">
 						<view class="goodscostTxt">{{item.type}}</view>
-						<view class="goodsCostNum3">¥{{item.price}}</view>
+						<view class="goodsCostNum3">¥{{item.price?item.price:0}}</view>
 					</view>
 				</view>
 				<view class="goodscostLine" v-if="CardMoneyT">