|
@ -1,13 +1,20 @@ |
|
|
import { NavBar } from 'antd-mobile'; |
|
|
import { NavBar } from 'antd-mobile'; |
|
|
import StepItem from '../components/StepItem'; |
|
|
import StepItem from '../components/StepItem'; |
|
|
import { Link } from 'react-router-dom'; |
|
|
|
|
|
|
|
|
import { Link, useNavigate } from 'react-router-dom'; |
|
|
|
|
|
import CustomNavBar from '../components/CustomNavBar'; |
|
|
|
|
|
|
|
|
export default function Measure() { |
|
|
export default function Measure() { |
|
|
|
|
|
const navigate = useNavigate(); |
|
|
|
|
|
|
|
|
|
|
|
const onSaveClick = () => { |
|
|
|
|
|
navigate('/measure/save'); |
|
|
|
|
|
}; |
|
|
return ( |
|
|
return ( |
|
|
<div> |
|
|
|
|
|
<NavBar className="bg-white" back={null}> |
|
|
|
|
|
测量 |
|
|
|
|
|
</NavBar> |
|
|
|
|
|
|
|
|
<div className="relative pt-[--navBarHeight]"> |
|
|
|
|
|
<div className="absolute top-0 w-full z-10"> |
|
|
|
|
|
<CustomNavBar title={'测量'}></CustomNavBar> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<main className="home-page-content overflow-x-hidden overflow-y-auto"> |
|
|
<main className="home-page-content overflow-x-hidden overflow-y-auto"> |
|
|
<div className="relative h-0 p-0 pb-[75%]"> |
|
|
<div className="relative h-0 p-0 pb-[75%]"> |
|
|
<div className="absolute left-0 right-0 top-0 bottom-0 bg-title"></div> |
|
|
<div className="absolute left-0 right-0 top-0 bottom-0 bg-title"></div> |
|
@ -15,12 +22,16 @@ export default function Measure() { |
|
|
|
|
|
|
|
|
<section className="h-10 bg-[#e3e8f5] flex justify-between items-center px-4"> |
|
|
<section className="h-10 bg-[#e3e8f5] flex justify-between items-center px-4"> |
|
|
<p className="text-text">北京铁路局 /客运段/京沪线/左侧</p> |
|
|
<p className="text-text">北京铁路局 /客运段/京沪线/左侧</p> |
|
|
<Link to="/home/setting" className="text-primary underline">修改</Link> |
|
|
|
|
|
|
|
|
<Link to="/home/setting" className="text-primary underline"> |
|
|
|
|
|
修改 |
|
|
|
|
|
</Link> |
|
|
</section> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section className="flex items-center gap-4 px-4 my-4"> |
|
|
<section className="flex items-center gap-4 px-4 my-4"> |
|
|
<div className="btn-contained rounded-md text-sm h-10 flex-1">开始测量</div> |
|
|
<div className="btn-contained rounded-md text-sm h-10 flex-1">开始测量</div> |
|
|
<div className="btn-contained rounded-md text-sm h-10 flex-1">保存</div> |
|
|
|
|
|
|
|
|
<div className="btn-contained rounded-md text-sm h-10 flex-1" onClick={onSaveClick}> |
|
|
|
|
|
保存 |
|
|
|
|
|
</div> |
|
|
</section> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section className="grid grid-cols-2 gap-[10px] px-3"> |
|
|
<section className="grid grid-cols-2 gap-[10px] px-3"> |
|
|