Blame view

src/routes/rescue/page.tsx 1012 Bytes
d6c39a10   杜志良   feat(cas): init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  import { Button, helper, Toast, PageProvider } from '@feewee/h5app-common';
  import { Helmet } from '@modern-js/runtime/head';
  import { useNavigate } from '@modern-js/runtime/router';
  
  function Index() {
    const navigate = useNavigate();
  
    return (
      <PageProvider tittle="急救待办" onBackClick={() => helper.checkBack(() => navigate(-1))}>
        <main className="p-4 h-screen h-svh">
          <div className=" mt-4">
            <Button type="info" shape="round" fill="outline" className="!mx-auto !block" onClick={() => navigate('/rescue/handle')}>
              急救待办
            </Button>
  
            <Button
              type="primary"
              shape="round"
              className="!mx-auto !block !mt-4"
              onClick={() =>
                Toast.show({
                  content: '成功提示',
                  icon: 'success',
                })
              }
            >
              吐司提示
            </Button>
          </div>
        </main>
      </PageProvider>
    );
  }
  
  export default Index;