Parcourir la source

紧跟接口调整的步伐

刘洋 il y a 1 an
Parent
commit
5322be8788

+ 1 - 1
src/api/user.js

@@ -172,7 +172,7 @@ export function getExamNotice(data) {
 //获取考场引导
 export function getRoomGuide(data) {
   return request({
-    url: "/api/student/exam/room/guide",
+    url: "/api/student/exam/site/guide",
     method: "post",
     data,
     headers: {

+ 5 - 2
src/pages/admissionCard.vue

@@ -54,7 +54,10 @@
         <van-cell
           is-link
           @click="
-            router.push({ name: 'ExamNotice', params: { applyId: applyId } })
+            router.push({
+              name: 'ExamNotice',
+              params: { applyTaskId: info.applyTaskId },
+            })
           "
         >
           <template #title>
@@ -72,7 +75,7 @@
           @click="
             router.push({
               name: 'ExamGuidance',
-              params: { examRoomId: info.examRoomId },
+              params: { examSiteId: examSiteId },
             })
           "
         >

+ 8 - 1
src/pages/examGuidance.vue

@@ -19,7 +19,7 @@ function cutNbsp(ct) {
 }
 //获取考场引导
 function _getRoomGuide() {
-  getRoomGuide({ examRoomId: route.params?.examRoomId }).then((res) => {
+  getRoomGuide({ examSiteId: route.params?.examSiteId }).then((res) => {
     ct.value = res?.content || "";
   });
 }
@@ -28,6 +28,13 @@ _getRoomGuide();
 <style lang="less" scoped>
 .exam-guidance {
   background: #fff;
+  background: #fff;
+  .title {
+    font-weight: bold;
+    font-size: 18px;
+    text-align: center;
+    margin-top: 20px;
+  }
   .content {
     margin-top: 20px;
   }

+ 2 - 2
src/pages/examNotice.vue

@@ -19,7 +19,7 @@ function cutNbsp(ct) {
 }
 //获取考试须知
 function _getExamNotice() {
-  getExamNotice({ applyTaskId: route.params?.applyId }).then((res) => {
+  getExamNotice({ applyTaskId: route.params?.applyTaskId }).then((res) => {
     ct.value = res?.content || "";
   });
 }
@@ -32,7 +32,7 @@ _getExamNotice();
     font-weight: bold;
     font-size: 18px;
     text-align: center;
-    margin-top: 25px;
+    margin-top: 20px;
   }
   .content {
     margin-top: 20px;

+ 2 - 2
src/router/routes.js

@@ -64,13 +64,13 @@ const routes = [
     meta: { title: "预约订单" },
   },
   {
-    path: "/examNotice/:applyId",
+    path: "/examNotice/:applyTaskId",
     name: "ExamNotice",
     component: () => import("@/pages/examNotice.vue"),
     meta: { title: "考试须知" },
   },
   {
-    path: "/examGuidance/:examRoomId",
+    path: "/examGuidance/:examSiteId",
     name: "ExamGuidance",
     component: () => import("@/pages/examGuidance.vue"),
     meta: { title: "考场引导" },

+ 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.qmth.com.cn",
+          target: "http://192.168.10.41:8080",
+          // target: "http://apply.qmth.com.cn",
           changeOrigin: true,
           // rewrite: (path) => path.replace(new RegExp(`^${envConfig.proxy}`), ''),
         },