Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
2d32ce1e
提交
2d32ce1e
authored
5月 15, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
产品商城样式
上级
7563c445
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
98 行增加
和
3 行删除
+98
-3
index.module.scss
src/pages/mall/index.module.scss
+65
-0
index.tsx
src/pages/mall/index.tsx
+32
-2
index.scss
src/style/index.scss
+1
-1
没有找到文件。
src/pages/mall/index.module.scss
0 → 100644
浏览文件 @
2d32ce1e
.productList
{
.title
{
padding
:
20px
10px
18px
;
text-align
:
left
;
}
.main
{
display
:
flex
;
.ad
{
flex-shrink
:
0
;
width
:
260px
;
height
:
420px
;
margin-left
:
16px
;
background-color
:
gray
;
}
}
.listWrap
{
display
:
flex
;
flex-wrap
:
wrap
;
margin-left
:
-14px
;
.item
{
width
:
220px
;
height
:
326px
;
background
:
#ffffff
;
border-radius
:
6px
;
margin-bottom
:
15px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
padding-bottom
:
18px
;
margin-left
:
14px
;
.img
{
width
:
100%
;
height
:
220px
;
}
.title
{
padding
:
0
18px
;
font-size
:
15px
;
font-family
:
MicrosoftYaHeiUI-Bold
,
MicrosoftYaHeiUI
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
24px
;
height
:
48px
;
display
:
-
webkit-box
;
/* 使用弹性盒子布局 */
-webkit-line-clamp
:
2
;
/* 显示行数 */
-webkit-box-orient
:
vertical
;
/* 垂直排列 */
overflow
:
hidden
;
/* 隐藏溢出部分 */
text-overflow
:
ellipsis
;
/* 使用省略号代替溢出部分 */
}
.sellCount
{
font-size
:
14px
;
font-family
:
MicrosoftYaHei
;
color
:
#ff552d
;
padding-left
:
20px
;
}
}
}
}
\ No newline at end of file
src/pages/mall/index.tsx
浏览文件 @
2d32ce1e
import
React
,
{
useState
}
from
'react'
;
import
{
Button
,
Form
,
Input
,
Select
,
Cascader
,
Space
,
Tag
}
from
'antd'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Button
,
Form
,
Input
,
Select
,
Cascader
,
Space
,
Tag
,
Row
,
Col
}
from
'antd'
;
import
styles
from
'./index.module.scss'
;
const
{
Option
}
=
Select
;
...
...
@@ -45,6 +46,12 @@ const options: AddrOption[] = [
];
export
default
function
Mall
()
{
const
[
productList
,
setProductList
]
=
useState
(
Array
<
{}
>
);
useEffect
(()
=>
{
setProductList
([{},
{},
{},
{},
{},
{}]);
},
[])
const
onProvinceChange
=
(
value
:
string
)
=>
{
console
.
log
(
'省'
,
value
);
};
...
...
@@ -214,6 +221,29 @@ export default function Mall() {
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
productList
}
>
<
div
className=
{
styles
.
title
}
>
四旋翼无人机
</
div
>
<
div
className=
{
styles
.
main
}
>
<
ul
className=
{
styles
.
listWrap
}
>
{
productList
.
map
(
item
=>
{
return
(
<
li
className=
{
styles
.
item
}
>
<
img
className=
{
styles
.
img
}
></
img
>
<
div
className=
{
styles
.
title
}
>
入云龙ll 1550入云龙ll 1550入云龙ll 1550入云龙ll 1550
</
div
>
<
div
className=
{
styles
.
sellCount
}
>
半年售12987
</
div
>
</
li
>
)
})
}
</
ul
>
<
div
className=
{
styles
.
ad
}
>
</
div
>
</
div
>
</
div
>
</
div
>
);
}
src/style/index.scss
浏览文件 @
2d32ce1e
...
...
@@ -12,7 +12,7 @@ body::-webkit-scrollbar {
.page
{
width
:
1200px
;
margin
:
auto
;
padding-bottom
:
5
0px
;
padding-bottom
:
9
0px
;
}
.filter-wrap
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论