...
|
...
|
@@ -27,22 +27,18 @@ export default class AddressCell extends Component { |
|
|
console.log(this.props.data);
|
|
|
console.log(this.props.channel);
|
|
|
let lineSource = require('../../image/boy_xie.png');
|
|
|
switch (this.props.channel) {
|
|
|
case 1:
|
|
|
lineSource = require('../../image/boy_xie.png');
|
|
|
break;
|
|
|
case 2:
|
|
|
lineSource = require('../../image/girl_xie.png');
|
|
|
break;
|
|
|
case 3:
|
|
|
lineSource = require('../../image/kids_xie.png');
|
|
|
break;
|
|
|
case 4:
|
|
|
lineSource = require('../../image/lifestlye_xie.png');
|
|
|
break;
|
|
|
default:
|
|
|
|
|
|
console.log('lalalalalal');
|
|
|
console.log(this.props.channel);
|
|
|
if (this.props.channel == 1) {
|
|
|
lineSource = require('../../image/boy_xie.png');
|
|
|
} else if (this.props.channel == 2) {
|
|
|
lineSource = require('../../image/girl_xie.png');
|
|
|
} else if (this.props.channel == 3) {
|
|
|
lineSource = require('../../image/kids_xie.png');
|
|
|
} else if (this.props.channel == 4) {
|
|
|
lineSource = require('../../image/lifestlye_xie.png');
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
<View style={[styles.container]}>
|
|
|
<View style={styles.topPart}>
|
...
|
...
|
|