Pārlūkot izejas kodu

订单列表增加取消状态订单,订单详情针对取消做调整

liuqiwen 5 dienas atpakaļ
vecāks
revīzija
bd829641ec

+ 1 - 1
components/OrderListCard/index.vue

@@ -17,7 +17,7 @@
             "
           >{{ order.activityType }}</text
           >
-          {{ order.orderStatus }}
+          {{ order.status == 6 ? '已取消':order.orderStatus }}
         </view>
       </view>
       <view

+ 1 - 1
pages/order_details/index.vue

@@ -239,7 +239,7 @@
 <!-- && orderInfo.status != 0 -->
 		<template v-if="isGoodsReturn == false && orderInfo.status != 0 || orderInfo.status == 0 && !orderInfo.paid">
 			<view class="kong"></view>
-			<view class="footer">
+			<view class="footer" v-if="orderInfo.status!=6">
 				<view class="footer-box">
 					<view class="qs-btn" v-if="!orderInfo.paid" @click.stop="cancelOrder">
 						<image src="@/static/images/shop/closeOrder@2x.png" mode=""></image>

+ 5 - 1
pages/order_list/index.vue

@@ -110,7 +110,11 @@
 			orderStatus: 4,
       value: 4
 		},
-
+    {
+      name: '已取消',
+      orderStatus: 6,
+      value: 6
+    },
 	]) //头部导航
 
 	// 生命周期