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
1f244ba6
Commit
1f244ba6
authored
Nov 02, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理品牌、商品图片没有放大问题
parent
66d1a85c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
21 deletions
+65
-21
checkProducts.tsx
src/pages/commodity/productWillCheck/checkProducts.tsx
+23
-8
index.less
src/pages/commodity/productWillCheck/index.less
+2
-0
index.less
src/pages/commodity/products/index.less
+3
-0
viewProducts.tsx
src/pages/commodity/products/viewProducts.tsx
+23
-9
viewBrand.tsx
src/pages/trademark/trademarkSearch/viewBrand.tsx
+7
-2
checkBrand.tsx
src/pages/trademark/trademarkWillCheck/checkBrand.tsx
+7
-2
No files found.
src/pages/commodity/productWillCheck/checkProducts.tsx
View file @
1f244ba6
import
React
,
{
useState
,
useRef
,
ReactNode
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
Button
,
Steps
,
Card
,
Space
,
Modal
,
Form
,
Row
,
Col
,
Descriptions
,
Table
,
Tabs
,
Tag
,
Divider
,
Radio
,
Input
}
from
'antd'
import
{
Button
,
Steps
,
Card
,
Space
,
Modal
,
Form
,
Row
,
Col
,
Descriptions
,
Table
,
Tabs
,
Tag
,
Divider
,
Radio
,
Input
,
Image
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
CaretDownOutlined
,
...
...
@@ -673,8 +673,13 @@ const viewProducts: React.FC<{}> = () => {
<
div
className=
{
styles
.
productImgBox
}
>
{
productDetail
?.
unitPriceAndPicList
[
0
].
commodityPic
.
length
>
0
&&
productDetail
?.
unitPriceAndPicList
[
0
].
commodityPic
.
map
((
_item
,
index
)
=>
<
div
key=
{
index
}
className=
{
styles
.
imgItem
}
><
img
className=
{
styles
.
pic
}
src=
{
_item
}
alt=
""
/>
</
div
>)
<
Image
key=
{
index
}
width=
{
104
}
src=
{
_item
}
alt=
"商品图片描述"
className=
{
styles
.
imgItem
}
/>)
}
</
div
>
</>
:
<>
...
...
@@ -701,8 +706,13 @@ const viewProducts: React.FC<{}> = () => {
<
div
className=
{
styles
.
productImgBox
}
>
{
imageArrByImageRender
.
length
>
0
&&
imageArrByImageRender
[
index
].
map
((
_item
,
_index
)
=>
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
><
img
className=
{
styles
.
pic
}
src=
{
_item
}
alt=
""
/>
</
div
>)
<
Image
key=
{
_index
}
width=
{
104
}
src=
{
_item
}
alt=
"商品图片描述"
className=
{
styles
.
imgItem
}
/>)
}
</
div
>
</
div
>)
...
...
@@ -742,9 +752,14 @@ const viewProducts: React.FC<{}> = () => {
productDetail
?.
commodityRemark
?.
image
?.
length
>
0
&&
<
div
className=
{
styles
.
descriptionBox
}
>
{
productDetail
?.
commodityRemark
?.
image
.
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
}
/>
</
div
>)
productDetail
?.
commodityRemark
?.
image
.
map
((
_item
,
_index
)
=>
_item
&&
<
Image
key=
{
_index
}
width=
{
180
}
src=
{
_item
}
alt=
"商品图片描述"
className=
{
styles
.
imgItem
}
/>)
}
</
div
>
}
...
...
src/pages/commodity/productWillCheck/index.less
View file @
1f244ba6
...
...
@@ -139,6 +139,7 @@
height:104px;
margin-left: 16px;
border:1px solid rgba(235,236,240,1);
object-fit: fill;
}
p{
padding: 16px;
...
...
@@ -154,6 +155,7 @@
height:104px;
margin-right: 16px;
border:1px solid rgba(235,236,240,1);
object-fit: fill;
.pic{
width: 100%;
height: 100%;
...
...
src/pages/commodity/products/index.less
View file @
1f244ba6
...
...
@@ -185,6 +185,9 @@
top: 50%;
transform: translate(-50%, -50%);
}
img{
object-fit: fill;
}
}
}
.pruduct-status{
...
...
src/pages/commodity/products/viewProducts.tsx
View file @
1f244ba6
import
React
,
{
useState
,
useRef
,
ReactNode
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
Button
,
Steps
,
Card
,
Space
,
Radio
,
Row
,
Col
,
Descriptions
,
Table
,
Tabs
,
Tag
,
Divider
}
from
'antd'
import
{
Button
,
Steps
,
Card
,
Space
,
Radio
,
Row
,
Col
,
Descriptions
,
Table
,
Tabs
,
Tag
,
Divider
,
Image
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
cx
from
'classnames'
...
...
@@ -617,7 +617,6 @@ const viewProducts: React.FC<{}> = () => {
<
Space
direction=
"vertical"
style=
{
{
width
:
'100%'
}
}
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"商品图片"
>
{
// productDetail?.unitPriceAndPicList[0].attributeAndValueList.length === 0 ? <>
productDetail
?.
isAllAttributePic
?
<>
<
Row
>
<
Col
span=
{
3
}
>
...
...
@@ -631,8 +630,13 @@ const viewProducts: React.FC<{}> = () => {
<
div
className=
{
styles
.
productImgBox
}
>
{
productDetail
?.
unitPriceAndPicList
[
0
].
commodityPic
.
length
>
0
&&
productDetail
?.
unitPriceAndPicList
[
0
].
commodityPic
.
map
((
_item
,
index
)
=>
<
div
key=
{
index
}
className=
{
styles
.
imgItem
}
><
img
className=
{
styles
.
pic
}
src=
{
_item
}
alt=
""
/>
</
div
>)
<
Image
key=
{
index
}
className=
{
styles
.
imgItem
}
width=
{
104
}
src=
{
_item
}
alt=
"商品图片"
/>)
}
</
div
>
</>
:
<>
...
...
@@ -659,8 +663,13 @@ const viewProducts: React.FC<{}> = () => {
<
div
className=
{
styles
.
productImgBox
}
>
{
imageArrByImageRender
.
length
>
0
&&
imageArrByImageRender
[
index
].
map
((
_item
,
_index
)
=>
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
><
img
className=
{
styles
.
pic
}
src=
{
_item
}
alt=
""
/>
</
div
>)
<
Image
key=
{
_index
}
className=
{
styles
.
imgItem
}
width=
{
104
}
src=
{
_item
}
alt=
"商品图片"
/>)
}
</
div
>
</
div
>)
...
...
@@ -700,9 +709,14 @@ const viewProducts: React.FC<{}> = () => {
productDetail
?.
commodityRemark
?.
image
?.
length
>
0
&&
<
div
className=
{
styles
.
descriptionBox
}
>
{
productDetail
?.
commodityRemark
?.
image
.
map
((
_item
,
_index
)
=>
_item
&&
<
div
key=
{
_index
}
className=
{
styles
.
imgItem
}
>
<
img
src=
{
_item
}
/>
</
div
>)
productDetail
?.
commodityRemark
?.
image
.
map
((
_item
,
_index
)
=>
_item
&&
<
Image
key=
{
_index
}
width=
{
180
}
src=
{
_item
}
alt=
"商品图片描述"
className=
{
styles
.
imgItem
}
/>)
}
</
div
>
}
...
...
src/pages/trademark/trademarkSearch/viewBrand.tsx
View file @
1f244ba6
import
React
,
{
useState
,
useRef
,
ReactNode
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
Button
,
Steps
,
Card
,
Space
,
Tooltip
,
Row
,
Col
,
Descriptions
,
Table
}
from
'antd'
import
{
Button
,
Steps
,
Card
,
Space
,
Tooltip
,
Row
,
Col
,
Descriptions
,
Table
,
Image
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
QuestionCircleOutlined
,
...
...
@@ -119,7 +119,12 @@ const viewBrand: React.FC<{}> = () => {
let
imgArray
=
Object
.
values
(
proveInfo
)
return
imgArray
.
map
((
item
:
any
,
index
:
number
)
=>
<
Col
key=
{
index
}
span=
{
3
}
xxl=
{
3
}
xl=
{
4
}
lg=
{
4
}
>
<
div
className=
{
styles
.
proveBox
}
>
<
img
src=
{
item
}
alt=
""
/>
<
Image
width=
{
175
}
height=
{
120
}
src=
{
item
}
alt=
"品牌相关证明材料"
/>
</
div
>
</
Col
>
)
...
...
src/pages/trademark/trademarkWillCheck/checkBrand.tsx
View file @
1f244ba6
import
React
,
{
useState
,
useRef
,
ReactNode
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
Button
,
Steps
,
Card
,
Space
,
Tooltip
,
Row
,
Col
,
Descriptions
,
Table
,
Form
,
Modal
,
Radio
,
Input
}
from
'antd'
import
{
Button
,
Steps
,
Card
,
Space
,
Tooltip
,
Row
,
Col
,
Descriptions
,
Table
,
Form
,
Modal
,
Radio
,
Input
,
Image
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
QuestionCircleOutlined
,
...
...
@@ -129,7 +129,12 @@ const CheckBrand: React.FC<{}> = () => {
let
imgArray
=
Object
.
values
(
proveInfo
)
return
imgArray
.
map
((
item
:
any
,
index
:
number
)
=>
<
Col
key=
{
index
}
span=
{
3
}
xxl=
{
3
}
xl=
{
4
}
lg=
{
4
}
>
<
div
className=
{
styles
.
proveBox
}
>
<
img
src=
{
item
}
alt=
""
/>
<
Image
width=
{
175
}
height=
{
120
}
src=
{
item
}
alt=
"品牌相关证明材料"
/>
</
div
>
</
Col
>
)
...
...
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