Browse Source

订单状态

Xiao_123 4 months ago
parent
commit
8b5f6a1fa7
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/hooks/web/useGoods.js

+ 5 - 4
src/hooks/web/useGoods.js

@@ -127,10 +127,11 @@ export function formatOrderStatus(order) {
   if (order.status === 20) {
     return '待收货';
   }
-  if (order.status === 30 && !order.commentStatus) {
-    return '待评价';
-  }
-  if (order.status === 30 && order.commentStatus) {
+  // if (order.status === 30 && !order.commentStatus) {
+  //   return '待评价';
+  // }
+  // if (order.status === 30 && order.commentStatus) {
+  if (order.status === 30) {
     return '已完成';
   }
   return '已关闭';