Authored by 李奇

fixed:我的奖品页时间格式化

... ... @@ -231,7 +231,7 @@ export default class wheelSurf extends PureComponent {
if (!slowEnding) {
if (this.state.speed < 16) {
this.state.speed += 0.1;
this.state.speed += 0.2;
}
this.state.angle += this.state.speed;
... ...
... ... @@ -4,6 +4,7 @@ import {prize} from '../../api';
import yaSDK from 'yoho-activity-sdk';
import config from '../../config';
import TipModal from '../components/tip-modal';
import moment from 'moment';
export default class Prize extends PureComponent {
... ... @@ -62,6 +63,10 @@ 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 = moment(new Date(prize.createTime).getTime()).format('YYYY-MM-DD HH:mm');
});
return (
<div className="my-prize-wrap">
... ... @@ -74,7 +79,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">中奖时间:2018-10-12 20:20</div>
<div className="got-time">中奖时间:{prize.createTime}</div>
</div>
</div>
<div className="item-bottom">
... ...