diff --git a/.gitignore b/.gitignore index 403adbc..0035d70 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ node_modules # local env files +.env .env.local .env.*.local diff --git a/package-lock.json b/package-lock.json index e3e463e..c91a0bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,12 @@ "dependencies": { "axios": "^0.26.1", "core-js": "^3.8.3", + "echarts": "4.9.0", + "md5-js": "^0.0.3", + "swiper": "^5.4.5", + "vant": "^2.12.33", "vue": "^2.6.14", + "vue-awesome-swiper": "^4.1.1", "vue-router": "^3.5.1" }, "devDependencies": { @@ -21,12 +26,10 @@ "@vue/cli-plugin-router": "~5.0.0", "@vue/cli-service": "~5.0.0", "babel-plugin-import": "^1.13.3", - "echarts": "^4.9.0", "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3", "less": "^4.0.0", "less-loader": "^8.0.0", - "vant": "^2.12.46", "vue-template-compiler": "^2.6.14" } }, @@ -1631,7 +1634,6 @@ "version": "7.17.9", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.9.tgz", "integrity": "sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==", - "dev": true, "dependencies": { "regenerator-runtime": "^0.13.4" }, @@ -1866,7 +1868,6 @@ "version": "2.11.5", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.5.tgz", "integrity": "sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==", - "dev": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/popperjs" @@ -2189,14 +2190,12 @@ "node_modules/@vant/icons": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@vant/icons/-/icons-1.8.0.tgz", - "integrity": "sha512-sKfEUo2/CkQFuERxvkuF6mGQZDKu3IQdj5rV9Fm0weJXtchDSSQ+zt8qPCNUEhh9Y8shy5PzxbvAfOOkCwlCXg==", - "dev": true + "integrity": "sha512-sKfEUo2/CkQFuERxvkuF6mGQZDKu3IQdj5rV9Fm0weJXtchDSSQ+zt8qPCNUEhh9Y8shy5PzxbvAfOOkCwlCXg==" }, "node_modules/@vant/popperjs": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@vant/popperjs/-/popperjs-1.1.0.tgz", "integrity": "sha512-8MD1gz146awV/uPxYjz4pet22f7a9YVKqk7T+gFkWFwT9mEcrIUEg/xPrdOnWKLP9puXyYtm7oVfSDSefZ/p/w==", - "dev": true, "dependencies": { "@popperjs/core": "^2.9.2" } @@ -2204,8 +2203,7 @@ "node_modules/@vue/babel-helper-vue-jsx-merge-props": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.2.1.tgz", - "integrity": "sha512-QOi5OW45e2R20VygMSNhyQHvpdUwQZqGPc748JLGCYEy+yp8fNFNdbNIGAgZmi9e+2JHPd6i6idRuqivyicIkA==", - "dev": true + "integrity": "sha512-QOi5OW45e2R20VygMSNhyQHvpdUwQZqGPc748JLGCYEy+yp8fNFNdbNIGAgZmi9e+2JHPd6i6idRuqivyicIkA==" }, "node_modules/@vue/babel-helper-vue-transform-on": { "version": "1.0.2", @@ -4854,6 +4852,14 @@ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, + "node_modules/dom7": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/dom7/-/dom7-2.1.5.tgz", + "integrity": "sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA==", + "dependencies": { + "ssr-window": "^2.0.0" + } + }, "node_modules/domelementtype": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", @@ -4939,7 +4945,6 @@ "version": "4.9.0", "resolved": "https://registry.npmjs.org/echarts/-/echarts-4.9.0.tgz", "integrity": "sha512-+ugizgtJ+KmsJyyDPxaw2Br5FqzuBnyOWwcxPKO6y0gc5caYcfnEUIlNStx02necw8jmKmTafmpHhGo4XDtEIA==", - "dev": true, "dependencies": { "zrender": "4.3.2" } @@ -7376,6 +7381,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/md5-js": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/md5-js/-/md5-js-0.0.3.tgz", + "integrity": "sha1-bijeJSM9VbNHb2qMA0X8pTAZ1Lc=", + "bin": { + "md5": "bin/cli.js" + } + }, "node_modules/mdn-data": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", @@ -9174,8 +9187,7 @@ "node_modules/regenerator-runtime": { "version": "0.13.9", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", - "dev": true + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" }, "node_modules/regenerator-transform": { "version": "0.15.0", @@ -9817,6 +9829,11 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, + "node_modules/ssr-window": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-2.0.0.tgz", + "integrity": "sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A==" + }, "node_modules/ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", @@ -10020,6 +10037,23 @@ "node": ">= 10" } }, + "node_modules/swiper": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-5.4.5.tgz", + "integrity": "sha512-7QjA0XpdOmiMoClfaZ2lYN6ICHcMm72LXiY+NF4fQLFidigameaofvpjEEiTQuw3xm5eksG5hzkaRsjQX57vtA==", + "hasInstallScript": true, + "dependencies": { + "dom7": "^2.1.5", + "ssr-window": "^2.0.0" + }, + "engines": { + "node": ">= 4.7.0" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/vladimirkharlampidi" + } + }, "node_modules/table": { "version": "6.8.0", "resolved": "https://registry.npmjs.org/table/-/table-6.8.0.tgz", @@ -10448,10 +10482,9 @@ } }, "node_modules/vant": { - "version": "2.12.46", - "resolved": "https://registry.npmjs.org/vant/-/vant-2.12.46.tgz", - "integrity": "sha512-FNWja2LenIxEin1OtBqjn/zpkPVRdCP9E3OAZdpzsCr+f7YQitDFuG8CbOu+GobLDKhl/NTPJXUpIW+V4SuAIA==", - "dev": true, + "version": "2.12.33", + "resolved": "https://registry.npmjs.org/vant/-/vant-2.12.33.tgz", + "integrity": "sha512-vR2LmJNoSB+Gox1qSdWEOROMOl6lkDcxMLq1hu59AS0VePk41FMuqqV96Rmvo724HRFK8AlJLHrRmPTDOtGFzA==", "dependencies": { "@babel/runtime": "7.x", "@vant/icons": "^1.7.1", @@ -10477,6 +10510,18 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==" }, + "node_modules/vue-awesome-swiper": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/vue-awesome-swiper/-/vue-awesome-swiper-4.1.1.tgz", + "integrity": "sha512-50um10t6N+lJaORkpwSi1wWuMmBI1sgFc9Znsi5oUykw2cO5DzLaBHcO2JNX21R+Ue4TGoIJDhhxjBHtkFrTEQ==", + "engines": { + "node": ">=8" + }, + "peerDependencies": { + "swiper": "^5.2.0", + "vue": "2.x" + } + }, "node_modules/vue-eslint-parser": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz", @@ -10579,8 +10624,7 @@ "node_modules/vue-lazyload": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/vue-lazyload/-/vue-lazyload-1.2.3.tgz", - "integrity": "sha512-DC0ZwxanbRhx79tlA3zY5OYJkH8FYp3WBAnAJbrcuoS8eye1P73rcgAZhyxFSPUluJUTelMB+i/+VkNU/qVm7g==", - "dev": true + "integrity": "sha512-DC0ZwxanbRhx79tlA3zY5OYJkH8FYp3WBAnAJbrcuoS8eye1P73rcgAZhyxFSPUluJUTelMB+i/+VkNU/qVm7g==" }, "node_modules/vue-loader": { "version": "17.0.0", @@ -11439,8 +11483,7 @@ "node_modules/zrender": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/zrender/-/zrender-4.3.2.tgz", - "integrity": "sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g==", - "dev": true + "integrity": "sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g==" } }, "dependencies": { @@ -12548,7 +12591,6 @@ "version": "7.17.9", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.9.tgz", "integrity": "sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==", - "dev": true, "requires": { "regenerator-runtime": "^0.13.4" } @@ -12736,8 +12778,7 @@ "@popperjs/core": { "version": "2.11.5", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.5.tgz", - "integrity": "sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==", - "dev": true + "integrity": "sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==" }, "@sideway/address": { "version": "4.1.4", @@ -13031,14 +13072,12 @@ "@vant/icons": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@vant/icons/-/icons-1.8.0.tgz", - "integrity": "sha512-sKfEUo2/CkQFuERxvkuF6mGQZDKu3IQdj5rV9Fm0weJXtchDSSQ+zt8qPCNUEhh9Y8shy5PzxbvAfOOkCwlCXg==", - "dev": true + "integrity": "sha512-sKfEUo2/CkQFuERxvkuF6mGQZDKu3IQdj5rV9Fm0weJXtchDSSQ+zt8qPCNUEhh9Y8shy5PzxbvAfOOkCwlCXg==" }, "@vant/popperjs": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@vant/popperjs/-/popperjs-1.1.0.tgz", "integrity": "sha512-8MD1gz146awV/uPxYjz4pet22f7a9YVKqk7T+gFkWFwT9mEcrIUEg/xPrdOnWKLP9puXyYtm7oVfSDSefZ/p/w==", - "dev": true, "requires": { "@popperjs/core": "^2.9.2" } @@ -13046,8 +13085,7 @@ "@vue/babel-helper-vue-jsx-merge-props": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.2.1.tgz", - "integrity": "sha512-QOi5OW45e2R20VygMSNhyQHvpdUwQZqGPc748JLGCYEy+yp8fNFNdbNIGAgZmi9e+2JHPd6i6idRuqivyicIkA==", - "dev": true + "integrity": "sha512-QOi5OW45e2R20VygMSNhyQHvpdUwQZqGPc748JLGCYEy+yp8fNFNdbNIGAgZmi9e+2JHPd6i6idRuqivyicIkA==" }, "@vue/babel-helper-vue-transform-on": { "version": "1.0.2", @@ -15037,6 +15075,14 @@ "entities": "^2.0.0" } }, + "dom7": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/dom7/-/dom7-2.1.5.tgz", + "integrity": "sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA==", + "requires": { + "ssr-window": "^2.0.0" + } + }, "domelementtype": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", @@ -15101,7 +15147,6 @@ "version": "4.9.0", "resolved": "https://registry.npmjs.org/echarts/-/echarts-4.9.0.tgz", "integrity": "sha512-+ugizgtJ+KmsJyyDPxaw2Br5FqzuBnyOWwcxPKO6y0gc5caYcfnEUIlNStx02necw8jmKmTafmpHhGo4XDtEIA==", - "dev": true, "requires": { "zrender": "4.3.2" } @@ -16919,6 +16964,11 @@ "semver": "^6.0.0" } }, + "md5-js": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/md5-js/-/md5-js-0.0.3.tgz", + "integrity": "sha1-bijeJSM9VbNHb2qMA0X8pTAZ1Lc=" + }, "mdn-data": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", @@ -18201,8 +18251,7 @@ "regenerator-runtime": { "version": "0.13.9", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", - "dev": true + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" }, "regenerator-transform": { "version": "0.15.0", @@ -18726,6 +18775,11 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, + "ssr-window": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-2.0.0.tgz", + "integrity": "sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A==" + }, "ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", @@ -18868,6 +18922,15 @@ } } }, + "swiper": { + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-5.4.5.tgz", + "integrity": "sha512-7QjA0XpdOmiMoClfaZ2lYN6ICHcMm72LXiY+NF4fQLFidigameaofvpjEEiTQuw3xm5eksG5hzkaRsjQX57vtA==", + "requires": { + "dom7": "^2.1.5", + "ssr-window": "^2.0.0" + } + }, "table": { "version": "6.8.0", "resolved": "https://registry.npmjs.org/table/-/table-6.8.0.tgz", @@ -19186,10 +19249,9 @@ } }, "vant": { - "version": "2.12.46", - "resolved": "https://registry.npmjs.org/vant/-/vant-2.12.46.tgz", - "integrity": "sha512-FNWja2LenIxEin1OtBqjn/zpkPVRdCP9E3OAZdpzsCr+f7YQitDFuG8CbOu+GobLDKhl/NTPJXUpIW+V4SuAIA==", - "dev": true, + "version": "2.12.33", + "resolved": "https://registry.npmjs.org/vant/-/vant-2.12.33.tgz", + "integrity": "sha512-vR2LmJNoSB+Gox1qSdWEOROMOl6lkDcxMLq1hu59AS0VePk41FMuqqV96Rmvo724HRFK8AlJLHrRmPTDOtGFzA==", "requires": { "@babel/runtime": "7.x", "@vant/icons": "^1.7.1", @@ -19209,6 +19271,12 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==" }, + "vue-awesome-swiper": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/vue-awesome-swiper/-/vue-awesome-swiper-4.1.1.tgz", + "integrity": "sha512-50um10t6N+lJaORkpwSi1wWuMmBI1sgFc9Znsi5oUykw2cO5DzLaBHcO2JNX21R+Ue4TGoIJDhhxjBHtkFrTEQ==", + "requires": {} + }, "vue-eslint-parser": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz", @@ -19283,8 +19351,7 @@ "vue-lazyload": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/vue-lazyload/-/vue-lazyload-1.2.3.tgz", - "integrity": "sha512-DC0ZwxanbRhx79tlA3zY5OYJkH8FYp3WBAnAJbrcuoS8eye1P73rcgAZhyxFSPUluJUTelMB+i/+VkNU/qVm7g==", - "dev": true + "integrity": "sha512-DC0ZwxanbRhx79tlA3zY5OYJkH8FYp3WBAnAJbrcuoS8eye1P73rcgAZhyxFSPUluJUTelMB+i/+VkNU/qVm7g==" }, "vue-loader": { "version": "17.0.0", @@ -19936,8 +20003,7 @@ "zrender": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/zrender/-/zrender-4.3.2.tgz", - "integrity": "sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g==", - "dev": true + "integrity": "sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g==" } } } diff --git a/package.json b/package.json index 1d950d0..7ebb7b7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,12 @@ "dependencies": { "axios": "^0.26.1", "core-js": "^3.8.3", + "echarts": "4.9.0", + "md5-js": "^0.0.3", + "swiper": "^5.4.5", + "vant": "^2.12.33", "vue": "^2.6.14", + "vue-awesome-swiper": "^4.1.1", "vue-router": "^3.5.1" }, "devDependencies": { @@ -21,12 +26,10 @@ "@vue/cli-plugin-router": "~5.0.0", "@vue/cli-service": "~5.0.0", "babel-plugin-import": "^1.13.3", - "echarts": "^4.9.0", "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3", "less": "^4.0.0", "less-loader": "^8.0.0", - "vant": "^2.12.46", "vue-template-compiler": "^2.6.14" } } diff --git a/src/App.vue b/src/App.vue index dc9190c..6be0146 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,32 +1,8 @@ diff --git a/src/api/base.js b/src/api/base.js new file mode 100644 index 0000000..c2a01a9 --- /dev/null +++ b/src/api/base.js @@ -0,0 +1,21 @@ +/** + * 公共的请求接口 + */ + +const base = { + host: "https://api.tianapi.com", + baseUrl: "https://yupn.api.storeapi.net", + covInfo: "/ncov/index", + chinaData: "/api/94/219?format=json", + worldData: "/api/94/220?format=json", + cityData: "/api/94/221", + allData: "/api/94/222?format=json", + swiperBanner: "https://iwenwiki.com/wapicovid19/ncovimg.php", + travelUrl: "https://apis.juhe.cn/springTravel", + travelData: "/citys", + travelQuery: "/query", + CityUrl: "https://bang.360.cn", + getCity: "/aj/getcitycode", +}; + +export default base; diff --git a/src/api/index.js b/src/api/index.js new file mode 100644 index 0000000..cd1edc0 --- /dev/null +++ b/src/api/index.js @@ -0,0 +1,63 @@ +/** + * 请求接口的方法 + */ + +import axios from "axios"; +import base from "./base"; + +import md5 from "md5-js"; + +const api = { + getCovInfo(params) { + return axios.get(base.host + base.covInfo, { + params, + }); + }, + getChinaData(params, params1) { + return axios.get(base.baseUrl + base.chinaData, { + params, + params1, + }); + }, + getWorldData(params, params1) { + return axios.get(base.baseUrl + base.worldData, { + params, + params1, + }); + }, + getCityData(city_name) { + let rules = md5( + "appid6938city_name" + + city_name + + "formatjson709b25c001c8d3325061a5baf7bb7615" + ); + let canshu = + "format=json&appid=6938&city_name=" + city_name + "&sign=" + rules; + return axios.get(base.baseUrl + base.cityData + "?" + canshu); + }, + getAllData(params, params1) { + return axios.get(base.baseUrl + base.allData, { + params, + params1, + }); + }, + getSwiperBanner() { + return axios.get(base.swiperBanner); + }, + getTravel(params) { + return axios.get(base.travelUrl + base.travelData, { + params, + }); + }, + getTravelData(param, params) { + return axios.get(base.travelUrl + base.travelQuery, { + param, + params, + }); + }, + getCity() { + return axios.get(base.CityUrl + base.getCity); + }, +}; + +export default api; diff --git a/src/assets/css/common.css b/src/assets/css/common.css new file mode 100644 index 0000000..014ba00 --- /dev/null +++ b/src/assets/css/common.css @@ -0,0 +1,44 @@ +/* CSS初始化文件 */ +body, +ul, +li, +p, +h1, +h2, +h3, +h4, +h5 { + margin: 0; + padding: 0; +} + +ul { + list-style: none; +} + +a { + text-decoration: none; + color: #333; +} + +img { + border: 0; +} + +/* 移动端布局 */ +html { + font-size: 13vw; +} + +/* 防止字体过大 */ +@media (min-width: 750px) { + html { + font-size: 100px; + } +} + +body { + font-size: 14px; + font-family: "Microsoft YaHei", "Arial Narrow", Arial, sans-serif; + margin: 0 auto; +} diff --git a/src/assets/images/1.jpg b/src/assets/images/1.jpg new file mode 100755 index 0000000..611fe19 Binary files /dev/null and b/src/assets/images/1.jpg differ diff --git a/src/assets/images/1.png b/src/assets/images/1.png new file mode 100755 index 0000000..f9df6ce Binary files /dev/null and b/src/assets/images/1.png differ diff --git a/src/assets/images/2.png b/src/assets/images/2.png new file mode 100755 index 0000000..7e8ed29 Binary files /dev/null and b/src/assets/images/2.png differ diff --git a/src/assets/images/3.png b/src/assets/images/3.png new file mode 100755 index 0000000..5844ad4 Binary files /dev/null and b/src/assets/images/3.png differ diff --git a/src/assets/images/4.png b/src/assets/images/4.png new file mode 100755 index 0000000..1253be3 Binary files /dev/null and b/src/assets/images/4.png differ diff --git a/src/assets/images/area.png b/src/assets/images/area.png new file mode 100755 index 0000000..a2cfffe Binary files /dev/null and b/src/assets/images/area.png differ diff --git a/src/assets/images/hesuan.jpg b/src/assets/images/hesuan.jpg new file mode 100755 index 0000000..07da94b Binary files /dev/null and b/src/assets/images/hesuan.jpg differ diff --git a/src/assets/images/high.png b/src/assets/images/high.png new file mode 100755 index 0000000..5fe4b6d Binary files /dev/null and b/src/assets/images/high.png differ diff --git a/src/assets/images/hot-icon.png b/src/assets/images/hot-icon.png new file mode 100755 index 0000000..449b6db Binary files /dev/null and b/src/assets/images/hot-icon.png differ diff --git a/src/assets/images/hot.png b/src/assets/images/hot.png new file mode 100755 index 0000000..bc4ecd8 Binary files /dev/null and b/src/assets/images/hot.png differ diff --git a/src/assets/images/jiujing.png b/src/assets/images/jiujing.png new file mode 100755 index 0000000..6e82cb6 Binary files /dev/null and b/src/assets/images/jiujing.png differ diff --git a/src/assets/images/kouzhao.png b/src/assets/images/kouzhao.png new file mode 100755 index 0000000..9962167 Binary files /dev/null and b/src/assets/images/kouzhao.png differ diff --git a/src/assets/images/logo.png b/src/assets/images/logo.png new file mode 100755 index 0000000..5ce2f1d Binary files /dev/null and b/src/assets/images/logo.png differ diff --git a/src/assets/images/mid.png b/src/assets/images/mid.png new file mode 100755 index 0000000..9245ebd Binary files /dev/null and b/src/assets/images/mid.png differ diff --git a/src/assets/images/more.png b/src/assets/images/more.png new file mode 100755 index 0000000..7ec3163 Binary files /dev/null and b/src/assets/images/more.png differ diff --git a/src/assets/images/right.png b/src/assets/images/right.png new file mode 100755 index 0000000..edd92f2 Binary files /dev/null and b/src/assets/images/right.png differ diff --git a/src/assets/images/wuzi.png b/src/assets/images/wuzi.png new file mode 100755 index 0000000..57e4ca6 Binary files /dev/null and b/src/assets/images/wuzi.png differ diff --git a/src/components/CovidData.vue b/src/components/CovidData.vue new file mode 100644 index 0000000..c8a9e9c --- /dev/null +++ b/src/components/CovidData.vue @@ -0,0 +1,184 @@ + + + + \ No newline at end of file diff --git a/src/components/CovidNav.vue b/src/components/CovidNav.vue new file mode 100644 index 0000000..8fa8f7d --- /dev/null +++ b/src/components/CovidNav.vue @@ -0,0 +1,50 @@ + + + + + \ No newline at end of file diff --git a/src/components/CovidNews.vue b/src/components/CovidNews.vue new file mode 100644 index 0000000..1175980 --- /dev/null +++ b/src/components/CovidNews.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/components/TheHeader.vue b/src/components/TheHeader.vue new file mode 100644 index 0000000..8da4402 --- /dev/null +++ b/src/components/TheHeader.vue @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 659607d..65096a7 100644 --- a/src/main.js +++ b/src/main.js @@ -1,10 +1,17 @@ -import Vue from 'vue' -import App from './App.vue' -import router from './router' +import Vue from "vue"; +import App from "./App.vue"; +import router from "./router"; +import "./assets/css/common.css"; +import "./plugins/vant"; +import myCharts from "./plugins/echarts"; +Vue.use(myCharts); +import VueAwesomeSwiper from "vue-awesome-swiper"; +import "swiper/css/swiper.css"; +Vue.use(VueAwesomeSwiper); -Vue.config.productionTip = false +Vue.config.productionTip = false; new Vue({ router, - render: h => h(App) -}).$mount('#app') + render: (h) => h(App), +}).$mount("#app"); diff --git a/src/plugins/echarts.js b/src/plugins/echarts.js new file mode 100644 index 0000000..6b581b2 --- /dev/null +++ b/src/plugins/echarts.js @@ -0,0 +1,303 @@ +/** + * 开发成vue插件使用 + */ + +import echarts from "echarts"; + +import country from "../utils/country"; +import "../utils/map"; + +const install = function (Vue) { + Object.defineProperties(Vue.prototype, { + $myChart: { + get() { + return { + chinaMap(id, data) { + var myChart = echarts.init(document.getElementById(id)); + var option = { + tooltip: { + //悬浮弹框 + triggerOn: "click", //提示框触发的条件 + enterable: true, //鼠标是否可进入提示框浮层中,默认为false + formatter(item) { + //item=下面serves里面的data里面的每一项 //[{} ] data={} a b c d + return ( + '省份:' + + item.name + + "--详情" + ); + }, + }, + visualMap: [ + { + //映射高亮颜色 + orient: "vertical", //水平的 + type: "piecewise", //离散 + bottom: 0, + textGap: 4, + itemGap: 4, + itemWidth: 10, + itemHeight: 10, + padding: 2, + textStyle: { + fontSize: 9, + }, + pieces: [ + // 配置颜色区间 + { + min: 0, + max: 0, + color: "#FFFFFF", + }, + { + min: 1, + max: 9, + color: "#FAEBD2", + }, + { + min: 10, + max: 99, + color: "#E9A188", + }, + { + min: 100, + max: 499, + color: "#D56355", + }, + { + min: 500, + max: 999, + color: "#BB3937", + }, + { + min: 1000, + max: 10000, + color: "#772526", + }, + { + min: 10000, + color: "#480F10", + }, + ], + }, + ], + series: [ + { + name: "省", + type: "map", //地图 bar line map + map: "china", //中国地图 需要引入地图china.js + roam: false, + zoom: 1.2, + aspectScale: 0.75, + top: 40, + layoutCenter: ["5%", "5%"], + label: { + normal: { + show: true, + textStyle: { + fontSize: 8, + }, + }, + }, + itemStyle: { + normal: { + areaColor: "rgba(0,255,236,0)", + borderColor: "rgba(0,0,0,0.2)", + }, + emphasis: { + // 选中的区域颜色及阴影效果等 + areaColor: "rgba(255,180,0,0.8)", + shadowOffsetX: 0, + shadowOffsetY: 0, + shadowBlur: 20, + borderWidth: 0, + }, + }, + data, + }, + ], + }; + myChart.setOption(option); + }, + worldMap(id, data) { + var myChart = echarts.init(document.getElementById(id)); + var option = { + tooltip: { + //悬浮弹框 + triggerOn: "click", //提示框触发的条件 + enterable: true, //鼠标是否可进入提示框浮层中,默认为false + formatter(item) { + //item=下面serves里面的data里面的每一项 //[{} ] data={} a b c d + return item.name + ":确诊人数" + item.value; + }, + }, + visualMap: [ + { + //映射高亮颜色 + orient: "vertical", //垂直 + type: "piecewise", //离散 + bottom: 0, + pieces: [ + // 配置颜色区间 + { + min: 0, + max: 0, + color: "#FFFFFF", + }, + { + min: 1, + max: 10000, + color: "#FDFDCF", + }, + { + min: 10000, + max: 100000, + color: "#FE9E83", + }, + { + min: 100000, + max: 500000, + color: "#E55A4E", + }, + { + min: 500000, + // max: 10000, + color: "#4F070D", + }, + ], + }, + ], + series: [ + { + name: "国", + type: "map", //地图 bar line map + map: "world", + nameMap: country, //自定义地区的名称映射 + roam: false, + zoom: 1.2, + aspectScale: 0.75, + top: 40, + layoutCenter: ["5%", "5%"], + label: { + normal: { + show: false, + textStyle: { + fontSize: 8, + }, + }, + }, + itemStyle: { + normal: { + areaColor: "rgba(0,255,236,0)", + borderColor: "rgba(0,0,0,0.2)", + }, + emphasis: { + // 选中的区域颜色及阴影效果等 + areaColor: "rgba(255,180,0,0.8)", + shadowOffsetX: 0, + shadowOffsetY: 0, + shadowBlur: 20, + borderWidth: 0, + }, + }, + data, + }, + ], + }; + myChart.setOption(option); + }, + cityMap(id, cityname, data) { + var myChart = echarts.init(document.getElementById(id)); + var option = { + tooltip: { + //悬浮弹框 + triggerOn: "click", //提示框触发的条件 + enterable: true, + formatter(data) { + //[{} ] data={} + return data.name; + }, + }, + visualMap: [ + { + //映射高亮颜色 + orient: "vertical", //垂直 + type: "piecewise", //离散 + bottom: 0, + pieces: [ + // 配置颜色区间 + { + min: 0, + max: 0, + color: "#FFFFFF", + }, + { + min: 1, + max: 10, + color: "#FDFDCF", + }, + { + min: 10, + max: 100, + color: "#FE9E83", + }, + { + min: 100, + max: 500, + color: "#E55A4E", + }, + { + min: 500, + max: 10000, + color: "#4F070D", + }, + ], + }, + ], + series: [ + { + name: "市", + type: "map", //地图 + map: cityname, //中国地图 + roam: false, + zoom: 1.2, + aspectScale: 0.75, + top: 40, + layoutCenter: ["5%", "5%"], + label: { + normal: { + show: true, + textStyle: { + fontSize: 8, + }, + }, + }, + itemStyle: { + normal: { + areaColor: "rgba(0,255,236,0)", + borderColor: "rgba(0,0,0,0.2)", + }, + emphasis: { + // 选中的区域颜色及阴影效果等 + areaColor: "rgba(255,180,0,0.8)", + shadowOffsetX: 0, + shadowOffsetY: 0, + shadowBlur: 20, + borderWidth: 0, + }, + }, + data, + }, + ], + }; + myChart.setOption(option); + }, + }; + }, + }, + }); +}; + +export default install; diff --git a/src/plugins/vant.js b/src/plugins/vant.js new file mode 100644 index 0000000..1013a36 --- /dev/null +++ b/src/plugins/vant.js @@ -0,0 +1,22 @@ +import Vue from "vue"; +import { + Tab, + Tabs, + Cascader, + Field, + Popup, + Button, + IndexBar, + IndexAnchor, + Cell, +} from "vant"; + +Vue.use(Tab); +Vue.use(Tabs); +Vue.use(Cascader); +Vue.use(Field); +Vue.use(Popup); +Vue.use(Button); +Vue.use(IndexBar); +Vue.use(IndexAnchor); +Vue.use(Cell); diff --git a/src/router/index.js b/src/router/index.js index 3040dd3..20ccc7e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,12 @@ import Vue from "vue"; import VueRouter from "vue-router"; import HomeView from "../views/HomeView.vue"; +import CovidTest from "../views/CovidTest.vue"; +import CovidRiskAreas from "../views/CovidRiskAreas.vue"; +import CovidPrevention from "../views/CovidPrevention.vue"; +import ChinaCities from "../views/Map/ChinaCities.vue"; +import TravelAdvisory from "../views/TravelAdvisory.vue"; +import SelectCity from "../views/SelectCity.vue"; Vue.use(VueRouter); @@ -10,6 +16,37 @@ const routes = [ name: "home", component: HomeView, }, + { + path: "/covidtest", + name: "CovidTest", + component: CovidTest, + }, + { + path: "/riskareas", + name: "RiskAreas", + component: CovidRiskAreas, + }, + { + path: "/prevention", + name: "Prevention", + component: CovidPrevention, + }, + { + path: "/cities/:cityname", + name: "ChinaCities", + component: ChinaCities, + props: true, + }, + { + path: "/travel", + name: "TravelAdvisory", + component: TravelAdvisory, + }, + { + path: "/selectcity", + name: "SelectCity", + component: SelectCity, + }, ]; const router = new VueRouter({ diff --git a/src/utils/country.js b/src/utils/country.js new file mode 100755 index 0000000..9aceed5 --- /dev/null +++ b/src/utils/country.js @@ -0,0 +1,191 @@ +export default { + "Afghanistan": "阿富汗", + "Albania": "阿尔巴尼亚", + "Algeria": "阿尔及利亚", + "Angola": "安哥拉", + "Argentina": "阿根廷", + "Armenia": "亚美尼亚", + "Australia": "澳大利亚", + "Austria": "奥地利", + "Azerbaijan": "阿塞拜疆", + "Bahamas": "巴哈马", + "Bahrain": "巴林", + "Bangladesh": "孟加拉国", + "Belarus": "白俄罗斯", + "Belgium": "比利时", + "Belize": "伯利兹", + "Benin": "贝宁", + "Bhutan": "不丹", + "Bolivia": "玻利维亚", + "Bosnia and Herz.": "波斯尼亚和黑塞哥维那", + "Botswana": "博茨瓦纳", + "Brazil": "巴西", + "British Virgin Islands": "英属维京群岛", + "Brunei": "文莱", + "Bulgaria": "保加利亚", + "Burkina Faso": "布基纳法索", + "Burundi": "布隆迪", + "Cambodia": "柬埔寨", + "Cameroon": "喀麦隆", + "Canada": "加拿大", + "Cape Verde": "佛得角", + "Cayman Islands": "开曼群岛", + "Central African Rep.": "中非共和国", + "Chad": "乍得", + "Chile": "智利", + "China": "中国", + "Colombia": "哥伦比亚", + "Comoros": "科摩罗", + "Congo": "刚果", + "Costa Rica": "哥斯达黎加", + "Croatia": "克罗地亚", + "Cuba": "古巴", + "Cyprus": "塞浦路斯", + "Czech Rep.": "捷克共和国", + "Côte d'Ivoire": "科特迪瓦", + "Dem. Rep. Congo": "刚果民主共和国", + "Dem. Rep. Korea": "朝鲜", + "Denmark": "丹麦", + "Djibouti": "吉布提", + "Dominican Rep.": "多米尼加共和国", + "Ecuador": "厄瓜多尔", + "Egypt": "埃及", + "El Salvador": "萨尔瓦多", + "Equatorial Guinea": "赤道几内亚", + "Eritrea": "厄立特里亚", + "Estonia": "爱沙尼亚", + "Ethiopia": "埃塞俄比亚", + "Falkland Is.": "福克兰群岛", + "Fiji": "斐济", + "Finland": "芬兰", + "Fr. S. Antarctic Lands": "所罗门群岛", + "France": "法国", + "Gabon": "加蓬", + "Gambia": "冈比亚", + "Georgia": "格鲁吉亚", + "Germany": "德国", + "Ghana": "加纳", + "Greece": "希腊", + "Greenland": "格陵兰岛", + "Guatemala": "危地马拉", + "Guinea": "几内亚", + "Guinea-Bissau": "几内亚比绍", + "Guyana": "圭亚那", + "Haiti": "海地", + "Honduras": "洪都拉斯", + "Hungary": "匈牙利", + "Iceland": "冰岛", + "India": "印度", + "Indonesia": "印度尼西亚", + "Iran": "伊朗", + "Iraq": "伊拉克", + "Ireland": "爱尔兰", + "Isle of Man": "马恩岛", + "Israel": "以色列", + "Italy": "意大利", + "Jamaica": "牙买加", + "Japan": "日本", + "Jordan": "约旦", + "Kazakhstan": "哈萨克斯坦", + "Kenya": "肯尼亚", + "Korea": "韩国", + "Kuwait": "科威特", + "Kyrgyzstan": "吉尔吉斯斯坦", + "Lao PDR": "老挝", + "Latvia": "拉脱维亚", + "Lebanon": "黎巴嫩", + "Lesotho": "莱索托", + "Liberia": "利比里亚", + "Libya": "利比亚", + "Lithuania": "立陶宛", + "Luxembourg": "卢森堡", + "Macedonia": "马其顿", + "Madagascar": "马达加斯加", + "Malawi": "马拉维", + "Malaysia": "马来西亚", + "Maldives": "马尔代夫", + "Mali": "马里", + "Malta": "马耳他", + "Mauritania": "毛利塔尼亚", + "Mauritius": "毛里求斯", + "Mexico": "墨西哥", + "Moldova": "摩尔多瓦", + "Monaco": "摩纳哥", + "Mongolia": "蒙古", + "Montenegro": "黑山共和国", + "Morocco": "摩洛哥", + "Mozambique": "莫桑比克", + "Myanmar": "缅甸", + "Namibia": "纳米比亚", + "Nepal": "尼泊尔", + "Netherlands": "荷兰", + "New Caledonia": "新喀里多尼亚", + "New Zealand": "新西兰", + "Nicaragua": "尼加拉瓜", + "Niger": "尼日尔", + "Nigeria": "尼日利亚", + "Norway": "挪威", + "Oman": "阿曼", + "Pakistan": "巴基斯坦", + "Panama": "巴拿马", + "Papua New Guinea": "巴布亚新几内亚", + "Paraguay": "巴拉圭", + "Peru": "秘鲁", + "Philippines": "菲律宾", + "Poland": "波兰", + "Portugal": "葡萄牙", + "Puerto Rico": "波多黎各", + "Qatar": "卡塔尔", + "Reunion": "留尼旺", + "Romania": "罗马尼亚", + "Russia": "俄罗斯", + "Rwanda": "卢旺达", + "S. Geo. and S. Sandw. Is.": "南乔治亚和南桑威奇群岛", + "S. Sudan": "南苏丹", + "San Marino": "圣马力诺", + "Saudi Arabia": "沙特阿拉伯", + "Senegal": "塞内加尔", + "Serbia": "塞尔维亚", + "Sierra Leone": "塞拉利昂", + "Singapore": "新加坡", + "Slovakia": "斯洛伐克", + "Slovenia": "斯洛文尼亚", + "Solomon Is.": "所罗门群岛", + "Somalia": "索马里", + "South Africa": "南非", + "Spain": "西班牙", + "Sri Lanka": "斯里兰卡", + "Sudan": "苏丹", + "Suriname": "苏里南", + "Swaziland": "斯威士兰", + "Sweden": "瑞典", + "Switzerland": "瑞士", + "Syria": "叙利亚", + "Tajikistan": "塔吉克斯坦", + "Tanzania": "坦桑尼亚", + "Thailand": "泰国", + "Togo": "多哥", + "Tonga": "汤加", + "Trinidad and Tobago": "特立尼达和多巴哥", + "Tunisia": "突尼斯", + "Turkey": "土耳其", + "Turkmenistan": "土库曼斯坦", + "U.S. Virgin Islands": "美属维尔京群岛", + "Uganda": "乌干达", + "Ukraine": "乌克兰", + "United Arab Emirates": "阿拉伯联合酋长国", + "United Kingdom": "英国", + "United States": "美国", + "Uruguay": "乌拉圭", + "Uzbekistan": "乌兹别克斯坦", + "Vanuatu": "瓦努阿图", + "Vatican City": "梵蒂冈城", + "Venezuela": "委内瑞拉", + "Vietnam": "越南", + "W. Sahara": "西撒哈拉", + "Yemen": "也门", + "Yugoslavia": "南斯拉夫", + "Zaire": "扎伊尔", + "Zambia": "赞比亚", + "Zimbabwe": "津巴布韦" +} \ No newline at end of file diff --git a/src/utils/map.js b/src/utils/map.js new file mode 100644 index 0000000..dfb3faa --- /dev/null +++ b/src/utils/map.js @@ -0,0 +1,39 @@ +//导入国内 世界 省份 +import 'echarts/map/js/china'; +import 'echarts/map/js/world' +import 'echarts/map/js/province/beijing'; +import 'echarts/map/js/province/shanghai'; +import 'echarts/map/js/province/neimenggu'; +import 'echarts/map/js/province/tianjin'; +import 'echarts/map/js/province/xinjiang'; +import 'echarts/map/js/province/hebei'; +import 'echarts/map/js/province/henan'; +import 'echarts/map/js/province/shandong'; +import 'echarts/map/js/province/shanxi'; +import 'echarts/map/js/province/jiangsu'; +import 'echarts/map/js/province/jiangxi'; +import 'echarts/map/js/province/jilin'; +import 'echarts/map/js/province/gansu'; +import 'echarts/map/js/province/guangdong'; +import 'echarts/map/js/province/guangxi'; +import 'echarts/map/js/province/guizhou'; +import 'echarts/map/js/province/qinghai'; +import 'echarts/map/js/province/xianggang'; +import 'echarts/map/js/province/xizang'; +import 'echarts/map/js/province/zhejiang'; +import 'echarts/map/js/province/heilongjiang'; +import 'echarts/map/js/province/ningxia'; +import 'echarts/map/js/province/neimenggu'; +import 'echarts/map/js/province/sichuan'; +import 'echarts/map/js/province/yunnan'; +import 'echarts/map/js/province/hubei'; +import 'echarts/map/js/province/hunan'; +import 'echarts/map/js/province/anhui'; +import 'echarts/map/js/province/guizhou'; +import 'echarts/map/js/province/liaoning' +import 'echarts/map/js/province/taiwan'; +import 'echarts/map/js/province/hainan'; +import 'echarts/map/js/province/fujian'; +import 'echarts/map/js/province/chongqing'; +import 'echarts/map/js/province/shanxi1'; + diff --git a/src/views/CovidInfo.vue b/src/views/CovidInfo.vue new file mode 100644 index 0000000..17bde90 --- /dev/null +++ b/src/views/CovidInfo.vue @@ -0,0 +1,40 @@ + + + + + \ No newline at end of file diff --git a/src/views/CovidPrevention.vue b/src/views/CovidPrevention.vue new file mode 100644 index 0000000..39ead16 --- /dev/null +++ b/src/views/CovidPrevention.vue @@ -0,0 +1,51 @@ + + + + + \ No newline at end of file diff --git a/src/views/CovidRiskAreas.vue b/src/views/CovidRiskAreas.vue new file mode 100644 index 0000000..faff0d7 --- /dev/null +++ b/src/views/CovidRiskAreas.vue @@ -0,0 +1,138 @@ + + + + + \ No newline at end of file diff --git a/src/views/CovidTest.vue b/src/views/CovidTest.vue new file mode 100644 index 0000000..d9138fa --- /dev/null +++ b/src/views/CovidTest.vue @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index dc8c180..dd82989 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,12 +1,73 @@ diff --git a/src/views/Map/ChinaCities.vue b/src/views/Map/ChinaCities.vue new file mode 100644 index 0000000..31a6bb4 --- /dev/null +++ b/src/views/Map/ChinaCities.vue @@ -0,0 +1,40 @@ + + + + + \ No newline at end of file diff --git a/src/views/Map/ChinaMap.vue b/src/views/Map/ChinaMap.vue new file mode 100644 index 0000000..e12024a --- /dev/null +++ b/src/views/Map/ChinaMap.vue @@ -0,0 +1,86 @@ + + + + + \ No newline at end of file diff --git a/src/views/Map/WorldMap.vue b/src/views/Map/WorldMap.vue new file mode 100644 index 0000000..3cf795f --- /dev/null +++ b/src/views/Map/WorldMap.vue @@ -0,0 +1,55 @@ + + + + + \ No newline at end of file diff --git a/src/views/SelectCity.vue b/src/views/SelectCity.vue new file mode 100644 index 0000000..f9623c5 --- /dev/null +++ b/src/views/SelectCity.vue @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/src/views/Swiper/VueSwiper.vue b/src/views/Swiper/VueSwiper.vue new file mode 100644 index 0000000..48327e8 --- /dev/null +++ b/src/views/Swiper/VueSwiper.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file diff --git a/src/views/TravelAdvisory.vue b/src/views/TravelAdvisory.vue new file mode 100644 index 0000000..43555ee --- /dev/null +++ b/src/views/TravelAdvisory.vue @@ -0,0 +1,142 @@ + + + + + \ No newline at end of file