Browse Source

chore: 新增静态配置

chenlei 2 years ago
parent
commit
7092142206
100 changed files with 2344 additions and 325 deletions
  1. 0 1
      components.d.ts
  2. 1 0
      package.json
  3. 464 175
      pnpm-lock.yaml
  4. 116 0
      public/__config.js
  5. 0 109
      public/_config.js
  6. 37 27
      public/config.js
  7. BIN
      public/exhibition/base/cover/yszl02c39d833c5d4cf9939e074d9e48893f.jpeg
  8. BIN
      public/exhibition/base/cover/yszl099461e6c7bf4b7aa8aeeb8112fa4469.jpeg
  9. BIN
      public/exhibition/base/cover/yszl0a6bb884d8b948b3a7ab491102bd13ed.jpeg
  10. BIN
      public/exhibition/base/cover/yszl0e002cc2224f4b258ebdbf6b522123fb.jpeg
  11. BIN
      public/exhibition/base/cover/yszl1a922cc611374e47a47933289786c4bf.jpeg
  12. BIN
      public/exhibition/base/cover/yszl1ced2d1b111f4402894b9faa81116f49.jpeg
  13. BIN
      public/exhibition/base/cover/yszl2299249690094261adf6f5941a449e4b.jpeg
  14. BIN
      public/exhibition/base/cover/yszl230e9dfc2f174107ad46328f1986afe7.jpeg
  15. BIN
      public/exhibition/base/cover/yszl2a1b8983649943a586e5cfba04041e16.jpeg
  16. BIN
      public/exhibition/base/cover/yszl2abfa45441a24573b2e2497ba898da7e.jpeg
  17. BIN
      public/exhibition/base/cover/yszl2eaa1620052f4015bdbf9a141164d5b4.jpeg
  18. BIN
      public/exhibition/base/cover/yszl35da4c2b30f9432dbb91ae3bfdf093ae.jpeg
  19. BIN
      public/exhibition/base/cover/yszl397bf930a8b04c129b623c679ae10d31.jpeg
  20. BIN
      public/exhibition/base/cover/yszl3da4b1603f8541319017b4dbe64ea234.jpeg
  21. BIN
      public/exhibition/base/cover/yszl3ee5182e1d1743ed8e0b5ed5c3fa09c7.jpeg
  22. BIN
      public/exhibition/base/cover/yszl4307b1f8adca44d7a0856edc0d853054.jpeg
  23. BIN
      public/exhibition/base/cover/yszl49dc831ad8ac4fe3a0e743affb69de9f.jpeg
  24. BIN
      public/exhibition/base/cover/yszl4afc8289c56d4cfb859989facbe0631e.jpeg
  25. BIN
      public/exhibition/base/cover/yszl4b6590f3fad844d5a79e5363c9b55dd5.jpeg
  26. BIN
      public/exhibition/base/cover/yszl4f0f1bb852fa42da98bd0472b510f837.jpeg
  27. BIN
      public/exhibition/base/cover/yszl50ba7f069dc04b05a23e3c869cb71db0.jpeg
  28. BIN
      public/exhibition/base/cover/yszl516fc9d25ab64339aed6d98defebe1e0.jpeg
  29. BIN
      public/exhibition/base/cover/yszl54c03ac5b4fc4d2b9fb040ad7a725b2d.jpeg
  30. BIN
      public/exhibition/base/cover/yszl5642c09d976743329081fe55a210b4e1.jpeg
  31. BIN
      public/exhibition/base/cover/yszl59413d5e013a44cfb1f641aa130ae3f8.jpeg
  32. BIN
      public/exhibition/base/cover/yszl616c9cffbe48496eb754b594768bb80a.jpeg
  33. BIN
      public/exhibition/base/cover/yszl63125a7b2bae4f8fb8bd79e52350a8b4.jpeg
  34. BIN
      public/exhibition/base/cover/yszl64aeed2b86d849a8a5f9cfaadd93b68b.jpeg
  35. BIN
      public/exhibition/base/cover/yszl6b14c5dcbf6a40099471b7d351bb0ee7.jpeg
  36. BIN
      public/exhibition/base/cover/yszl71d0d66efc844451a602ad9fcaf2ad0f.jpeg
  37. BIN
      public/exhibition/base/cover/yszl7567d6c8450640c9bb19540e77e769ab.jpeg
  38. BIN
      public/exhibition/base/cover/yszl762c11304c2d459091eca52fd6bdeb40.jpeg
  39. BIN
      public/exhibition/base/cover/yszl771cd9e664624656a8488acc94230603.jpeg
  40. BIN
      public/exhibition/base/cover/yszl7854013b127d465b9c1345d7aec0e353.jpeg
  41. BIN
      public/exhibition/base/cover/yszl7aa6b7735f5d400c801328114a250f1f.jpeg
  42. BIN
      public/exhibition/base/cover/yszl7ea08645f1744008a58865a0488e96c6.jpeg
  43. BIN
      public/exhibition/base/cover/yszl7f4bde2ba6cb420ba99329a97f70c10e.jpeg
  44. BIN
      public/exhibition/base/cover/yszl8060e5c2307e4599a8326abb7d27ed14.jpeg
  45. BIN
      public/exhibition/base/cover/yszl825c9def7c2744e089b9039b8cf22700.jpeg
  46. BIN
      public/exhibition/base/cover/yszl88857143504044deb2c6328aed6fa935.jpeg
  47. BIN
      public/exhibition/base/cover/yszl8beee33d9c7a4a62a0c465c82b7cdc77.jpeg
  48. BIN
      public/exhibition/base/cover/yszl9064df9ed2724ee4b33e0c56e70e86fd.jpeg
  49. BIN
      public/exhibition/base/cover/yszl90a3feb2f715426abb7dfbf1ce4d3ec5.jpeg
  50. BIN
      public/exhibition/base/cover/yszl9127a7e25b074fbe82ad20b70cedfb9b.jpeg
  51. BIN
      public/exhibition/base/cover/yszl971724d696f84d0fb498591d658be9e0.jpeg
  52. BIN
      public/exhibition/base/cover/yszl9d8e79d8eb49487da4d0e89a09bdb644.jpeg
  53. BIN
      public/exhibition/base/cover/yszl9ee6787097dd4c5fb624e99c4a5bfd3e.jpeg
  54. BIN
      public/exhibition/base/cover/yszla26132c75a024b55a512a6b8a120b8f3.jpeg
  55. BIN
      public/exhibition/base/cover/yszla3d7376f586f478ba3077b6a341a4d7c.jpeg
  56. BIN
      public/exhibition/base/cover/yszla5a76df25c574cbc98863f446a32b0a3.jpeg
  57. BIN
      public/exhibition/base/cover/yszla7de445fbc06483e8e0bf572f0e8ca1c.jpeg
  58. BIN
      public/exhibition/base/cover/yszla82452c4b13543d985aa0636eb9dd9f2.jpeg
  59. BIN
      public/exhibition/base/cover/yszlaf19f88d917245deadac23aa0d0ae389.jpeg
  60. BIN
      public/exhibition/base/cover/yszlb38920ed027946139a0217eb94ceaf26.jpeg
  61. BIN
      public/exhibition/base/cover/yszlb7d3992b99c344929819f401ca1e5694.jpeg
  62. BIN
      public/exhibition/base/cover/yszlbdbd58506d3745f58779012d8959adda.jpeg
  63. BIN
      public/exhibition/base/cover/yszlc0ed1b95c89e4bebaa98ec72fbc5cfac.jpeg
  64. BIN
      public/exhibition/base/cover/yszlc17f61a60d114663a56e3d036c819c17.jpeg
  65. BIN
      public/exhibition/base/cover/yszlc2807e573f5f48cfaeb1b868627eae2c.jpeg
  66. BIN
      public/exhibition/base/cover/yszlc4b212454b224015820b885c05cb1152.jpeg
  67. BIN
      public/exhibition/base/cover/yszlc4da9a457c234266946c75bb8d283cbf.jpeg
  68. BIN
      public/exhibition/base/cover/yszlc6910ed146e2401ca0286ddc4aed8531.jpeg
  69. BIN
      public/exhibition/base/cover/yszlc96851bd64704aa286bef73b031111d8.jpeg
  70. BIN
      public/exhibition/base/cover/yszlcddc92231e1c4353a6bc6bb59b49797e.jpeg
  71. BIN
      public/exhibition/base/cover/yszld57b539308864dafbc85bd2cd341ac5c.jpeg
  72. BIN
      public/exhibition/base/cover/yszldde50153775f48069d88a7d5d6cef0d3.jpeg
  73. BIN
      public/exhibition/base/cover/yszle87e2e1b5d7440b98220bf87faf0e09a.jpeg
  74. BIN
      public/exhibition/base/cover/yszle9af5e0aac594148831f5ce088d59c22.jpeg
  75. BIN
      public/exhibition/base/cover/yszlf6d30391435b4290b13ac968afdef3ad.jpeg
  76. BIN
      public/exhibition/base/cover/yszlf98211b3dfd04c328b967707f5a12c54.jpeg
  77. BIN
      public/exhibition/base/cover/yszlfbb114b831e34449a244abadf64845dd.jpeg
  78. BIN
      public/exhibition/inZ/thumb/20230715_1325397553.jpeg
  79. BIN
      public/exhibition/inZ/thumb/20230718_1032531521.jpg
  80. BIN
      public/exhibition/inZ/thumb/20230726_1503365453.png
  81. BIN
      public/exhibition/inZ/thumb/20230727_1729045826.png
  82. BIN
      public/exhibition/inZ/thumb/20230727_1803533701.jpg
  83. BIN
      public/exhibition/inZ/thumb/20230727_1929498712.jpg
  84. BIN
      public/exhibition/inZ/thumb/20230727_2008186943.jpg
  85. BIN
      public/exhibition/inZ/thumb/20230727_2113453383.jpg
  86. BIN
      public/exhibition/inZ/thumb/20230727_2115021014.jpg
  87. BIN
      public/exhibition/inZ/thumb/20230727_2129111465.png
  88. BIN
      public/exhibition/inZ/thumb/20230731_0927430958.jpg
  89. BIN
      public/exhibition/inZ/thumb/20230731_0951563439.jpg
  90. BIN
      public/exhibition/inZ/thumb/20230731_1003065231.jpg
  91. BIN
      public/exhibition/inZ/thumb/20230731_1008547872.jpg
  92. 170 0
      public/getCity-data.json
  93. 20 0
      public/limit.json
  94. 1493 0
      public/pageCityList-data.json
  95. 25 9
      src/App.vue
  96. 9 2
      src/api/index.ts
  97. 2 0
      src/api/types.ts
  98. 5 2
      src/components/screen-savers/index.vue
  99. 2 0
      src/global.d.ts
  100. 0 0
      src/router/index.ts

