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
孙凯
8 years ago
Commit
94cdecc9275abd3c01c31786ed30766effae1a7f
1 parent
6bdca18e
修改 UIreview by hongmo
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
js/guang/components/detail/GoodsCell.js
js/guang/components/detail/GuangDetailProductCell.js
js/guang/components/detail/GoodsCell.js
View file @
94cdecc
...
...
@@ -170,7 +170,7 @@ export default class GoodsCell extends React.Component {
let
backgroundHeight
=
Math
.
ceil
(
list
.
size
)
*
(
rowHeight
+
1
)
+
showMoreViewHeigth
;
if
(
display_template
==
2
)
{
backgroundHeight
=
Math
.
ceil
(
originList
.
size
/
2
)
*
(
cellHeight
+
rowMarginHorizontal
)
+
showMoreViewHeigth
;
backgroundHeight
=
Math
.
ceil
(
originList
.
size
/
2
)
*
(
cellHeight
+
rowMarginHorizontal
);
}
return
(
...
...
@@ -201,7 +201,7 @@ let rowHeight = Math.ceil(204 * DEVICE_WIDTH_RATIO) + rowsp;
let
imageWidth
=
Math
.
ceil
((
rowHeight
-
rowsp
)
*
(
152
/
204
));
let
rowWidth
=
Math
.
ceil
(
137.5
*
width
/
320
);
let
rowMarginHorizontal
=
(
width
-
rowWidth
*
2
)
/
3
;
let
cellHeight
=
Math
.
ceil
(
582
*
(
width
/
750
)
);
let
cellHeight
=
Math
.
ceil
(
582
*
DEVICE_WIDTH_RATIO
);
cellHeight
=
Platform
.
OS
===
'ios'
?
cellHeight
:
cellHeight
+
4
;
let
styles
=
StyleSheet
.
create
({
...
...
@@ -219,11 +219,12 @@ let styles = StyleSheet.create({
},
single_View
:
{
height
:
rowHeight
-
rowsp
+
1
,
width
:
width
-
30
,
width
:
width
-
29
,
flexDirection
:
'row'
,
marginLeft
:
15
,
borderColor
:
'#e0e0e0'
,
borderWidth
:
0.5
,
},
icon
:
{
height
:
rowHeight
-
rowsp
,
...
...
@@ -247,6 +248,7 @@ let styles = StyleSheet.create({
fontSize
:
14
,
marginTop
:
13
,
marginLeft
:
15
,
fontWeight
:
'bold'
,
color
:
'#d0021b'
,
},
touchableOpacityButton
:
{
...
...
@@ -266,7 +268,7 @@ let styles = StyleSheet.create({
alignItems
:
'center'
,
justifyContent
:
'center'
,
flexDirection
:
'row'
,
marginTop
:
5
,
marginTop
:
9
,
},
moreText
:
{
height
:
Platform
.
OS
===
'ios'
?
22
:
24
,
...
...
js/guang/components/detail/GuangDetailProductCell.js
View file @
94cdecc
...
...
@@ -136,7 +136,7 @@ export default class GuangDetailProductCell extends Component {
this
.
props
.
onPressProduct
&&
this
.
props
.
onPressProduct
(
data
,
rowID
);
}}
>
<
View
style
=
{{
overflow
:
'hidden'
,
backgroundColor
:
'#f0f0f0'
,
height
:
Platform
.
OS
===
'ios'
?
rowHeight
:
rowHeight
+
4
,
borderColor
:
'#e0e0e0'
,
<
View
style
=
{{
overflow
:
'hidden'
,
backgroundColor
:
'#f0f0f0'
,
height
:
Platform
.
OS
===
'ios'
?
rowHeight
:
rowHeight
+
4
+
1
,
borderColor
:
'#e0e0e0'
,
borderWidth
:
0.5
}}
>
{
this
.
_renderImages
()}
<
View
style
=
{
styles
.
nameContainer
}
>
...
...
@@ -182,7 +182,7 @@ let gpSoldOutImageHeight = Math.ceil(25 * DEVICE_WIDTH_RATIO);
let
styles
=
StyleSheet
.
create
({
container
:
{
width
:
rowWidth
,
width
:
rowWidth
+
1
,
height
:
Platform
.
OS
===
'ios'
?
rowHeight
+
10
:
rowHeight
+
4
+
10
,
marginTop
:
rowMarginTop
,
marginBottom
:
rowMarginBottom
,
...
...
@@ -191,7 +191,6 @@ let styles = StyleSheet.create({
rowContainer
:
{
width
:
rowWidth
,
height
:
Platform
.
OS
===
'ios'
?
rowHeight
:
rowHeight
+
4
,
},
imageContainer
:
{
width
:
rowWidth
,
...
...
@@ -218,7 +217,7 @@ let styles = StyleSheet.create({
},
nameContainer
:
{
marginLeft
:
10
,
marginTop
:
16
,
marginTop
:
25
*
DEVICE_WIDTH_RATIO
,
width
:
rowWidth
-
20
,
},
name
:
{
...
...
@@ -230,7 +229,7 @@ let styles = StyleSheet.create({
position
:
'absolute'
,
marginLeft
:
10
,
width
:
100
,
bottom
:
Platform
.
OS
===
'ios'
?
16
:
14
,
bottom
:
25
*
DEVICE_WIDTH_RATIO
,
},
nowPrice
:
{
fontSize
:
12
,
...
...
@@ -245,7 +244,7 @@ let styles = StyleSheet.create({
},
typeLookDetail
:
{
position
:
'absolute'
,
bottom
:
Platform
.
OS
===
'ios'
?
16
:
14
,
bottom
:
25
*
DEVICE_WIDTH_RATIO
,
right
:
10
,
width
:
65
,
flexDirection
:
'row'
,
...
...
Please
register
or
login
to post a comment