Authored by 孙凯

去掉iOS9设备上 图片尺寸减半的代码 review by hongmo

... ... @@ -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() {
... ...