Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
huangyCode
6 years ago
Commit
223451d2ffce195910827737a54cbf9eca241b1a
1 parent
94a79dea
修改砍价列表页新增以砍数量
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
js/haggle/components/cell/productCell.js
js/haggle/components/cell/productCell.js
View file @
223451d
...
...
@@ -68,9 +68,10 @@ export default class productCell extends Component {
text
=
data
.
get
(
'sales_price'
)
&&
'¥'
+
data
.
get
(
'sales_price'
);
textStyle
=
styles
.
priceTextHome
;
}
return
<
View
style
=
{
styles
.
priceFatherContainer
}
>
let
cutSuccessNum
=
data
.
get
(
'cutSuccessNum'
)
||
0
return
<
View
style
=
{[
styles
.
priceFatherContainer
,{
bottom
:
!
categoryType
&&
cutSuccessNum
?
-
2
:
6
}]}
>
<
Text
style
=
{[
styles
.
priceText
,
textStyle
]}
>
{
text
}
<
/Text
>
{
!
categoryType
&&
cutSuccessNum
?
<
Text
style
=
{
styles
.
hasCut
}
>
已砍
{
cutSuccessNum
}
件
<
/Text> : null
}
<
/View
>
}
...
...
@@ -169,7 +170,8 @@ let styles = StyleSheet.create({
rightContainer
:
{
justifyContent
:
'space-between'
,
marginTop
:
3
marginTop
:
3
,
height
:
103
},
prdImage
:
{
marginTop
:
5
,
...
...
@@ -191,7 +193,6 @@ let styles = StyleSheet.create({
priceFatherContainer
:
{
position
:
'absolute'
,
left
:
10
,
bottom
:
6
,
},
priceText
:
{
...
...
@@ -281,10 +282,14 @@ let styles = StyleSheet.create({
right
:
0
,
width
:
91
,
height
:
33
,
bottom
:
0
,
bottom
:
1
,
},
bottom
:
{
flexDirection
:
'row'
,
alignItems
:
'center'
},
hasCut
:{
fontSize
:
12
,
marginTop
:
4
}
});
...
...
Please
register
or
login
to post a comment