sun2511 2 years ago
parent
commit
a90795b597
3 changed files with 22 additions and 2 deletions
  1. 7 1
      pages/index/index.js
  2. 7 0
      pages/my/index.js
  3. 8 1
      pages/reading/reading.js

+ 7 - 1
pages/index/index.js

@@ -1362,11 +1362,17 @@ Page({
                 })
         })
     },
+    onShareTimeline: function() {
+        return {
+            title: '终于找到适合孩子的朗读神器了!动画配音,边玩边学!',
+            query: `uid=${wx.getStorageSync('uid')}`,
+            imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/yuwen.jpg'
+        }
+    },
     onShareAppMessage({
         target
     }) {
         let video = target.dataset.info
-        console.log(`/pages/index/index?readId=${video.id}&uid=${wx.getStorageSync('uid')}`)
         const promise = new Promise(resolve => {
             this.creatShare(video).then(res => {
                 resolve(res)

+ 7 - 0
pages/my/index.js

@@ -182,4 +182,11 @@ Page({
             imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/shareContent.png'
         }
     },
+    onShareTimeline: function() {
+        return {
+            title: '终于找到适合孩子的朗读神器了!动画配音,边玩边学!',
+            query: `uid=${wx.getStorageSync('uid')}`,
+            imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/yuwen.jpg'
+        }
+    },
 })

+ 8 - 1
pages/reading/reading.js

@@ -892,5 +892,12 @@ Page({
         this.setData({
             authHide: !this.data.authHide
         })
-    }
+    },
+    onShareTimeline: function() {
+        return {
+            title: '终于找到适合孩子的朗读神器了!动画配音,边玩边学!',
+            query: `uid=${wx.getStorageSync('uid')}`,
+            imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/yuwen.jpg'
+        }
+    },
 })