DSDSWeb/src/api/home.js

80 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-07-11 18:02:47 +08:00
import request from '@/utils/request'
// 发布动态配置 检索
export function pubDynamicSearch(data) {
return request({
url: '/Index/search',
method: 'post',
data
})
}
// RelatedLinks 检索
export function findRelatedLinks(data) {
return request({
url: '/Index/findRelatedLinks',
method: 'post',
data
})
}
// 首页轮播图查询信息
export function findMovies(data) {
return request({
url: '/Index/findMovies',
method: 'post',
data
})
}
// 首页查询统计信息
export function dataStatistics(data) {
return request({
url: '/Index/dataStatistics',
method: 'post',
data
})
}
// 访问信息入库
export function saveVisits(data) {
return request({
url: '/Index/saveVisits',
method: 'post',
data
})
}
// 所有航次
2024-07-13 11:32:22 +08:00
// export function getVoyage() {
// return request({
// url: '/remit/voyage/name?type=' + '',
// method: 'get',
// type: 'application/x-www-form-urlencoded'
// })
// }
// 航次列表
2024-07-11 18:02:47 +08:00
export function getVoyage() {
return request({
2024-07-13 11:32:22 +08:00
url: '/voyage/reg/page.htm',
2024-07-13 18:00:03 +08:00
method: 'get'
2024-07-11 18:02:47 +08:00
})
}
// 某个航次的轨迹
2024-07-13 11:32:22 +08:00
// export function getVoyageLine(voyageName) {
// return request({
// url: '/remit/voyage/tra?voyageName=' + voyageName,
// method: 'get',
// type: 'application/x-www-form-urlencoded'
// })
// }
2024-07-13 18:00:03 +08:00
export function getVoyageLine(query) {
2024-07-11 18:02:47 +08:00
return request({
2024-07-13 18:00:03 +08:00
url: '/voyage/navigation/list.htm',
2024-07-11 18:02:47 +08:00
method: 'get',
2024-07-13 18:00:03 +08:00
params: query
2024-07-11 18:02:47 +08:00
})
}