bayi 2 anos atrás
pai
commit
06b1e01073

+ 6 - 12
components/uploadFile/index.js

@@ -63,10 +63,7 @@ Component({
           const formateRes = JSON.parse(res.data);
           let audioPath = formateRes.data;
           this.uploadWorks(audioPath);
-          this.setData({
-            uploadState: true,
-            uploadSuccess: true,
-          })
+
         },
         complete: () => {
           this.setData({
@@ -101,6 +98,7 @@ Component({
       } else {
         res = await publishWorks(data)
       }
+      console.log('shareVideo', res);
       wx.setStorageSync('shareVideoId', res.id)
       let _data = this.data.readDetail
 
@@ -112,14 +110,10 @@ Component({
         "intonation": _data.tone,
         "score": _data.myOverall
       })
-      console.log({
-        "userReadId": res.id,
-        "complete": _data.integrity,
-        "accuracy": _data.accuracy,
-        "speed": _data.fluency,
-        "intonation": _data.tone,
-        "score": _data.myOverall
-      }, 'score2222', scoreRes, 'scoreRes');
+      this.setData({
+        uploadState: true,
+        uploadSuccess: true,
+      })
     },
   },
 })

+ 1 - 1
components/videoPreview/index.wxml

@@ -5,7 +5,7 @@
       <image src="{{videoInfoCopy.user.avatar}}" class="avatar" bindtap="jumpUserInfo" />
       <view class="wH-left-user">
         <view class="nickname textOver">{{videoInfoCopy.user.nickName||videoInfoCopy.user.eid}}</view>
-        <view class="time">{{videoInfoCopy.userRead.day}}</view>
+        <view class="time">{{videoInfoCopy.userRead.day}} <text style="margin-left: 20rpx;">播放 {{videoInfo.userRead.playAmount}}</text></view>
       </view>
     </view>
     <!-- 用户本人作品的右侧 -->

+ 3 - 1
pages/match/index.js

@@ -90,7 +90,9 @@ Page({
     })
   },
   async getSelfReadRanking() {
-    let list = await getSelfReadRanking()
+    let list = await getSelfReadRanking({
+      activityId: this.data.activityId
+    })
     this.setData({
       list
     })

+ 0 - 49
pages/score/index.js

@@ -168,55 +168,6 @@ Page({
               }
             }
           }
-          /*  let peiyin = canvas.createImage();
-           peiyin.src = '/static/peiyin.jpg';
-           peiyin.onload = () => {
-             ctx.drawImage(peiyin, 0, 211, 375, 89);
-             //分享
-             let fx = canvas.createImage();
-             fx.src = '/static/share.png'
-             fx.onload = () => {
-               ctx.drawImage(fx, 12, 220, 20, 20)
-               ctx.fillText('分享', 36, 238)
-               // 收藏,一个一个渲染
-               let sc = canvas.createImage();
-               sc.src = '/static/no_collect.png'
-               sc.onload = () => {
-                 ctx.drawImage(sc, 110, 220, 19, 19)
-                 ctx.fillText('收藏', 134, 238)
-                 //点赞
-                 let dz = canvas.createImage();
-                 dz.src = '/static/heart.png'
-                 dz.onload = () => {
-                   ctx.drawImage(dz, 318, 222, 22, 22)
-                   ctx.fillText(0, 254, 238)
-                   // 评论
-                   let pl = canvas.createImage();
-                   pl.src = '/static/comment.png'
-                   pl.onload = () => {
-                     ctx.drawImage(pl, 228, 222, 22, 22)
-                     ctx.fillText(0, 340, 238)
-                     setTimeout(() => {
-                       wx.canvasToTempFilePath({
-                         canvas: canvas,
-                         success(res) {
-                           console.log(wx.getStorageSync('shareVideoId'), 'reading-wx.score2');
-                           resolve({
-                             title: '我的新作品发布啦,快来捧场点赞!',
-                             path: `/pages/pkPage/index?videoId=${wx.getStorageSync('shareVideoId')}&uid=${wx.getStorageSync('uid')}&isShare=true`,
-                             imageUrl: res.tempFilePath
-                           })
-                         },
-                         fail(res) {
-                           reject()
-                         }
-                       }, this)
-                     }, 500)
-                   }
-                 }
-               }
-             }
-           } */
         })
     })
   },