Files
pte/h5/js/service/HomeService.js
2024-09-27 01:31:25 +08:00

82 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 请求的中间层
* 被页面调用然后它去调用ajax
*/
class HomeService {
GetHomeData(data) {
return ajax({
url: Config.ApiList.index,
data: data,
methods: 'GET'
});
}
info(data) {
return ajax({
url: Config.ApiList.info,
data: data,
methods: 'GET'
});
}
mechanism(data) {
return ajax({
url: Config.ApiList.mechanism,
data: data,
methods: 'GET'
});
}
type(data) {
return ajax({
url: Config.ApiList.type,
data: data,
methods: 'GET'
});
}
classList(data) {
return ajax({
url: Config.ApiList.classList,
data: data,
methods: 'GET'
});
}
allModel(data) {
return ajax({
url: Config.ApiList.allModel,
data: data,
methods: 'GET'
});
}
modelList(data) {
return ajax({
url: Config.ApiList.modelList,
data: data,
methods: 'GET'
});
}
mechanismList(data) {
return ajax({
url: Config.ApiList.mechanismList,
data: data,
methods: 'GET'
});
}
search(data) {
return ajax({
url: Config.ApiList.search,
data: data,
methods: 'GET'
});
}
};
var homeService = new HomeService()