...
|
...
|
@@ -20,7 +20,7 @@ export default class ContentLikedListCell extends Component { |
|
|
let picItem = resource ? typeof resource.data === 'string' ? JSON.parse(resource.data) : resource.data : '';
|
|
|
|
|
|
let imageUrl = YH_Image.getSlicedUrl(picItem.src, 50 * DEVICE_HEIGHT_RATIO, 50 * DEVICE_HEIGHT_RATIO, 2);
|
|
|
|
|
|
let userName = rowData.userName.length > 15 ? rowData.userName.slice(0,15)+'...' : rowData.userName;
|
|
|
let subName = '赞了你';
|
|
|
switch (rowData.businessType) {
|
|
|
case 1000:
|
...
|
...
|
@@ -51,7 +51,7 @@ export default class ContentLikedListCell extends Component { |
|
|
|
|
|
<View style={styles.textView}>
|
|
|
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
|
|
|
<Text style={[styles.nicknameText, {maxWidth: width-80}]} numberOfLines={1}>{rowData.userName}</Text>
|
|
|
<Text style={styles.nicknameText} numberOfLines={1}>{userName}</Text>
|
|
|
</TouchableOpacity>
|
|
|
<Text style={styles.subnameText}>{subName}</Text>
|
|
|
</View>
|
...
|
...
|
@@ -68,7 +68,9 @@ export default class ContentLikedListCell extends Component { |
|
|
<View style={styles.timeView}>
|
|
|
<Text style={styles.startTimeText}>{rowData.createTime}</Text>
|
|
|
</View>
|
|
|
<View style={styles.lineView}/>
|
|
|
|
|
|
{ this.props.showLine ? <View style={styles.lineView}/> : null }
|
|
|
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|