diff --git a/.env.development b/.env.development index 46be502..deb44ba 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,8 @@ ENV = 'development' # EBTS/开发环境 #VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = 'http://localhost:8096/dev-api' -#VUE_APP_BASE_API = 'https://api.ebts.top/dev-api' +SITE_TYPE = 'NEd5n92EMIpyyBslaNqsRgE' +#VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/index.js b/src/api/index.js new file mode 100644 index 0000000..3030a46 --- /dev/null +++ b/src/api/index.js @@ -0,0 +1,33 @@ +/** + * @author: Clay + * @date: 2022/1/14 13:26 + * @description:index + * @email: clay@hchyun.com + */ +import request from '@/utils/request' + +// 查询测试列表 +export function getStatistic(data) { + return request({ + url: '/web/statistic', + method: 'post', + data:data + }) +} +// 查询测试列表 +export function getNavigation(data) { + return request({ + url: '/web/getnavall', + method: 'post', + data:data + }) +} + +// 查询测试列表 +export function getNode(data) { + return request({ + url: '/web/node', + method: 'post', + data:data + }) +} diff --git a/src/api/test.js b/src/api/test.js deleted file mode 100644 index ad09647..0000000 --- a/src/api/test.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @author: Clay - * @date: 2021/12/27 22:50 - * @description:test - * @email: clay@hchyun.com - */ -import request from '@/utils/request' - -// 查询测试列表 -export function test() { - return request({ - url: '/sist/test/test', - method: 'get', - }) -} diff --git a/src/router/index.js b/src/router/index.js index caf9943..ea3b3b0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,7 +11,7 @@ const routes = [ }, { path: '/sp', - name: 'SchoolProfile', + name: 'TeachingStaff', component: () => import(/* webpackChunkName: "about" */ '../views/school_profile/index') }, { @@ -29,6 +29,11 @@ const routes = [ name: 'EduTeach', component: () => import(/* webpackChunkName: "about" */ '../components/HelloWorld') }, + { + path: '/:navId', + name: 'content', + component: () => import(/* webpackChunkName: "about" */ '../views/content/index') + }, ] const router = new VueRouter({ diff --git a/src/utils/request.js b/src/utils/request.js index ff7fca5..8cafeb8 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -12,6 +12,7 @@ const service = axios.create({ }) // request拦截器 service.interceptors.request.use(config => { + config.data['sitetype'] = 'NEd5n92EMIpyyBslaNqsRgE'; return config }, error => { console.log(error) diff --git a/src/views/content/components/Introduction.vue b/src/views/content/components/Introduction.vue new file mode 100644 index 0000000..340a24d --- /dev/null +++ b/src/views/content/components/Introduction.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/views/content/components/new_list.vue b/src/views/content/components/new_list.vue new file mode 100644 index 0000000..e789a2c --- /dev/null +++ b/src/views/content/components/new_list.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/views/content/index.vue b/src/views/content/index.vue new file mode 100644 index 0000000..0f4af68 --- /dev/null +++ b/src/views/content/index.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/src/views/header/index.vue b/src/views/header/index.vue index a9472b2..877cf73 100644 --- a/src/views/header/index.vue +++ b/src/views/header/index.vue @@ -64,66 +64,78 @@
学院首页
- + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -132,23 +144,35 @@ diff --git a/src/views/school_profile/index.vue b/src/views/school_profile/index.vue index 722a9f7..a7b8851 100644 --- a/src/views/school_profile/index.vue +++ b/src/views/school_profile/index.vue @@ -257,24 +257,24 @@ export default { margin-top: 1.5rem; font-weight: 400; font-size: 1.4rem !important; - } + .context { + margin: 3rem 4rem; - .context { - margin: 3rem 4rem; + .title { + font-size: 2.4rem; + font-weight: 500; + color: #1956BC; + text-align: center; + } - .title { - font-size: 2.4rem; - font-weight: 500; - color: #1956BC; - text-align: center; - } - - .text { - margin-top: 2rem; - font-size: 1.2rem; - font-weight: 400; - color: #3C3C3C; + .text { + margin-top: 2rem; + font-size: 1.2rem; + font-weight: 400; + color: #3C3C3C; + } } } + }