bayi vor 2 Jahren
Ursprung
Commit
875b791b63
3 geänderte Dateien mit 13 neuen und 3 gelöschten Zeilen
  1. 7 0
      pages/pkPage/index.js
  2. 3 0
      pages/works/index.js
  3. 3 3
      utils/request.js

+ 7 - 0
pages/pkPage/index.js

@@ -84,6 +84,13 @@ Page({
       ['videoInfo.userRead.commentAmount']: ++this.data.videoInfo.userRead.commentAmount
     })
   },
+  onShareTimeline: function () {
+    return {
+      title: '终于找到适合孩子的朗读神器了!动画配音,边玩边学!',
+      query: `uid=${wx.getStorageSync('uid')}&videoId=1676021823219008`,
+      imageUrl: 'http://reader-wx.ai160.com/images/reader/v3/yuwen.jpg'
+    }
+  },
   onUnload() {
     this.resetAudio()
     this.setData({

+ 3 - 0
pages/works/index.js

@@ -100,6 +100,9 @@ Page({
     })
     this.storeBindings.updateStoreBindings()
   },
+  onReachBottom() {
+    this.loadMore()
+  },
   onUnload() {
     this.storeBindings.destroyStoreBindings()
   },

+ 3 - 3
utils/request.js

@@ -6,13 +6,13 @@ const {
     envVersion
   }
 } = wx.getAccountInfoSync();
-if (envVersion == 'develop') {
+/* if (envVersion == 'develop') {
   baseUrl = 'https://reader-api.efunbox.cn/wx'
   oldUrl = 'https://reader-api.efunbox.cn'
-} else {
+} else { */
   baseUrl = 'https://reader-api.ai160.com/wx'
   oldUrl = 'https://reader-api.ai160.com'
-}
+// }
 
 function request(url, method, data, oldBaseUrl = false) {
   let header = {