...
|
...
|
@@ -81,15 +81,24 @@ const _detail = (result, id, couponData) => { |
|
|
ticket: []
|
|
|
};
|
|
|
final.birthType = true;
|
|
|
for (let coupon of couponData) {
|
|
|
final.ticket.push({
|
|
|
id: coupon.id ? coupon.id : '',
|
|
|
couponAmount: coupon.couponAmount,
|
|
|
couponName: coupon.couponName.split('-')[0],
|
|
|
startTime: _formatDay(coupon.startTime),
|
|
|
endTime: _formatDay(coupon.endTime),
|
|
|
useLimit: coupon.useLimit
|
|
|
});
|
|
|
|
|
|
if (result.data.list[0].body.is_collar === 'Y') {
|
|
|
|
|
|
final = {
|
|
|
isCollar: true
|
|
|
};
|
|
|
|
|
|
} else {
|
|
|
for (let coupon of couponData) {
|
|
|
final.ticket.push({
|
|
|
id: coupon.id ? coupon.id : '',
|
|
|
couponAmount: coupon.couponAmount,
|
|
|
couponName: coupon.couponName.split('-')[0],
|
|
|
startTime: _formatDay(coupon.startTime),
|
|
|
endTime: _formatDay(coupon.endTime),
|
|
|
useLimit: coupon.useLimit
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 领取生日券消息
|
...
|
...
|
|