Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project
jinfa-admin
Commits
90d6fd15
Commit
90d6fd15
authored
Oct 12, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商品详情添加厂商/商品资质图片
parent
c0ecbd1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
16 deletions
+48
-16
checkProducts.tsx
...roductManage/commodity/productWillCheck/checkProducts.tsx
+22
-8
index.less
src/pages/productManage/commodity/products/index.less
+4
-0
viewProducts.tsx
src/pages/productManage/commodity/products/viewProducts.tsx
+22
-8
No files found.
src/pages/productManage/commodity/productWillCheck/checkProducts.tsx
View file @
90d6fd15
...
...
@@ -771,16 +771,30 @@ const viewProducts: React.FC<{}> = () => {
{
productDetail
?.
commodityRemark
?.
imageList
?.
length
>
0
&&
<
div
className=
{
styles
.
descriptionBox
}
>
<
div
>
<
p
>
商品图片:
</
p
>
{
productDetail
?.
commodityRemark
?.
imageList
.
map
((
_item
,
_index
)
=>
_item
&&
<
Image
key=
{
_index
}
width=
{
180
}
src=
{
_item
[
'url'
]
}
alt=
"商品图片描述"
className=
{
styles
.
imgItem
}
/>)
productDetail
?.
commodityRemark
?.
imageList
.
filter
(
item
=>
item
.
imageType
===
1
).
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
.
url
}
/>
</
div
>)
}
</
div
>
<
div
>
<
p
>
厂商资质图片:
</
p
>
{
productDetail
?.
commodityRemark
?.
imageList
.
filter
(
item
=>
item
.
imageType
===
2
).
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
.
url
}
/>
</
div
>)
}
</
div
>
<
div
>
<
p
>
商品检测报告:
</
p
>
{
productDetail
?.
commodityRemark
?.
imageList
.
filter
(
item
=>
item
.
imageType
===
3
).
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
.
url
}
/>
</
div
>)
}
</
div
>
</
div
>
}
{
...
...
src/pages/productManage/commodity/products/index.less
View file @
90d6fd15
...
...
@@ -134,6 +134,10 @@
border:1px solid rgba(235,236,240,1);
display: flex;
justify-content: left;
flex-direction: column;
& > div {
display: flex;
}
.imgItem{
width:180px;
height:180px;
...
...
src/pages/productManage/commodity/products/viewProducts.tsx
View file @
90d6fd15
...
...
@@ -728,16 +728,30 @@ const viewProducts: React.FC<{}> = () => {
{
productDetail
?.
commodityRemark
?.
imageList
?.
length
>
0
&&
<
div
className=
{
styles
.
descriptionBox
}
>
<
div
>
<
p
>
商品图片:
</
p
>
{
productDetail
?.
commodityRemark
?.
imageList
.
map
((
_item
,
_index
)
=>
_item
&&
<
Image
key=
{
_index
}
width=
{
180
}
src=
{
_item
[
'url'
]
}
alt=
"商品图片描述"
className=
{
styles
.
imgItem
}
/>)
productDetail
?.
commodityRemark
?.
imageList
.
filter
(
item
=>
item
.
imageType
===
1
).
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
.
url
}
/>
</
div
>)
}
</
div
>
<
div
>
<
p
>
厂商资质图片:
</
p
>
{
productDetail
?.
commodityRemark
?.
imageList
.
filter
(
item
=>
item
.
imageType
===
2
).
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
.
url
}
/>
</
div
>)
}
</
div
>
<
div
>
<
p
>
商品检测报告:
</
p
>
{
productDetail
?.
commodityRemark
?.
imageList
.
filter
(
item
=>
item
.
imageType
===
3
).
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
.
url
}
/>
</
div
>)
}
</
div
>
</
div
>
}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment