diff --git a/package-lock.json b/package-lock.json index e79f5f0..237f102 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,11 @@ "echarts": "^5.5.1", "pinia": "^2.2.6", "vue": "^3.5.13", +<<<<<<< HEAD "vue-echarts": "^7.0.3", +======= + "vue-countup-v3": "^1.4.2", +>>>>>>> c263e68dd9f06fa54de5add6bfa1b7bdb129383d "vue-router": "^4.4.5" }, "devDependencies": { @@ -2221,6 +2225,11 @@ "url": "https://github.com/sponsors/mesqueeb" } }, + "node_modules/countup.js": { + "version": "2.8.0", + "resolved": "https://registry.npmmirror.com/countup.js/-/countup.js-2.8.0.tgz", + "integrity": "sha512-f7xEhX0awl4NOElHulrl4XRfKoNH3rB+qfNSZZyjSZhaAoUk6elvhH+MNxMmlmuUJ2/QNTWPSA7U4mNtIAKljQ==" + }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz", @@ -4270,6 +4279,7 @@ } } }, +<<<<<<< HEAD "node_modules/vue-demi": { "version": "0.13.11", "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.13.11.tgz", @@ -4313,6 +4323,17 @@ "@vue/runtime-core": { "optional": true } +======= + "node_modules/vue-countup-v3": { + "version": "1.4.2", + "resolved": "https://registry.npmmirror.com/vue-countup-v3/-/vue-countup-v3-1.4.2.tgz", + "integrity": "sha512-nRC65jBcdgwybxqztgd/WaK8ZN5T9ECPyiCFGYFMewCsvqdRVo1CtpT7JREcPNF837Fgu/izTSFiuzrIGD6w0A==", + "dependencies": { + "countup.js": "^2.6.2" + }, + "peerDependencies": { + "vue": "^3.0.0" +>>>>>>> c263e68dd9f06fa54de5add6bfa1b7bdb129383d } }, "node_modules/vue-router": { diff --git a/package.json b/package.json index f7be502..e3624d6 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "pinia": "^2.2.6", "vue": "^3.5.13", "vue-echarts": "^7.0.3", + "vue-countup-v3": "^1.4.2", "vue-router": "^4.4.5" }, "devDependencies": { diff --git a/src/assets/images/bg-1.png b/src/assets/images/bg-1.png new file mode 100644 index 0000000..521ee77 Binary files /dev/null and b/src/assets/images/bg-1.png differ diff --git a/src/assets/images/bg-2.png b/src/assets/images/bg-2.png new file mode 100644 index 0000000..a589835 Binary files /dev/null and b/src/assets/images/bg-2.png differ diff --git a/src/assets/images/bg-3.png b/src/assets/images/bg-3.png new file mode 100644 index 0000000..8dd0887 Binary files /dev/null and b/src/assets/images/bg-3.png differ diff --git a/src/assets/images/bg-4.png b/src/assets/images/bg-4.png new file mode 100644 index 0000000..e39f767 Binary files /dev/null and b/src/assets/images/bg-4.png differ diff --git a/src/assets/images/congestion.png b/src/assets/images/congestion.png new file mode 100644 index 0000000..5ff99d1 Binary files /dev/null and b/src/assets/images/congestion.png differ diff --git a/src/assets/images/core.png b/src/assets/images/core.png new file mode 100644 index 0000000..09819d7 Binary files /dev/null and b/src/assets/images/core.png differ diff --git a/src/assets/images/item-1.png b/src/assets/images/item-1.png new file mode 100644 index 0000000..d93ba47 Binary files /dev/null and b/src/assets/images/item-1.png differ diff --git a/src/assets/images/item-2.png b/src/assets/images/item-2.png new file mode 100644 index 0000000..19ae32d Binary files /dev/null and b/src/assets/images/item-2.png differ diff --git a/src/assets/images/more.png b/src/assets/images/more.png new file mode 100644 index 0000000..4eb2f76 Binary files /dev/null and b/src/assets/images/more.png differ diff --git a/src/assets/images/queue.png b/src/assets/images/queue.png new file mode 100644 index 0000000..b331325 Binary files /dev/null and b/src/assets/images/queue.png differ diff --git a/src/assets/images/title-2.png b/src/assets/images/title-2.png new file mode 100644 index 0000000..4fed5d1 Binary files /dev/null and b/src/assets/images/title-2.png differ diff --git a/src/assets/images/title-3.png b/src/assets/images/title-3.png new file mode 100644 index 0000000..92a2f52 Binary files /dev/null and b/src/assets/images/title-3.png differ diff --git a/src/assets/images/title-4.png b/src/assets/images/title-4.png new file mode 100644 index 0000000..d244116 Binary files /dev/null and b/src/assets/images/title-4.png differ diff --git a/src/assets/images/title-5.png b/src/assets/images/title-5.png new file mode 100644 index 0000000..16bdc24 Binary files /dev/null and b/src/assets/images/title-5.png differ diff --git a/src/assets/images/title-6.png b/src/assets/images/title-6.png new file mode 100644 index 0000000..0974abb Binary files /dev/null and b/src/assets/images/title-6.png differ diff --git a/src/components/Line/index.vue b/src/components/Line/index.vue new file mode 100644 index 0000000..814b025 --- /dev/null +++ b/src/components/Line/index.vue @@ -0,0 +1,189 @@ + + + diff --git a/src/main.js b/src/main.js index 9aadd16..0be59f0 100644 --- a/src/main.js +++ b/src/main.js @@ -3,6 +3,7 @@ import { createPinia } from 'pinia' import App from './App.vue' import router from './router' import '@/styles/reset.css' +import '@/styles/common.scss' const app = createApp(App) diff --git a/src/styles/common.scss b/src/styles/common.scss new file mode 100644 index 0000000..f72ca7c --- /dev/null +++ b/src/styles/common.scss @@ -0,0 +1,11 @@ +.flex { + display: flex; +} + +.align-end { + align-items: flex-end; +} + +.pt-20 { + padding-top: vh(20); +} diff --git a/src/views/home/components/box-1.vue b/src/views/home/components/box-1.vue index dd97f21..85f37a0 100644 --- a/src/views/home/components/box-1.vue +++ b/src/views/home/components/box-1.vue @@ -2,7 +2,12 @@
核心景区视频
- + diff --git a/src/views/home/components/gauge.vue b/src/views/home/components/gauge.vue new file mode 100644 index 0000000..0aa0d48 --- /dev/null +++ b/src/views/home/components/gauge.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 49d9f6c..6c9d7f3 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -2,20 +2,29 @@
+
奉节县旅游指挥调度中心
-
    -
  • -
  • -
  • +
