bayi 1 mesiac pred
rodič
commit
9c237ebaf2
3 zmenil súbory, kde vykonal 11 pridanie a 1 odobranie
  1. 8 0
      README.md
  2. 1 0
      mixins/share.js
  3. 2 1
      pages/reading/index.js

+ 8 - 0
README.md

@@ -45,3 +45,11 @@
 - event 埋点
 - event 埋点
 - reachBottom 触底加载
 - reachBottom 触底加载
 - share 分享,生成海报功能
 - share 分享,生成海报功能
+##  mobx 实现全局状态管理
+- 需要先构建npm
+- 安装 mobx-miniprogram 和 mobx-miniprogram-bindings 
+
+## RecorderManager 全局唯一的录音管理器
+## InnerAudioContext 音频播放方法
+
+##作品页面滚动自动播放当前音视频:createIntersectionObserver

+ 1 - 0
mixins/share.js

@@ -62,6 +62,7 @@ module.exports = Behavior({
                         node: true,
                         node: true,
                         size: true
                         size: true
                     }).exec((res) => {
                     }).exec((res) => {
+                        console.log(res,'rrr');
                         const canvas = res[0].node;
                         const canvas = res[0].node;
                         const ctx = canvas.getContext('2d');
                         const ctx = canvas.getContext('2d');
                         const dpr = 0.84
                         const dpr = 0.84

+ 2 - 1
pages/reading/index.js

@@ -282,6 +282,7 @@ Page({
             'countDown.state': true
             'countDown.state': true
         })
         })
         this.stl = setInterval(async () => {
         this.stl = setInterval(async () => {
+            console.log(this.data.countDown,'this.data.countDown');
             if (this.data.countDown.num == 0) {
             if (this.data.countDown.num == 0) {
                 clearInterval(this.stl)
                 clearInterval(this.stl)
                 this.setData({
                 this.setData({
@@ -612,7 +613,7 @@ Page({
             if (!row.readTime) {
             if (!row.readTime) {
                 return
                 return
             }
             }
-            this.setTimeoutObj = setTimeout(() => {
+            this.setTimeoutObj = setTimeout(() => { 
                     this.setData({
                     this.setData({
                         currentRow: ++this.data.currentRow
                         currentRow: ++this.data.currentRow
                     })
                     })