|
@@ -16,7 +16,7 @@ export default class Index extends Component {
|
16
|
16
|
isEmpty: false,
|
17
|
17
|
recordId: null,
|
18
|
18
|
pageIndex: 1,
|
19
|
|
- // noReacord: false,
|
|
19
|
+ noReacord: false,
|
20
|
20
|
}
|
21
|
21
|
componentDidMount() {
|
22
|
22
|
// Taro.showLoading()
|
|
@@ -118,8 +118,8 @@ export default class Index extends Component {
|
118
|
118
|
}
|
119
|
119
|
|
120
|
120
|
render() {
|
121
|
|
- // const { hasMore, isEmpty, list, noReacord } = this.state
|
122
|
|
- const { hasMore, isEmpty, list } = this.state
|
|
121
|
+ const { hasMore, isEmpty, list, noReacord } = this.state
|
|
122
|
+ // const { hasMore, isEmpty, list } = this.state
|
123
|
123
|
|
124
|
124
|
return (
|
125
|
125
|
// <ListView
|
|
@@ -133,20 +133,15 @@ export default class Index extends Component {
|
133
|
133
|
// >
|
134
|
134
|
// {list.map(item => <FansItem key={item.uvId} data={item} />)}
|
135
|
135
|
// </ListView>
|
136
|
|
- // <View>
|
137
|
|
- // {!noReacord ?
|
138
|
|
- // <View>
|
139
|
|
- // {list.map(item =>
|
140
|
|
- // <FansItem key={item.uvId} data={item} />)}
|
141
|
|
- // {list.length >= 50 && <View style="text-align:center;line-height:120rpx;font-size:24rpx;color:#999"> 仅展示最近50条围观记录</View>}
|
142
|
|
- // </View>
|
143
|
|
- // : <EmptyPage text="暂无围观记录哦~" />}
|
144
|
|
-
|
145
|
|
- // </View>
|
146
|
136
|
<View>
|
147
|
|
- {list.map(item =>
|
148
|
|
- <FansItem key={item.uvId} data={item} />)}
|
149
|
|
- {list.length >= 50 && <View style="text-align:center;line-height:120rpx;font-size:24rpx;color:#999"> 仅展示最近50条围观记录</View>}
|
|
137
|
+ {!noReacord ?
|
|
138
|
+ <View>
|
|
139
|
+ {list.map(item =>
|
|
140
|
+ <FansItem key={item.uvId} data={item} />)}
|
|
141
|
+ {list.length >= 50 && <View style="text-align:center;line-height:120rpx;font-size:24rpx;color:#999"> 仅展示最近50条围观记录</View>}
|
|
142
|
+ </View>
|
|
143
|
+ : <EmptyPage text="暂无围观记录哦~" />}
|
|
144
|
+
|
150
|
145
|
</View>
|
151
|
146
|
|
152
|
147
|
);
|