From 871975049fa5d3d4dbf23afbe7abc25eefef792f Mon Sep 17 00:00:00 2001 From: song Date: Wed, 19 Jan 2022 15:12:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=92=E4=BB=B6=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .env.production | 1 + .env.test | 1 + src/App.vue | 14 +++++ src/apis/business.js | 21 ++++++++ src/apis/index.js | 2 +- src/apis/plugin.js | 15 ++++++ src/components/listPlugin.vue | 12 +++-- src/components/searchBar.vue | 11 ++++ src/store/index.js | 14 ++++- src/utils/axios.js | 5 +- src/views/index-list/add-business.vue | 10 +++- src/views/index-list/add-plugin.vue | 28 ++++++---- src/views/index-list/plugin-shop.vue | 74 +++++++++++++-------------- 14 files changed, 152 insertions(+), 57 deletions(-) create mode 100644 src/apis/business.js create mode 100644 src/apis/plugin.js diff --git a/.env.development b/.env.development index 9bcb052..20d722f 100644 --- a/.env.development +++ b/.env.development @@ -1 +1,2 @@ VITE_API_URL=https://test.tall.wiki +VITE_API_URL_NEW=http://101.201.226.163 diff --git a/.env.production b/.env.production index 7fe4fa9..e16c971 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,2 @@ VITE_API_URL=http://www.tall.wiki +VITE_API_URL_NEW=http://101.201.226.163 diff --git a/.env.test b/.env.test index 9bcb052..20d722f 100644 --- a/.env.test +++ b/.env.test @@ -1 +1,2 @@ VITE_API_URL=https://test.tall.wiki +VITE_API_URL_NEW=http://101.201.226.163 diff --git a/src/App.vue b/src/App.vue index e56641a..37604cd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,6 +20,20 @@ if (userString) { } else { router.push({ name: 'signin' }); } + +// 获取系统设备信息 +// function getSystemInfo() { +// uni.getSystemInfo({ +// success: result => { +// this.$store.commit('setSystemInfo', result); +// }, +// fail: error => { +// console.error('getSystemInfo fail:', error); +// }, +// }); +// } + +// getSystemInfo()