提交 61a7c5ba authored 作者: 钟是志's avatar 钟是志

30722 关于自由活动申报限制选团组织范围说明

上级 e75e445d
...@@ -66,8 +66,45 @@ export default class Detail extends Component { ...@@ -66,8 +66,45 @@ export default class Detail extends Component {
}); });
}; };
getButtons = () => {
const { showAll } = this.state;
const { hiddenButton } = this.props;
if(hiddenButton){
return null;
}
return (
<>
<Shell>
<div
style={{
height: '54px',
padding: '12px 0 12px 12px',
}}>
{showAll ? (
<ButtonDiy
name="返回"
className="defaultBlue"
handleClick={() => {
router.goBack();
}}
icon="arrow-left"
/>
) : null}
<ButtonDiy
name={'全屏查看'}
className="defaultBlue"
handleClick={() => {
document.getElementById('detailIframeId').requestFullscreen();
}}
/>
</div>
</Shell>
</>
);
}
render() { render() {
const { from } = this.props; const { from, hiddenButton } = this.props;
const { id, showAll, code } = this.state; const { id, showAll, code } = this.state;
const url = config.onestopPC.split('/#/'); const url = config.onestopPC.split('/#/');
let showPrint = this.props.location?.state?.showPrint; let showPrint = this.props.location?.state?.showPrint;
...@@ -89,31 +126,9 @@ export default class Detail extends Component { ...@@ -89,31 +126,9 @@ export default class Detail extends Component {
// console.log(showPrint); // console.log(showPrint);
return ( return (
<PageHeaderWrapper title=""> <PageHeaderWrapper title="">
<Shell> {
<div this.getButtons()
style={{ }
height: '54px',
padding: '12px 0 12px 12px',
}}>
{showAll ? (
<ButtonDiy
name="返回"
className="defaultBlue"
handleClick={() => {
router.goBack();
}}
icon="arrow-left"
/>
) : null}
<ButtonDiy
name={'全屏查看'}
className="defaultBlue"
handleClick={() => {
document.getElementById('detailIframeId').requestFullscreen();
}}
/>
</div>
</Shell>
<Shell> <Shell>
{from === 'onestopApp2.0' ? ( {from === 'onestopApp2.0' ? (
<iframe <iframe
...@@ -139,32 +154,9 @@ export default class Detail extends Component { ...@@ -139,32 +154,9 @@ export default class Detail extends Component {
</div> </div>
)} )}
</Shell> </Shell>
<Shell> {
<div this.getButtons()
style={{ }
height: '54px',
padding: '12px 0 12px 12px',
}}>
{showAll ? (
<ButtonDiy
name="返回"
className="defaultBlue"
handleClick={() => {
router.goBack();
}}
icon="arrow-left"
/>
) : null}
<ButtonDiy
name={'全屏查看'}
type={'primary'}
// className='primaryBlue'
handleClick={() => {
document.getElementById('detailIframeId').requestFullscreen();
}}
/>
</div>
</Shell>
</PageHeaderWrapper> </PageHeaderWrapper>
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论