...
|
...
|
@@ -29,6 +29,7 @@ const complaintType = { |
|
|
* @return { Object } 投诉列表数据
|
|
|
*/
|
|
|
const getComplaintsList = (uid, page, limit) => {
|
|
|
page = page || 1;
|
|
|
limit = limit || 10;
|
|
|
|
|
|
const process = function*() {
|
...
|
...
|
@@ -36,6 +37,7 @@ const getComplaintsList = (uid, page, limit) => { |
|
|
let result = yield api.get('', {
|
|
|
method: 'web.complaints.getList',
|
|
|
uid: uid,
|
|
|
page: page,
|
|
|
limit: limit
|
|
|
}, {code: 200});
|
|
|
|
...
|
...
|
@@ -65,10 +67,10 @@ const getComplaintsList = (uid, page, limit) => { |
|
|
|
|
|
resData.pager = Object.assign({
|
|
|
count: _.get(result, 'data.total', 0),
|
|
|
curPage: _.get(result, 'data.page', 0),
|
|
|
curPage: page,
|
|
|
totalPages: _.get(result, 'data.page_total', 0)
|
|
|
}, setPager(_.get(result, 'data.page_total', 0), {
|
|
|
page: _.get(result, 'data.page', 0)
|
|
|
page: page
|
|
|
}));
|
|
|
|
|
|
if (!_.get(resData, 'pager.pages[1]')) {
|
...
|
...
|
|