Rorschach 4 years ago
parent
commit
490ed0a9f1
4 changed files with 10 additions and 6 deletions
  1. 1 1
      component/my/my.wxml
  2. 6 2
      pages/reading/reading.js
  3. 2 2
      pages/reading/reading.wxss
  4. 1 1
      templates/courses/courses.wxml

+ 1 - 1
component/my/my.wxml

@@ -10,7 +10,7 @@
             <!-- <view class='occupation-title' wx:if="{{myData.user.user.profession}}">{{ myData.user.user.profession }}</view> -->
           </view>
           <view class='avatar-msg' >
-            <view class='avatar-nickname'>微信昵称:{{ myData.userInfo.wechatName  }}</view>
+            <view class='avatar-nickname'>昵称:{{ myData.userInfo.wechatName  }}</view>
             <view class='avatar-nickname'>年级:{{myData.userInfo.gradeText  }}</view>
             <image class="edit-img" src="../../static/index/edit.png" />
             <view class='mine-category'>

+ 6 - 2
pages/reading/reading.js

@@ -167,15 +167,19 @@ Page({
      *      2 录音结束
      ***/
     audioRecord: function () {
-        console.log('recordFlag', this.data.recordFlag)
+        console.log('111111111111111recordFlag', this.data.recordFlag)
         if (this.data.recordFlag === 0) {
             // this.recordStart();
             // this.saveVideo();
-            console.log('是否有视频', this.videoCtx)
+            console.log('2222222222是否有视频', this.videoCtx)
             if (this.videoCtx) {
+                console.log('3333333333333停止视频停止视频停止视频')
                 this.videoCtx.stop();
                 // this.videoCtx.seek(0);
             }
+            if (this.data.audioPlaying) {
+                this.ss.stopPlay();
+            }
             // if (this.recorderManager) {
             //     this.recorderManager.stop();
             // }

+ 2 - 2
pages/reading/reading.wxss

@@ -240,7 +240,7 @@ audio {
     text-align: center;
     font-size: 38rpx;
     color: #ab722d;
-    padding-left: 110rpx;
+    padding-left: 98rpx;
     box-sizing: border-box;
     margin-bottom: 10rpx;
     justify-content: space-between;
@@ -254,5 +254,5 @@ audio {
     width: 17.6rpx;
     height: 17.6rpx;
     background: #cda069;
-    margin-right: 34.4rpx;
+    margin-right: 30rpx;
 }

+ 1 - 1
templates/courses/courses.wxml

@@ -4,7 +4,7 @@
         <view class="course_item" bindtap="goToReading" wx:for="{{coursesData}}" data-id="{{item.userRead.exampleId}}" wx:key="index">
             <image class="course_icon" src="{{item.userRead.iconImg}}" lazy-load="true" />
             <view class="course_info">
-                <text class="course_title">{{item.userRead.title}}</text>
+                <text class="course_title">{{item.userRead.title}}</text>
                 <view class="course_btn_wrapper">
                     <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}" catchtap="courseCollectTap">
                         <image class="collect_icon btn_icon" src="{{item.isFavorites ?'../../static/index/star_colored.png' :'../../static/index/star.png' }}" />