删除不需要的页面
parent
03febbbc45
commit
6dd8996727
@ -1,42 +0,0 @@
|
||||
import { Button, Checkbox, Form, Input, Row, Typography, Layout } from 'antd';
|
||||
const { Header, Footer, Sider, Content } = Layout;
|
||||
const { Title } = Typography;
|
||||
const headerStyle = {
|
||||
textAlign: 'center',
|
||||
// color: '#fff',
|
||||
height: 64,
|
||||
paddingInline: 50,
|
||||
lineHeight: '64px',
|
||||
backgroundColor: '#f5f5f5',
|
||||
};
|
||||
const contentStyle = {
|
||||
textAlign: 'center',
|
||||
minHeight: 600,
|
||||
lineHeight: '120px',
|
||||
// color: '#fff',
|
||||
// backgroundColor: '#108ee9',
|
||||
};
|
||||
const footerStyle = {
|
||||
textAlign: 'center',
|
||||
// color: '#fff',
|
||||
// backgroundColor: '#7dbcea',
|
||||
};
|
||||
const onFinish = (values) => {
|
||||
console.log('Success:', values);
|
||||
};
|
||||
const onFinishFailed = (errorInfo) => {
|
||||
console.log('Failed:', errorInfo);
|
||||
};
|
||||
const SignOut = () => (
|
||||
<Layout>
|
||||
<Header style={headerStyle}>
|
||||
<Title>Global Highlights Hub</Title>
|
||||
</Header>
|
||||
<Content style={contentStyle}>
|
||||
See you.
|
||||
</Content>
|
||||
<Footer style={footerStyle}>Footer</Footer>
|
||||
</Layout>
|
||||
|
||||
);
|
||||
export default SignOut;
|
@ -1,29 +0,0 @@
|
||||
import { observer } from "mobx-react";
|
||||
import { Row, Col, Space, Table, Typography, List, Watermark } from 'antd';
|
||||
import DocViewer, { DocViewerRenderers } from "@cyntler/react-doc-viewer";
|
||||
import { useStore } from '@/stores/StoreContext.js';
|
||||
|
||||
const { Title } = Typography;
|
||||
|
||||
function NameCard() {
|
||||
const { reservationStore } = useStore();
|
||||
const docs = [{ uri: "https://www.chinahighlights.com/public/NameCard.doc" }];
|
||||
|
||||
return (
|
||||
<Watermark content={['Global Highlights', 'Discovery Your Way!']}>
|
||||
<DocViewer
|
||||
config={{
|
||||
header: {
|
||||
disableHeader: true,
|
||||
disableFileName: false,
|
||||
retainURLParams: false,
|
||||
},
|
||||
}}
|
||||
documents={docs}
|
||||
pluginRenderers={DocViewerRenderers}
|
||||
style={{ height: 750 }} />
|
||||
</Watermark>
|
||||
);
|
||||
}
|
||||
|
||||
export default observer(NameCard);
|
@ -1,28 +0,0 @@
|
||||
import { useParams, useNavigate } from "react-router-dom";
|
||||
import { useEffect } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { toJS } from "mobx";
|
||||
import { Row, Col, Space, Table, Typography, List, Watermark } from "antd";
|
||||
import DocViewer, { DocViewerRenderers } from "@cyntler/react-doc-viewer";
|
||||
import { useStore } from "../../stores/StoreContext.js";
|
||||
|
||||
function Print() {
|
||||
const navigate = useNavigate();
|
||||
const { reservationId } = useParams();
|
||||
const docs = [{ uri: "https://www.chinahighlights.com/public/reservationW220420009.doc" }, { uri: "https://www.chinahighlights.com/public/NameCard.doc" }];
|
||||
|
||||
useEffect(() => {
|
||||
console.info("Detail.useEffect: " + reservationId);
|
||||
}, [reservationId]);
|
||||
|
||||
return (
|
||||
<Watermark content={["Global Highlights", "Discovery Your Way!"]}>
|
||||
<DocViewer
|
||||
documents={docs}
|
||||
pluginRenderers={DocViewerRenderers}
|
||||
style={{ height: 750 }} />
|
||||
</Watermark>
|
||||
);
|
||||
}
|
||||
|
||||
export default observer(Print);
|
Loading…
Reference in New Issue