+
@@ -26,19 +35,61 @@ height: 100vh; overflow: hidden; background-color: #0a254b; - .title { - width: vw(3133); - height: vh(120); - font-size: vw(48); - font-weight: 800; - text-align: center; - padding-top: vh(20); - color: #fff; - letter-spacing: vw(10); - box-sizing: border-box; - text-shadow: 0px 4px 7px rgba(0, 150, 255, 0.75); - background-image: url('@/assets/images/title.png'); - background-size: 100% 100%; + .header { + position: absolute; + left: vw(326); + .title { + width: vw(3133); + height: vh(120); + font-size: vw(48); + font-weight: 800; + text-align: center; + padding-top: vh(20); + color: #fff; + letter-spacing: vw(10); + box-sizing: border-box; + text-shadow: 0px 4px 7px rgba(0, 150, 255, 0.75); + background-image: url('@/assets/images/title.png'); + background-size: 100% 100%; + } + .nav-left { + position: absolute; + left: vw(630); + top: vh(34); + display: flex; + &-item { + cursor: pointer; + margin-left: vh(-10); + width: vw(210); + height: vh(56); + padding-top: vh(10); + font-weight: 600; + font-size: vw(28); + text-align: center; + color: rgba(208, 236, 255, 0.9); + background-image: url('@/assets/images/title-2.png'); + background-size: 100% 100%; + } + } + .nav-right { + position: absolute; + right: vw(424); + top: vh(34); + display: flex; + &-item { + cursor: pointer; + margin-right: vh(-10); + width: vw(210); + height: vh(56); + padding-top: vh(10); + font-weight: 600; + font-size: vw(28); + text-align: center; + color: rgba(208, 236, 255, 0.9); + background-image: url('@/assets/images/title-3.png'); + background-size: 100% 100%; + } + } } }