Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
972c97d5
提交
972c97d5
authored
5月 19, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修正构建错误提示
上级
cef88e10
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
3 行增加
和
29 行删除
+3
-29
index.tsx
components/filter/index.tsx
+1
-4
index.tsx
...ipmentLeasing/detail/components/picture-preview/index.tsx
+1
-1
index.page.tsx
pages/equipmentLeasing/index.page.tsx
+0
-23
图标.png
pages/home/waterfallFlowBody/assets/图标.png
+0
-0
index.tsx
pages/home/waterfallFlowBody/index.tsx
+1
-1
没有找到文件。
components/filter/index.tsx
浏览文件 @
972c97d5
import
CategoryItem
from
"./compoents/categoryItem"
;
import
{
FilterOptionResp
,
leasingApi
,
mallApi
}
from
"./api"
;
import
{
FilterOptionResp
}
from
"./api"
;
import
ResultItem
from
"./compoents/resultItem"
;
import
RegionItem
from
"./compoents/regionItem"
;
import
styles
from
"./index.module.scss"
;
...
...
@@ -86,6 +86,3 @@ export default function Filter(props: Props) {
</>
);
}
Filter
.
mallApi
=
mallApi
;
Filter
.
leasingApi
=
leasingApi
;
pages/equipmentLeasing/detail/components/picture-preview/index.tsx
浏览文件 @
972c97d5
import
React
,
{
useState
,
useRef
}
from
'react'
import
{
Box
}
from
'./styled'
;
import
{
LeftOutlined
,
RightOutlined
}
from
'@ant-design/icons'
;
export
default
function
index
()
{
export
default
function
PicturePreview
()
{
const
mask
=
useRef
<
HTMLDivElement
>
(
null
!
)
const
moveBox
=
useRef
<
HTMLDivElement
>
(
null
!
)
const
big
=
useRef
<
HTMLImageElement
>
(
null
!
)
...
...
pages/equipmentLeasing/index.page.tsx
浏览文件 @
972c97d5
...
...
@@ -10,31 +10,13 @@ import { FilterOptionResp } from "~/components/filter/api";
// 此函数在构建时被调用
export
async
function
getStaticProps
()
{
//获取筛选数据,进行静态渲染
const
brand
=
Filter
.
mallApi
.
brand
();
const
category
=
Filter
.
mallApi
.
category
();
const
model
=
Filter
.
mallApi
.
model
();
const
part
=
Filter
.
mallApi
.
part
();
const
quality
=
Filter
.
mallApi
.
quality
();
const
res
=
await
Promise
.
all
([
brand
,
category
,
part
,
model
,
quality
]);
return
{
props
:
{
brandData
:
res
[
0
].
result
||
[],
categoryData
:
res
[
1
].
result
||
[],
partData
:
res
[
2
].
result
||
[],
modelData
:
res
[
3
].
result
||
[],
qualityData
:
res
[
4
].
result
||
[],
},
};
}
type
Props
=
{
brandData
:
Array
<
FilterOptionResp
>
;
categoryData
:
Array
<
FilterOptionResp
>
;
partData
:
Array
<
FilterOptionResp
>
;
modelData
:
Array
<
FilterOptionResp
>
;
qualityData
:
Array
<
FilterOptionResp
>
;
};
export
default
function
EquipmentLeasing
(
props
:
Props
)
{
...
...
@@ -67,11 +49,6 @@ export default function EquipmentLeasing(props:Props) {
<
Filter
types=
{
[
"类目"
,
"地域"
,
"品牌"
,
"部件"
,
"型号"
,
"成色"
]
}
showResultItem
brandData=
{
props
.
brandData
}
categoryData=
{
props
.
categoryData
}
partData=
{
props
.
partData
}
modelData=
{
props
.
modelData
}
qualityData=
{
props
.
qualityData
}
onChange=
{
onFilterChange
}
></
Filter
>
<
div
style=
{
{
paddingTop
:
13
}
}
>
...
...
pages/home/waterfallFlowBody/assets/
icon
.png
→
pages/home/waterfallFlowBody/assets/
图标
.png
浏览文件 @
972c97d5
File moved
pages/home/waterfallFlowBody/index.tsx
浏览文件 @
972c97d5
...
...
@@ -5,7 +5,7 @@ import { Box } from "./styled";
import
ContentBox
from
"~/components/contentBox"
;
import
RotationChart
from
"./components/rotationChart"
;
import
Map
from
"./components/map"
;
import
icon
from
"./assets/
icon
.png"
;
import
icon
from
"./assets/
图标
.png"
;
// const icon = "error";
export
default
function
WaterfallFlowBody
()
{
const
onMoreChange
=
(
value
:
string
)
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论