...
|
...
|
@@ -176,6 +176,12 @@ export default class wheelSurf extends PureComponent { |
|
|
|
|
|
delete query['openby:yohobuy'];
|
|
|
|
|
|
// fix 中文编码
|
|
|
Object.keys(query).map(qk => {
|
|
|
if (/[\u4e00-\u9fa5]/.test(query[qk])) {
|
|
|
query[qk] = encodeURIComponent(query[qk]);
|
|
|
}
|
|
|
});
|
|
|
conf[key] = `${url}?${queryString.stringify(query)}`;
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -403,13 +409,13 @@ export default class wheelSurf extends PureComponent { |
|
|
|
|
|
return (
|
|
|
<div className="home-wrap">
|
|
|
<img className="main-bg" src={conf.main_bg}/>
|
|
|
<img className="main-bg" src={`${conf.main_bg}?imageMogr2/format/jpg`}/>
|
|
|
{conf.rule_btn_bg ? (<a data-type="other" data-url={conf.rule_url} onClick={this.jump}>
|
|
|
<img className="rule-btn" src={conf.rule_btn_bg}/>
|
|
|
<img className="rule-btn" src={`${conf.rule_btn_bg}?imageslim`}/>
|
|
|
</a>) : ''}
|
|
|
{conf.share_btn_bg && yaSDK.env === 'app' ? (<img onClick={this.shareInApp} className="share-btn" src={conf.share_btn_bg}/>): ''}
|
|
|
<img className="wheel-bg" id="rotateWheel" src={conf.wheel_bg}/>
|
|
|
<img onClick={()=>{this.start()}} className="start-btn-bg" src={conf.prize_btn_bg}/>
|
|
|
<img className="wheel-bg" id="rotateWheel" src={`${conf.wheel_bg}?imageslim`}/>
|
|
|
<img onClick={()=>{this.start()}} className="start-btn-bg" src={`${conf.prize_btn_bg}?imageslim`}/>
|
|
|
{
|
|
|
isLogin && showRemain ?
|
|
|
(<div className="tips">
|
...
|
...
|
@@ -420,14 +426,14 @@ export default class wheelSurf extends PureComponent { |
|
|
<BottomButton links={links} login={isLogin}/>
|
|
|
<Resource code={conf.bottomContentCode}/>
|
|
|
|
|
|
{slowEnding ? (<img className="prize-hit-bg transition" src={conf.win_prize_bg}/>) : ''}
|
|
|
{slowEnding ? (<img className="prize-hit-bg transition" src={`${conf.win_prize_bg}?imageslim`}/>) : ''}
|
|
|
{startEnded ? (
|
|
|
<div className="got-tip">
|
|
|
<div className="prize-tip">{this.state.gotDesc}</div>
|
|
|
<span onClick={this.setCanStart} className="try-again">确定</span>
|
|
|
</div>
|
|
|
) : ''}
|
|
|
{slowEnding ? (<img className="prize-hit-start-bg" src={conf.prize_btn_bg}/>) : ''}
|
|
|
{slowEnding ? (<img className="prize-hit-start-bg" src={`${conf.prize_btn_bg}?imageslim`}/>) : ''}
|
|
|
{
|
|
|
this.state.showTipModal ? <TipModal tip={this.state.modalTip} btnText={this.state.modalBtnText} confirm={() => {this.confirm()}} /> : ''
|
|
|
}
|
...
|
...
|
|