mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 11:56:47 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
33
api/modules/index.js
Normal file
33
api/modules/index.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/**首页的数据,也包括查询*/
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/**
|
||||
* 首页分页查询
|
||||
* @param {Object} query
|
||||
* {
|
||||
pageIndex: 第几页
|
||||
pageSize: 每页多少条
|
||||
orderType:0表最新,1表最热
|
||||
}
|
||||
*/
|
||||
const findAll = function(query) {
|
||||
return ajax.post('/xboe/mobile/index/list',query);
|
||||
}
|
||||
|
||||
/**
|
||||
* 首页分页查询
|
||||
* @param {Object} query
|
||||
* {
|
||||
pageIndex: 第几页
|
||||
pageSize: 每页多少条
|
||||
orderType:0表最新,1表最热
|
||||
}
|
||||
*/
|
||||
const findByType = function(query) {
|
||||
return ajax.post('/xboe/mobile/index/list-by-type',query);
|
||||
}
|
||||
|
||||
export default {
|
||||
findAll,
|
||||
findByType
|
||||
}
|
||||
Reference in New Issue
Block a user