浏览代码

隐藏预约按钮和取消按钮,限制学生主动权

刘洋 1 年之前
父节点
当前提交
af89c226d5
共有 6 个文件被更改,包括 22 次插入22 次删除
  1. 2 2
      src/components/applyItem.vue
  2. 2 2
      src/layouts/bottomTabBar.vue
  3. 1 1
      src/pages/myHistory.vue
  4. 1 1
      src/pages/tab-pages/index.vue
  5. 14 14
      src/router/routes.js
  6. 2 2
      vite.config.js

+ 2 - 2
src/components/applyItem.vue

@@ -35,14 +35,14 @@
         @click="seeTicket(item)"
         >电子准考证</van-button
       >
-      <van-button
+      <!-- <van-button
         plain
         type="danger"
         size="small"
         v-if="!item.cancel && item.allowCancel"
         @click="cancel(item)"
         >取消预约</van-button
-      >
+      > -->
     </div>
   </div>
 </template>

+ 2 - 2
src/layouts/bottomTabBar.vue

@@ -6,12 +6,12 @@
         <img :src="props.active ? tab1Active : tab1" />
       </template>
     </van-tabbar-item>
-    <van-tabbar-item icon="clock-o" to="/reservation"
+    <!-- <van-tabbar-item icon="clock-o" to="/reservation"
       >预约考试
       <template #icon="props">
         <img :src="props.active ? tab2Active : tab2" />
       </template>
-    </van-tabbar-item>
+    </van-tabbar-item> -->
     <van-tabbar-item icon="manager-o" to="/mine"
       >个人中心
       <template #icon="props">

+ 1 - 1
src/pages/myHistory.vue

@@ -19,7 +19,7 @@
           </template>
           当前无考试预约订单</NoData
         >
-        <div class="cus-btn flex-h-center" @click="toReservation">去预约</div>
+        <!-- <div class="cus-btn flex-h-center" @click="toReservation">去预约</div> -->
       </div>
     </div>
   </div>

+ 1 - 1
src/pages/tab-pages/index.vue

@@ -19,7 +19,7 @@
           </template>
           当前无考试预约订单</NoData
         >
-        <div class="cus-btn flex-h-center" @click="toReservation">去预约</div>
+        <!-- <div class="cus-btn flex-h-center" @click="toReservation">去预约</div> -->
       </div>
     </div>
   </div>

+ 14 - 14
src/router/routes.js

@@ -13,20 +13,20 @@ const routes = [
         component: () => import("@/pages/tab-pages/index.vue"),
         meta: { title: "首页" },
       },
-      {
-        path: "/reservation",
-        name: "Reservation",
-        component: () => import("@/pages/tab-pages/reservation.vue"),
-        meta: { title: "预约考试" },
-        children: [
-          {
-            path: "applyResult",
-            name: "ApplyResult",
-            component: () => import("@/pages/applyResult.vue"),
-            meta: { title: "预约结果" },
-          },
-        ],
-      },
+      // {
+      //   path: "/reservation",
+      //   name: "Reservation",
+      //   component: () => import("@/pages/tab-pages/reservation.vue"),
+      //   meta: { title: "预约考试" },
+      //   children: [
+      //     {
+      //       path: "applyResult",
+      //       name: "ApplyResult",
+      //       component: () => import("@/pages/applyResult.vue"),
+      //       meta: { title: "预约结果" },
+      //     },
+      //   ],
+      // },
       {
         path: "/mine",
         name: "Mine",

+ 2 - 2
vite.config.js

@@ -26,8 +26,8 @@ export default defineConfig(({ mode }) => {
       cors: true,
       proxy: {
         "/api": {
-          // target: "http://192.168.10.41:8080",
-          target: "http://apply-test.qmth.com.cn",
+          target: "http://192.168.10.41:8080",
+          // target: "http://apply-test.qmth.com.cn",
           changeOrigin: true,
           // rewrite: (path) => path.replace(new RegExp(`^${envConfig.proxy}`), ''),
         },