|
|
@ -30,6 +30,15 @@ const ArticlesBox: FC<Props> = (props) => { |
|
|
|
articlesEvent.off(data.id) |
|
|
|
articlesEvent.off(data.id) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Taro.useDidShow(()=>{ |
|
|
|
|
|
|
|
articlesEvent.recordsOn(data.id, ({view}) => { |
|
|
|
|
|
|
|
setData({ |
|
|
|
|
|
|
|
...data, |
|
|
|
|
|
|
|
page_view: view |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const toArticlePage = () => { |
|
|
|
const toArticlePage = () => { |
|
|
|
Taro.navigateTo({ |
|
|
|
Taro.navigateTo({ |
|
|
|
url: `/pages/preview/brand/article/article?id=${data.id}` |
|
|
|
url: `/pages/preview/brand/article/article?id=${data.id}` |
|
|
|