Baozhangchao 3 年之前
父節點
當前提交
d7fb5418db
共有 1 個文件被更改,包括 9 次插入11 次删除
  1. 9
    11
      src/components/BottomMoadl/index.jsx

+ 9
- 11
src/components/BottomMoadl/index.jsx 查看文件

@@ -43,27 +43,25 @@ export default (props) => {
43 43
 
44 44
     getRecommendList({ location: location, pageNum: textNextSum, pageSize: 3 }).then(e => {
45 45
       setRecommendContent(e.records)
46
-
47 46
     })
48
-  }, [])
47
+  }, [location, textNextSum])
49 48
 
50 49
 
51 50
   //换一批
52 51
   const handleTextNext = (e) => {
53
-    setLoading(true)
54
-    console.log("🚀 ~ file: index.jsx ~ line 61 ~ handleTextNext ~ e", e)
52
+    // setLoading(true)
53
+    setTextNext(textNextSum + 1)
55 54
 
56 55
     e.stopPropagation()
57 56
 
58
-    setTextNext(textNextSum + 1)
59
-    getRecommendList({ location: location, pageNum: textNextSum, pageSize: 3 }).then(e => {
60
-      setRecommendContent(e.records)
61
-      setLoading(false)
57
+    // getRecommendList({ location: location, pageNum: textNextSum, pageSize: 3 }).then(e => {
58
+    //   setRecommendContent(e.records)
59
+    //   setLoading(false)
62 60
 
63
-    }).catch(s => {
64
-      setLoading(false)
61
+    // }).catch(s => {
62
+    //   setLoading(false)
65 63
 
66
-    })
64
+    // })
67 65
 
68 66
   }
69 67