|
@@ -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])
|