瀏覽代碼

团餐详情跳转

lishanshan 4 月之前
父節點
當前提交
0c5f2d46f3
共有 2 個文件被更改,包括 13 次插入2 次删除
  1. 1 1
      pages/finance/components/account-list.vue
  2. 12 1
      pages/finance/components/order-list.vue

+ 1 - 1
pages/finance/components/account-list.vue

@@ -38,7 +38,7 @@ export default {
           pathName = 'withdrawalDetails';
           break;
         case 'SETTLE_GROUP_MEAL':
-          pathName = 'groupMealDetails';
+          pathName = 'settlementDetails';
           break;
       }
       uni.navigateTo({

+ 12 - 1
pages/finance/components/order-list.vue

@@ -20,10 +20,21 @@ export default {
       default: () => [],
     },
   },
+  onLoad(options) {
+    if (options.orderType) {
+      this.orderType = options.orderType;
+    }
+  },
+  data() {
+    return {
+      orderType: '',
+    }
+  },
   methods: {
     goDetails(item) {
+      const pathName = this.orderType === 2 ? 'groupMealDetails' : 'orderDetails';
       uni.navigateTo({
-        url: `/pages/finance/orderDetails?id=${item.orderId}`,
+        url: `/pages/finance/${pathName}?id=${item.orderId}`,
       });
     },
   },