guo il y a 2 ans
Parent
commit
5f9b467b02
2 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 7 7
      pages/user/historyDetail.vue
  2. 1 1
      pages/user/historySpend.vue

+ 7 - 7
pages/user/historyDetail.vue

@@ -133,7 +133,7 @@
 								<!-- <view class="grayPrice">¥{{item.CheckOutTaxRate}}</view> -->
 								<view class="price" v-if="ItemMoney">
 									<span>¥</span>
-									{{item.AmountMoney}}
+									{{item.AmountMoney?item.AmountMoney:0}}
 								</view>
 							</view>
 						</view>
@@ -161,7 +161,7 @@
 								<!-- <view class="grayPrice">¥{{item.CheckOutTaxRate}}</view> -->
 								<view class="price" v-if="ItemMoney">
 									<span>¥</span>
-									{{item.AmountMoney}}
+									{{item.AmountMoney?item.AmountMoney:0}}
 								</view>
 							</view>
 						</view>
@@ -177,23 +177,23 @@
 				<view class="detailedTitle">费用明细</view>
 				<view class="goodscostLine" v-if="AmountMoney">
 					<view class="goodscostTxt">应收总计</view>
-					<view class="goodsCostNum">¥{{orderData.billsheet.AmountMoney}}</view>
+					<view class="goodsCostNum">¥{{orderData.billsheet.AmountMoney?orderData.billsheet.AmountMoney:0}}</view>
 				</view>
 				<view class="goodscostLine" v-if="TotalDiscountMoney">
 					<view class="goodscostTxt">优惠总计</view>
-					<view class="goodsCostNum">¥{{orderData.billsheet.TotalDiscountMoney}}</view>
+					<view class="goodsCostNum">¥{{orderData.billsheet.TotalDiscountMoney?orderData.billsheet.TotalDiscountMoney:0}}</view>
 				</view>
 				<view class="goodscostLine" v-if="CardMoneyT">
 					<view class="goodscostTxt">计次卡冲销</view>
-					<view class="goodsCostNum">¥{{orderData.billsheet.CardMoneyT}}</view>
+					<view class="goodsCostNum">¥{{orderData.billsheet.CardMoneyT?orderData.billsheet.CardMoneyT:0}}</view>
 				</view>
 				<view class="goodscostLine" v-if="CardMoneyC">
 					<view class="goodscostTxt">储值卡冲销</view>
-					<view class="goodsCostNum">¥{{orderData.billsheet.CardMoneyCWriteOff}}</view>
+					<view class="goodsCostNum">¥{{orderData.billsheet.CardMoneyCWriteOff?orderData.billsheet.CardMoneyCWriteOff:0}}</view>
 				</view>
 				<view class="goodscostLine" v-if="ReceiptsMoney">
 					<view class="goodscostTxt">支付金额</view>
-					<view class="goodsCostNum">¥{{orderData.billsheet.money}}</view>
+					<view class="goodsCostNum">¥{{orderData.billsheet.money?orderData.billsheet.money:0}}</view>
 				</view>
 			</view>
 

+ 1 - 1
pages/user/historySpend.vue

@@ -45,7 +45,7 @@
 					<view class="plate">{{item.PlateNumber}}</view>
 					<view class="mileage" v-if="item.CurrentMileage>0">{{item.CurrentMileage}}km</view>
 				</view>
-				<view v-if="ReceiptsMoney" class="price"><span style="font-size: 22rpx;">¥</span>{{item.money}}</view>
+				<view v-if="ReceiptsMoney" class="price"><span style="font-size: 22rpx;">¥</span>{{item.money?item.money:0}}</view>
 			</view>
 			<view class="time">{{item.time}}</view>