+ 0 - 1
components.d.ts

@@ -12,7 +12,6 @@ declare module 'vue' {
     ElCarousel: typeof import('element-plus/es')['ElCarousel']
     ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
-    ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
     ElDialog: typeof import('element-plus/es')['ElDialog']
     ElForm: typeof import('element-plus/es')['ElForm']
     ElFormItem: typeof import('element-plus/es')['ElFormItem']

+ 1 - 0
package.json

@@ -17,6 +17,7 @@
     "core-js": "^3.8.3",
     "dayjs": "^1.11.9",
     "element-plus": "^2.3.8",
+    "is-online": "^10.0.0",
     "lodash": "^4.17.21",
     "vue": "^3.2.13",
     "vue-class-component": "^8.0.0-0",

File diff suppressed because it is too large
+ 464 - 175
pnpm-lock.yaml


+ 116 - 0
public/__config.js

@@ -0,0 +1,116 @@
+// 场馆 Record<场馆id, string>
+museum = { 3: "苏州博物馆(本馆),苏州博物馆(西馆)" };
+
+// 接口地址
+VUE_APP_BACKEND_URL = "http://192.168.20.245:8051";
+
+// 云游景区
+cloudScenicUrl =
+  "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area" +
+  "?T=" +
+  Date.now();
+
+// 单位
+company = "江苏省文化和旅游厅";
+
+// 预约场馆-预约时间段
+MUSEUM_LIST_TIME = {
+  1: ["上午", "下午"],
+  2: ["上午", "下午"],
+  3: ["上午", "下午", "晚上"],
+};
+
+// 云游景区 url 配置
+SCENIC_MUSEUM_POS = [
+  {
+    id: 37,
+    name: "徐州市",
+    top: 136,
+    left: 300,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320300",
+  },
+  {
+    id: 47,
+    name: "宿迁市",
+    left: 400,
+    top: 227,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321300",
+  },
+  {
+    id: 41,
+    name: "连云港市",
+    left: 550,
+    top: 60,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320700",
+  },
+  {
+    id: 42,
+    name: "淮安市",
+    left: 525,
+    top: 270,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320800",
+  },
+  {
+    id: 43,
+    name: "盐城市",
+    top: 300,
+    left: 710,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320900",
+  },
+  {
+    id: 44,
+    name: "扬州市",
+    left: 570,
+    top: 380,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321000",
+  },
+  {
+    id: 46,
+    name: "泰州市",
+    left: 700,
+    top: 585,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321200",
+  },
+  {
+    id: 35,
+    name: "南京市",
+    left: 404,
+    top: 677,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320100",
+  },
+  {
+    id: 45,
+    name: "镇江市",
+    left: 555,
+    top: 665,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321100",
+  },
+  {
+    id: 40,
+    name: "南通市",
+    left: 882,
+    top: 616,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320600",
+  },
+  {
+    id: 38,
+    name: "常州市",
+    left: 610,
+    top: 770,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320400",
+  },
+  {
+    id: 36,
+    name: "无锡市",
+    left: 750,
+    top: 800,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320200",
+  },
+  {
+    id: 39,
+    name: "苏州市",
+    left: 875,
+    top: 800,
+    url: "http://192.168.9.78:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320500",
+  },
+];

+ 0 - 109
public/_config.js

@@ -1,109 +0,0 @@
-// 场馆 Record<场馆id, string>
-museum = { 3: "苏州博物馆(本馆),苏州博物馆(西馆)" };
-
-// 接口地址
-VUE_APP_BACKEND_URL = "http://114.217.51.225:7077";
-
-// 云游景区
-cloudScenicUrl =
-  "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area" +
-  "?T=" +
-  Date.now();
-
-// 单位
-company = "江苏省文化和旅游厅";
-
-// 云游景区 url 配置
-SCENIC_MUSEUM_POS = [
-  {
-    id: 37,
-    name: "徐州市",
-    top: 133,
-    left: 317,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320300",
-  },
-  {
-    id: 47,
-    name: "宿迁市",
-    left: 416,
-    top: 251,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321300",
-  },
-  {
-    id: 41,
-    name: "连云港市",
-    left: 570,
-    top: 82,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320700",
-  },
-  {
-    id: 42,
-    name: "淮安市",
-    left: 531,
-    top: 302,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320800",
-  },
-  {
-    id: 43,
-    name: "盐城市",
-    top: 304,
-    left: 719,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320900",
-  },
-  {
-    id: 44,
-    name: "扬州市",
-    left: 587,
-    top: 392,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321000",
-  },
-  {
-    id: 46,
-    name: "泰州市",
-    left: 712,
-    top: 605,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321200",
-  },
-  {
-    id: 35,
-    name: "南京市",
-    left: 422,
-    top: 690,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320100",
-  },
-  {
-    id: 45,
-    name: "镇江市",
-    left: 583,
-    top: 675,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321100",
-  },
-  {
-    id: 40,
-    name: "南通市",
-    left: 896,
-    top: 647,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320600",
-  },
-  {
-    id: 38,
-    name: "常州市",
-    left: 633,
-    top: 800,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320400",
-  },
-  {
-    id: 36,
-    name: "无锡市",
-    left: 767,
-    top: 819,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320200",
-  },
-  {
-    id: 39,
-    name: "苏州市",
-    left: 888,
-    top: 859,
-    url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320500",
-  },
-];

+ 37 - 27
public/config.js

@@ -1,8 +1,11 @@
 // 场馆 Record<场馆id, string>
 museum = { 3: "苏州博物馆(本馆),苏州博物馆(西馆)" };
 
+// 是否开启预约调试弹窗
+venueDebug = false;
+
 // 接口地址
-VUE_APP_BACKEND_URL = "http://192.168.20.245:8051";
+VUE_APP_BACKEND_URL = "http://114.217.51.225:7077";
 
 // 云游景区
 cloudScenicUrl =
@@ -13,97 +16,104 @@ cloudScenicUrl =
 // 单位
 company = "江苏省文化和旅游厅";
 
+// 预约场馆-预约时间段
+MUSEUM_LIST_TIME = {
+  1: ["上午", "下午"],
+  2: ["上午", "下午"],
+  3: ["上午", "下午", "晚上"],
+};
+
 // 云游景区 url 配置
 SCENIC_MUSEUM_POS = [
   {
     id: 37,
     name: "徐州市",
-    top: 136,
-    left: 300,
+    top: 133,
+    left: 317,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320300",
   },
   {
     id: 47,
     name: "宿迁市",
-    left: 400,
-    top: 227,
+    left: 416,
+    top: 251,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321300",
   },
   {
     id: 41,
     name: "连云港市",
-    left: 550,
-    top: 60,
+    left: 570,
+    top: 82,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320700",
   },
   {
     id: 42,
     name: "淮安市",
-    left: 525,
-    top: 270,
+    left: 531,
+    top: 302,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320800",
   },
   {
     id: 43,
     name: "盐城市",
-    top: 300,
-    left: 710,
+    top: 304,
+    left: 719,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320900",
   },
   {
     id: 44,
     name: "扬州市",
-    left: 570,
-    top: 380,
+    left: 587,
+    top: 392,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321000",
   },
   {
     id: 46,
     name: "泰州市",
-    left: 700,
-    top: 585,
+    left: 712,
+    top: 605,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321200",
   },
   {
     id: 35,
     name: "南京市",
-    left: 404,
-    top: 677,
+    left: 422,
+    top: 690,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320100",
   },
   {
     id: 45,
     name: "镇江市",
-    left: 555,
-    top: 665,
+    left: 583,
+    top: 675,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=321100",
   },
   {
     id: 40,
     name: "南通市",
-    left: 882,
-    top: 616,
+    left: 896,
+    top: 647,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320600",
   },
   {
     id: 38,
     name: "常州市",
-    left: 610,
-    top: 770,
+    left: 633,
+    top: 800,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320400",
   },
   {
     id: 36,
     name: "无锡市",
-    left: 750,
-    top: 800,
+    left: 767,
+    top: 819,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320200",
   },
   {
     id: 39,
     name: "苏州市",
-    left: 875,
-    top: 800,
+    left: 888,
+    top: 859,
     url: "http://127.0.0.1:18080/ms-mechanism-bs/default/on-cloud-scenic-area?areaCode=320500",
   },
 ];

BIN
public/exhibition/base/cover/yszl02c39d833c5d4cf9939e074d9e48893f.jpeg


BIN
public/exhibition/base/cover/yszl099461e6c7bf4b7aa8aeeb8112fa4469.jpeg


BIN
public/exhibition/base/cover/yszl0a6bb884d8b948b3a7ab491102bd13ed.jpeg


BIN
public/exhibition/base/cover/yszl0e002cc2224f4b258ebdbf6b522123fb.jpeg


BIN
public/exhibition/base/cover/yszl1a922cc611374e47a47933289786c4bf.jpeg


BIN
public/exhibition/base/cover/yszl1ced2d1b111f4402894b9faa81116f49.jpeg


BIN
public/exhibition/base/cover/yszl2299249690094261adf6f5941a449e4b.jpeg


BIN
public/exhibition/base/cover/yszl230e9dfc2f174107ad46328f1986afe7.jpeg


BIN
public/exhibition/base/cover/yszl2a1b8983649943a586e5cfba04041e16.jpeg


BIN
public/exhibition/base/cover/yszl2abfa45441a24573b2e2497ba898da7e.jpeg


BIN
public/exhibition/base/cover/yszl2eaa1620052f4015bdbf9a141164d5b4.jpeg


BIN
public/exhibition/base/cover/yszl35da4c2b30f9432dbb91ae3bfdf093ae.jpeg


BIN
public/exhibition/base/cover/yszl397bf930a8b04c129b623c679ae10d31.jpeg


BIN
public/exhibition/base/cover/yszl3da4b1603f8541319017b4dbe64ea234.jpeg


BIN
public/exhibition/base/cover/yszl3ee5182e1d1743ed8e0b5ed5c3fa09c7.jpeg


BIN
public/exhibition/base/cover/yszl4307b1f8adca44d7a0856edc0d853054.jpeg


BIN
public/exhibition/base/cover/yszl49dc831ad8ac4fe3a0e743affb69de9f.jpeg


BIN
public/exhibition/base/cover/yszl4afc8289c56d4cfb859989facbe0631e.jpeg


BIN
public/exhibition/base/cover/yszl4b6590f3fad844d5a79e5363c9b55dd5.jpeg


BIN
public/exhibition/base/cover/yszl4f0f1bb852fa42da98bd0472b510f837.jpeg


BIN
public/exhibition/base/cover/yszl50ba7f069dc04b05a23e3c869cb71db0.jpeg


BIN
public/exhibition/base/cover/yszl516fc9d25ab64339aed6d98defebe1e0.jpeg


BIN
public/exhibition/base/cover/yszl54c03ac5b4fc4d2b9fb040ad7a725b2d.jpeg


BIN
public/exhibition/base/cover/yszl5642c09d976743329081fe55a210b4e1.jpeg


BIN
public/exhibition/base/cover/yszl59413d5e013a44cfb1f641aa130ae3f8.jpeg


BIN
public/exhibition/base/cover/yszl616c9cffbe48496eb754b594768bb80a.jpeg


BIN
public/exhibition/base/cover/yszl63125a7b2bae4f8fb8bd79e52350a8b4.jpeg


BIN
public/exhibition/base/cover/yszl64aeed2b86d849a8a5f9cfaadd93b68b.jpeg


BIN
public/exhibition/base/cover/yszl6b14c5dcbf6a40099471b7d351bb0ee7.jpeg


BIN
public/exhibition/base/cover/yszl71d0d66efc844451a602ad9fcaf2ad0f.jpeg


BIN
public/exhibition/base/cover/yszl7567d6c8450640c9bb19540e77e769ab.jpeg


BIN
public/exhibition/base/cover/yszl762c11304c2d459091eca52fd6bdeb40.jpeg


BIN
public/exhibition/base/cover/yszl771cd9e664624656a8488acc94230603.jpeg


BIN
public/exhibition/base/cover/yszl7854013b127d465b9c1345d7aec0e353.jpeg


BIN
public/exhibition/base/cover/yszl7aa6b7735f5d400c801328114a250f1f.jpeg


BIN
public/exhibition/base/cover/yszl7ea08645f1744008a58865a0488e96c6.jpeg


BIN
public/exhibition/base/cover/yszl7f4bde2ba6cb420ba99329a97f70c10e.jpeg


BIN
public/exhibition/base/cover/yszl8060e5c2307e4599a8326abb7d27ed14.jpeg


BIN
public/exhibition/base/cover/yszl825c9def7c2744e089b9039b8cf22700.jpeg


BIN
public/exhibition/base/cover/yszl88857143504044deb2c6328aed6fa935.jpeg


BIN
public/exhibition/base/cover/yszl8beee33d9c7a4a62a0c465c82b7cdc77.jpeg


BIN
public/exhibition/base/cover/yszl9064df9ed2724ee4b33e0c56e70e86fd.jpeg


BIN
public/exhibition/base/cover/yszl90a3feb2f715426abb7dfbf1ce4d3ec5.jpeg


BIN
public/exhibition/base/cover/yszl9127a7e25b074fbe82ad20b70cedfb9b.jpeg


BIN
public/exhibition/base/cover/yszl971724d696f84d0fb498591d658be9e0.jpeg


BIN
public/exhibition/base/cover/yszl9d8e79d8eb49487da4d0e89a09bdb644.jpeg


BIN
public/exhibition/base/cover/yszl9ee6787097dd4c5fb624e99c4a5bfd3e.jpeg


BIN
public/exhibition/base/cover/yszla26132c75a024b55a512a6b8a120b8f3.jpeg


BIN
public/exhibition/base/cover/yszla3d7376f586f478ba3077b6a341a4d7c.jpeg


BIN
public/exhibition/base/cover/yszla5a76df25c574cbc98863f446a32b0a3.jpeg


BIN
public/exhibition/base/cover/yszla7de445fbc06483e8e0bf572f0e8ca1c.jpeg


BIN
public/exhibition/base/cover/yszla82452c4b13543d985aa0636eb9dd9f2.jpeg


BIN
public/exhibition/base/cover/yszlaf19f88d917245deadac23aa0d0ae389.jpeg


BIN
public/exhibition/base/cover/yszlb38920ed027946139a0217eb94ceaf26.jpeg


BIN
public/exhibition/base/cover/yszlb7d3992b99c344929819f401ca1e5694.jpeg


BIN
public/exhibition/base/cover/yszlbdbd58506d3745f58779012d8959adda.jpeg


BIN
public/exhibition/base/cover/yszlc0ed1b95c89e4bebaa98ec72fbc5cfac.jpeg


BIN
public/exhibition/base/cover/yszlc17f61a60d114663a56e3d036c819c17.jpeg


BIN
public/exhibition/base/cover/yszlc2807e573f5f48cfaeb1b868627eae2c.jpeg


BIN
public/exhibition/base/cover/yszlc4b212454b224015820b885c05cb1152.jpeg


BIN
public/exhibition/base/cover/yszlc4da9a457c234266946c75bb8d283cbf.jpeg


BIN
public/exhibition/base/cover/yszlc6910ed146e2401ca0286ddc4aed8531.jpeg


BIN
public/exhibition/base/cover/yszlc96851bd64704aa286bef73b031111d8.jpeg


BIN
public/exhibition/base/cover/yszlcddc92231e1c4353a6bc6bb59b49797e.jpeg


BIN
public/exhibition/base/cover/yszld57b539308864dafbc85bd2cd341ac5c.jpeg


BIN
public/exhibition/base/cover/yszldde50153775f48069d88a7d5d6cef0d3.jpeg


BIN
public/exhibition/base/cover/yszle87e2e1b5d7440b98220bf87faf0e09a.jpeg


BIN
public/exhibition/base/cover/yszle9af5e0aac594148831f5ce088d59c22.jpeg


BIN
public/exhibition/base/cover/yszlf6d30391435b4290b13ac968afdef3ad.jpeg


BIN
public/exhibition/base/cover/yszlf98211b3dfd04c328b967707f5a12c54.jpeg


BIN
public/exhibition/base/cover/yszlfbb114b831e34449a244abadf64845dd.jpeg


BIN
public/exhibition/inZ/thumb/20230715_1325397553.jpeg


BIN
public/exhibition/inZ/thumb/20230718_1032531521.jpg


BIN
public/exhibition/inZ/thumb/20230726_1503365453.png


BIN
public/exhibition/inZ/thumb/20230727_1729045826.png


BIN
public/exhibition/inZ/thumb/20230727_1803533701.jpg


BIN
public/exhibition/inZ/thumb/20230727_1929498712.jpg


BIN
public/exhibition/inZ/thumb/20230727_2008186943.jpg


BIN
public/exhibition/inZ/thumb/20230727_2113453383.jpg


BIN
public/exhibition/inZ/thumb/20230727_2115021014.jpg


BIN
public/exhibition/inZ/thumb/20230727_2129111465.png


BIN
public/exhibition/inZ/thumb/20230731_0927430958.jpg


BIN
public/exhibition/inZ/thumb/20230731_0951563439.jpg


BIN
public/exhibition/inZ/thumb/20230731_1003065231.jpg


BIN
public/exhibition/inZ/thumb/20230731_1008547872.jpg


+ 170 - 0
public/getCity-data.json

@@ -0,0 +1,170 @@
+[
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 34,
+            "name": "省直",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 35,
+            "name": "南京市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 36,
+            "name": "无锡市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 37,
+            "name": "徐州市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 38,
+            "name": "常州市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 39,
+            "name": "苏州市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 40,
+            "name": "南通市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 41,
+            "name": "连云港市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 42,
+            "name": "淮安市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 43,
+            "name": "盐城市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 44,
+            "name": "扬州市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 45,
+            "name": "镇江市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 46,
+            "name": "泰州市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        },
+        {
+            "createTime": null,
+            "creatorId": null,
+            "creatorName": "",
+            "display": 1,
+            "id": 47,
+            "name": "宿迁市",
+            "parentId": 9,
+            "sort": null,
+            "type": "city",
+            "updateTime": null
+        }
+    ]

+ 20 - 0
public/limit.json

@@ -0,0 +1,20 @@
+{
+  "江苏省文化和旅游厅": {
+    "南京博物院": {
+      "2023-08-15": 14,
+      "2023-08-16": 20,
+      "2023-08-17": 20,
+      "2023-08-18": 20,
+      "2023-08-19": 50,
+      "2023-08-20": 50
+    },
+    "扬州中国大运河博物馆": {
+      "2023-08-15": 15,
+      "2023-08-16": 15,
+      "2023-08-17": 15,
+      "2023-08-18": 15,
+      "2023-08-19": 30,
+      "2023-08-20": 30
+    }
+  }
+}

File diff suppressed because it is too large
+ 1493 - 0
public/pageCityList-data.json


+ 25 - 9
src/App.vue

@@ -13,7 +13,7 @@
     </router-view>
 
     <ScreenSavers
-      v-if="showScreenSavers && screenList.length > 0"
+      v-if="showScreenSavers && screenList.length > 0 && store.getters.isOnline"
       :autoPlay="autoPlay"
       :list="screenList"
       @onClick="closeScreen"
@@ -28,6 +28,7 @@ import { ScreenSavers } from "@/components";
 import { getScreenConfigApi } from "./api";
 import { GetScreenConfigApiResponse } from "./api/types";
 import { useStore } from "vuex";
+import { isOnlineFn } from "./utils";
 
 const store = useStore();
 const showScreenSavers = ref(false);
@@ -36,9 +37,31 @@ const autoPlay = ref(false);
 const screenList = ref<GetScreenConfigApiResponse["img"]>([]);
 
 onMounted(() => {
-  getScreenConfig();
+  getOnline().then((state) => {
+    state && getScreenConfig();
+  });
+
+  setInterval(() => {
+    getOnline().then((state) => {
+      state && getScreenConfig();
+    });
+  }, 5000);
+
+  setInterval(() => {
+    store.commit("setTime", store.state.time + 1);
+    if (store.state.time >= showScreenTime.value && !showScreenSavers.value) {
+      showScreenSavers.value = true;
+    }
+  }, 1000);
 });
 
+const getOnline = async () => {
+  const state = await isOnlineFn();
+  console.log("当前接口状态:", state);
+  store.commit("setIsOnline", state);
+  return state;
+};
+
 const clearTimer = () => {
   store.dispatch("clearTime");
 };
@@ -58,13 +81,6 @@ const getScreenConfig = async () => {
       ...i,
       thumb: window.VUE_APP_BACKEND_URL + i.thumb,
     }));
