Authored by 张文文

bug fix reviewd by 陈林

@@ -57,7 +57,7 @@ export default class CategorySelector extends Component { @@ -57,7 +57,7 @@ export default class CategorySelector extends Component {
57 } 57 }
58 58
59 renderRow(rowData, sectionID, rowID, highlightRow) { 59 renderRow(rowData, sectionID, rowID, highlightRow) {
60 - let marginLeft = (rowID == 0) ? 0 : 30; 60 + let marginLeft = (rowID == 0) ? 0 : 8;
61 let color = rowID == this.props.selectedCategoryIndex ? '#222222' : '#444444'; 61 let color = rowID == this.props.selectedCategoryIndex ? '#222222' : '#444444';
62 let fontFamily = rowID == this.props.selectedCategoryIndex ? 'PingFang-SC-Medium' : 'PingFang-SC-Regular'; 62 let fontFamily = rowID == this.props.selectedCategoryIndex ? 'PingFang-SC-Medium' : 'PingFang-SC-Regular';
63 63
@@ -125,7 +125,7 @@ let styles = StyleSheet.create({ @@ -125,7 +125,7 @@ let styles = StyleSheet.create({
125 justifyContent: 'center', 125 justifyContent: 'center',
126 }, 126 },
127 categoryContainer: { 127 categoryContainer: {
128 - marginRight: 0, 128 + marginRight: 22,
129 }, 129 },
130 categoryName: { 130 categoryName: {
131 fontSize: 14, 131 fontSize: 14,
@@ -53,7 +53,7 @@ export default class JointCell extends React.Component { @@ -53,7 +53,7 @@ export default class JointCell extends React.Component {
53 53
54 return ( 54 return (
55 <View> 55 <View>
56 - <YH_Image url={YH_Image.getSlicedUrl(source.src, width-marginLeft*2, ratioHeight, 2)} style={{ width: width-marginLeft*2, height: ratioHeight, marginLeft: marginLeft}} /> 56 + <YH_Image url={YH_Image.getSlicedUrl(source.src, width-marginLeft*2, ratioHeight, 2)} resizeMode="contain" style={{ width: width-marginLeft*2, height: ratioHeight, marginLeft: marginLeft}} />
57 <View style={{flexDirection: 'row', position: 'absolute', top: 0, left: marginLeft, bottom: 0, right: marginLeft}}>{ 57 <View style={{flexDirection: 'row', position: 'absolute', top: 0, left: marginLeft, bottom: 0, right: marginLeft}}>{
58 list.map((item, i) => { 58 list.map((item, i) => {
59 let exposureData = { 59 let exposureData = {