Authored by 李奇

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

@@ -231,7 +231,7 @@ export default class wheelSurf extends PureComponent { @@ -231,7 +231,7 @@ export default class wheelSurf extends PureComponent {
231 231
232 if (!slowEnding) { 232 if (!slowEnding) {
233 if (this.state.speed < 16) { 233 if (this.state.speed < 16) {
234 - this.state.speed += 0.1; 234 + this.state.speed += 0.2;
235 } 235 }
236 236
237 this.state.angle += this.state.speed; 237 this.state.angle += this.state.speed;
@@ -4,6 +4,7 @@ import {prize} from '../../api'; @@ -4,6 +4,7 @@ import {prize} from '../../api';
4 import yaSDK from 'yoho-activity-sdk'; 4 import yaSDK from 'yoho-activity-sdk';
5 import config from '../../config'; 5 import config from '../../config';
6 import TipModal from '../components/tip-modal'; 6 import TipModal from '../components/tip-modal';
  7 +import moment from 'moment';
7 8
8 9
9 export default class Prize extends PureComponent { 10 export default class Prize extends PureComponent {
@@ -62,6 +63,10 @@ export default class Prize extends PureComponent { @@ -62,6 +63,10 @@ export default class Prize extends PureComponent {
62 63
63 let couponLink = 'https://m.yohobuy.com/home/coupons?openby:yohobuy={"action":"go.coupon"}'; 64 let couponLink = 'https://m.yohobuy.com/home/coupons?openby:yohobuy={"action":"go.coupon"}';
64 let redEnvelopeLink = 'https://activity.yoho.cn/feature/3221.html?title=我的红包&openby:yohobuy={"action":"go.mineredpackage"}'; 65 let redEnvelopeLink = 'https://activity.yoho.cn/feature/3221.html?title=我的红包&openby:yohobuy={"action":"go.mineredpackage"}';
  66 +
  67 + this.state.prizes.map(prize => {
  68 + prize.createTime = moment(new Date(prize.createTime).getTime()).format('YYYY-MM-DD HH:mm');
  69 + });
65 70
66 return ( 71 return (
67 <div className="my-prize-wrap"> 72 <div className="my-prize-wrap">
@@ -74,7 +79,7 @@ export default class Prize extends PureComponent { @@ -74,7 +79,7 @@ export default class Prize extends PureComponent {
74 <img src={prize.img} className="prize-img"/> 79 <img src={prize.img} className="prize-img"/>
75 <div className="prize-info"> 80 <div className="prize-info">
76 <div className="prize-name">{prize.name}</div> 81 <div className="prize-name">{prize.name}</div>
77 - <div className="got-time">中奖时间:2018-10-12 20:20</div> 82 + <div className="got-time">中奖时间:{prize.createTime}</div>
78 </div> 83 </div>
79 </div> 84 </div>
80 <div className="item-bottom"> 85 <div className="item-bottom">