提交 b9708252 作者: 18928357778

改-飞手培训-样式调整自适应

改-飞手培训-报名学习课程修改
上级 13886d28
...@@ -86,7 +86,7 @@ export default function FlyingHandService() { ...@@ -86,7 +86,7 @@ export default function FlyingHandService() {
const rightDom = (item: string) => { const rightDom = (item: string) => {
return ( return (
<div className="right-box-item right-item" key={item}> <div className="right-box-item right-item" key={item}>
<Image src={item} alt="error" width={260} height={420} /> <Image src={item} alt="error" fill />
</div> </div>
); );
}; };
...@@ -234,7 +234,6 @@ export default function FlyingHandService() { ...@@ -234,7 +234,6 @@ export default function FlyingHandService() {
const [isModalOpen, setIsModalOpen] = useState(false); const [isModalOpen, setIsModalOpen] = useState(false);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const handleOk = async (values: any) => { const handleOk = async (values: any) => {
form form
.validateFields() .validateFields()
.then(async (values) => { .then(async (values) => {
...@@ -242,7 +241,8 @@ export default function FlyingHandService() { ...@@ -242,7 +241,8 @@ export default function FlyingHandService() {
try{ try{
const res = await api.PilotRegistrations({ const res = await api.PilotRegistrations({
...values, ...values,
city: values.city[values.city.length-1] || null province: values.city[0],
city: values.city[values.city.length-1] || null,
}) })
if (res.code === "200") { if (res.code === "200") {
setLoading(false); setLoading(false);
......
...@@ -43,7 +43,6 @@ export const Box = styled.div` ...@@ -43,7 +43,6 @@ export const Box = styled.div`
width: 220px; width: 220px;
cursor: pointer; cursor: pointer;
transition: all 0.5s; transition: all 0.5s;
background-color: #fff;
border-radius: 6px; border-radius: 6px;
&-top { &-top {
width: 220px; width: 220px;
...@@ -133,6 +132,7 @@ export const Box = styled.div` ...@@ -133,6 +132,7 @@ export const Box = styled.div`
background: #ffffff; background: #ffffff;
border-radius: 6px; border-radius: 6px;
overflow: hidden; overflow: hidden;
position: relative;
} }
.pagination-page { .pagination-page {
text-align: right; text-align: right;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论