李志伟 3 lat temu
rodzic
commit
af99cf56fc

+ 0
- 7
src/pages/details/NoteDetails/index.jsx Wyświetl plik

@@ -23,8 +23,6 @@ import Extend from '../components/Extend/extend'
23 23
 import ImageList from "../components/ImageList";
24 24
 import './index.less'
25 25
 
26
-
27
-
28 26
 export default withLayout((props) => {
29 27
   const { router, person } = props
30 28
   const { id } = props.router.params
@@ -92,7 +90,6 @@ export default withLayout((props) => {
92 90
       const videoHeights = proportion * getVideoWidth;
93 91
       setVideoHeight(videoHeights)
94 92
     }
95
-
96 93
   }, [getVideoWidth, proportion])
97 94
 
98 95
   const hanleLoade = (e) => {
@@ -115,18 +112,14 @@ export default withLayout((props) => {
115 112
         setDetail(res)
116 113
         setimglist(res.imageList || [])
117 114
         setRecommend(res.wxResourceList || [])
118
-
119 115
         setLoading(false)
120
-
121 116
       }).catch(e => {
122 117
         console.error("getNoteID错误", e)
123 118
         setLoading(false)
124
-
125 119
       })
126 120
       getExtendContent('note', id, { pageSize: 500 }).then((res) => {
127 121
         setExtend(res.records || [])
128 122
         setLoading(false)
129
-
130 123
       })
131 124
     }
132 125
   }, [id])

+ 1
- 13
src/pages/index/tabs/Recommend.jsx Wyświetl plik

@@ -32,18 +32,11 @@ export default (props) => {
32 32
   //分类标签
33 33
   const tabs = [{ title: '地点' }, { title: '笔记' }]
34 34
 
35
-  const details = (index, tab) => {
36
-
37
-
38
-
39
-  }
40 35
   //切换上面的标签
41 36
   const handleTabChange = (e) => {
42 37
     const { index } = e.detail
43 38
     setActiveTab(index)
44 39
     setQueryParams({ ...queryParams })
45
-
46
-    details(index, tabs[index].typeId || '')
47 40
   }
48 41
 
49 42
   const handleDataChange = (value, e) => {
@@ -117,13 +110,8 @@ export default (props) => {
117 110
             </List>
118 111
             :
119 112
             <RecommendNote />
120
-
121
-
122 113
         }
123
-
124 114
       </view>
125
-
126
-
127 115
     </view>
128 116
   )
129
-}
117
+}