Authored by hongweigao

红包

... ... @@ -61,7 +61,7 @@ const index = (req, res)=>{
}
];
if (coupons.list.length !== 0) {
if (!coupons.error) {
data.pager = {
hasCheckAll: false,
count: coupons.pager.total || 0,
... ...
... ... @@ -19,7 +19,7 @@ const getCouponsList = (uid, type, page, limit)=>{
let result = [];
if (couponsInfo.code !== 200) {
return {list: result};
return {error: 'no data'};
}
let coupons = couponsInfo.data.couponList;
... ...