Authored by 孙凯

修改 UIreview by hongmo

@@ -170,7 +170,7 @@ export default class GoodsCell extends React.Component { @@ -170,7 +170,7 @@ export default class GoodsCell extends React.Component {
170 let backgroundHeight = Math.ceil(list.size) * (rowHeight+1) + showMoreViewHeigth; 170 let backgroundHeight = Math.ceil(list.size) * (rowHeight+1) + showMoreViewHeigth;
171 171
172 if (display_template == 2) { 172 if (display_template == 2) {
173 - backgroundHeight = Math.ceil(originList.size / 2) * (cellHeight+rowMarginHorizontal) + showMoreViewHeigth; 173 + backgroundHeight = Math.ceil(originList.size / 2) * (cellHeight+rowMarginHorizontal);
174 } 174 }
175 175
176 return( 176 return(
@@ -201,7 +201,7 @@ let rowHeight = Math.ceil(204 * DEVICE_WIDTH_RATIO) + rowsp; @@ -201,7 +201,7 @@ let rowHeight = Math.ceil(204 * DEVICE_WIDTH_RATIO) + rowsp;
201 let imageWidth = Math.ceil((rowHeight - rowsp) * (152/204)); 201 let imageWidth = Math.ceil((rowHeight - rowsp) * (152/204));
202 let rowWidth = Math.ceil(137.5 * width / 320); 202 let rowWidth = Math.ceil(137.5 * width / 320);
203 let rowMarginHorizontal = (width - rowWidth * 2) / 3; 203 let rowMarginHorizontal = (width - rowWidth * 2) / 3;
204 -let cellHeight = Math.ceil(582 * (width / 750)); 204 +let cellHeight = Math.ceil(582 * DEVICE_WIDTH_RATIO);
205 cellHeight = Platform.OS === 'ios' ? cellHeight : cellHeight + 4; 205 cellHeight = Platform.OS === 'ios' ? cellHeight : cellHeight + 4;
206 206
207 let styles = StyleSheet.create({ 207 let styles = StyleSheet.create({
@@ -219,11 +219,12 @@ let styles = StyleSheet.create({ @@ -219,11 +219,12 @@ let styles = StyleSheet.create({
219 }, 219 },
220 single_View: { 220 single_View: {
221 height: rowHeight - rowsp + 1, 221 height: rowHeight - rowsp + 1,
222 - width: width-30, 222 + width: width-29,
223 flexDirection: 'row', 223 flexDirection: 'row',
224 marginLeft: 15, 224 marginLeft: 15,
225 borderColor: '#e0e0e0', 225 borderColor: '#e0e0e0',
226 borderWidth: 0.5, 226 borderWidth: 0.5,
  227 +
227 }, 228 },
228 icon: { 229 icon: {
229 height: rowHeight - rowsp, 230 height: rowHeight - rowsp,
@@ -247,6 +248,7 @@ let styles = StyleSheet.create({ @@ -247,6 +248,7 @@ let styles = StyleSheet.create({
247 fontSize: 14, 248 fontSize: 14,
248 marginTop: 13, 249 marginTop: 13,
249 marginLeft:15, 250 marginLeft:15,
  251 + fontWeight:'bold',
250 color: '#d0021b', 252 color: '#d0021b',
251 }, 253 },
252 touchableOpacityButton: { 254 touchableOpacityButton: {
@@ -266,7 +268,7 @@ let styles = StyleSheet.create({ @@ -266,7 +268,7 @@ let styles = StyleSheet.create({
266 alignItems: 'center', 268 alignItems: 'center',
267 justifyContent: 'center', 269 justifyContent: 'center',
268 flexDirection: 'row', 270 flexDirection: 'row',
269 - marginTop: 5, 271 + marginTop: 9,
270 }, 272 },
271 moreText: { 273 moreText: {
272 height: Platform.OS === 'ios' ? 22 : 24, 274 height: Platform.OS === 'ios' ? 22 : 24,
@@ -136,7 +136,7 @@ export default class GuangDetailProductCell extends Component { @@ -136,7 +136,7 @@ export default class GuangDetailProductCell extends Component {
136 this.props.onPressProduct && this.props.onPressProduct(data, rowID); 136 this.props.onPressProduct && this.props.onPressProduct(data, rowID);
137 }} 137 }}
138 > 138 >
139 - <View style={{overflow: 'hidden',backgroundColor: '#f0f0f0',height: Platform.OS === 'ios'?rowHeight:rowHeight+4,borderColor: '#e0e0e0', 139 + <View style={{overflow: 'hidden',backgroundColor: '#f0f0f0',height: Platform.OS === 'ios'?rowHeight:rowHeight+4+1,borderColor: '#e0e0e0',
140 borderWidth: 0.5}} > 140 borderWidth: 0.5}} >
141 {this._renderImages()} 141 {this._renderImages()}
142 <View style={styles.nameContainer}> 142 <View style={styles.nameContainer}>
@@ -182,7 +182,7 @@ let gpSoldOutImageHeight = Math.ceil(25 * DEVICE_WIDTH_RATIO); @@ -182,7 +182,7 @@ let gpSoldOutImageHeight = Math.ceil(25 * DEVICE_WIDTH_RATIO);
182 182
183 let styles = StyleSheet.create({ 183 let styles = StyleSheet.create({
184 container: { 184 container: {
185 - width: rowWidth, 185 + width: rowWidth + 1,
186 height: Platform.OS === 'ios'?rowHeight + 10:rowHeight+4 + 10, 186 height: Platform.OS === 'ios'?rowHeight + 10:rowHeight+4 + 10,
187 marginTop: rowMarginTop, 187 marginTop: rowMarginTop,
188 marginBottom: rowMarginBottom, 188 marginBottom: rowMarginBottom,
@@ -191,7 +191,6 @@ let styles = StyleSheet.create({ @@ -191,7 +191,6 @@ let styles = StyleSheet.create({
191 rowContainer: { 191 rowContainer: {
192 width: rowWidth, 192 width: rowWidth,
193 height: Platform.OS === 'ios'?rowHeight:rowHeight+4, 193 height: Platform.OS === 'ios'?rowHeight:rowHeight+4,
194 -  
195 }, 194 },
196 imageContainer: { 195 imageContainer: {
197 width: rowWidth, 196 width: rowWidth,
@@ -218,7 +217,7 @@ let styles = StyleSheet.create({ @@ -218,7 +217,7 @@ let styles = StyleSheet.create({
218 }, 217 },
219 nameContainer: { 218 nameContainer: {
220 marginLeft: 10, 219 marginLeft: 10,
221 - marginTop: 16, 220 + marginTop: 25 * DEVICE_WIDTH_RATIO,
222 width: rowWidth - 20, 221 width: rowWidth - 20,
223 }, 222 },
224 name: { 223 name: {
@@ -230,7 +229,7 @@ let styles = StyleSheet.create({ @@ -230,7 +229,7 @@ let styles = StyleSheet.create({
230 position: 'absolute', 229 position: 'absolute',
231 marginLeft: 10, 230 marginLeft: 10,
232 width: 100, 231 width: 100,
233 - bottom: Platform.OS === 'ios'? 16 : 14, 232 + bottom: 25 * DEVICE_WIDTH_RATIO,
234 }, 233 },
235 nowPrice: { 234 nowPrice: {
236 fontSize: 12, 235 fontSize: 12,
@@ -245,7 +244,7 @@ let styles = StyleSheet.create({ @@ -245,7 +244,7 @@ let styles = StyleSheet.create({
245 }, 244 },
246 typeLookDetail: { 245 typeLookDetail: {
247 position: 'absolute', 246 position: 'absolute',
248 - bottom: Platform.OS === 'ios'? 16 : 14, 247 + bottom: 25 * DEVICE_WIDTH_RATIO,
249 right: 10, 248 right: 10,
250 width: 65, 249 width: 65,
251 flexDirection: 'row', 250 flexDirection: 'row',