diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43d9033 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +.DS_Store +node_modules +/dist + + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? \ No newline at end of file diff --git a/README.md b/README.md index 9e10093..2ef3e4e 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,6 @@ ## 项目适配 使用postcss-px2rem px2rem-loader进行rem适配 https://blog.csdn.net/Refuelefforts/article/details/113933784 实现原理:每次打包,webpack通过使用插件postcss-px2rem,帮我们自动将px单位转换成rem单位 -前方有坑:UI框架部分组件使用JavaScript将css作为内联样式直接写在html标签内,打包适配时不会读取相关css,所以要配置相关样式,在style中需要" !important "进行样式覆盖。 +前方有坑:UI框架部分组件使用JavaScript将css作为内联样式直接写在html标签内,打包适配时不会读取相关css,所以要配置相关样式,在style中需要" !important "进行样式覆盖。 + +## rem作为单位 元素是根据根元素字体大小来计算 rem高度不适配解决方案 媒体查询 vw vh diff --git a/package-lock.json b/package-lock.json index 2383b34..bf46a64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1902,6 +1902,17 @@ "webpack-merge": "^4.2.2" }, "dependencies": { + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, "copy-webpack-plugin": { "version": "5.1.2", "resolved": "https://registry.npmmirror.com/copy-webpack-plugin/-/copy-webpack-plugin-5.1.2.tgz", @@ -1992,6 +2003,32 @@ "requires": { "minipass": "^3.1.1" } + }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.8.3", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz", + "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + }, + "dependencies": { + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + } + } } } }, @@ -3789,6 +3826,11 @@ } } }, + "comutils": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/comutils/-/comutils-1.1.19.tgz", + "integrity": "sha512-JxXB67juILiwhdLwOsYyjUqwWEhHdObI0EClOPk+JDtEuTbac59s0pxGpfCBnNNQ5JommifmcMGneW/4Cg7YWw==" + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", @@ -7200,6 +7242,11 @@ "type-check": "~0.3.2" } }, + "lib-flexible": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/lib-flexible/-/lib-flexible-0.3.2.tgz", + "integrity": "sha512-9yowMWA70tKhKdCJDaltY0mNQG4OWo7pWKScnTp9aiSxS7s20ZYlwBRE3335nweOf5qKXVC7sDxJwMPM8/MFZg==" + }, "lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz", @@ -11488,55 +11535,19 @@ "vue-style-loader": "^4.1.0" } }, - "vue-loader-v16": { - "version": "npm:vue-loader-v16@16.8.3", - "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz", - "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", - "dev": true, - "optional": true, - "requires": { - "chalk": "^4.1.0", - "hash-sum": "^2.0.0", - "loader-utils": "^2.0.0" - }, - "dependencies": { - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "hash-sum": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-2.0.0.tgz", - "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", - "dev": true, - "optional": true - }, - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "optional": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - } - } - }, "vue-router": { "version": "3.6.5", "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.6.5.tgz", "integrity": "sha512-VYXZQLtjuvKxxcshuRAwjHnciqZVoXAjTjcqBTz4rKc8qih9g9pI3hbDjmqXaHdgL3v8pV6P8Z335XvHzESxLQ==" }, + "vue-seamless-scroll": { + "version": "1.1.23", + "resolved": "https://registry.npmjs.org/vue-seamless-scroll/-/vue-seamless-scroll-1.1.23.tgz", + "integrity": "sha512-HBjUub8WwsKJzbFCrwKPDrZn4e+SSbkKgwWtjKtfLwesiFGwSsVxP44/Z6d3kpXy94qIFOiflJH6l0/9pj7SGA==", + "requires": { + "comutils": "^1.1.9" + } + }, "vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmmirror.com/vue-style-loader/-/vue-style-loader-4.1.3.tgz", diff --git a/package.json b/package.json index 3afbced..b3adb18 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "0.1.0", "private": true, "scripts": { - "build": "vue-cli-service build", "lint": "vue-cli-service lint", "dev": "vue-cli-service serve" @@ -22,6 +21,7 @@ "js-cookie": "^3.0.1", "less": "3.9.0", "less-loader": "7", + "lib-flexible": "^0.3.2", "path": "^0.12.7", "postcss-px2rem": "^0.3.0", "px2rem-loader": "^0.1.9", @@ -29,6 +29,7 @@ "vue": "^2.6.11", "vue-awesome-swiper": "3.1.3", "vue-router": "3", + "vue-seamless-scroll": "^1.1.23", "vuex": "3" }, "devDependencies": { diff --git a/public/dongtai/2_00000.png b/public/dongtai/2_00000.png deleted file mode 100644 index 086de25..0000000 Binary files a/public/dongtai/2_00000.png and /dev/null differ diff --git a/public/dongtai/2_00001.png b/public/dongtai/2_00001.png deleted file mode 100644 index 04e9158..0000000 Binary files a/public/dongtai/2_00001.png and /dev/null differ diff --git a/public/dongtai/2_00002.png b/public/dongtai/2_00002.png deleted file mode 100644 index 1cd4b98..0000000 Binary files a/public/dongtai/2_00002.png and /dev/null differ diff --git a/public/dongtai/2_00003.png b/public/dongtai/2_00003.png deleted file mode 100644 index 5817c9b..0000000 Binary files a/public/dongtai/2_00003.png and /dev/null differ diff --git a/public/dongtai/2_00004.png b/public/dongtai/2_00004.png deleted file mode 100644 index eba2e90..0000000 Binary files a/public/dongtai/2_00004.png and /dev/null differ diff --git a/public/dongtai/2_00005.png b/public/dongtai/2_00005.png deleted file mode 100644 index 0365921..0000000 Binary files a/public/dongtai/2_00005.png and /dev/null differ diff --git a/public/dongtai/2_00006.png b/public/dongtai/2_00006.png deleted file mode 100644 index f52fe2e..0000000 Binary files a/public/dongtai/2_00006.png and /dev/null differ diff --git a/public/dongtai/2_00007.png b/public/dongtai/2_00007.png deleted file mode 100644 index 1dfb51e..0000000 Binary files a/public/dongtai/2_00007.png and /dev/null differ diff --git a/public/dongtai/2_00008.png b/public/dongtai/2_00008.png deleted file mode 100644 index 4702b65..0000000 Binary files a/public/dongtai/2_00008.png and /dev/null differ diff --git a/public/dongtai/2_00009.png b/public/dongtai/2_00009.png deleted file mode 100644 index 7d178a9..0000000 Binary files a/public/dongtai/2_00009.png and /dev/null differ diff --git a/public/dongtai/2_00010.png b/public/dongtai/2_00010.png deleted file mode 100644 index cb54673..0000000 Binary files a/public/dongtai/2_00010.png and /dev/null differ diff --git a/public/dongtai/2_00011.png b/public/dongtai/2_00011.png deleted file mode 100644 index 5299405..0000000 Binary files a/public/dongtai/2_00011.png and /dev/null differ diff --git a/public/dongtai/2_00012.png b/public/dongtai/2_00012.png deleted file mode 100644 index 127ee21..0000000 Binary files a/public/dongtai/2_00012.png and /dev/null differ diff --git a/public/dongtai/2_00013.png b/public/dongtai/2_00013.png deleted file mode 100644 index e7bf89c..0000000 Binary files a/public/dongtai/2_00013.png and /dev/null differ diff --git a/public/dongtai/2_00014.png b/public/dongtai/2_00014.png deleted file mode 100644 index 48499a5..0000000 Binary files a/public/dongtai/2_00014.png and /dev/null differ diff --git a/public/dongtai/2_00015.png b/public/dongtai/2_00015.png deleted file mode 100644 index 87ce6d3..0000000 Binary files a/public/dongtai/2_00015.png and /dev/null differ diff --git a/public/dongtai/2_00016.png b/public/dongtai/2_00016.png deleted file mode 100644 index ecec9e7..0000000 Binary files a/public/dongtai/2_00016.png and /dev/null differ diff --git a/public/dongtai/2_00017.png b/public/dongtai/2_00017.png deleted file mode 100644 index dcff5d8..0000000 Binary files a/public/dongtai/2_00017.png and /dev/null differ diff --git a/public/dongtai/2_00018.png b/public/dongtai/2_00018.png deleted file mode 100644 index e623118..0000000 Binary files a/public/dongtai/2_00018.png and /dev/null differ diff --git a/public/dongtai/2_00019.png b/public/dongtai/2_00019.png deleted file mode 100644 index 11d0629..0000000 Binary files a/public/dongtai/2_00019.png and /dev/null differ diff --git a/public/dongtai/2_00020.png b/public/dongtai/2_00020.png deleted file mode 100644 index 8c2b655..0000000 Binary files a/public/dongtai/2_00020.png and /dev/null differ diff --git a/public/dongtai/2_00021.png b/public/dongtai/2_00021.png deleted file mode 100644 index ca6c09c..0000000 Binary files a/public/dongtai/2_00021.png and /dev/null differ diff --git a/public/dongtai/2_00022.png b/public/dongtai/2_00022.png deleted file mode 100644 index 6f07281..0000000 Binary files a/public/dongtai/2_00022.png and /dev/null differ diff --git a/public/dongtai/2_00023.png b/public/dongtai/2_00023.png deleted file mode 100644 index b151042..0000000 Binary files a/public/dongtai/2_00023.png and /dev/null differ diff --git a/public/dongtai/2_00024.png b/public/dongtai/2_00024.png deleted file mode 100644 index c262d27..0000000 Binary files a/public/dongtai/2_00024.png and /dev/null differ diff --git a/public/dongtai/2_00025.png b/public/dongtai/2_00025.png deleted file mode 100644 index bd419d3..0000000 Binary files a/public/dongtai/2_00025.png and /dev/null differ diff --git a/public/dongtai/2_00026.png b/public/dongtai/2_00026.png deleted file mode 100644 index 627d1da..0000000 Binary files a/public/dongtai/2_00026.png and /dev/null differ diff --git a/public/dongtai/2_00027.png b/public/dongtai/2_00027.png deleted file mode 100644 index 8970ce6..0000000 Binary files a/public/dongtai/2_00027.png and /dev/null differ diff --git a/public/dongtai/2_00028.png b/public/dongtai/2_00028.png deleted file mode 100644 index 7f239a5..0000000 Binary files a/public/dongtai/2_00028.png and /dev/null differ diff --git a/public/dongtai/2_00029.png b/public/dongtai/2_00029.png deleted file mode 100644 index e4ad78f..0000000 Binary files a/public/dongtai/2_00029.png and /dev/null differ diff --git a/public/dongtai/2_00030.png b/public/dongtai/2_00030.png deleted file mode 100644 index e1eb7dd..0000000 Binary files a/public/dongtai/2_00030.png and /dev/null differ diff --git a/public/dongtai/2_00031.png b/public/dongtai/2_00031.png deleted file mode 100644 index 9e5aae0..0000000 Binary files a/public/dongtai/2_00031.png and /dev/null differ diff --git a/public/dongtai/2_00032.png b/public/dongtai/2_00032.png deleted file mode 100644 index 225ff13..0000000 Binary files a/public/dongtai/2_00032.png and /dev/null differ diff --git a/public/dongtai/2_00033.png b/public/dongtai/2_00033.png deleted file mode 100644 index a899fc7..0000000 Binary files a/public/dongtai/2_00033.png and /dev/null differ diff --git a/public/dongtai/2_00034.png b/public/dongtai/2_00034.png deleted file mode 100644 index c7a400a..0000000 Binary files a/public/dongtai/2_00034.png and /dev/null differ diff --git a/public/dongtai/2_00035.png b/public/dongtai/2_00035.png deleted file mode 100644 index eab7d5a..0000000 Binary files a/public/dongtai/2_00035.png and /dev/null differ diff --git a/public/dongtai/2_00036.png b/public/dongtai/2_00036.png deleted file mode 100644 index 13664d7..0000000 Binary files a/public/dongtai/2_00036.png and /dev/null differ diff --git a/public/dongtai/2_00037.png b/public/dongtai/2_00037.png deleted file mode 100644 index 7c63d61..0000000 Binary files a/public/dongtai/2_00037.png and /dev/null differ diff --git a/public/dongtai/2_00038.png b/public/dongtai/2_00038.png deleted file mode 100644 index 4b9306d..0000000 Binary files a/public/dongtai/2_00038.png and /dev/null differ diff --git a/public/dongtai/2_00039.png b/public/dongtai/2_00039.png deleted file mode 100644 index 5457730..0000000 Binary files a/public/dongtai/2_00039.png and /dev/null differ diff --git a/public/dongtai/2_00040.png b/public/dongtai/2_00040.png deleted file mode 100644 index e976c1b..0000000 Binary files a/public/dongtai/2_00040.png and /dev/null differ diff --git a/public/dongtai/2_00041.png b/public/dongtai/2_00041.png deleted file mode 100644 index 68aaddd..0000000 Binary files a/public/dongtai/2_00041.png and /dev/null differ diff --git a/public/dongtai/2_00042.png b/public/dongtai/2_00042.png deleted file mode 100644 index 6af3461..0000000 Binary files a/public/dongtai/2_00042.png and /dev/null differ diff --git a/public/dongtai/2_00043.png b/public/dongtai/2_00043.png deleted file mode 100644 index ec49b3e..0000000 Binary files a/public/dongtai/2_00043.png and /dev/null differ diff --git a/public/dongtai/2_00044.png b/public/dongtai/2_00044.png deleted file mode 100644 index 64f56a2..0000000 Binary files a/public/dongtai/2_00044.png and /dev/null differ diff --git a/public/dongtai/2_00045.png b/public/dongtai/2_00045.png deleted file mode 100644 index 77cada7..0000000 Binary files a/public/dongtai/2_00045.png and /dev/null differ diff --git a/public/dongtai/2_00046.png b/public/dongtai/2_00046.png deleted file mode 100644 index 27d5d47..0000000 Binary files a/public/dongtai/2_00046.png and /dev/null differ diff --git a/public/dongtai/2_00047.png b/public/dongtai/2_00047.png deleted file mode 100644 index d7771f6..0000000 Binary files a/public/dongtai/2_00047.png and /dev/null differ diff --git a/public/dongtai/2_00048.png b/public/dongtai/2_00048.png deleted file mode 100644 index 8d69a1d..0000000 Binary files a/public/dongtai/2_00048.png and /dev/null differ diff --git a/public/dongtai/2_00049.png b/public/dongtai/2_00049.png deleted file mode 100644 index 2e8fe5c..0000000 Binary files a/public/dongtai/2_00049.png and /dev/null differ diff --git a/public/dongtai/awrni.png b/public/dongtai/awrni.png deleted file mode 100644 index 0beb92b..0000000 Binary files a/public/dongtai/awrni.png and /dev/null differ diff --git a/public/dongtai/red.png b/public/dongtai/red.png deleted file mode 100644 index a69a5d6..0000000 Binary files a/public/dongtai/red.png and /dev/null differ diff --git a/public/dongtai/上_00000.png b/public/dongtai/上_00000.png deleted file mode 100644 index 92bd833..0000000 Binary files a/public/dongtai/上_00000.png and /dev/null differ diff --git a/public/dongtai/上_00001.png b/public/dongtai/上_00001.png deleted file mode 100644 index c531539..0000000 Binary files a/public/dongtai/上_00001.png and /dev/null differ diff --git a/public/dongtai/上_00002.png b/public/dongtai/上_00002.png deleted file mode 100644 index f2ecd97..0000000 Binary files a/public/dongtai/上_00002.png and /dev/null differ diff --git a/public/dongtai/上_00003.png b/public/dongtai/上_00003.png deleted file mode 100644 index 8673731..0000000 Binary files a/public/dongtai/上_00003.png and /dev/null differ diff --git a/public/dongtai/上_00004.png b/public/dongtai/上_00004.png deleted file mode 100644 index 41180b8..0000000 Binary files a/public/dongtai/上_00004.png and /dev/null differ diff --git a/public/dongtai/上_00005.png b/public/dongtai/上_00005.png deleted file mode 100644 index 4925915..0000000 Binary files a/public/dongtai/上_00005.png and /dev/null differ diff --git a/public/dongtai/上_00006.png b/public/dongtai/上_00006.png deleted file mode 100644 index d68b1a6..0000000 Binary files a/public/dongtai/上_00006.png and /dev/null differ diff --git a/public/dongtai/上_00007.png b/public/dongtai/上_00007.png deleted file mode 100644 index 5cb6fe8..0000000 Binary files a/public/dongtai/上_00007.png and /dev/null differ diff --git a/public/dongtai/上_00008.png b/public/dongtai/上_00008.png deleted file mode 100644 index db29ef5..0000000 Binary files a/public/dongtai/上_00008.png and /dev/null differ diff --git a/public/dongtai/上_00009.png b/public/dongtai/上_00009.png deleted file mode 100644 index c3a4bb9..0000000 Binary files a/public/dongtai/上_00009.png and /dev/null differ diff --git a/public/dongtai/上_00010.png b/public/dongtai/上_00010.png deleted file mode 100644 index eda6cd7..0000000 Binary files a/public/dongtai/上_00010.png and /dev/null differ diff --git a/public/dongtai/上_00011.png b/public/dongtai/上_00011.png deleted file mode 100644 index e371c46..0000000 Binary files a/public/dongtai/上_00011.png and /dev/null differ diff --git a/public/dongtai/上_00012.png b/public/dongtai/上_00012.png deleted file mode 100644 index 7d04cb8..0000000 Binary files a/public/dongtai/上_00012.png and /dev/null differ diff --git a/public/dongtai/上_00013.png b/public/dongtai/上_00013.png deleted file mode 100644 index 426fab6..0000000 Binary files a/public/dongtai/上_00013.png and /dev/null differ diff --git a/public/dongtai/上_00014.png b/public/dongtai/上_00014.png deleted file mode 100644 index d49c20a..0000000 Binary files a/public/dongtai/上_00014.png and /dev/null differ diff --git a/public/dongtai/上_00015.png b/public/dongtai/上_00015.png deleted file mode 100644 index 012a2b0..0000000 Binary files a/public/dongtai/上_00015.png and /dev/null differ diff --git a/public/dongtai/上_00016.png b/public/dongtai/上_00016.png deleted file mode 100644 index b1202f3..0000000 Binary files a/public/dongtai/上_00016.png and /dev/null differ diff --git a/public/dongtai/上_00017.png b/public/dongtai/上_00017.png deleted file mode 100644 index e97c7f0..0000000 Binary files a/public/dongtai/上_00017.png and /dev/null differ diff --git a/public/dongtai/上_00018.png b/public/dongtai/上_00018.png deleted file mode 100644 index a4cf98a..0000000 Binary files a/public/dongtai/上_00018.png and /dev/null differ diff --git a/public/dongtai/上_00019.png b/public/dongtai/上_00019.png deleted file mode 100644 index 1cc119a..0000000 Binary files a/public/dongtai/上_00019.png and /dev/null differ diff --git a/public/dongtai/上_00020.png b/public/dongtai/上_00020.png deleted file mode 100644 index 1561dbf..0000000 Binary files a/public/dongtai/上_00020.png and /dev/null differ diff --git a/public/dongtai/上_00021.png b/public/dongtai/上_00021.png deleted file mode 100644 index 4aa8598..0000000 Binary files a/public/dongtai/上_00021.png and /dev/null differ diff --git a/public/dongtai/上_00022.png b/public/dongtai/上_00022.png deleted file mode 100644 index ee4893e..0000000 Binary files a/public/dongtai/上_00022.png and /dev/null differ diff --git a/public/dongtai/上_00023.png b/public/dongtai/上_00023.png deleted file mode 100644 index b46dbfc..0000000 Binary files a/public/dongtai/上_00023.png and /dev/null differ diff --git a/public/dongtai/上_00024.png b/public/dongtai/上_00024.png deleted file mode 100644 index a4ff770..0000000 Binary files a/public/dongtai/上_00024.png and /dev/null differ diff --git a/public/dongtai/上_00025.png b/public/dongtai/上_00025.png deleted file mode 100644 index afe9541..0000000 Binary files a/public/dongtai/上_00025.png and /dev/null differ diff --git a/public/dongtai/上_00026.png b/public/dongtai/上_00026.png deleted file mode 100644 index f3c0fbd..0000000 Binary files a/public/dongtai/上_00026.png and /dev/null differ diff --git a/public/dongtai/上_00027.png b/public/dongtai/上_00027.png deleted file mode 100644 index ceaa5b4..0000000 Binary files a/public/dongtai/上_00027.png and /dev/null differ diff --git a/public/dongtai/上_00028.png b/public/dongtai/上_00028.png deleted file mode 100644 index b478258..0000000 Binary files a/public/dongtai/上_00028.png and /dev/null differ diff --git a/public/dongtai/上_00029.png b/public/dongtai/上_00029.png deleted file mode 100644 index d9de30c..0000000 Binary files a/public/dongtai/上_00029.png and /dev/null differ diff --git a/public/dongtai/上_00030.png b/public/dongtai/上_00030.png deleted file mode 100644 index 8c04346..0000000 Binary files a/public/dongtai/上_00030.png and /dev/null differ diff --git a/public/dongtai/上_00031.png b/public/dongtai/上_00031.png deleted file mode 100644 index e840dec..0000000 Binary files a/public/dongtai/上_00031.png and /dev/null differ diff --git a/public/dongtai/上_00032.png b/public/dongtai/上_00032.png deleted file mode 100644 index 8c5b0ac..0000000 Binary files a/public/dongtai/上_00032.png and /dev/null differ diff --git a/public/dongtai/上_00033.png b/public/dongtai/上_00033.png deleted file mode 100644 index 50b7ba5..0000000 Binary files a/public/dongtai/上_00033.png and /dev/null differ diff --git a/public/dongtai/上_00034.png b/public/dongtai/上_00034.png deleted file mode 100644 index 6ae2a37..0000000 Binary files a/public/dongtai/上_00034.png and /dev/null differ diff --git a/public/dongtai/上_00035.png b/public/dongtai/上_00035.png deleted file mode 100644 index bd84705..0000000 Binary files a/public/dongtai/上_00035.png and /dev/null differ diff --git a/public/dongtai/上_00036.png b/public/dongtai/上_00036.png deleted file mode 100644 index 7525c68..0000000 Binary files a/public/dongtai/上_00036.png and /dev/null differ diff --git a/public/dongtai/上_00037.png b/public/dongtai/上_00037.png deleted file mode 100644 index 3cb3ec4..0000000 Binary files a/public/dongtai/上_00037.png and /dev/null differ diff --git a/public/dongtai/上_00038.png b/public/dongtai/上_00038.png deleted file mode 100644 index 0982ce5..0000000 Binary files a/public/dongtai/上_00038.png and /dev/null differ diff --git a/public/dongtai/上_00039.png b/public/dongtai/上_00039.png deleted file mode 100644 index 7596142..0000000 Binary files a/public/dongtai/上_00039.png and /dev/null differ diff --git a/public/dongtai/上_00040.png b/public/dongtai/上_00040.png deleted file mode 100644 index 66427ab..0000000 Binary files a/public/dongtai/上_00040.png and /dev/null differ diff --git a/public/dongtai/上_00041.png b/public/dongtai/上_00041.png deleted file mode 100644 index e338b86..0000000 Binary files a/public/dongtai/上_00041.png and /dev/null differ diff --git a/public/dongtai/上_00042.png b/public/dongtai/上_00042.png deleted file mode 100644 index 5dadec7..0000000 Binary files a/public/dongtai/上_00042.png and /dev/null differ diff --git a/public/dongtai/上_00043.png b/public/dongtai/上_00043.png deleted file mode 100644 index 24051a9..0000000 Binary files a/public/dongtai/上_00043.png and /dev/null differ diff --git a/public/dongtai/上_00044.png b/public/dongtai/上_00044.png deleted file mode 100644 index 078276e..0000000 Binary files a/public/dongtai/上_00044.png and /dev/null differ diff --git a/public/dongtai/上_00045.png b/public/dongtai/上_00045.png deleted file mode 100644 index b55fccd..0000000 Binary files a/public/dongtai/上_00045.png and /dev/null differ diff --git a/public/dongtai/上_00046.png b/public/dongtai/上_00046.png deleted file mode 100644 index 4ba9c2b..0000000 Binary files a/public/dongtai/上_00046.png and /dev/null differ diff --git a/public/dongtai/上_00047.png b/public/dongtai/上_00047.png deleted file mode 100644 index 88b940d..0000000 Binary files a/public/dongtai/上_00047.png and /dev/null differ diff --git a/public/images/3.png b/public/images/3.png new file mode 100644 index 0000000..9e1b0dd Binary files /dev/null and b/public/images/3.png differ diff --git a/public/images/allseal-bg.png b/public/images/allseal-bg.png new file mode 100644 index 0000000..a80e5cb Binary files /dev/null and b/public/images/allseal-bg.png differ diff --git a/public/images/base-big.png b/public/images/base-big.png new file mode 100644 index 0000000..c6423e8 Binary files /dev/null and b/public/images/base-big.png differ diff --git a/public/images/base-icon.png b/public/images/base-icon.png new file mode 100644 index 0000000..29d1884 Binary files /dev/null and b/public/images/base-icon.png differ diff --git a/public/images/base-small.png b/public/images/base-small.png new file mode 100644 index 0000000..cf3cab7 Binary files /dev/null and b/public/images/base-small.png differ diff --git a/public/images/bg.png b/public/images/bg.png new file mode 100644 index 0000000..a4b2d4b Binary files /dev/null and b/public/images/bg.png differ diff --git a/public/images/bg_title.png b/public/images/bg_title.png new file mode 100644 index 0000000..d87499b Binary files /dev/null and b/public/images/bg_title.png differ diff --git a/public/images/button_sel.png b/public/images/button_sel.png new file mode 100644 index 0000000..be5b2cb Binary files /dev/null and b/public/images/button_sel.png differ diff --git a/public/images/cdsjd.png b/public/images/cdsjd.png new file mode 100644 index 0000000..5bffd8f Binary files /dev/null and b/public/images/cdsjd.png differ diff --git a/public/images/chart-bg.png b/public/images/chart-bg.png new file mode 100644 index 0000000..8a150c0 Binary files /dev/null and b/public/images/chart-bg.png differ diff --git a/public/images/dialog.png b/public/images/dialog.png new file mode 100644 index 0000000..b7f8997 Binary files /dev/null and b/public/images/dialog.png differ diff --git a/public/images/ds.png b/public/images/ds.png new file mode 100644 index 0000000..c3ff7aa Binary files /dev/null and b/public/images/ds.png differ diff --git a/public/images/go-back.png b/public/images/go-back.png new file mode 100644 index 0000000..44cea02 Binary files /dev/null and b/public/images/go-back.png differ diff --git a/public/images/icon_back.png b/public/images/icon_back.png new file mode 100644 index 0000000..2daab4a Binary files /dev/null and b/public/images/icon_back.png differ diff --git a/public/images/jb-bg.png b/public/images/jb-bg.png new file mode 100644 index 0000000..c4939b2 Binary files /dev/null and b/public/images/jb-bg.png differ diff --git a/public/images/jb.png b/public/images/jb.png new file mode 100644 index 0000000..1d9488e Binary files /dev/null and b/public/images/jb.png differ diff --git a/public/images/jufalj.png b/public/images/jufalj.png new file mode 100644 index 0000000..ddab32d Binary files /dev/null and b/public/images/jufalj.png differ diff --git a/public/images/md.png b/public/images/md.png new file mode 100644 index 0000000..3697866 Binary files /dev/null and b/public/images/md.png differ diff --git a/public/images/menuleft-active.png b/public/images/menuleft-active.png new file mode 100644 index 0000000..6005a45 Binary files /dev/null and b/public/images/menuleft-active.png differ diff --git a/public/images/menuleft.png b/public/images/menuleft.png new file mode 100644 index 0000000..9d70b3b Binary files /dev/null and b/public/images/menuleft.png differ diff --git a/public/images/menuright-active.png b/public/images/menuright-active.png new file mode 100644 index 0000000..0d603e2 Binary files /dev/null and b/public/images/menuright-active.png differ diff --git a/public/images/menuright.png b/public/images/menuright.png new file mode 100644 index 0000000..14ac9fe Binary files /dev/null and b/public/images/menuright.png differ diff --git a/public/images/news-bg.png b/public/images/news-bg.png new file mode 100644 index 0000000..154d474 Binary files /dev/null and b/public/images/news-bg.png differ diff --git a/public/images/seal-bg.png b/public/images/seal-bg.png new file mode 100644 index 0000000..ba1d45d Binary files /dev/null and b/public/images/seal-bg.png differ diff --git a/public/images/sf-bg.png b/public/images/sf-bg.png new file mode 100644 index 0000000..6659ffa Binary files /dev/null and b/public/images/sf-bg.png differ diff --git a/public/images/sf-title.png b/public/images/sf-title.png new file mode 100644 index 0000000..3939e8d Binary files /dev/null and b/public/images/sf-title.png differ diff --git a/public/images/sh.png b/public/images/sh.png new file mode 100644 index 0000000..c3ff7aa Binary files /dev/null and b/public/images/sh.png differ diff --git a/public/images/tj.png b/public/images/tj.png new file mode 100644 index 0000000..04fcf43 Binary files /dev/null and b/public/images/tj.png differ diff --git a/public/images/topmenu-hover.jpg b/public/images/topmenu-hover.jpg new file mode 100644 index 0000000..0f2f85a Binary files /dev/null and b/public/images/topmenu-hover.jpg differ diff --git a/public/images/topmenu.jpg b/public/images/topmenu.jpg new file mode 100644 index 0000000..e0cc609 Binary files /dev/null and b/public/images/topmenu.jpg differ diff --git a/public/images/xs.png b/public/images/xs.png new file mode 100644 index 0000000..c7bb768 Binary files /dev/null and b/public/images/xs.png differ diff --git a/public/images/year-bg.png b/public/images/year-bg.png new file mode 100644 index 0000000..e0366db Binary files /dev/null and b/public/images/year-bg.png differ diff --git a/public/images/yyqh.png b/public/images/yyqh.png new file mode 100644 index 0000000..39ebd98 Binary files /dev/null and b/public/images/yyqh.png differ diff --git a/public/index.html b/public/index.html index 2024257..6c73c6c 100644 --- a/public/index.html +++ b/public/index.html @@ -4,11 +4,8 @@ - - - - - + + FAST功能农业国家大数据中心 - - - - - -
- - - - \ No newline at end of file diff --git a/public/static/top01.png b/public/static/top01.png deleted file mode 100644 index 4c58337..0000000 Binary files a/public/static/top01.png and /dev/null differ diff --git a/public/static/top02.png b/public/static/top02.png deleted file mode 100644 index 79ccf31..0000000 Binary files a/public/static/top02.png and /dev/null differ diff --git a/public/static/top03.png b/public/static/top03.png deleted file mode 100644 index c9a3192..0000000 Binary files a/public/static/top03.png and /dev/null differ diff --git a/public/static/top04.png b/public/static/top04.png deleted file mode 100644 index 4acff08..0000000 Binary files a/public/static/top04.png and /dev/null differ diff --git a/public/static/top05.png b/public/static/top05.png deleted file mode 100644 index 44ecb86..0000000 Binary files a/public/static/top05.png and /dev/null differ diff --git a/public/static/top06.png b/public/static/top06.png deleted file mode 100644 index 6c69525..0000000 Binary files a/public/static/top06.png and /dev/null differ diff --git a/src/App.vue b/src/App.vue index 16d8de0..fb25d77 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,8 +5,12 @@ \ No newline at end of file diff --git a/src/components/topContent/index.vue b/src/components/topContent/index.vue new file mode 100644 index 0000000..e468661 --- /dev/null +++ b/src/components/topContent/index.vue @@ -0,0 +1,126 @@ + + + \ No newline at end of file diff --git a/src/components/topMenu/index.vue b/src/components/topMenu/index.vue deleted file mode 100644 index 4d51e5b..0000000 --- a/src/components/topMenu/index.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/zxEchart/index.vue b/src/components/zxEchart/index.vue new file mode 100644 index 0000000..1d7f48e --- /dev/null +++ b/src/components/zxEchart/index.vue @@ -0,0 +1,124 @@ + + + \ No newline at end of file diff --git a/src/index.vue b/src/index.vue deleted file mode 100644 index 3f4fcc4..0000000 --- a/src/index.vue +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/src/main.js b/src/main.js index 850d391..ab3c539 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ import Vue from 'vue' import App from './App.vue' import ElementUI from 'element-ui'; import HighchartsVue from 'highcharts-vue' +import * as echarts from 'echarts'; import highcharts from 'highcharts' import highcharts3d from 'highcharts/highcharts-3d' highcharts3d(highcharts) @@ -12,11 +13,18 @@ import Message from './components/message'; import erupload from "./components/upload"; import lkyTable from "./components/publicModule/lkyTable" // 本组件样式包含普通表格、分页 import lkyPagination from "./components/publicModule/lkyPagination" // 本组件单独抽离分页样式 -import topMenu from "@/components/topMenu" +import topContent from "@/components/topContent" +import titleCard from './components/titleCard' +import scroll from 'vue-seamless-scroll' +import zxEchart from './components/zxEchart' +Vue.use(scroll) +Vue.prototype.$echarts = echarts; Vue.use(ElementUI); Vue.use(Message); Vue.use(HighchartsVue) -Vue.component('topMenu', topMenu) +Vue.component('zxEchart', zxEchart) +Vue.component('topContent', topContent) +Vue.component('titleCard', titleCard) Vue.component('erupload', erupload) Vue.component('lkyTable', lkyTable) Vue.component('lkyPagination',lkyPagination) diff --git a/src/router/index.js b/src/router/index.js index a24a38a..eb4e115 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,109 +1,87 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -// import box from '../components/box' -// import Home from '../views/Home.vue' -Vue.use(VueRouter) -import layout from '@/views/layout' +import Vue from "vue"; +import VueRouter from "vue-router"; +import home from "../views/home"; +Vue.use(VueRouter); +import layout from "@/views/layout"; // import systemManagement from './routes/systemManagement' const routes = [ { - path: '/', - name: 'layout', + path: "/", + name: "layout", component: layout, - // redirect: '/login', - // children: [ - // { - // path: 'home', - // name: 'home', - // component: () => import('@/views/head'), - // children: [ - // // 首页 - // { - // path: 'compositeIndex', - // name: 'compositeIndex', - // component: () => import('@/views/compositeIndex'), - // }, - // { - // path: 'enterpriseArchives', - // name: 'enterpriseArchives', - // component: () => import('@/views/enterpriseArchives'), - // }, - // { - // path: 'archives', - // name: 'archives', - // component: () => import('@/views/archives'), - // }, - // { - // path: 'safetyIndex', - // name: 'safetyIndex', - // component: () => import('@/views/safetyIndex'), - // }, - // { - // path: 'companyCanban', - // name: 'companyCanban', - // component: () => import('@/views/companyCanban'), - // }, - // //企业排名 - // { - // path: 'enterpriseRank', - // name: 'enterpriseRank', - // component: () => import('@/views/enterpriseRank'), - - // }, - // //实时预警 - // { - // path: 'realtimeWarning', - // name: 'realtimeWarning', - // component: () => import('@/views/realtimeWarning'), - // }, - // //要素资源(预) - // { - // path: 'factor', - // name: 'factor', - // component: () => import('@/views/factor'), - // }, - // //要素资源 - // { - // path: 'factorResources', - // name: 'factorResources', - // component: () => import('@/views/factorResources'), - - // }, - // // 系统管理 - // ...systemManagement, - // // 闭环处置 - // { - // path: 'closeLoopDispose', - // name: 'closeLoopDispose', - // component: () => import('@/views/closeLoopDispose'), - // }, - // // 安商惠企 - // { - // path:'applySupermarket', - // name:'applySupermarket', - // component: () => import('@/views/applySupermarket'), - // }, - // // 封装演示模块 - // ...module, - // // { - // // path:'module', - // // name:'module', - // // component: () => import('@/views/module'), - // // }, - // ] - // }, - // { - // path: 'login', - // name: 'login', - // component: () => import('@/components/login'), - // }, - // ] - }] + redirect: "/cygh", + children: [ + { + path: "home", + name: "home", + component: home, + meta: { + title: "FAST功能农业国家大数据中心", + name: "home", + }, + }, + { + path: "cygh", + name: "cygh", + component: () => import("@/views/cygh"), + meta: { + title: "产业现状及规划", + name: "cygh", + }, + }, + { + path: "zygk", + name: "zygk", + component: () => import("@/views/zygk"), + meta: { + title: "功能农业态势分析", + name: "zygk", + }, + }, + { + path: "bztx", + name: "bztx", + component: () => import("@/views/bztx"), + meta: { + title: "功能农业标准体系", + name: "bztx", + }, + }, + { + path: "scgl", + name: "scgl", + component: () => import("@/views/scgl"), + meta: { + title: "功能农业生产管理", + name: "scgl", + }, + }, + { + path: "cptj", + name: "cptj", + component: () => import("@/views/cptj"), + meta: { + title: "功能农业市场信息", + name: "cptj", + }, + }, + { + path: "sjzx", + name: "sjzx", + component: () => import("@/views/sjzx"), + meta: { + title: "功能农业生产管理", + name: "sjzx", + }, + }, + ], + }, +]; const router = new VueRouter({ - mode: 'hash', - routes -}) + mode: "hash", + routes, +}); -export default router +export default router; diff --git a/src/store/modules/app.js b/src/store/modules/app.js index 6e44246..85a5c1d 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -1,129 +1,13 @@ -import router from '../../router' - const app = { - namespaced: true, + // namespaced: true, state: { - routesTree: [], // 路由数据原始的关系树 - menuList: [], - pageOpenedList: [{ - title: '首页', - name: 'home', - selected: true - }], - currentPath: ['首页'], - currentMenuOpenNames: [], - asyncRoutesCompleted: false, // 是否添加过动态路由数据 - btnLimitedCodes: [] + routerInfo: {}, //路由信息 }, mutations: { - // 添加动态路由 - updateAppRouter (state, routes) { - router.addRoutes(routes) - state.asyncRoutesCompleted = true - }, - // 设置左侧菜单数据 - setMenuList (state, menus) { - state.menuList = state.menuList.concat(menus) - }, - // 保存路由数据原始的关系树 - setRoutesTree (state, tree) { - state.routesTree = state.routesTree.concat(tree) - }, - // 设置PageOpenedList数据 - setPageOpenedList (state, params = null) { - // 设置前先读取本地保存的打开列表数据 - state.pageOpenedList = sessionStorage.pageOpenedList - ? JSON.parse(sessionStorage.pageOpenedList) : [{ - title: '首页', - name: 'home', - selected: true - }] - if (!params) { - return - } - if (params.index === -1) { - // 新打开一个页面 - state.pageOpenedList.push({ - title: params.route.meta.title, - name: params.route.name, - selected: false - }) - params.index = state.pageOpenedList.length - 1 - } - // 更新selected值 - for (let i = 0; i < state.pageOpenedList.length; i++) { - if (params.index === i) { - state.pageOpenedList[i].selected = true - } else { - state.pageOpenedList[i].selected = false - } - } - // 更新下本地新的打开页面列表数据 - sessionStorage.pageOpenedList = JSON.stringify(state.pageOpenedList) - }, - // 移除PageOpenedList - removePageOpenedList (state, params = null) { - if (!params) { - return - } - if (typeof params.action === 'number') { - state.pageOpenedList.splice(params.action, 1) - } else { - state.pageOpenedList = [{ - title: '首页', - name: 'home', - selected: true - }] - if (params.action === 'closeOthers' && params.route.name !== 'home') { - state.pageOpenedList[0].selected = false - state.pageOpenedList.push({ - title: params.route.meta.title, - name: params.route.name, - selected: true - }) - } - } - // 更新下本地新的打开页面列表数据 - sessionStorage.pageOpenedList = JSON.stringify(state.pageOpenedList) + SET_ROUTERINFO: (state, touterInfo) => { + state.routerInfo = touterInfo; }, - // 设置当前header上面包屑路径 - setCurrentPath (state, currentPathArr = []) { - state.currentPath = ['首页'] - state.currentPath = state.currentPath.concat(currentPathArr) - }, - // 设置当前左侧菜单的openNames属性 - setCurrentMenuOpenNames (state, routeMatched) { - if (routeMatched.length === 0 || typeof routeMatched[0] === 'string') { - state.currentMenuOpenNames = routeMatched - } else { - state.currentMenuOpenNames = [] - for (const menu of state.menuList) { - if (menu.name === routeMatched[0].name) { - state.currentMenuOpenNames.push(menu.name) - if (routeMatched[1] && routeMatched[1].meta.parentName) { - state.currentMenuOpenNames.push(routeMatched[1].meta.parentName) - } - break - } - } - } - }, - closePage (state, params) { - // 移除fromName的tag - for (let i = 0; i < state.pageOpenedList.length; i++) { - if (state.pageOpenedList[i].name === params.fromName) { - state.pageOpenedList.splice(i, 1) - break - } - } - sessionStorage.pageOpenedList = JSON.stringify(state.pageOpenedList) - params.vm.$router.push({ name: params.toName }) - }, - // 保存权限码 - setBtnLimitedCodes (state, codes) { - state.btnLimitedCodes = codes - } - } -} + }, +}; -export default app +export default app; diff --git a/src/utils/echartPxToRem.js b/src/utils/echartPxToRem.js new file mode 100644 index 0000000..6886014 --- /dev/null +++ b/src/utils/echartPxToRem.js @@ -0,0 +1,14 @@ +//echartPxToRem.ts echarts内部px 转 rem + +export function fontChart(res) { + const clientWidth = + window.innerWidth || + document.documentElement.clientWidth || + document.body.clientWidth; + if (!clientWidth) return; + const designWidth = 1920; // 设计稿宽度 + const minWidth = 1024; // 最小适配的屏幕宽度 + const screenWidth = Math.max(clientWidth, minWidth); // 当前屏幕宽度与最小适配宽度比较 + const fontSize = screenWidth / designWidth; + return res * fontSize; +} diff --git a/src/utils/nationWide.js b/src/utils/nationWide.js new file mode 100644 index 0000000..6c3b198 --- /dev/null +++ b/src/utils/nationWide.js @@ -0,0 +1,177 @@ +let cityList = [ + { + name: "北京市", + code: 110000, + data: require("../../public/static/json/beijing.json"), + }, + { + name: "天津市", + code: 120000, + data: require("../../public/static/json/tianjin.json"), + }, + { + name: "河北省", + code: 130000, + data: require("../../public/static/json/hebei.json"), + }, + { + name: "山西省", + code: 140000, + data: require("../../public/static/json/shanxi.json"), + }, + { + name: "内蒙古自治区", + code: 150000, + data: require("../../public/static/json/neimenggu.json"), + }, + { + name: "辽宁省", + code: 210000, + data: require("../../public/static/json/liaoning.json"), + }, + { + name: "吉林省", + code: 220000, + data: require("../../public/static/json/jilin.json"), + }, + { + name: "黑龙江省", + code: 230000, + data: require("../../public/static/json/heilongjiang.json"), + }, + { + name: "上海市", + code: 310000, + data: require("../../public/static/json/shanghai.json"), + }, + { + name: "江苏省", + code: 320000, + data: require("../../public/static/json/jiangsu.json"), + }, + { + name: "浙江省", + code: 330000, + data: require("../../public/static/json/zhejiang.json"), + }, + { + name: "安徽省", + code: 340000, + data: require("../../public/static/json/anhui.json"), + }, + { + name: "福建省", + code: 350000, + data: require("../../public/static/json/fujian.json"), + }, + { + name: "江西省", + code: 360000, + data: require("../../public/static/json/jiangxi.json"), + }, + { + name: "山东省", + code: 370000, + data: require("../../public/static/json/shandong.json"), + }, + { + name: "河南省", + code: 410000, + data: require("../../public/static/json/henan.json"), + }, + { + name: "湖北省", + code: 420000, + data: require("../../public/static/json/hubei.json"), + }, + { + name: "湖南省", + code: 430000, + data: require("../../public/static/json/hunan.json"), + }, + { + name: "广东省", + code: 440000, + data: require("../../public/static/json/guangdong.json"), + }, + { + name: "广西壮族自治区", + code: 450000, + data: require("../../public/static/json/guangxi.json"), + }, + { + name: "海南省", + code: 460000, + data: require("../../public/static/json/hainan.json"), + }, + { + name: "重庆市", + code: 500000, + data: require("../../public/static/json/chongqing.json"), + }, + { + name: "四川省", + code: 510000, + data: require("../../public/static/json/sichuan.json"), + }, + { + name: "贵州省", + code: 520000, + data: require("../../public/static/json/guizhou.json"), + }, + { + name: "云南省", + code: 530000, + data: require("../../public/static/json/yunnan.json"), + }, + { + name: "西藏自治区", + code: 540000, + data: require("../../public/static/json/xizhang.json"), + }, + { + name: "陕西省", + code: 610000, + data: require("../../public/static/json/shangxi.json"), + }, + { + name: "甘肃省", + code: 620000, + data: require("../../public/static/json/gansu.json"), + }, + { + name: "青海省", + code: 630000, + data: require("../../public/static/json/qinghai.json"), + }, + { + name: "宁夏回族自治区", + code: 640000, + data: require("../../public/static/json/ningxia.json"), + }, + { + name: "新疆维吾尔自治区", + code: 650000, + data: require("../../public/static/json/xinjiang.json"), + }, + { + name: "香港特别行政区", + code: 810000, + data: require("../../public/static/json/xianggang.json"), + }, + { + name: "澳门特别行政区", + code: 820000, + data: require("../../public/static/json/aomen.json"), + }, + { + name: "台湾省", + code: 710000, + data: require("../../public/static/json/taiwan.json"), + }, +]; +let china = require("../../public/static/json/china.json"); +export default { + cityList: cityList, + china: china, +}; diff --git a/src/views/bztx/index.vue b/src/views/bztx/index.vue new file mode 100644 index 0000000..c17697c --- /dev/null +++ b/src/views/bztx/index.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/components/company.vue b/src/views/cptj/components/company.vue new file mode 100644 index 0000000..eb6d5e5 --- /dev/null +++ b/src/views/cptj/components/company.vue @@ -0,0 +1,89 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/components/dsxh.vue b/src/views/cptj/components/dsxh.vue new file mode 100644 index 0000000..7465345 --- /dev/null +++ b/src/views/cptj/components/dsxh.vue @@ -0,0 +1,259 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/components/exportor.vue b/src/views/cptj/components/exportor.vue new file mode 100644 index 0000000..3c6a3a0 --- /dev/null +++ b/src/views/cptj/components/exportor.vue @@ -0,0 +1,133 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/components/hypt.vue b/src/views/cptj/components/hypt.vue new file mode 100644 index 0000000..afd6efe --- /dev/null +++ b/src/views/cptj/components/hypt.vue @@ -0,0 +1,99 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/components/news.vue b/src/views/cptj/components/news.vue new file mode 100644 index 0000000..ce647f6 --- /dev/null +++ b/src/views/cptj/components/news.vue @@ -0,0 +1,99 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/components/sealData.vue b/src/views/cptj/components/sealData.vue new file mode 100644 index 0000000..80ad580 --- /dev/null +++ b/src/views/cptj/components/sealData.vue @@ -0,0 +1,150 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/components/tongji.vue b/src/views/cptj/components/tongji.vue new file mode 100644 index 0000000..eb7ff52 --- /dev/null +++ b/src/views/cptj/components/tongji.vue @@ -0,0 +1,73 @@ + + + \ No newline at end of file diff --git a/src/views/cptj/index.vue b/src/views/cptj/index.vue new file mode 100644 index 0000000..99189bb --- /dev/null +++ b/src/views/cptj/index.vue @@ -0,0 +1,401 @@ + + + \ No newline at end of file diff --git a/src/views/cygh/components/base.vue b/src/views/cygh/components/base.vue new file mode 100644 index 0000000..3be2a19 --- /dev/null +++ b/src/views/cygh/components/base.vue @@ -0,0 +1,134 @@ + + + \ No newline at end of file diff --git a/src/views/cygh/components/cyfz.vue b/src/views/cygh/components/cyfz.vue new file mode 100644 index 0000000..ed94911 --- /dev/null +++ b/src/views/cygh/components/cyfz.vue @@ -0,0 +1,181 @@ + + + \ No newline at end of file diff --git a/src/views/cygh/components/fxcy.vue b/src/views/cygh/components/fxcy.vue new file mode 100644 index 0000000..955831c --- /dev/null +++ b/src/views/cygh/components/fxcy.vue @@ -0,0 +1,92 @@ + + + \ No newline at end of file diff --git a/src/views/cygh/components/fxcz.vue b/src/views/cygh/components/fxcz.vue new file mode 100644 index 0000000..a74e808 --- /dev/null +++ b/src/views/cygh/components/fxcz.vue @@ -0,0 +1,268 @@ + + + + \ No newline at end of file diff --git a/src/views/cygh/components/fxzt.vue b/src/views/cygh/components/fxzt.vue new file mode 100644 index 0000000..af8f363 --- /dev/null +++ b/src/views/cygh/components/fxzt.vue @@ -0,0 +1,133 @@ + + + \ No newline at end of file diff --git a/src/views/cygh/components/sfxm.vue b/src/views/cygh/components/sfxm.vue new file mode 100644 index 0000000..9fb422c --- /dev/null +++ b/src/views/cygh/components/sfxm.vue @@ -0,0 +1,99 @@ + + + \ No newline at end of file diff --git a/src/views/cygh/components/zczc.vue b/src/views/cygh/components/zczc.vue new file mode 100644 index 0000000..a3d5f6e --- /dev/null +++ b/src/views/cygh/components/zczc.vue @@ -0,0 +1,93 @@ + + + \ No newline at end of file diff --git a/src/views/cygh/index.vue b/src/views/cygh/index.vue new file mode 100644 index 0000000..eb3ac88 --- /dev/null +++ b/src/views/cygh/index.vue @@ -0,0 +1,254 @@ + + + \ No newline at end of file diff --git a/src/views/home/component/cardDialog.vue b/src/views/home/component/cardDialog.vue new file mode 100644 index 0000000..367a410 --- /dev/null +++ b/src/views/home/component/cardDialog.vue @@ -0,0 +1,54 @@ + + + \ No newline at end of file diff --git a/src/views/home/component/cdsjd.vue b/src/views/home/component/cdsjd.vue new file mode 100644 index 0000000..6a863a4 --- /dev/null +++ b/src/views/home/component/cdsjd.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/src/views/home/component/jufalj.vue b/src/views/home/component/jufalj.vue new file mode 100644 index 0000000..581049d --- /dev/null +++ b/src/views/home/component/jufalj.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/src/views/home/component/three.vue b/src/views/home/component/three.vue new file mode 100644 index 0000000..dd1d992 --- /dev/null +++ b/src/views/home/component/three.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/src/views/home/component/vedio.vue b/src/views/home/component/vedio.vue new file mode 100644 index 0000000..9f61c5a --- /dev/null +++ b/src/views/home/component/vedio.vue @@ -0,0 +1,29 @@ + + + \ No newline at end of file diff --git a/src/views/home/component/yyqh.vue b/src/views/home/component/yyqh.vue new file mode 100644 index 0000000..be9036c --- /dev/null +++ b/src/views/home/component/yyqh.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/src/views/home/index.vue b/src/views/home/index.vue new file mode 100644 index 0000000..8988df3 --- /dev/null +++ b/src/views/home/index.vue @@ -0,0 +1,285 @@ + + + diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue index 901f839..5bd3b69 100644 --- a/src/views/layout/index.vue +++ b/src/views/layout/index.vue @@ -1,16 +1,33 @@ \ No newline at end of file diff --git a/src/views/scgl/components/cpcl.vue b/src/views/scgl/components/cpcl.vue new file mode 100644 index 0000000..ad2bae0 --- /dev/null +++ b/src/views/scgl/components/cpcl.vue @@ -0,0 +1,36 @@ + + + \ No newline at end of file diff --git a/src/views/scgl/components/gdmj.vue b/src/views/scgl/components/gdmj.vue new file mode 100644 index 0000000..f22e0dd --- /dev/null +++ b/src/views/scgl/components/gdmj.vue @@ -0,0 +1,83 @@ + + + \ No newline at end of file diff --git a/src/views/scgl/components/highChartsPie.vue b/src/views/scgl/components/highChartsPie.vue new file mode 100644 index 0000000..577c23f --- /dev/null +++ b/src/views/scgl/components/highChartsPie.vue @@ -0,0 +1,238 @@ + + + \ No newline at end of file diff --git a/src/views/scgl/components/weatherWarning.vue b/src/views/scgl/components/weatherWarning.vue new file mode 100644 index 0000000..3592792 --- /dev/null +++ b/src/views/scgl/components/weatherWarning.vue @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/src/views/scgl/components/wlwsb.vue b/src/views/scgl/components/wlwsb.vue new file mode 100644 index 0000000..2c90553 --- /dev/null +++ b/src/views/scgl/components/wlwsb.vue @@ -0,0 +1,66 @@ + + + + \ No newline at end of file diff --git a/src/views/scgl/components/wlwsbsl.vue b/src/views/scgl/components/wlwsbsl.vue new file mode 100644 index 0000000..17dd1c9 --- /dev/null +++ b/src/views/scgl/components/wlwsbsl.vue @@ -0,0 +1,36 @@ + + + \ No newline at end of file diff --git a/src/views/scgl/components/xhptr.vue b/src/views/scgl/components/xhptr.vue new file mode 100644 index 0000000..2e9dde3 --- /dev/null +++ b/src/views/scgl/components/xhptr.vue @@ -0,0 +1,82 @@ + + + \ No newline at end of file diff --git a/src/views/scgl/components/zyfb.vue b/src/views/scgl/components/zyfb.vue new file mode 100644 index 0000000..02dbc0a --- /dev/null +++ b/src/views/scgl/components/zyfb.vue @@ -0,0 +1,36 @@ + + + \ No newline at end of file diff --git a/src/views/scgl/index.vue b/src/views/scgl/index.vue new file mode 100644 index 0000000..2d6ad4a --- /dev/null +++ b/src/views/scgl/index.vue @@ -0,0 +1,254 @@ + + + \ No newline at end of file diff --git a/src/views/sjzx/index.vue b/src/views/sjzx/index.vue new file mode 100644 index 0000000..c17697c --- /dev/null +++ b/src/views/sjzx/index.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/src/views/zygk/index.vue b/src/views/zygk/index.vue new file mode 100644 index 0000000..c17697c --- /dev/null +++ b/src/views/zygk/index.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 74822cb..23d33c0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,13 +1,13 @@ const CopyWebpackPlugin = require("copy-webpack-plugin"); const path = require("path"); -const px2rem = require("postcss-px2rem"); +// const px2rem = require("postcss-px2rem"); // 配置基本大小 -const postcss = px2rem({ - // 基准大小 baseSize,需要和rem.js中相同 - remUnit: 16, -}); +// const postcss = px2rem({ +// // 基准大小 baseSize,需要和rem.js中相同 +// remUnit: 16, +// }); module.exports = { - publicPath: "/", + publicPath: "/", configureWebpack: { plugins: [ new CopyWebpackPlugin([ @@ -30,11 +30,11 @@ module.exports = { }, }, lintOnSave: true, - css: { - loaderOptions: { - postcss: { - plugins: [postcss], - }, - }, - }, + // css: { + // loaderOptions: { + // postcss: { + // plugins: [postcss], + // }, + // }, + // }, };