...
|
...
|
@@ -90,11 +90,17 @@ class CouponNew { |
|
|
uid, type, filter, page
|
|
|
});
|
|
|
let couponsList = _.get(couponApi, 'data.couponList', []);
|
|
|
let showUsedTip = false;
|
|
|
|
|
|
if (type === 'use' && couponsList && couponsList.length) {
|
|
|
showUsedTip = true;
|
|
|
}
|
|
|
|
|
|
if (couponsList && couponsList.length) {
|
|
|
couponsList = _couponProcess(couponsList, type);
|
|
|
res.render('coupons/coupons', {
|
|
|
couponsList,
|
|
|
showUsedTip,
|
|
|
layout: false
|
|
|
});
|
|
|
} else {
|
...
|
...
|
|