提交 1953aa0d 作者: 翁进城

商城样式调整

上级 cc42b63b
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
flex-shrink: 0; flex-shrink: 0;
flex-direction: column; flex-direction: column;
gap: 12px; gap: 12px;
width: 270px; width: 189px;
.ad { .ad {
width: 270px; width: 189px;
height: 422px; height: 295px;
background-color: #d8d8d8; background-color: #d8d8d8;
} }
} }
...@@ -32,18 +32,18 @@ ...@@ -32,18 +32,18 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 12px; gap: 12px;
height: 856px; height: 565px;
.item { .item {
cursor: pointer; cursor: pointer;
width: 220px; width: 190px;
height: 205px; height: 183px;
background: #ffffff; background: #ffffff;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
padding: 19px 0 18px; padding: 15px 0 10px;
.imgBox { .imgBox {
width: 100%; width: 100%;
......
...@@ -22,7 +22,7 @@ export default function Mall(props: Props) { ...@@ -22,7 +22,7 @@ export default function Mall(props: Props) {
const [filterResult, setFilterResult] = useState<AdapterResult>({}); //筛选结果 const [filterResult, setFilterResult] = useState<AdapterResult>({}); //筛选结果
const [pageParams, setPageParams] = useState({ const [pageParams, setPageParams] = useState({
pageNo: 1, pageNo: 1,
pageSize: 16, pageSize: 15,
}); //分页器对象 }); //分页器对象
const [count, setCount] = useState(0); //商品总数 const [count, setCount] = useState(0); //商品总数
const [abort, setAbort] = useState<AbortController | null>(null); //请求中断对你 const [abort, setAbort] = useState<AbortController | null>(null); //请求中断对你
...@@ -147,8 +147,8 @@ export default function Mall(props: Props) { ...@@ -147,8 +147,8 @@ export default function Mall(props: Props) {
key={item.id} key={item.id}
className={styles.ad} className={styles.ad}
src={item.imageUrl} src={item.imageUrl}
width="270" width={189}
height="270" height={295}
preview={false} preview={false}
fallback={errImg} fallback={errImg}
></Image> ></Image>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论