Authored by 盖剑秋

Fix ui bug on building owner. reviewed by redding.

@@ -16,7 +16,7 @@ export default class SPHeaderCell extends Component { @@ -16,7 +16,7 @@ export default class SPHeaderCell extends Component {
16 } 16 }
17 17
18 render() { 18 render() {
19 - let {avatar, nickName, timeago, isOwner, sectionName} = this.props; 19 + let {avatar, nickName, timeago, isOwner, sectionName, showLZ} = this.props;
20 return( 20 return(
21 <View style={styles.container}> 21 <View style={styles.container}>
22 <View style={styles.top}> 22 <View style={styles.top}>
@@ -24,7 +24,7 @@ export default class SPHeaderCell extends Component { @@ -24,7 +24,7 @@ export default class SPHeaderCell extends Component {
24 avatar={avatar} 24 avatar={avatar}
25 name={nickName} 25 name={nickName}
26 timeago={timeago} 26 timeago={timeago}
27 - isOwner={isOwner} 27 + isOwner={isOwner||showLZ}
28 onPressAvatar={this.props.onPressAvatar} 28 onPressAvatar={this.props.onPressAvatar}
29 /> 29 />
30 <SectionItem 30 <SectionItem
@@ -353,8 +353,9 @@ export default class SubjectPost extends Component { @@ -353,8 +353,9 @@ export default class SubjectPost extends Component {
353 avatar={rowData.headIcon} 353 avatar={rowData.headIcon}
354 nickName={rowData.nickName} 354 nickName={rowData.nickName}
355 timeago={rowData.timeago} 355 timeago={rowData.timeago}
356 - isOwner={true} 356 + isOwner={rowData.LZ}
357 sectionName={rowData.forumName} 357 sectionName={rowData.forumName}
  358 + showLZ={true}
358 onPressAvatar={() => { 359 onPressAvatar={() => {
359 this.props.onPressAvatar && this.props.onPressAvatar(rowData.uid); 360 this.props.onPressAvatar && this.props.onPressAvatar(rowData.uid);
360 }} 361 }}