ソースを参照

修改订单详情页

pangqijun 1 年間 前
コミット
a66b99efd4

+ 1 - 1
pages/groupbuying/leader_order_details/index.vue

@@ -29,7 +29,7 @@
 					<view class="order-number">
 						<image referrerpolicy="no-referrer" src="http://www.gzzzyd.com/groupon/home_slices/出厂编号-线@2x.png" />
 						<text>
-							订单编号:{{item.orderNo}}
+							订单编号: {{item.orderNo}}
 						</text>
 					</view>
 

+ 27 - 3
pages/groupbuying_details/order_details_list/index.vue

@@ -2,9 +2,13 @@
 	<view :style="colorStyle">
 		<view class="wait_panel">
 			<view class="w1">
-				<image src="http://www.gzzzyd.com/groupon/home_slices/倒计时@2x.png" mode="scaleToFill" />
-				<text v-if="orderDetail.orderState == 1" class="yellow">等待付款</text>
-				<text v-if="orderDetail.orderState == 2" class="yellow">等待提货</text>
+				<image v-if="orderDetail.orderState == 5" src="http://www.gzzzyd.com/groupon/home_slices/取消订单小@2x.png" mode="scaleToFill" />
+				<image v-else-if="orderDetail.orderState == 4" src="http://www.gzzzyd.com/groupon/home_slices/已完成@2x.png" mode="scaleToFill" />
+				<image v-else-if="orderDetail.orderState == 6 || orderDetail.orderState == 7" src="http://www.gzzzyd.com/groupon/home_slices/退款中@2x.png" mode="scaleToFill" />
+				<image v-else src="http://www.gzzzyd.com/groupon/home_slices/倒计时@2x.png" mode="scaleToFill" />
+				<text v-if="orderDetail.orderState == 4" class="success_status">{{orderDetail.orderStateDesc}}</text>
+				<text v-else-if="orderDetail.orderState > 4" class="refund_status">{{orderDetail.orderStateDesc}}</text>
+				<text v-else class="status">{{orderDetail.orderStateDesc}}</text>
 			</view>
 			<view class="w2" v-if="orderDetail.orderState == 1">
 				需付款: <text class="red">¥{{orderDetail.paymentAmount}}</text>
@@ -1038,6 +1042,26 @@ export default {
     left: 50%;
 	}
 }
+
+		.success_status {
+			min-width: 100rpx;
+			text-align: right;
+			margin-right: 30rpx;
+			color: #75BE00;
+		}
+		.refund_status {
+			min-width: 100rpx;
+			text-align: right;
+			margin-right: 30rpx;
+			color: #333333;
+		}
+		.status {
+			min-width: 100rpx;
+			text-align: right;
+			margin-right: 30rpx;
+			color: #FEA800;
+		}
+
 /deep/ .u-count-down__text{
 	font-size: 28rpx !important;
 }