Browse Source

美食详情页 架子

任一存 2 years ago
parent
commit
00535e4db1
3 changed files with 24 additions and 2 deletions
  1. 10 1
      src/router/index.js
  2. 13 0
      src/views/Serve/FoodDetail.vue
  3. 1 1
      src/views/Serve/FoodList.vue

+ 10 - 1
src/router/index.js

@@ -105,7 +105,7 @@ const routes = [{
           myInd: 2,
           myTitle: '建筑可游玩',
         },
-        component: () => import('../components/BookingSuccess.vue')
+        component: () => import('../views/Serve/index.vue')
       },
       {
         path: '/layout/serve/recommended-path',
@@ -179,6 +179,15 @@ const routes = [{
         },
         component: () => import('../views/Serve/FoodList.vue')
       },
+      {
+        path: '/layout/serve/food-detail',
+        name: 'FoodDetail',
+        meta: {
+          myInd: 2,
+          myTitle: '美食',
+        },
+        component: () => import('../views/Serve/FoodDetail.vue')
+      },
       /**
        * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        */

+ 13 - 0
src/views/Serve/FoodDetail.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="food-detail">
+    <div class="card banner">
+
+    </div>
+  </div>
+</template>
+
+<style lang="less" scoped>
+.food-detail {
+  
+}
+</style>

+ 1 - 1
src/views/Serve/FoodList.vue

@@ -174,7 +174,7 @@ export default {
     margin-left: 4vw;
     overflow: auto;
     > article {
-      width: 44vw;
+      width: 43vw;
       padding-bottom: 2.7vw;
       margin-bottom: 4vw;
       margin-right: 4vw;;