Ver código fonte

订单数据展示

yuhongqi 3 dias atrás
pai
commit
085a67971a

+ 1 - 1
pages_shopping/live/order.vue

@@ -58,7 +58,7 @@
 						<view class="order-bottom">
 							<view class="order-money">
 								<text class="title">订单金额:</text>
-								<text class="num">¥<text class="bold">{{item.totalPrice}}</text></text>
+								<text class="num">¥<text class="bold">{{item.payPrice}}</text></text>
 							</view>
 							<view class="button-group">
 								<view v-if="item.status == 1" @click.stop="cancel(item)" class="button cancel ">取消订单

+ 3 - 3
pages_shopping/live/paymentOrder.vue

@@ -6,7 +6,7 @@
 				<text class="time">待支付</text>
 				<view class="price-box">
 					<text class="unit">¥</text>
-					<text class="num">{{order ? (Number(order.payMoney) || 0).toFixed(2) : "0.00"}}</text>
+					<text class="num">{{order ? (Number(order.payPrice) || 0).toFixed(2) : "0.00"}}</text>
 				</view>
 
 			</view>
@@ -52,9 +52,9 @@
 					<text class="text">{{ formattedDate}} </text>
 				</view>
 				<view class="item">
-					<text class="label">订单金额</text>
+					<text class="label">实付金额</text>
 					<text class="text"
-						v-if="order!=null">{{order ? (Number(order.totalPrice) || 0).toFixed(2) : "0.00"}}</text>
+						v-if="order!=null">{{order ? (Number(order.payPrice) || 0).toFixed(2) : "0.00"}}</text>
 				</view>
 				<view class="item">
 					<text class="label">优惠券</text>

+ 1 - 1
pages_shopping/live/storeOrderDetail.vue

@@ -202,7 +202,7 @@
 						</view> -->
 						<view class="item">
 							<text class="label">应付金额</text>
-							<text class="text" v-if="order.totalPrice!=null">¥{{order.totalPrice.toFixed(2)}}</text>
+							<text class="text" v-if="order.totalPrice!=null">¥{{order.payPrice.toFixed(2)}}</text>
 						</view>
 						<view class="item">
 							<text class="label">支付金额</text>