...
|
...
|
@@ -13,6 +13,7 @@ export default class Prize extends PureComponent { |
|
|
super(props);
|
|
|
this.state = {
|
|
|
prizes: [],
|
|
|
pending: true,
|
|
|
showModal: false,
|
|
|
modalTip: '请联系客服请联系客服请联系客服请联系客服请联系客服请联系客服请联系客服请联系客服请联系客服请联系客服',
|
|
|
modalBtnText: '确定'
|
...
|
...
|
@@ -52,13 +53,14 @@ export default class Prize extends PureComponent { |
|
|
});
|
|
|
|
|
|
this.setState({
|
|
|
pending: false,
|
|
|
prizes: result.data
|
|
|
});
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
let {showModal, modalTip, modalBtnText} = this.state;
|
|
|
let {showModal, modalTip, modalBtnText, pending} = this.state;
|
|
|
let backUrl = `${document.location.protocol}//${document.location.host}${config.routerPath}/home.html?actId=${yaSDK.getQueryObj().actId}`;
|
|
|
|
|
|
let couponLink = 'https://m.yohobuy.com/home/coupons?openby:yohobuy={"action":"go.coupon"}';
|
...
|
...
|
@@ -69,7 +71,8 @@ export default class Prize extends PureComponent { |
|
|
});
|
|
|
|
|
|
return (
|
|
|
<div className="my-prize-wrap">
|
|
|
pending ? '' :
|
|
|
(<div className="my-prize-wrap">
|
|
|
{
|
|
|
this.state.prizes.length ? (
|
|
|
this.state.prizes.map(prize => {
|
...
|
...
|
@@ -103,7 +106,7 @@ export default class Prize extends PureComponent { |
|
|
{
|
|
|
showModal ? <TipModal tip={modalTip} btnText={modalBtnText} confirm={() => {this.confirm()}} /> : ''
|
|
|
}
|
|
|
</div>
|
|
|
</div>)
|
|
|
)
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|