From e660c097e96a6e18a8143ea2059f0477040284b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=BF=97=E9=B9=8F?= Date: Mon, 17 Oct 2022 14:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/dev.env.js | 4 +- config/prod.env.js | 4 +- src/components/Home.vue | 137 ---------------------- src/components/Index.vue | 179 ----------------------------- src/components/Login.vue | 1 - src/components/heat.vue | 108 ++++++++++++++++++ src/page/Home.vue | 115 +++++++++++++------ src/page/Index.vue | 191 ++++++------------------------- src/page/Login.vue | 1 - src/page/coures/coures.vue | 226 ++++++++++++++++++++++++++++--------- src/router/index.js | 25 ++-- src/utils/api.js | 2 +- 12 files changed, 418 insertions(+), 575 deletions(-) delete mode 100644 src/components/Home.vue delete mode 100644 src/components/Index.vue create mode 100644 src/components/heat.vue diff --git a/config/dev.env.js b/config/dev.env.js index 1e22973..7db7173 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -3,5 +3,7 @@ const merge = require('webpack-merge') const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { - NODE_ENV: '"development"' + NODE_ENV: '"development"', + VUE_APP_MODE: 'development', + VUE_APP_API_URL: 'https://api.zhongxuemall.com.cn' }) diff --git a/config/prod.env.js b/config/prod.env.js index a6f9976..9f5c3f4 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,4 +1,6 @@ 'use strict' module.exports = { - NODE_ENV: '"production"' + NODE_ENV: '"production"', + VUE_APP_MODE: 'production', + VUE_APP_API_URL: 'https://api.zhongxuemall.com.cn' } diff --git a/src/components/Home.vue b/src/components/Home.vue deleted file mode 100644 index 3f50965..0000000 --- a/src/components/Home.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - diff --git a/src/components/Index.vue b/src/components/Index.vue deleted file mode 100644 index 6e77659..0000000 --- a/src/components/Index.vue +++ /dev/null @@ -1,179 +0,0 @@ - - diff --git a/src/components/Login.vue b/src/components/Login.vue index d536bf4..a225869 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -47,7 +47,6 @@ password: this.loginForm.password, role: 1} }).then(resp=> { - console.log('111----', resp.data.success) _this.loading = false; if (resp.status === 200) { //成功 diff --git a/src/components/heat.vue b/src/components/heat.vue new file mode 100644 index 0000000..cdca888 --- /dev/null +++ b/src/components/heat.vue @@ -0,0 +1,108 @@ + + + diff --git a/src/page/Home.vue b/src/page/Home.vue index 3f50965..0e5f368 100644 --- a/src/page/Home.vue +++ b/src/page/Home.vue @@ -1,25 +1,30 @@