Authored by 李奇

分享、奖品列表等修改

... ... @@ -4,7 +4,7 @@ module.exports = {
domain: 'https://action.yoho.cn'
},
development: {
routerPath: '/test/2018/10/wheelSurf',
routerPath: '/html5/test/2018/10/wheelSurf',
domain: '//yoho-activity-platform.test3.ingress.dev.yohocorp.com'
}
}[process.env.NODE_ENV || 'development']
\ No newline at end of file
... ...
... ... @@ -125,7 +125,7 @@ export default class wheelSurf extends PureComponent {
yaSDK.wxShare({
title: conf.share_title,
imgUrl: conf.share_img,
imgUrl: `${conf.share_img}?imageView2/1/w/200/h/200`,
desc: conf.share_desc,
link: conf.share_url
});
... ... @@ -142,7 +142,7 @@ export default class wheelSurf extends PureComponent {
let result = await start({
act_id: +this.state.query.actId,
uid: cookie.load('uid'),
sessionKey: cookie.load('session_key'),
sessionKey: cookie.load('app_session_key'),
sessionType: cookie.load('app_client_type'),
appVersion: cookie.load('app_version')
});
... ...
... ... @@ -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
... ...
... ... @@ -9,7 +9,7 @@ export default {
},
development: {
routerPath: {
wheelSurf: '/test/2018/10/wheelSurf',
wheelSurf: '/html5/test/2018/10/wheelSurf',
},
domain: '//yoho-activity-platform.test3.ingress.dev.yohocorp.com',
currentApp
... ...