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
5539cc785b6945d775ddd8e1196f3c38f578c573
1 parent
44371f42
去掉iOS9设备上 图片尺寸减半的代码 review by hongmo
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
js/common/components/ListCell/ProductListCell.js
js/common/components/ListCell/ProductListCell.js
View file @
5539cc7
...
...
@@ -41,7 +41,7 @@ export default class ProductListCell extends Component {
_renderTags
()
{
let
{
data
,
sourceType
}
=
this
.
props
;
let
isGlobalProduct
=
data
.
get
(
'is_global'
)
&&
data
.
get
(
'is_global'
)
==
'Y'
;
// 是否全球购商品
let
isGlobalProduct
=
data
.
get
(
'is_global'
)
&&
data
.
get
(
'is_global'
)
==
'Y'
;
// 是否全球购商品
return
<
Tags
items
=
{
data
.
get
(
'tags'
)}
/>
;
if
(
isGlobalProduct
)
{
let
showGPLimitTag
=
data
.
get
(
'is_limited'
)
&&
data
.
get
(
'is_limited'
)
==
'Y'
;
// 全球购限量商品
...
...
@@ -60,16 +60,16 @@ export default class ProductListCell extends Component {
.
replace
(
/{width}/g
,
290
)
.
replace
(
/{height}/g
,
386
);
if
(
Platform
.
OS
===
'ios'
)
{
let
systemVersion
=
DeviceInfo
.
getSystemVersion
();
let
versionArray
=
systemVersion
.
split
(
'.'
);
let
version
=
versionArray
[
0
];
if
(
version
==
9
)
{
url
=
data
.
get
(
'default_images'
,
''
).
replace
(
'{mode}'
,
2
)
.
replace
(
/{width}/g
,
290
/
2
)
.
replace
(
/{height}/g
,
386
/
2
);
}
}
// if (Platform.OS === 'ios') {
// let systemVersion = DeviceInfo.getSystemVersion();
// let versionArray = systemVersion.split('.');
// let version = versionArray[0];
// if (version == 9) {
// url = data.get('default_images', '').replace('{mode}', 2)
// .replace(/{width}/g, 290/2)
// .replace(/{height}/g, 386/2);
// }
// }
let
isGlobalProduct
=
data
.
get
(
'is_global'
)
&&
data
.
get
(
'is_global'
)
==
'Y'
;
// 是否全球购商品
...
...
@@ -99,7 +99,7 @@ export default class ProductListCell extends Component {
<
/View
>
);
}
}
_renderPrice
()
{
...
...
Please
register
or
login
to post a comment