|
@@ -36,23 +36,23 @@ export default withLayout((props) => {
|
36
|
36
|
const GetLiveList = (params) => {
|
37
|
37
|
if (['all'].indexOf(CurrnetMenuId) > -1) {
|
38
|
38
|
// 全部
|
39
|
|
- fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id }, spin: true }).then((res) => {
|
|
39
|
+ fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id, pageSize: 999 }, spin: true }).then((res) => {
|
40
|
40
|
setPageList(res.records || [])
|
41
|
41
|
})
|
42
|
42
|
} else if (['new'].indexOf(CurrnetMenuId) > -1) {
|
43
|
43
|
// 新房
|
44
|
|
- fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id, newHouse: true }, spin: true }).then((res) => {
|
|
44
|
+ fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id, newHouse: true, pageSize: 999 }, spin: true }).then((res) => {
|
45
|
45
|
setPageList(res.records || [])
|
46
|
46
|
})
|
47
|
47
|
} else if (['notice', 'live'].indexOf(CurrnetMenuId) > -1) {
|
48
|
48
|
// 预告与直播是虽然是同一个接口, 但是返回值字段不一样
|
49
|
49
|
const process = 'notice' === CurrnetMenuId ? 1 : 2;
|
50
|
|
- fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id, process }, spin: true}).then((res) => {
|
|
50
|
+ fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id, process, pageSize: 999 }, spin: true}).then((res) => {
|
51
|
51
|
setPageList(res.records || [])
|
52
|
52
|
})
|
53
|
53
|
} else {
|
54
|
54
|
// 视频另外一个接口
|
55
|
|
- fetch({ url: API_VIDEO_LIST, payload: { ...params, cityId: city.id }, spin: true }).then((res) => {
|
|
55
|
+ fetch({ url: API_VIDEO_LIST, payload: { ...params, cityId: city.id, pageSize: 999 }, spin: true }).then((res) => {
|
56
|
56
|
setPageList(res.records || [])
|
57
|
57
|
})
|
58
|
58
|
}
|