Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
88fb81f3
Commit
88fb81f3
authored
Oct 09, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
d10f92a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
+15
-4
client/components/BreakageComponent/BreakageProductDetail/index.css
+2
-2
No files found.
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
View file @
88fb81f3
...
...
@@ -16,13 +16,14 @@ class BreakageProductDetail extends React.Component{
}
],
statusColor
:
0
,
positionColor
:
0
positionColor
:
0
,
productPos
:[
1
,
2
,
3
,
4
]
}
}
render
(){
let
{
breakageProductInfo
}
=
this
.
props
;
let
{
packStatus
,
statusColor
,
positionColor
}
=
this
.
state
;
let
{
packStatus
,
statusColor
,
positionColor
,
productPos
}
=
this
.
state
;
return
(
<
div
>
{
...
...
@@ -61,7 +62,17 @@ class BreakageProductDetail extends React.Component{
<li><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}>左</span></li>
<li><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}>右</span></li> */
}
{
breakageProductInfo
.
product
.
skuPositionList
&&
breakageProductInfo
.
product
.
skuPositionList
.
map
((
item
,
key
)
=>
{
breakageProductInfo
.
product
.
skuPositionList
&&
breakageProductInfo
.
product
.
skuPositionList
.
length
===
0
?
productPos
.
map
((
item
,
key
)
=>
{
return
<
li
key=
{
key
}
className=
{
positionColor
===
key
?
'active'
:
''
}
onClick=
{
this
.
changePositionColor
.
bind
(
this
,
key
)
}
>
<
img
src=
{
UTILPATH
.
localImg
.
defaultImg
}
alt=
""
/>
<
span
className=
{
'font28 col333'
}
>
{
item
}
</
span
>
</
li
>
}):
breakageProductInfo
.
product
.
skuPositionList
.
map
((
item
,
key
)
=>
{
return
<
li
key=
{
key
}
className=
{
positionColor
===
key
?
'active'
:
''
}
...
...
@@ -76,7 +87,7 @@ class BreakageProductDetail extends React.Component{
</
div
>
</
div
>
<
div
className=
{
'breakProductPosition'
}
>
{
<
img
src=
{
breakageProductInfo
.
product
.
skuPositionList
[
positionColor
].
filePath
}
alt=
""
/>
}
{
breakageProductInfo
.
product
.
skuPositionList
[
positionColor
]?<
img
src=
{
breakageProductInfo
.
product
.
skuPositionList
[
positionColor
].
filePath
}
alt=
""
/>:<
img
src=
{
UTILPATH
.
localImg
.
defaultImg
}
alt=
""
/>
}
</
div
>
</
div
>
</
div
>
...
...
client/components/BreakageComponent/BreakageProductDetail/index.css
View file @
88fb81f3
...
...
@@ -147,7 +147,7 @@
.pagebox
.ProductPosition
.imgList
{
display
:
flex
;
margin-top
:
0.16666666666666666rem
;
height
:
1.
5833333333333333
rem
;
height
:
1.
65
rem
;
}
.pagebox
.ProductPosition
ul
li
{
...
...
@@ -181,7 +181,7 @@
}
.pagebox
.ProductPosition
ul
li
.active
{
border
:
6
px
solid
#05bb09
;
border
:
3
px
solid
#05bb09
;
}
.breakageInfo
{
...
...
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