From 7e1e8bc892517163e90cb44c4f5e683816e5be60 Mon Sep 17 00:00:00 2001 From: dengjie <209192278@qq.com> Date: Fri, 19 May 2023 15:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/index.js | 77 +++--------------- src/components/Carousel.vue | 48 +++++------ src/components/ProductsTabsItem.vue | 8 +- src/utils/request.js | 4 +- src/views/aboutUs/index.vue | 96 +++++++++------------- src/views/attractAndJoin/index.vue | 26 +++--- src/views/contactUs/index.vue | 44 +++++++--- src/views/footer/index.vue | 120 +++++++++++++++++----------- src/views/header/index.vue | 22 ++++- 10 files changed, 211 insertions(+), 236 deletions(-) diff --git a/.env.development b/.env.development index 45eab10..22ff7c3 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' #VUE_APP_BASE_API = 'http://localhost:8085/dev-api' #VUE_APP_BASE_API = '/dev-api' SITE_TYPE = 'NEd5n92EMIpyyBslaNqsRgE' -VUE_APP_BASE_API = 'https://sist.swjtu.edu.cn/dev-api' +VUE_APP_BASE_API = 'http://dpapi.feashow.cn' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/index.js b/src/api/index.js index 6fa2bd0..dd55239 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -6,74 +6,24 @@ */ import request from '@/utils/request' -// 获取统计数据 -export function getConfig(configKey) { +// 获取首页轮播图 +export function getBanner() { return request({ - url: '/web/config/'+configKey, - method: 'get', - }) -} -// 获取所有导航 -export function getNavigation(data) { - return request({ - url: '/web/getnavall', + url: '/home', method: 'post', - data:data }) } - -// 获取节点信息(通用接口) -export function getNode(data) { +// 获取公共数据 +export function getPublicData() { return request({ - url: '/web/node', + url: '/p-public_config', method: 'post', - data:data }) } -export function getNodeNav(data) { - return request({ - url: '/web/nodeNav', - method: 'post', - data:data - }) -} -// 获取文章列表 -export function getArticleList(data) { - return request({ - url: '/web/articlelist', - method: 'post', - data:data - }) -} - - -// 获取面包屑 -export function crumbs(id) { - return request({ - url: '/web/crumbs', - method: 'post', - data:{ - id:id - } - }) -} - - -// 获取banner图 -export function banner(type) { - return request({ - url: '/web/banner', - method: 'post', - data:{ - type:type - } - }) -} - // 获取文章详情 -export function article(id) { +export function getArticleInfo(id) { return request({ - url: '/web/article', + url: '/articleinfo', method: 'post', data:{ id:id @@ -81,13 +31,4 @@ export function article(id) { }) } -// 获取文章详情 -export function info(id) { - return request({ - url: '/web/info', - method: 'post', - data:{ - id:id - } - }) -} + diff --git a/src/components/Carousel.vue b/src/components/Carousel.vue index 4d5baa9..9483ca1 100644 --- a/src/components/Carousel.vue +++ b/src/components/Carousel.vue @@ -1,47 +1,47 @@ diff --git a/src/views/footer/index.vue b/src/views/footer/index.vue index 7577f92..57e9e15 100644 --- a/src/views/footer/index.vue +++ b/src/views/footer/index.vue @@ -1,39 +1,38 @@