|
|
/* eslint-disable indent */
|
|
|
/* eslint-disable comma-spacing */
|
|
|
/* eslint-disable keyword-spacing */
|
|
|
/* eslint-disable quotes */
|
...
|
...
|
@@ -282,7 +283,7 @@ class featureModel extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* 限时抢券时间转换
|
|
|
*/
|
|
|
_formatSeckillCouponTime(featureData = {}) {
|
|
|
_formatSeckillCouponTime(featureData = {}) {
|
|
|
const {floors = []} = featureData;
|
|
|
|
|
|
const seckillCouponFloor = floors.find(floor=> {
|
...
|
...
|
@@ -373,9 +374,8 @@ class featureModel extends global.yoho.BaseModel { |
|
|
|
|
|
floor.component = component.map(c=> {
|
|
|
if(c.type === 'coupon' && colNum === 1) {
|
|
|
const statusImg = seckillCouponStatusInfo[status];
|
|
|
|
|
|
return {...c, startTime, endOfDayTime, currentTime, status, statusImg};
|
|
|
return {...c, startTime, endOfDayTime, currentTime, status, statusImg: seckillCouponStatusInfo};
|
|
|
}else {
|
|
|
return c;
|
|
|
}
|
...
|
...
|
|