[baozhangchao] 3 anos atrás
pai
commit
50fde335cc
2 arquivos alterados com 6 adições e 0 exclusões
  1. 3
    0
      src/pages/NoticeInfo/index.jsx
  2. 3
    0
      src/pages/index/index.jsx

+ 3
- 0
src/pages/NoticeInfo/index.jsx Ver arquivo

@@ -10,6 +10,9 @@ export default (props) => {
10 10
   const { id } = value.params
11 11
   const [content, setContent] = useState()
12 12
   useEffect(() => {
13
+    Taro.showShareMenu({
14
+      withShareTicket: true
15
+    })
13 16
     if (id) {
14 17
       getNoticeInfo(id).then((res) => {
15 18
         setContent(res)

+ 3
- 0
src/pages/index/index.jsx Ver arquivo

@@ -28,6 +28,9 @@ const IndexPage = (props) => {
28 28
   const [bannerList, setBannerList] = useState([])
29 29
 
30 30
   useEffect(() => {
31
+    Taro.showShareMenu({
32
+      withShareTicket: true
33
+    })
31 34
     getNoticeList({ pageSize: 5 }).then((res) => {
32 35
       setNoticeList(res.records)
33 36
     })