...
|
...
|
@@ -3,11 +3,7 @@ import './index.scss' |
|
|
import {conf, start} from '../../api'
|
|
|
import yaSDK from 'yoho-activity-sdk';
|
|
|
import cookie from 'react-cookies';
|
|
|
import LazyLoad from 'react-lazy-load'
|
|
|
import queryString from '../../../../common/query-stringify'
|
|
|
import {
|
|
|
Link
|
|
|
} from 'react-router-dom'
|
|
|
|
|
|
import Resource from '../components/resource';
|
|
|
import BottomButton from '../components/bottom-button';
|
...
|
...
|
@@ -183,7 +179,7 @@ export default class wheelSurf extends PureComponent { |
|
|
result = {
|
|
|
data: {
|
|
|
prize_idx: this.state.epPrize.prize_idx,
|
|
|
desc: '对不起,您没有中奖'
|
|
|
desc: 'oops!'
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -191,7 +187,7 @@ export default class wheelSurf extends PureComponent { |
|
|
result = {
|
|
|
data: {
|
|
|
prize_idx: this.state.epPrize.prize_idx,
|
|
|
desc: '对不起,您没有中奖'
|
|
|
desc: 'oops!'
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -199,7 +195,7 @@ export default class wheelSurf extends PureComponent { |
|
|
let timer = setTimeout(() => {
|
|
|
clearTimeout(timer);
|
|
|
this.state.stopAngle = this.calcStopAngle(result.data.prize_idx);
|
|
|
this.state.gotDesc = result.data.desc;
|
|
|
this.state.gotDesc = result.data.type === 1 ? 'oops!' : '恭喜您!中奖了';
|
|
|
this.setState({
|
|
|
slowEnding: true
|
|
|
});
|
...
|
...
|
|