张延森 3 years ago
parent
commit
9f90408b74

+ 4
- 2
src/pages/index/brandList/index.jsx View File

13
   const [list, setList] = useState({});
13
   const [list, setList] = useState({});
14
 
14
 
15
   useEffect(() => {
15
   useEffect(() => {
16
-    initData()
17
-  }, [])
16
+    if (city?.id) {
17
+      initData()
18
+    }
19
+  }, [city?.id])
18
 
20
 
19
   function initData () {
21
   function initData () {
20
     queryBrandList({ cityId: city?.id }).then((res) => {
22
     queryBrandList({ cityId: city?.id }).then((res) => {

+ 1
- 1
src/pages/index/components/Menu/index.jsx View File

21
     { name: '特价房', id: 9, icon: require('@/assets/index-icon11.png'), router: '/pages/index/specialPriceHouse/index' },
21
     { name: '特价房', id: 9, icon: require('@/assets/index-icon11.png'), router: '/pages/index/specialPriceHouse/index' },
22
     { name: '康养', id: 10, icon: require('@/assets/index-icon7.png'), miniapp: MINI_KANGYANG },
22
     { name: '康养', id: 10, icon: require('@/assets/index-icon7.png'), miniapp: MINI_KANGYANG },
23
     { name: '文旅商办', id: 11, icon: require('@/assets/index-icon13.png'), router: `/pages/index/buildingList/index?isCommerce=1` },
23
     { name: '文旅商办', id: 11, icon: require('@/assets/index-icon13.png'), router: `/pages/index/buildingList/index?isCommerce=1` },
24
-    // { name: '新闻资讯', id: 12, icon: require('@/assets/index-icon15.png'), router: '/pages/index/newsList/index' },
24
+    // { name: '资讯', id: 12, icon: require('@/assets/index-icon15.png'), router: '/pages/index/newsList/index' },
25
     { name: '购房百科', id: 13, icon: require('@/assets/index-icon4.png'), router: '/pages/index/encyclopediasOfBuyHouse/index' },
25
     { name: '购房百科', id: 13, icon: require('@/assets/index-icon4.png'), router: '/pages/index/encyclopediasOfBuyHouse/index' },
26
     { name: '房贷计算', id: 14, icon: require('@/assets/index-icon3.png'), router: '/pages/mine/mortgageCalc/index' }
26
     { name: '房贷计算', id: 14, icon: require('@/assets/index-icon3.png'), router: '/pages/mine/mortgageCalc/index' }
27
   ]
27
   ]

+ 1
- 1
src/pages/index/newsList/index.config.js View File

1
 export default {
1
 export default {
2
-  navigationBarTitleText: '新闻资讯'
2
+  navigationBarTitleText: '资讯'
3
 }
3
 }

+ 1
- 1
src/routes.js View File

206
     type: 'building',
206
     type: 'building',
207
   },
207
   },
208
   {
208
   {
209
-    name: '新闻资讯',
209
+    name: '资讯',
210
     page: 'pages/index/newsList/index',
210
     page: 'pages/index/newsList/index',
211
     pkg: 'main',
211
     pkg: 'main',
212
     type: 'news',
212
     type: 'news',

+ 1
- 1
src/services/common.js View File

97
  * 获取品牌房企列表
97
  * 获取品牌房企列表
98
  * @param {*}
98
  * @param {*}
99
  */
99
  */
100
-export const queryBrandList = (params) => fetch({ url: API_BRAND_LIST, params });
100
+export const queryBrandList = (payload) => fetch({ url: API_BRAND_LIST, payload });
101
 
101
 
102
 /**
102
 /**
103
  * 获取品牌房企列表
103
  * 获取品牌房企列表