|
@@ -28,7 +28,7 @@ export default class List extends Component { |
|
@@ -28,7 +28,7 @@ export default class List extends Component { |
28
|
}
|
28
|
}
|
29
|
|
29
|
|
30
|
componentDidMount() {
|
30
|
componentDidMount() {
|
31
|
- let src = this.props.resource.src;
|
31
|
+ let src = this.props.resource.get('src');
|
32
|
let bigPic = getSlicedUrl(src, 640, 640, 2);
|
32
|
let bigPic = getSlicedUrl(src, 640, 640, 2);
|
33
|
Image.getSize(bigPic, (width, height) => {
|
33
|
Image.getSize(bigPic, (width, height) => {
|
34
|
let newWidth = Dimensions.get('window').width;
|
34
|
let newWidth = Dimensions.get('window').width;
|
|
@@ -81,6 +81,7 @@ export default class List extends Component { |
|
@@ -81,6 +81,7 @@ export default class List extends Component { |
81
|
id,
|
81
|
id,
|
82
|
isFavor,
|
82
|
isFavor,
|
83
|
} = this.props.resource.toJS();
|
83
|
} = this.props.resource.toJS();
|
|
|
84
|
+ let {hiddenTagView} = this.props;
|
84
|
let urlAry = url.split('&');
|
85
|
let urlAry = url.split('&');
|
85
|
let shareParam = {
|
86
|
let shareParam = {
|
86
|
title,
|
87
|
title,
|
|
@@ -103,9 +104,12 @@ export default class List extends Component { |
|
@@ -103,9 +104,12 @@ export default class List extends Component { |
103
|
<View style={styles.sapatorView}/>
|
104
|
<View style={styles.sapatorView}/>
|
104
|
{this._renderHeader()}
|
105
|
{this._renderHeader()}
|
105
|
<Image style={[styles.image,{width: this.state.width, height: this.state.height}]} source={{uri:bigPic}}>
|
106
|
<Image style={[styles.image,{width: this.state.width, height: this.state.height}]} source={{uri:bigPic}}>
|
|
|
107
|
+ {!hiddenTagView?
|
106
|
<Image style={styles.tagContainer} source={tagImg}>
|
108
|
<Image style={styles.tagContainer} source={tagImg}>
|
107
|
<Text style={styles.tagText}>{category_name}</Text>
|
109
|
<Text style={styles.tagText}>{category_name}</Text>
|
108
|
</Image>
|
110
|
</Image>
|
|
|
111
|
+ :null
|
|
|
112
|
+ }
|
109
|
</Image>
|
113
|
</Image>
|
110
|
<Text style={styles.titleText}>{title}</Text>
|
114
|
<Text style={styles.titleText}>{title}</Text>
|
111
|
<Text style={styles.contentText} numberOfLines={3}>{intro}</Text>
|
115
|
<Text style={styles.contentText} numberOfLines={3}>{intro}</Text>
|