This commit is contained in:
clay
2022-01-16 21:14:30 +08:00
parent 8e9cf7b833
commit b7897ba20e
18 changed files with 799 additions and 269 deletions

View File

@@ -6,7 +6,7 @@
*/
import request from '@/utils/request'
// 查询测试列表
// 获取统计数据
export function getStatistic(data) {
return request({
url: '/web/statistic',
@@ -14,7 +14,7 @@ export function getStatistic(data) {
data:data
})
}
// 查询测试列表
// 获取所有导航
export function getNavigation(data) {
return request({
url: '/web/getnavall',
@@ -23,7 +23,7 @@ export function getNavigation(data) {
})
}
// 查询测试列表
// 获取节点信息(通用接口)
export function getNode(data) {
return request({
url: '/web/node',
@@ -31,7 +31,7 @@ export function getNode(data) {
data:data
})
}
// 查询测试列表
// 获取文章列表
export function getArticleList(data) {
return request({
url: '/web/articlelist',
@@ -41,7 +41,7 @@ export function getArticleList(data) {
}
// 查询测试列表
// 获取面包屑
export function crumbs(id) {
return request({
url: '/web/crumbs',
@@ -53,7 +53,7 @@ export function crumbs(id) {
}
// 查询测试列表
// 获取banner图
export function banner(type) {
return request({
url: '/web/banner',
@@ -63,3 +63,25 @@ export function banner(type) {
}
})
}
// 获取文章详情
export function article(id) {
return request({
url: '/web/article',
method: 'post',
data:{
id:id
}
})
}
// 获取文章详情
export function info(id) {
return request({
url: '/web/info',
method: 'post',
data:{
id:id
}
})
}