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

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

上级 e75e445d
......@@ -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() {
const { from } = this.props;
const { from, hiddenButton } = this.props;
const { id, showAll, code } = this.state;
const url = config.onestopPC.split('/#/');
let showPrint = this.props.location?.state?.showPrint;
......@@ -89,31 +126,9 @@ export default class Detail extends Component {
// console.log(showPrint);
return (
<PageHeaderWrapper title="">
<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>
{
this.getButtons()
}
<Shell>
{from === 'onestopApp2.0' ? (
<iframe
......@@ -139,32 +154,9 @@ export default class Detail extends Component {
</div>
)}
</Shell>
<Shell>
<div
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>
{
this.getButtons()
}
</PageHeaderWrapper>
);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论