From b583abaeafe29ef6ca4d451f2753f15cf2c785ff Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期一, 31 三月 2025 18:00:41 +0800
Subject: [PATCH] 路由

---
 src/assets/js/config.js        |  128 ++----------------------------------------
 package-lock.json              |    2 
 src/views/chronology/index.vue |    9 +++
 src/router/index.js            |   19 +++++-
 4 files changed, 32 insertions(+), 126 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 95af1d1..659bea1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,5 +1,5 @@
 {
-  "name": "website",
+  "name": "wyyDataBase",
   "version": "0.1.0",
   "lockfileVersion": 1,
   "requires": true,
diff --git a/src/assets/js/config.js b/src/assets/js/config.js
index a1b5748..9cb9ff7 100644
--- a/src/assets/js/config.js
+++ b/src/assets/js/config.js
@@ -1,115 +1,14 @@
-// export const requestCtx = "http://182.92.203.7:3001"; // 璇锋眰鍦板潃
-// export const appId = 12;
-export const requestCtx = "https://www.tepcb.com"; // 璇锋眰鍦板潃
-export const appId = 2;
+export const requestCtx = "http://182.92.203.7:3001"; // 璇锋眰鍦板潃
+export const appId = 12;
+// export const requestCtx = "https://www.tepcb.com"; // 璇锋眰鍦板潃
+// export const appId = 2;
 export const requestTimeOut = 300000; // 璇锋眰瓒呮椂鏃堕棿
-export const tokenKey = "website-front-token";
-export const userInfoKey = "website-front-userInfo"; // 鐢ㄦ埛淇℃伅key
+export const tokenKey = "token";
+export const userInfoKey = "userInfo"; // 鐢ㄦ埛淇℃伅key
 export const appRefCode = "tourismWebsite";
 export const goodsStore = `defaultGoodsStore${appId}`; // 榛樿鍟嗗搧搴�(涔﹀煄)
-export const learnPlatformGoodsStore = `tourism_examinationsForTouristGuide`; // 瀛︿範骞冲彴搴�
-export const teachingResourceGoodsStore = `tourism_teachingResource`; // 鏁欏鏈嶅姟搴�
-export const teachingMaterialsSeriesGoodsStore = `tourism_teachingMaterialsSeries`; // 鏁欐潗濂楃郴搴�
-export const nationalPlanningTextbookGoodsStore = `tourism_nationalPlanningTextbook`; // 鍥藉瑙勫垝鏁欐潗搴�
-export const onlineCourseLibGoodsStore = `tourism_onlineCourseLib`; // 缃戠粶璇剧▼搴�
-export const galleryIndexGoodsStore = `tourism_galleryIndex`; // 鏂囨梾鍥惧簱搴�
-export const tourismLawsAndRegulationsDatabaseGoodsStore = `tourism_tourismLawsAndRegulationsDatabase`; // 鏃呮父娉曞緥娉曡鏁版嵁搴�
-export const digitalResourceLibraryGoodsStore = `tourism_digitalResourceLibrary`; // 鏁板瓧璧勬簮搴�
-export const learningPlatformGoodsStore = `tourism_learningPlatform`; // 瀛︿範骞冲彴搴�
 export const publicStore = `defaultPublicStore${appId}`; // 榛樿璧勬簮寮�鏀句粨鍌�
 export const publicRepository = `defaultPublicRepository${appId}`; // 榛樿璧勬簮寮�鏀惧簱
-export const reg_tel =
-  /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; // 鐢佃瘽鍙锋鍒�
-// export const pdfUrl = "http://182.92.203.7:3007/pdfRead/";
-// export const pdfUrl = "http://192.168.1.23:8081/pdfRead/";
-export const pdfUrl = "https://www.tepcb.com/pdfRead/";
-// export const pdfUrl = "http://192.168.3.197:8081/pdfRead/";
-// export const epubUrl = "http://182.92.203.7:3007/epubReader/#/";
-export const epubUrl = "https://www.tepcb.com/epubReader/#/";
-
-// 棰戦亾refCode
-export const refCodes = {
-  bookStore: {
-    bookCategory: "tourism_bookCategory", // 鍥句功鍒嗙被
-    bookCityBanner: {
-      top: "tourism_banner\\tourism_bookCityBannerTop",
-      left: "tourism_banner\\tourism_bookCityBannerLeft",
-      right: "tourism_banner\\tourism_bookCityBannerRight",
-    },
-    bookRecommendation: "tourism_bookRecommendation", // 鍥句功鎺ㄨ崘
-    bestsellersBooks: "tourism_bestsellersBooks", // 鐣呴攢姒�
-    newBookRecommendation: "tourism_newBookRecommendation", // 鏂颁功涓婃灦
-    newBookHotSale: "tourism_newBookHotSale", // 鏂颁功鐑崠姒�
-  },
-  teachingResource: {
-    teachingMaterialsClassification: "tourism_teachingMaterialsClassification", //鏁欏鍒嗙被
-    excellentLecture: "tourism_excellentLecture", //绮惧搧鏁欐潗
-    teachingResourceManagement: "tourism_teachingResourceManagement", //鏃呮父绠$悊
-    courseRefcode: "tourism_onlineCourseBannerLib", // 璇剧▼搴�
-  },
-  applyCourse: {
-    ClassValidityPeriod: "tourism_eachClassValidityPeriod",
-    ClassesNumber: "tourism_classesNumber",
-    ClassStudentsNumber: "tourism_eachClassStudentsNumber",
-    CourseValidityPeriod: "tourism_offerCourseValidityPeriod",
-  },
-  // 鎶曠鏂瑰紡
-  submissionMethod: "submissionMethod",
-  //鑷畾涔夋敹钘弆inkType
-  LinkType: {
-    FavoriteDownload: "FavoriteDownload",
-    FavoriteBookCity: "FavoriteBookCity", // 涔﹀煄
-    FavoriteTeachingService: "FavoriteTeachingService", //鏁欏鏈嶅姟
-    bookHistory: "bookHistory",
-    digitalResourceLibrary: "FavoriteDigitalResourceLibrary", // 鏁板瓧璧勬簮搴�
-    FavoriteLearnPlatform: "FavoriteLearnPlatform", // 瀛︿範骞冲彴
-    learnPlatformRefcode: {
-      tourism_eBookFolder: "FavoriteEbook", // 鐢靛瓙涔�
-      tourism_questionBankFolder: "FavoriteQuestionBank", //棰樺簱
-      tourism_mockExam: "FavoriteMockList", //妯¤��
-      favoriteGuideword: "FavoriteGuideword", //瀵兼父璇�
-      tourism_audioClassFolder: "FavoriteAudioList", //闊抽璇�
-      tourism_videoLessonFolder: "FavoriteMicroLesson", //瑙嗛璇�
-      tourism_microClass: "FavoriteTinyClass", //寰
-    },
-  },
-  learnPlatform: {
-    videoLessonFolder: "tourism_videoLessonFolder", //瑙嗛璇�
-    audioClassFolder: "tourism_audioClassFolder", //闊抽璇�
-    questionBankFolder: "tourism_questionBankFolder", //棰樺簱
-    mockExam: "tourism_mockExam", //妯¤��
-    ChineseTourGuide: "tourism_ChineseTourGuide", //涓枃瀵兼父璇�
-    ForeignGuideWords: "tourism_ForeignGuideWords", //鑻辫瀵兼父璇�
-    tourism: "tourism_microClass", //寰
-    eBookFolder: "tourism_eBookFolder",
-    intermediateTourGuide: "tourism_intermediateTourGuide", //涓骇鑰冭瘯
-  },
-  learnPlatformShoppingValue: {
-    videoLesson: "tourism_videoLesson", //瑙嗛璇�
-    audioClass: "tourism_audioCourse", //闊抽璇�
-    questionBank: "tourism_questionBank", //棰樺簱
-    mockExam: "tourism_mockExam", //妯¤��
-    ChineseTourGuide: "tourism_ChineseTourGuide", //涓枃瀵兼父璇�
-    ForeignGuideWords: "tourism_ForeignGuideWords", //鑻辫瀵兼父璇�
-    tourism: "tourism_microClass", //寰
-    eBook: "tourism_eBook",
-  },
-};
-
-// 棰樺瀷鏁版嵁
-export const questionType = {
-  singleChoice: "鍗曢�夐",
-  multipleChoice: "澶氶�夐",
-  judge: "鍒ゆ柇棰�",
-  shortAnswer: "绠�绛旈",
-  completion: "濉┖棰�",
-  matching: "杩炵嚎棰�",
-  classification: "鍒嗙被棰�",
-};
-
-const sampleApplicationData = {
-  eBook: null,
-};
 
 const config = {
   requestCtx,
@@ -120,19 +19,6 @@
   goodsStore,
   publicStore,
   publicRepository,
-  refCodes,
-  reg_tel,
-  sampleApplicationData,
-  pdfUrl,
-  epubUrl,
-  learnPlatformGoodsStore,
-  teachingResourceGoodsStore,
-  teachingMaterialsSeriesGoodsStore,
-  nationalPlanningTextbookGoodsStore,
-  onlineCourseLibGoodsStore,
-  galleryIndexGoodsStore,
-  tourismLawsAndRegulationsDatabaseGoodsStore,
-  digitalResourceLibraryGoodsStore,
-  learningPlatformGoodsStore,
+
 };
 export default config;
diff --git a/src/router/index.js b/src/router/index.js
index 8899791..0b29596 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -22,14 +22,14 @@
     children: [
       // 鍦ㄤ富妗嗘灦鍐�
       {
-        path: "/home",
-        name: "home",
+        path: "/chronology",
+        name: "chronology",
         meta: {
           name: "棣栭〉",
           authentication: false, // 鏄惁闇�瑕佺櫥褰曢獙璇�
           keepAlive: false // 鏄惁闇�瑕佺紦瀛�
         },
-        component: Home
+        component: ()=> import("@/views/chronology/index.vue")
       },
 
       // {
@@ -42,10 +42,21 @@
       //   component: () => import("@/views/login/login")
       // },
 
-
     ]
   },
+  
   // 涓嶅湪涓绘鏋跺唴
+
+  {
+    path: "/home",
+    name: "home",
+    meta: {
+      name: "棣栭〉",
+      authentication: false, // 鏄惁闇�瑕佺櫥褰曢獙璇�
+      keepAlive: false // 鏄惁闇�瑕佺紦瀛�
+    },
+    component: Home
+  },
   // {
   //   path: "/pdf",
   //   name: "pdf",
diff --git a/src/views/chronology/index.vue b/src/views/chronology/index.vue
new file mode 100644
index 0000000..d82ce83
--- /dev/null
+++ b/src/views/chronology/index.vue
@@ -0,0 +1,9 @@
+<template>
+  <div>骞磋氨</div>
+</template>
+
+<script>
+export default {};
+</script>
+
+<style></style>

--
Gitblit v1.9.1