-
-  setInterval(() => {
-    store.commit("setTime", store.state.time + 1);
-    if (store.state.time >= showScreenTime.value && !showScreenSavers.value) {
-      showScreenSavers.value = true;
-    }
-  }, 1000);
 };
 </script>
 

+ 9 - 2
src/api/index.ts

@@ -31,9 +31,16 @@ export const getMuseumDetailApi = (id: string) => {
 };
 
 export const reservationVenueApi = (data: any) => {
-  return service.post("/api/show/book/save", data);
+  // @ts-ignore
+  return service.post("/api/show/book/save", data, {
+    hidden: true,
+  });
 };
 
-export const getScreenConfigApi = () => {
+export const getVenueNumApi = (data: any) => {
+  return service.post(`/api/show/book/checkNum`, data);
+};
+
+export const getScreenConfigApi = async () => {
   return service.get<GetScreenConfigApiResponse>("/api/show/screen/getConfig");
 };

+ 2 - 0
src/api/types.ts

@@ -13,6 +13,8 @@ export interface CityMuseumItemType {
   parentName: string;
   openTime: string;
   description: string;
+  cityId: number;
+  type: string;
 }
 
 export interface GetCityMuseumListApiRequest {

+ 5 - 2
src/components/screen-savers/index.vue

@@ -6,12 +6,15 @@
       :autoplay="autoPlay"
       :interval="5000"
     >
-      <el-carousel-item v-for="item in list" :key="item.id">
+      <el-carousel-item
+        v-for="item in list"
+        :key="item.id"
+        @click="handleClick"
+      >
         <el-image
           style="width: 100%; height: 100%"
           :src="item.thumb"
           fit="cover"
-          @click="handleClick"
         />
       </el-carousel-item>
     </el-carousel>

+ 2 - 0
src/global.d.ts

@@ -10,4 +10,6 @@ interface Window {
     url: string;
   }[];
   VUE_APP_BACKEND_URL: string;
+  venueDebug: boolean;
+  MUSEUM_LIST_TIME: Record<number, string[]>;
 }

+ 0 - 0
src/router/index.ts


Some files were not shown because too many files changed in this diff