Authored by 孙凯

修改 逛详情UI review by daiqiang

... ... @@ -65,7 +65,7 @@ export default class GoodsCell extends React.Component {
let backgroundWidth = width;
let backgroundHeight = Math.ceil(list.size / 2) * (cellHeight+rowMarginHorizontal);
return(
<View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white'}}>
<View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white',marginTop: 10,}}>
<ListView
contentContainerStyle={styles.contentContainer}
initialListSize={Math.ceil(list.size)}
... ... @@ -86,7 +86,7 @@ export default class GoodsCell extends React.Component {
let backgroundHeight = Math.ceil(list.size) * (rowHeight+1);
return(
<View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white'}}>
<View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white',marginTop: 15}}>
{list.map((value, i) => {
let product = value?value.toJS():null;
if (!product) {
... ... @@ -167,10 +167,10 @@ export default class GoodsCell extends React.Component {
let moreProductHeigth = Platform.OS === 'ios' ? 22 : 24
let showMoreViewHeigth = (this.state.moreProduct && listSize > prudoctLimitRow)?moreProductHeigth+20:0;
let backgroundHeight = Math.ceil(list.size) * (rowHeight+1) + showMoreViewHeigth;
let backgroundHeight = Math.ceil(list.size) * (rowHeight+1) + showMoreViewHeigth + 15 + 9;//15: 上间距 10+cell本身的5 :下边距
if (display_template == 2) {
backgroundHeight = Math.ceil(originList.size / 2) * (cellHeight+rowMarginHorizontal);
backgroundHeight = Math.ceil(originList.size / 2) * (cellHeight+rowMarginHorizontal) + 15;
}
return(
... ... @@ -219,9 +219,9 @@ let styles = StyleSheet.create({
},
single_View: {
height: rowHeight - rowsp + 1,
width: Platform.OS === 'ios' ? width-29 : width-28.5,
width: Platform.OS === 'ios' ? width-19 : width-18.5,
flexDirection: 'row',
marginLeft: 15,
marginLeft: 10,
borderColor: '#e0e0e0',
borderWidth: 0.5,
},
... ... @@ -232,7 +232,7 @@ let styles = StyleSheet.create({
},
nameView: {
height: rowHeight - rowsp,
width: width - imageWidth - 30,
width: width - imageWidth - 20,
backgroundColor: '#f0f0f0',
},
name: {
... ...