|
@@ -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
|
+ noRecord: false,
|
20
|
20
|
}
|
21
|
21
|
componentDidMount() {
|
22
|
22
|
// Taro.showLoading()
|
|
@@ -32,7 +32,7 @@ export default class Index extends Component {
|
32
|
32
|
type = 'card'
|
33
|
33
|
} = this.$router.params
|
34
|
34
|
|
35
|
|
- const payload = { pageSize:50, pageNumber: 1 }
|
|
35
|
+ const payload = { pageSize: 50, pageNumber: 1 }
|
36
|
36
|
// const payload = { pageSize: 50, pageNumber }
|
37
|
37
|
if (type === "card") {
|
38
|
38
|
// 埋点
|
|
@@ -52,7 +52,7 @@ export default class Index extends Component {
|
52
|
52
|
|
53
|
53
|
this.setState({
|
54
|
54
|
list: records,
|
55
|
|
- noReacord: records.length ? false : true
|
|
55
|
+ noRecord: records.length ? false : true
|
56
|
56
|
})
|
57
|
57
|
Taro.hideLoading()
|
58
|
58
|
}).catch(err => {
|
|
@@ -77,7 +77,7 @@ export default class Index extends Component {
|
77
|
77
|
const { records } = res
|
78
|
78
|
this.setState({
|
79
|
79
|
list: records,
|
80
|
|
- noReacord: records.length ? false : true
|
|
80
|
+ noRecord: records.length ? false : true
|
81
|
81
|
})
|
82
|
82
|
Taro.hideLoading()
|
83
|
83
|
}).catch(err => {
|
|
@@ -118,7 +118,7 @@ export default class Index extends Component {
|
118
|
118
|
}
|
119
|
119
|
|
120
|
120
|
render() {
|
121
|
|
- const { hasMore, isEmpty, list, noReacord } = this.state
|
|
121
|
+ const { hasMore, isEmpty, list, noRecord } = this.state
|
122
|
122
|
// const { hasMore, isEmpty, list } = this.state
|
123
|
123
|
|
124
|
124
|
return (
|
|
@@ -133,17 +133,18 @@ 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 ?
|
|
136
|
+ // <View>
|
|
137
|
+ <Block>
|
|
138
|
+ {!noRecord ?
|
138
|
139
|
<View>
|
139
|
140
|
{list.map(item =>
|
140
|
141
|
<FansItem key={item.uvId} data={item} />)}
|
141
|
142
|
{list.length >= 50 && <View style="text-align:center;line-height:120rpx;font-size:24rpx;color:#999"> 仅展示最近50条围观记录</View>}
|
142
|
143
|
</View>
|
143
|
|
- : <EmptyPage text="暂无围观记录哦~" />}
|
144
|
|
-
|
145
|
|
- </View>
|
|
144
|
+ : <EmptyPage text="暂无围观记录哦~" />
|
|
145
|
+ }
|
146
|
146
|
|
|
147
|
+ </Block>
|
147
|
148
|
);
|
148
|
149
|
}
|
149
|
150
|
}
|