Browse Source

静态页面

1002884655 3 years ago
parent
commit
a117fd2a00
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/pages/index/components/HotRecommend/index.jsx

+ 2
- 2
src/pages/index/components/HotRecommend/index.jsx View File

19
     if (city.curCity.name) {
19
     if (city.curCity.name) {
20
       GetRecommendActivity()
20
       GetRecommendActivity()
21
     }
21
     }
22
-  }, [city])
22
+  }, [city, CurrentId])
23
 
23
 
24
   const GetRecommendActivity = () => {
24
   const GetRecommendActivity = () => {
25
 
25
 
26
-    queryActivityList({ home: 1, cityId: city.curCity.id }).then((res) => {
26
+    queryActivityList({ home: 1, cityId: city.curCity.id, type: CurrentId }).then((res) => {
27
       const resArr = res.records || []
27
       const resArr = res.records || []
28
       setList(resArr)
28
       setList(resArr)
29
       change(!!resArr.length)
29
       change(!!resArr.length)