first commit
This commit is contained in:
1
h5/js/service/.pydio
Normal file
1
h5/js/service/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
bbee3d0d-25eb-4ed6-9cad-b421310b11c6
|
||||
82
h5/js/service/HomeService.js
Normal file
82
h5/js/service/HomeService.js
Normal file
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* 请求的中间层
|
||||
* 被页面调用,然后它去调用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()
|
||||
Reference in New Issue
Block a user