|
@@ -34,11 +34,16 @@ export default withLayout((props) => {
|
34
|
34
|
|
35
|
35
|
|
36
|
36
|
const GetLiveList = (params) => {
|
37
|
|
- if (['all', 'new'].indexOf(CurrnetMenuId) > -1) {
|
38
|
|
- // 全部与新房用的一个接口
|
|
37
|
+ if (['all'].indexOf(CurrnetMenuId) > -1) {
|
|
38
|
+ // 全部
|
39
|
39
|
fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id }, spin: true }).then((res) => {
|
40
|
40
|
setPageList(res.records || [])
|
41
|
41
|
})
|
|
42
|
+ } else if (['new'].indexOf(CurrnetMenuId) > -1) {
|
|
43
|
+ // 新房
|
|
44
|
+ fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id, newHouse: true }, spin: true }).then((res) => {
|
|
45
|
+ setPageList(res.records || [])
|
|
46
|
+ })
|
42
|
47
|
} else if (['notice', 'live'].indexOf(CurrnetMenuId) > -1) {
|
43
|
48
|
// 预告与直播是虽然是同一个接口, 但是返回值字段不一样
|
44
|
49
|
const process = 'notice' === CurrnetMenuId ? 1 : 2;
|