Commit c9ded590 authored by haiyoucuv's avatar haiyoucuv

11

parent 4b4b61dc
...@@ -28,13 +28,15 @@ class TipPanel extends React.Component<ITipPanelProps> { ...@@ -28,13 +28,15 @@ class TipPanel extends React.Component<ITipPanelProps> {
render() { render() {
const { tip } = this.props; const { tip } = this.props;
const isNoTimes = tip === "获取提示机会已用完";
return <div className="TipPanel modal_center"> return <div className="TipPanel modal_center">
<div className="bg"/> <div className="bg"/>
<div className="text" dangerouslySetInnerHTML={{ <div className="text" dangerouslySetInnerHTML={{
__html: tip, __html: tip,
}}/> }}/>
<Button className="btn md15" onClick={this.clickBtn}/> <Button className={`btn md${isNoTimes ? 24 : 15}`} onClick={this.clickBtn}/>
<Button className="close md16" onClick={this.clickClose}/> <Button className={`close ${isNoTimes ? "" : "md16"}`} onClick={this.clickClose}/>
</div>; </div>;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment