Authored by 于良

Merge branch '5.6.0' of http://git.yoho.cn/mobile/YH_RNComponent into 5.6.0

@@ -27,22 +27,18 @@ export default class AddressCell extends Component { @@ -27,22 +27,18 @@ export default class AddressCell extends Component {
27 console.log(this.props.data); 27 console.log(this.props.data);
28 console.log(this.props.channel); 28 console.log(this.props.channel);
29 let lineSource = require('../../image/boy_xie.png'); 29 let lineSource = require('../../image/boy_xie.png');
30 - switch (this.props.channel) {  
31 - case 1:  
32 - lineSource = require('../../image/boy_xie.png');  
33 - break;  
34 - case 2:  
35 - lineSource = require('../../image/girl_xie.png');  
36 - break;  
37 - case 3:  
38 - lineSource = require('../../image/kids_xie.png');  
39 - break;  
40 - case 4:  
41 - lineSource = require('../../image/lifestlye_xie.png');  
42 - break;  
43 - default:  
44 - 30 + console.log('lalalalalal');
  31 + console.log(this.props.channel);
  32 + if (this.props.channel == 1) {
  33 + lineSource = require('../../image/boy_xie.png');
  34 + } else if (this.props.channel == 2) {
  35 + lineSource = require('../../image/girl_xie.png');
  36 + } else if (this.props.channel == 3) {
  37 + lineSource = require('../../image/kids_xie.png');
  38 + } else if (this.props.channel == 4) {
  39 + lineSource = require('../../image/lifestlye_xie.png');
45 } 40 }
  41 +
46 return ( 42 return (
47 <View style={[styles.container]}> 43 <View style={[styles.container]}>
48 <View style={styles.topPart}> 44 <View style={styles.topPart}>