Browse Source

8-26-order->price显示问题

2312970463@qq.com 4 years ago
parent
commit
18897fb80a
2 changed files with 3 additions and 3 deletions
  1. 2 2
      pages/order/order.vue
  2. 1 1
      pages/order/orderDetail.vue

+ 2 - 2
pages/order/order.vue

@@ -33,9 +33,9 @@
 						<view class="goods-box-single" v-for="(goodsItem, goodsIndex) in item.cartInfo" :key="goodsIndex">
 						<view class="goods-box-single" v-for="(goodsItem, goodsIndex) in item.cartInfo" :key="goodsIndex">
 							<image class="goods-img" :src="goodsItem.productInfo.image" mode="scaleToFill"></image>
 							<image class="goods-img" :src="goodsItem.productInfo.image" mode="scaleToFill"></image>
 							<view class="right">
 							<view class="right">
-								<view class="flex-start">
+								<view class="flex-start" style="justify-content: space-between;">
 									<text class="title clamp">{{ goodsItem.productInfo.store_name }}</text>
 									<text class="title clamp">{{ goodsItem.productInfo.store_name }}</text>
-									<text class="price">{{ moneyNum(goodsItem.productInfo.price) }}</text>
+									<text class="price">{{ moneyNum(goodsItem.truePrice) }}</text>
 								</view>
 								</view>
 								<view class="row flex">
 								<view class="row flex">
 									<text class="row_title">{{ goodsItem.productInfo.attrInfo ? goodsItem.productInfo.attrInfo.suk : '' }}</text>
 									<text class="row_title">{{ goodsItem.productInfo.attrInfo ? goodsItem.productInfo.attrInfo.suk : '' }}</text>

+ 1 - 1
pages/order/orderDetail.vue

@@ -36,7 +36,7 @@
 					<view class="flex">
 					<view class="flex">
 						<text class="title">{{ goodsItem.productInfo.store_name }}</text>
 						<text class="title">{{ goodsItem.productInfo.store_name }}</text>
 						<view class="title-right">
 						<view class="title-right">
-							<view class="price">{{ goodsItem.productInfo.price }}</view>
+							<view class="price">{{ goodsItem.truePrice }}</view>
 							<view class="attr-box">
 							<view class="attr-box">
 								{{ goodsItem.attrInfo ? goodsItem.attrInfo.suk : '' }} x {{ goodsItem.cart_num + '' + (goodsItem.productInfo.unit_name ||'') }}
 								{{ goodsItem.attrInfo ? goodsItem.attrInfo.suk : '' }} x {{ goodsItem.cart_num + '' + (goodsItem.productInfo.unit_name ||'') }}
 							</view>
 							</view>