...
|
...
|
@@ -72,9 +72,9 @@ export default class Prize extends PureComponent { |
|
|
let couponLink = 'https://m.yohobuy.com/home/coupons?openby:yohobuy={"action":"go.coupon"}';
|
|
|
let redEnvelopeLink = 'https://activity.yoho.cn/feature/3221.html?title=我的红包&openby:yohobuy={"action":"go.mineredpackage"}';
|
|
|
|
|
|
this.state.prizes.map(prize => {
|
|
|
prize.createTime = dayjs(new Date(prize.createTime).getTime()).format('YYYY-MM-DD HH:mm');
|
|
|
});
|
|
|
let fmtTime = time => {
|
|
|
return dayjs(new Date(time).getTime()).format('YYYY-MM-DD HH:mm');
|
|
|
};
|
|
|
|
|
|
return (
|
|
|
pending ? '' :
|
...
|
...
|
@@ -88,7 +88,7 @@ export default class Prize extends PureComponent { |
|
|
<img src={prize.img} className="prize-img"/>
|
|
|
<div className="prize-info">
|
|
|
<div className="prize-name">{prize.name}</div>
|
|
|
<div className="got-time">中奖时间:{prize.createTime}</div>
|
|
|
<div className="got-time">中奖时间:{fmtTime(prize.createTime)}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className="item-bottom">
|
...
|
...
|
|