You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
|
3 months ago
|
import { stringify } from 'qs';
|
||
|
|
import { request } from '@umijs/max';
|
||
|
|
import webpath from '@/utils/webPath';
|
||
|
|
|
||
|
|
|
||
|
|
export async function getNewTopForHomePage(params = {}) {
|
||
|
|
return request(`/${webpath.portalwebpath}/web/api/service/homepage/getNewTop`, {
|
||
|
|
method: 'POST',
|
||
|
|
data:params,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function getNoticeTopForHomePage(params = {}) {
|
||
|
|
return request(`/${webpath.portalwebpath}/web/api/service/homepage/getNoticeTop`, {
|
||
|
|
method: 'POST',
|
||
|
|
data:params,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function getProjectTopForHomePage(params = {}) {
|
||
|
|
return request(`/${webpath.portalwebpath}/web/api/service/basicproject/getProjectTop`, {
|
||
|
|
method: 'POST',
|
||
|
|
data:params,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function getApprovalTopForHomePage(params = {}) {
|
||
|
|
return request(`/${webpath.portalwebpath}/web/api/service/homepage/getApprovalTop`, {
|
||
|
|
method: 'POST',
|
||
|
|
data:params,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function getWeatherForHomePage(params = {}) {
|
||
|
|
return request(`/${webpath.homeWeatherPath}/v3/weather/weatherInfo?${stringify(params)}`);
|
||
|
|
}
|