From 1361b6e11ef22435c0e22f894e6c7e0b72758759 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Wed, 5 Jun 2024 00:14:06 +0800 Subject: [PATCH] add --- index.html | 1 + package-lock.json | 12 + src/api/address.ts | 20 ++ src/views/store_product_unit/index.vue | 226 +++++++++++++++++++ src/views/store_product_unit/myMap/index.vue | 141 ++++++++++++ src/views/storesSet/index.vue | 0 vite.config.ts | 5 + 7 files changed, 405 insertions(+) create mode 100644 src/api/address.ts create mode 100644 src/views/store_product_unit/index.vue create mode 100644 src/views/store_product_unit/myMap/index.vue create mode 100644 src/views/storesSet/index.vue diff --git a/index.html b/index.html index 772a93e..3b13b74 100644 --- a/index.html +++ b/index.html @@ -63,3 +63,4 @@ + diff --git a/package-lock.json b/package-lock.json index c9db68a..c5abda8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,12 +17,14 @@ "css-color-function": "^1.3.3", "echarts": "^5.3.3", "element-plus": "2.2.27", + "fetch-jsonp": "^1.3.0", "highlight.js": "^11.6.0", "nprogress": "^0.2.0", "pinia": "^2.0.14", "vue": "^3.2.37", "vue-clipboard3": "^2.0.0", "vue-echarts": "^6.2.3", + "vue-jsonp": "^2.0.0", "vue-router": "^4.0.16", "vue3-video-play": "1.3.1-beta.6", "vuedraggable": "^4.1.0" @@ -4070,6 +4072,11 @@ "reusify": "^1.0.4" } }, + "node_modules/fetch-jsonp": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fetch-jsonp/-/fetch-jsonp-1.3.0.tgz", + "integrity": "sha512-hxCYGvmANEmpkHpeWY8Kawfa5Z1t2csTpIClIDG/0S92eALWHRU1RnGaj86Tf5Cc0QF+afSa4SQ4pFB2rFM5QA==" + }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -8486,6 +8493,11 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, + "node_modules/vue-jsonp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/vue-jsonp/-/vue-jsonp-2.0.0.tgz", + "integrity": "sha512-Mzd9GNeuKP5hHFDWZNMWOsCuMILSkA6jo2l4A02wheFz3qqBzH7aSEFTey1BRCZCLizlaf1EqJ5YUtF392KspA==" + }, "node_modules/vue-router": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.3.0.tgz", diff --git a/src/api/address.ts b/src/api/address.ts new file mode 100644 index 0000000..c0c0070 --- /dev/null +++ b/src/api/address.ts @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +export function apigetProvinceLists() { + return request.get({ url: '/geo/province' }) +} +export function apicityLists(params: any) { + return request.get({ url: '/geo/city', params }) +} + +export function apiAreaLists(params: any) { + return request.get({ url: '/geo/area', params }) +} + +export function apiStreetLists(params: any) { + return request.get({ url: '/geo/street', params }) +} + +export function apiVillageLists(params: any) { + return request.get({ url: '/geo/village', params }) +} diff --git a/src/views/store_product_unit/index.vue b/src/views/store_product_unit/index.vue new file mode 100644 index 0000000..a3da56e --- /dev/null +++ b/src/views/store_product_unit/index.vue @@ -0,0 +1,226 @@ + + + diff --git a/src/views/store_product_unit/myMap/index.vue b/src/views/store_product_unit/myMap/index.vue new file mode 100644 index 0000000..7c6dfcb --- /dev/null +++ b/src/views/store_product_unit/myMap/index.vue @@ -0,0 +1,141 @@ + + \ No newline at end of file diff --git a/src/views/storesSet/index.vue b/src/views/storesSet/index.vue new file mode 100644 index 0000000..e69de29 diff --git a/vite.config.ts b/vite.config.ts index c31ada4..5757579 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,6 +17,11 @@ export default defineConfig({ host: '0.0.0.0', open: true, port: 8787, + proxy: { + '/ws': { + target: 'https://apis.map.qq.com/', + } + } }, plugins: [ vue(),