1004749546@qq.com 4 rokov pred
rodič
commit
6d33d9b446
2 zmenil súbory, kde vykonal 9 pridanie a 9 odobranie
  1. 5 5
      pages/order/order.vue
  2. 4 4
      pages/order/orderDetail.vue

+ 5 - 5
pages/order/order.vue

@@ -31,27 +31,27 @@
 									<text class="total-text">
 									<text class="total-text">
 										共{{item.goodsNum}}件商品
 										共{{item.goodsNum}}件商品
 									</text>
 									</text>
-									<text v-if="item.orderStateDictValue=='待支付'"><text class="money-total">应付</text><text class="price-num">{{item.originalGold}}</text>
+									<text v-if="item.orderState=='WAIT_PAY'"><text class="money-total">应付</text><text class="price-num">{{item.originalGold}}</text>
 										<text class="price-text">乐豆</text></text>
 										<text class="price-text">乐豆</text></text>
 									<text v-else><text class="money-total">实付</text><text class="price-num">{{item.payGold}}</text> <text class="price-text">乐豆</text></text>
 									<text v-else><text class="money-total">实付</text><text class="price-num">{{item.payGold}}</text> <text class="price-text">乐豆</text></text>
 								</view>
 								</view>
 							</view>
 							</view>
 							<view class="check-row">
 							<view class="check-row">
-								<view v-if="item.orderStateDictValue=='待支付'"  class="text-right left-time">
+								<view v-if="item.orderState=='WAIT_PAY'"  class="text-right left-time">
 										<text style="margin-right: 20upx;">
 										<text style="margin-right: 20upx;">
 											支付剩余
 											支付剩余
 										</text>
 										</text>
 										<u-count-down @end="getRow" style="margin-right: 20upx;" separator ="zh" :timestamp="filterTime(item.orderTime)" :show-days="false" :show-hours="false"></u-count-down>
 										<u-count-down @end="getRow" style="margin-right: 20upx;" separator ="zh" :timestamp="filterTime(item.orderTime)" :show-days="false" :show-hours="false"></u-count-down>
 									<u-button :custom-style="btnStyle" @click="toPay(item)"  shape="circle" type="error" size="medium">去支付</u-button>
 									<u-button :custom-style="btnStyle" @click="toPay(item)"  shape="circle" type="error" size="medium">去支付</u-button>
 								</view>
 								</view>
-								<view v-if="item.orderStateDictValue=='待发货'" class="text-right">
+								<view v-if="item.orderState=='WAIT_SEND'||item.orderState=='SEND_PART'" class="text-right">
 									<u-button :custom-style="btnStyle" @click="showTip" shape="circle" size="medium">提醒发货</u-button>
 									<u-button :custom-style="btnStyle" @click="showTip" shape="circle" size="medium">提醒发货</u-button>
 								</view>
 								</view>
-								<view v-if="item.orderStateDictValue=='已发货'" class="text-right">
+								<view v-if="item.orderState=='SEND_ALL'" class="text-right">
 									<u-button @click="showLog(item)" :custom-style="btnStyle" style="margin-right: 20upx;" shape="circle" size="medium">查看物流</u-button>
 									<u-button @click="showLog(item)" :custom-style="btnStyle" style="margin-right: 20upx;" shape="circle" size="medium">查看物流</u-button>
 									<u-button :custom-style="btnStyle" shape="circle" type="primary" size="medium">确认收货</u-button>
 									<u-button :custom-style="btnStyle" shape="circle" type="primary" size="medium">确认收货</u-button>
 								</view>
 								</view>
-								<view v-if="item.orderStateDictValue=='已完成'" class="text-right">
+								<view v-if="item.orderState=='FINISH'" class="text-right">
 									<u-button @click="showLog(item)" :custom-style="btnStyle" shape="circle" size="medium">查看物流</u-button>
 									<u-button @click="showLog(item)" :custom-style="btnStyle" shape="circle" size="medium">查看物流</u-button>
 								</view>
 								</view>
 							</view>
 							</view>

+ 4 - 4
pages/order/orderDetail.vue

@@ -4,10 +4,10 @@
 			<!-- 订单状态 -->
 			<!-- 订单状态 -->
 			<view class="order-status">
 			<view class="order-status">
 				<view class="status-title">{{orderInfo.orderStateDictValue}}</view>
 				<view class="status-title">{{orderInfo.orderStateDictValue}}</view>
-				<view v-if="orderInfo.orderStateDictValue=='待支付'" class="status-care">
+				<view v-if="orderInfo.orderState=='WAIT_PAY'" class="status-care">
 					请在 <text>29</text>分钟内付款,过期系统将自动取消订单
 					请在 <text>29</text>分钟内付款,过期系统将自动取消订单
 				</view>
 				</view>
-				<view v-if="orderInfo.orderStateDictValue=='已取消'" class="status-care">
+				<view v-if="orderInfo.orderState=='CANCEL'" class="status-care">
 					超时未支付,系统已自动取消订单
 					超时未支付,系统已自动取消订单
 				</view>
 				</view>
 			</view>
 			</view>
@@ -55,13 +55,13 @@
 				<u-cell-item title="运费" :value-style="{color: '#000',fontSize: '28upx'}" :arrow="false">
 				<u-cell-item title="运费" :value-style="{color: '#000',fontSize: '28upx'}" :arrow="false">
 					免运费
 					免运费
 				</u-cell-item>
 				</u-cell-item>
-				<u-cell-item :title="(orderInfo.orderStateDictValue=='待支付'||orderInfo.orderStateDictValue=='已取消') ? '待支付':'实际支付'" :value-style="{color: '#000',fontSize: '28upx'}"
+				<u-cell-item :title="(orderInfo.orderState=='WAIT_PAY'||orderInfo.orderState=='CANCEL') ? '待支付':'实际支付'" :value-style="{color: '#000',fontSize: '28upx'}"
 				 :arrow="false">
 				 :arrow="false">
 					<text class="price-num">{{orderInfo.originalGold}}</text> <text class="price-text">乐豆</text>
 					<text class="price-num">{{orderInfo.originalGold}}</text> <text class="price-text">乐豆</text>
 				</u-cell-item>
 				</u-cell-item>
 			</u-cell-group>
 			</u-cell-group>
 		</view>
 		</view>
-		<view v-if="orderInfo.orderStateDictValue=='待支付'" class="footer">
+		<view v-if="orderInfo.orderState=='WAIT_PAY'" class="footer">
 			<u-button @click="toPay" type="error">去支付</u-button>
 			<u-button @click="toPay" type="error">去支付</u-button>
 		</view>
 		</view>
 		<!-- 提示用户设置支付密码 -->
 		<!-- 提示用户设置支付密码 -->