...
|
...
|
@@ -52,7 +52,7 @@ exports.getCouponData = (channel, params) => { |
|
|
img: item.src // banner图片
|
|
|
});
|
|
|
});
|
|
|
} else if (val.template_name === 'getCoupon') {
|
|
|
} else if (val.template_name === 'getCoupon' && val.data.length) {
|
|
|
// 优惠券楼层
|
|
|
if (!coupon.data[index - 1].data || !coupon.data[index - 1].data.text) {
|
|
|
return;
|
...
|
...
|
@@ -99,7 +99,7 @@ exports.getCouponStatus = (params) => { |
|
|
let i = 0;
|
|
|
|
|
|
coupon.data.forEach(function(val, index) {
|
|
|
if (val.template_name === 'getCoupon') {
|
|
|
if (val.template_name === 'getCoupon' && val.data.length) {
|
|
|
// 优惠券楼层
|
|
|
if (!coupon.data[index - 1].data || !coupon.data[index - 1].data.text) {
|
|
|
return;
|
...
|
...
|
|