bayi 2 tahun lalu
induk
melakukan
24ad45b26c
3 mengubah file dengan 2 tambahan dan 15 penghapusan
  1. 0 1
      pages/notice/index.less
  2. 0 1
      pages/notice/index.wxss
  3. 2 13
      pages/reading/index.js

+ 0 - 1
pages/notice/index.less

@@ -26,7 +26,6 @@
 
       .row {
         line-height: 48rpx;
-        text-indent: 2em;
         margin-bottom: 10rpx;
       }
     }

+ 0 - 1
pages/notice/index.wxss

@@ -23,6 +23,5 @@
 }
 .noticeBox .notice .content .row {
   line-height: 48rpx;
-  text-indent: 2em;
   margin-bottom: 10rpx;
 }

+ 2 - 13
pages/reading/index.js

@@ -319,15 +319,7 @@ Page({
       this.setData({
         tempFilePath: res.tempFilePath,
       });
-      //录音机结束后,驰声引擎执行结束操作,等待评测返回结果
-      wsEngine.stop({
-        success: () => {
-          console.log('====== wsEngine stop success ======');
-        },
-        fail: (res) => {
-          console.log('录音结束报错', res);
-        },
-      });
+
     });
     //监听已录制完指定帧大小的文件事件。如果设置了 frameSize,则会回调此事件。
     recorderManager.onFrameRecorded((res) => {
@@ -427,7 +419,6 @@ Page({
           audioPath,
         })
         let _data = this.data.readDetail
-
         let scoreRes = await postWorksScore({
           "userReadId": uploadRes.id,
           "complete": _data.integrity,
@@ -566,6 +557,7 @@ Page({
   resetReading() {
     clearTimeout(this.setTimeoutObj)
     clearInterval(this.stl)
+    wsEngine.reset()
     // 重置视频
     if (this.data.videoInfo.userReadExtend.resourcesType == 0) {
       this.videoContext.stop()
@@ -616,7 +608,6 @@ Page({
     }, 300)
   },
   onHide() {
-    console.log('结束了吗');
     this.resetReading()
   },
   onUnload() {
@@ -729,9 +720,7 @@ Page({
                 }
               }
             }
-
           }
-
         })
     })
   },