...
|
...
|
@@ -15,9 +15,12 @@ export default class wheelSurf extends PureComponent { |
|
|
document.title ='大转盘'
|
|
|
super(props);
|
|
|
this.state = {
|
|
|
env: '',
|
|
|
url: ''
|
|
|
}
|
|
|
conf: {
|
|
|
// 默认数据
|
|
|
}
|
|
|
};
|
|
|
|
|
|
|
|
|
// this.collect = this.collect.bind(this);
|
|
|
this.init();
|
|
|
|
...
|
...
|
@@ -39,8 +42,7 @@ export default class wheelSurf extends PureComponent { |
|
|
if(!uid || !parseInt(uid)){
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let result = await conf({
|
|
|
actId,
|
|
|
uid: uid,
|
...
|
...
|
@@ -48,10 +50,13 @@ export default class wheelSurf extends PureComponent { |
|
|
sessionType: cookie.load('app_client_type') || '',
|
|
|
appVersion: cookie.load('app_version') || ''
|
|
|
});
|
|
|
this.setState({
|
|
|
storage: result.data
|
|
|
})
|
|
|
}
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
this.setState({
|
|
|
conf: result.data
|
|
|
})
|
|
|
}
|
|
|
};
|
|
|
|
|
|
collect = async (id) => {
|
|
|
//判断是否是clicked
|
...
|
...
|
@@ -185,8 +190,8 @@ export default class wheelSurf extends PureComponent { |
|
|
|
|
|
render() {
|
|
|
return (
|
|
|
<div className="wrap">
|
|
|
|
|
|
<div className="home-wrap">
|
|
|
<img className="main-bg" src={this.state.conf.main_bg + '?imageslim'}/>
|
|
|
</div>
|
|
|
)
|
|
|
}
|
...
|
...
|
|