4 changed files with 81 additions and 2 deletions
@ -0,0 +1,20 @@ |
|||
export default function StepItem({ state = 0, text }: { state: 0 | 1 | 2; text: string }) { |
|||
return ( |
|||
<div className="flex items-center px-4 h-10 bg-white rounded gap-3"> |
|||
<div |
|||
className={`rounded-full w-[14px] h-[14px] flex justify-center items-center ${ |
|||
state === 2 |
|||
? 'bg-[#52C41A]/[0.35]' |
|||
: state === 1 |
|||
? 'bg-[#187ef9]/[0.35]' |
|||
: 'bg-[#c0c0c0]/[0.35]' |
|||
}`}>
|
|||
<div |
|||
className={`rounded-full w-[10px] h-[10px] ${ |
|||
state === 2 ? 'bg-[#52C41A]' : state === 1 ? 'bg-[#187ef9]' : 'bg-[#c0c0c0]' |
|||
}`}></div>
|
|||
</div> |
|||
<p>{text}</p> |
|||
</div> |
|||
); |
|||
} |
@ -1,10 +1,36 @@ |
|||
import { NavBar } from 'antd-mobile'; |
|||
import StepItem from '../components/StepItem'; |
|||
|
|||
export default function Measure() { |
|||
return ( |
|||
<div> |
|||
<NavBar className='bg-white' back={null}>测量</NavBar> |
|||
<div className="home-page-content">Measure</div> |
|||
<NavBar className="bg-white" back={null}> |
|||
测量 |
|||
</NavBar> |
|||
<main className="home-page-content overflow-x-hidden overflow-y-auto"> |
|||
<div className="relative h-0 p-0 pb-[75%]"> |
|||
<div className="absolute left-0 right-0 top-0 bottom-0 bg-title"></div> |
|||
</div> |
|||
|
|||
<section className="h-10 bg-[#e3e8f5] flex justify-between items-center px-4"> |
|||
<p className="text-text">北京铁路局 /客运段/京沪线/左侧</p> |
|||
<p className="text-primary underline">修改</p> |
|||
</section> |
|||
|
|||
<section className="flex items-center gap-4 px-4 my-4"> |
|||
<div className="btn-contained text-sm h-10 flex-1">开始测量</div> |
|||
<div className="btn-contained text-sm h-10 flex-1">保存</div> |
|||
</section> |
|||
|
|||
<section className="grid grid-cols-2 gap-[10px] px-3"> |
|||
<StepItem state={2} text={'移到顶部停留2秒'} /> |
|||
<StepItem state={2} text={'移到顶部停留2秒'} /> |
|||
<StepItem state={0} text={'开始测量左侧'} /> |
|||
<StepItem state={0} text={'开始测量右侧'} /> |
|||
<StepItem state={1} text={'左侧测量完成'} /> |
|||
<StepItem state={1} text={'右侧测量完成'} /> |
|||
</section> |
|||
</main> |
|||
</div> |
|||
); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue