Explorar o código

开发音乐类型作品显示

bayi %!s(int64=2) %!d(string=hai) anos
pai
achega
0b0d4f9260

+ 125 - 121
components/uploadFile/index.js

@@ -1,138 +1,142 @@
 import {
-  storeBindingsBehavior
+    storeBindingsBehavior
 } from 'mobx-miniprogram-bindings'
 import {
-  store
+    store
 } from '~/store/index'
 import {
-  userEvent
+    userEvent
 } from '~/api/global'
 import {
-  publishWorks,
-  postWorksScore,
-  publishRankWorks
+    publishWorks,
+    postWorksScore,
+    publishRankWorks
 } from '~/api/works'
 
 Component({
-  behaviors: [storeBindingsBehavior],
-  storeBindings: {
-    store,
-    fields: {
-      readDetail: 'readDetail'
-    },
-  },
-  /**
-   * 组件的属性列表
-   */
-  properties: {
-    readingType: {
-      type: String,
-      value: ""
-    },
-    activityId: ''
-  },
-  /**
-   * 组件的初始数据
-   */
-  data: {
-    tempFilePath: '',
-    uploadSuccess: false,
-    uploadFlag: false,
-    // 是否上传过
-    uploadState: false,
-    percent: 0,
-    userReadId: '',
-    tips: false
-  },
-  /**
-   * 组件的方法列表
-   */
-  methods: {
-    async upload() {
-      if (this.data.uploadState) {
-        return
-      }
-      this.setData({
-        uploadFlag: true
-      })
-      const uploadTask = wx.uploadFile({
-        url: 'https://reader-api.ai160.com//file/upload',
-        filePath: this.data.readDetail.tempFilePath,
-        name: '朗读录音',
-        header: {
-          uid: wx.getStorageSync('uid')
-        },
-        success: (res) => {
-          const formateRes = JSON.parse(res.data);
-          let audioPath = formateRes.data;
-          this.uploadWorks(audioPath);
+    behaviors: [storeBindingsBehavior],
+    storeBindings: {
+        store,
+        fields: {
+            readDetail: 'readDetail'
         },
-        fail: () => {
-          wx.showToast({
-            title: '上传失败请重试',
-            icon: 'error',
-            duration: 2000
-          })
-          this.setData({
-            uploadFlag: false
-          })
-        }
-      })
-      uploadTask.onProgressUpdate((res) => {
-        console.log(res.progress, 'ppppp');
-        this.setData({
-          percent: res.progress - 1
-        })
-      })
-      await userEvent({
-        action: 'WXUPLOAD',
-      })
     },
-    cancelMask() {
-      this.setData({
-        uploadSuccess: false
-      })
+    /**
+     * 组件的属性列表
+     */
+    properties: {
+        readingType: {
+            type: String,
+            value: ""
+        },
+        activityId: ''
     },
-    async uploadWorks(audio) {
-      const data = {
-        exampleId: this.data.readDetail.id,
-        audioPath: audio,
-        originVideo: this.data.readDetail.originVideo,
-        activityId: this.properties.activityId
-      };
-      let res
-      if (this.properties.readingType == 'readMatch') {
-        res = await publishRankWorks(data)
-      } else {
-        res = await publishWorks(data)
-      }
-      wx.setStorageSync('shareVideoId', res.id)
-      let _data = this.data.readDetail
-      let scoreRes = await postWorksScore({
-        userReadId: res.id,
-        complete: _data.integrity,
-        accuracy: _data.accuracy,
-        speed: _data.fluency,
-        intonation: _data.tone,
-        score: _data.myOverall,
-      })
-      console.log(scoreRes, 'scoreRes');
-      this.setData({
+    /**
+     * 组件的初始数据
+     */
+    data: {
+        tempFilePath: '',
+        uploadSuccess: false,
         uploadFlag: false,
-        uploadState: true,
-        uploadSuccess: true,
-        userReadId: res.id,
-      })
+        // 是否上传过
+        uploadState: false,
+        percent: 0,
+        userReadId: '',
+        tips: false
     },
-    beforeleave() {
-      this.setData({
-        uploadState: true
-      })
+    /**
+     * 组件的方法列表
+     */
+    methods: {
+        async upload() {
+            if (this.data.uploadState) {
+                return
+            }
+            this.setData({
+                uploadFlag: true
+            })
+            return
+            const uploadTask = wx.uploadFile({
+                url: 'https://reader-api.ai160.com//file/upload',
+                filePath: this.data.readDetail.tempFilePath,
+                name: '朗读录音',
+                header: {
+                    uid: wx.getStorageSync('uid')
+                },
+                success: (res) => {
+                    const formateRes = JSON.parse(res.data);
+                    let audioPath = formateRes.data;
+                    this.uploadWorks(audioPath);
+                },
+                fail: () => {
+                    wx.showToast({
+                        title: '上传失败请重试',
+                        icon: 'error',
+                        duration: 2000
+                    })
+                    this.setData({
+                        uploadFlag: false
+                    })
+                }
+            })
+            uploadTask.onProgressUpdate((res) => {
+                console.log(res.progress, 'ppppp');
+                this.setData({
+                    percent: res.progress - 1
+                })
+            })
+            await userEvent({
+                action: 'WXUPLOAD',
+            })
+        },
+        cancelMask() {
+            this.setData({
+                uploadSuccess: false
+            })
+        },
+        async uploadWorks(audio) {
+            const data = {
+                exampleId: this.data.readDetail.id,
+                audioPath: audio,
+                originVideo: this.data.readDetail.originVideo,
+                activityId: this.properties.activityId
+            };
+            let res
+            if (this.properties.readingType == 'readMatch') {
+                res = await publishRankWorks(data)
+            } else {
+                res = await publishWorks(data)
+            }
+            wx.setStorageSync('shareVideoId', res.id)
+            let _data = this.data.readDetail
+            let scoreRes = {}
+            if (_data.businessType != 2) {
+                scoreRes = await postWorksScore({
+                    userReadId: res.id,
+                    complete: _data.integrity,
+                    accuracy: _data.accuracy,
+                    speed: _data.fluency,
+                    intonation: _data.tone,
+                    score: _data.myOverall,
+                })
+            }
+            console.log(scoreRes, 'scoreRes');
+            this.setData({
+                uploadFlag: false,
+                uploadState: true,
+                uploadSuccess: true,
+                userReadId: res.id,
+            })
+        },
+        beforeleave() {
+            this.setData({
+                uploadState: true
+            })
+        },
+        jumpWork() {
+            wx.redirectTo({
+                url: '/pages/userWorks/index'
+            })
+        }
     },
-    jumpWork() {
-      wx.redirectTo({
-        url: '/pages/userWorks/index'
-      })
-    }
-  },
 })

+ 0 - 1
components/uploadFile/index.wxml

@@ -13,7 +13,6 @@
     </view>
   </view>
 </page-container>
-
 <!-- 上传成功 -->
 <view class="successBox " catchtap="cancelMask" wx:if="{{uploadSuccess}}">
   <view class="success" catchtap="true">

+ 124 - 119
components/videoPreview/index.wxml

@@ -1,130 +1,135 @@
 <wxs src="../../utils/filter.wxs" module="filters" />
 <view class="work">
-  <view class="workHead">
-    <view class="wH-left">
-      <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}}
-          <image src="/static/play3.png" class="playNum" /> {{filters.numFilter(videoInfo.userRead.playAmount)}}
-          <image src="/static/pf.png" class="playNum" />
-          <text style="color:#00C657">{{videoInfo.userRead.score>0?videoInfo.userRead.score:'0'}}分</text>
+    <view class="workHead">
+        <view class="wH-left">
+            <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}}
+                    <image src="/static/play3.png" class="playNum" />
+                    {{filters.numFilter(videoInfo.userRead.playAmount)}}
+                    <image src="/static/pf.png" class="playNum" wx:if="{{videoInfo.userReadExtend.businessType!=2}}" />
+                    <text style="color:#00C657"
+                        wx:if="{{videoInfo.userReadExtend.businessType!=2}}">{{videoInfo.userRead.score>0?videoInfo.userRead.score:'0'}}分</text>
+                </view>
+            </view>
         </view>
-      </view>
-    </view>
-    <!-- 用户本人作品的右侧 -->
-    <view class="wH-right" wx:if="{{videoType=='my'}}">
-      <view class="wH-right-btn" bindtap="download" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}">
-        <image class="img" src="/static/down.png" mode="" />
-        <view class="text">下载</view>
-      </view>
-      <view class="wH-right-btn" bindtap="delete">
-        <image class=" img" style="width:24rpx" src="/static/delete.png" mode="" />
-        <view class="text">删除</view>
-      </view>
-      <view class="wH-right-btn" bindtap="setVideoPublic" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}">
-        <image class="img" style="width:30rpx"
-          src="{{videoInfoCopy.userRead.status==='NORMAL'? '/static/unlock.png': '/static/lock.png'}}" />
-        <view class="text">
-          {{videoInfoCopy.userRead.status==='NORMAL'? '公开': '私密'}}
+        <!-- 用户本人作品的右侧 -->
+        <view class="wH-right" wx:if="{{videoType=='my'}}">
+            <view class="wH-right-btn" bindtap="download" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}">
+                <image class="img" src="/static/down.png" mode="" />
+                <view class="text">下载</view>
+            </view>
+            <view class="wH-right-btn" bindtap="delete">
+                <image class=" img" style="width:24rpx" src="/static/delete.png" mode="" />
+                <view class="text">删除</view>
+            </view>
+            <view class="wH-right-btn" bindtap="setVideoPublic" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}">
+                <image class="img" style="width:30rpx"
+                    src="{{videoInfoCopy.userRead.status==='NORMAL'? '/static/unlock.png': '/static/lock.png'}}" />
+                <view class="text">
+                    {{videoInfoCopy.userRead.status==='NORMAL'? '公开': '私密'}}
+                </view>
+            </view>
         </view>
-      </view>
-    </view>
-    <view class="wH-right" wx:elif="{{videoType=='public'&&!selfWork}}">
-      <view class="follow {{videoInfoCopy.isFans?'isFans':''}}" bindtap="setFans">
-        <image src="{{videoInfoCopy.isFans?'/static/follow_2.png':'/static/follow_3.png'}}" class="character" mode="" />
-        <text class="text">{{videoInfoCopy.isFans?'已关注':'关注'}}</text>
-      </view>
-    </view>
-    <view class="wH-right" wx:elif="{{videoType=='pk'&&isOfficial||videoType=='follow'&&isOfficial}}">
-      <view class="pkNum">
-        {{videoInfoCopy.userRead.score>=0?videoInfoCopy.userRead.score+'分':''}}
-      </view>
-    </view>
-  </view>
-  <!-- 视频 -->
-  <view class="workContent" wx:if="{{!videoInfoCopy.userReadExtend||videoInfoCopy.userReadExtend.resourcesType==0}}">
-    <!-- 审核中遮罩 -->
-    <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status=='CHECK'&&videoInfoCopy.userRead.id!=currentId}}">
-      <view class="maskBg"></view>
-      <image class="maskImg" src="/static/checking.png" />
-      <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
-    </view>
-    <!--未播放-->
-    <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status!='CHECK'&&videoInfoCopy.userRead.id!=currentId}}"
-      bindtap="playVideo">
-      <image class="play" src="/static/play-btn.png" />
-      <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
-    </view>
-    <!-- 视频水印 -->
-    <image src="{{videoInfoCopy.readMaskTemplate.imgPath}}" class="watermark"
-      style="pointer-events:{{videoInfoCopy.userRead.status!='CHECK'&&videoInfoCopy.userRead.id!=currentId?'auto':'none'}}"
-      bindtap="playVideo" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}" />
-    <!-- 播放时渲染的video -->
-    <video class="video" id="myVideo" wx:if="{{videoInfoCopy.userRead.id==currentId}}"
-      src="{{workType=='videoPath'? videoInfoCopy.userRead.videoPath:videoInfoCopy.example.videoPath}}" autoplay="true"
-      object-fit="contain">
-    </video>
-  </view>
-  <!-- 音频 -->
-  <view class="workContent" wx:else>
-    <view class="audioBox" bindtap="audioPlay">
-      <image src="{{videoInfoCopy.userReadExtend.backgroundVirtualImg}}" class="audioBg" mode="aspectFill" />
-      <view class="titleBox">
-        <view class="textOver" wx:for="{{videoInfoCopy.userRead.title}}" wx:key="index">
-          {{item}}
+        <view class="wH-right" wx:elif="{{videoType=='public'&&!selfWork}}">
+            <view class="follow {{videoInfoCopy.isFans?'isFans':''}}" bindtap="setFans">
+                <image src="{{videoInfoCopy.isFans?'/static/follow_2.png':'/static/follow_3.png'}}" class="character"
+                    mode="" />
+                <text class="text">{{videoInfoCopy.isFans?'已关注':'关注'}}</text>
+            </view>
+        </view>
+        <view class="wH-right" wx:elif="{{videoType=='pk'&&isOfficial||videoType=='follow'&&isOfficial}}">
+            <view class="pkNum" wx:if="{{videoInfo.userReadExtend.businessType!=2}}">
+                {{videoInfoCopy.userRead.score>=0?videoInfoCopy.userRead.score+'分':''}}
+            </view>
         </view>
-      </view>
-      <view class="audioPlay">
-        <image src="/static/audioBg.png" class="audioPlayBg {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
-        <image src="/static/zhen.png" class="audioPlayZhen" />
-        <image src="{{videoInfoCopy.userRead.coverImg}}"
-          class="cover {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
-      </view>
-      <view class="progressBar">
-        <image src="{{videoInfoCopy.userRead.id==currentId?'/static/aStop.png':'/static/aPlay.png'}}"
-          class="audioSwitch" />
-        <view class="time">{{currentId == videoInfoCopy.userRead.id?currentTime:'00:00'}}</view>
-        <slider class="slider" value="{{currentId == videoInfoCopy.userRead.id?sliderValue:0}}" catchtap="false"
-          disabled="{{currentId != videoInfoCopy.userRead.id}}" catchchange="slider" block-size='12'
-          backgroundColor='#ffffff50' selected-color="#ffffff" />
-        <view class="time">{{endTime}}</view>
-      </view>
-    </view>
-  </view>
-  <view class="workFooter" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}">
-    <button class="resetBtn mangeL-box" open-type="share" data-info='{{videoInfo}}'>
-      <image src="/static/share.png" mode="" class="icon" />
-      <view class="icon-name">分享</view>
-    </button>
-    <view class="mangeL-box" bindtap="collect">
-      <image src="{{videoInfoCopy.isFavorites ? '/static/star_colored.png' : '/static/star.png'}}" mode=""
-        class="icon" />
-      <view class="icon-name">{{videoInfoCopy.isFavorites?'已收藏':'收藏'}}</view>
     </view>
-    <view class="mangeL-box" bindtap="openComment">
-      <view class="noticeTips" wx:if="{{videoType=='my'&&videoInfoCopy.unReadPostsCount>0}}">
-        +{{videoInfoCopy.unReadPostsCount}}</view>
-      <image src="/static/comment.png" mode="" class="icon" />
-      <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.commentAmount)}}</view>
+    <!-- 视频 -->
+    <view class="workContent" wx:if="{{!videoInfoCopy.userReadExtend||videoInfoCopy.userReadExtend.resourcesType==0}}">
+        <!-- 审核中遮罩 -->
+        <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status=='CHECK'&&videoInfoCopy.userRead.id!=currentId}}">
+            <view class="maskBg"></view>
+            <image class="maskImg" src="/static/checking.png" />
+            <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
+        </view>
+        <!--未播放-->
+        <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status!='CHECK'&&videoInfoCopy.userRead.id!=currentId}}"
+            bindtap="playVideo">
+            <image class="play" src="/static/play-btn.png" />
+            <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
+        </view>
+        <!-- 视频水印 -->
+        <image src="{{videoInfoCopy.readMaskTemplate.imgPath}}" class="watermark"
+            style="pointer-events:{{videoInfoCopy.userRead.status!='CHECK'&&videoInfoCopy.userRead.id!=currentId?'auto':'none'}}"
+            bindtap="playVideo" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}" />
+        <!-- 播放时渲染的video -->
+        <video class="video" id="myVideo" wx:if="{{videoInfoCopy.userRead.id==currentId}}"
+            src="{{workType=='videoPath'? videoInfoCopy.userRead.videoPath:videoInfoCopy.example.videoPath}}"
+            autoplay="true" object-fit="contain">
+        </video>
     </view>
-    <view class="mangeL-box" bindtap="likeVideo">
-      <image src="{{videoInfoCopy.isLike ? '/static/heart_colored.png' : '/static/heart.png'}}" mode="" class="icon" />
-      <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.likeAmount)}}</view>
+    <!-- 音频 -->
+    <view class="workContent" wx:else>
+        <view class="audioBox" bindtap="audioPlay">
+            <image src="{{videoInfoCopy.userReadExtend.backgroundVirtualImg}}" class="audioBg" mode="aspectFill" />
+            <view class="titleBox">
+                <view class="textOver" wx:for="{{videoInfoCopy.userRead.title}}" wx:key="index">
+                    {{item}}
+                </view>
+            </view>
+            <view class="audioPlay">
+                <image src="/static/audioBg.png"
+                    class="audioPlayBg {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
+                <image src="/static/zhen.png" class="audioPlayZhen" />
+                <image src="{{videoInfoCopy.userRead.coverImg}}"
+                    class="cover {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
+            </view>
+            <view class="progressBar">
+                <image src="{{videoInfoCopy.userRead.id==currentId?'/static/aStop.png':'/static/aPlay.png'}}"
+                    class="audioSwitch" />
+                <view class="time">{{currentId == videoInfoCopy.userRead.id?currentTime:'00:00'}}</view>
+                <slider class="slider" value="{{currentId == videoInfoCopy.userRead.id?sliderValue:0}}" catchtap="false"
+                    disabled="{{currentId != videoInfoCopy.userRead.id}}" catchchange="slider" block-size='12'
+                    backgroundColor='#ffffff50' selected-color="#ffffff" />
+                <view class="time">{{endTime}}</view>
+            </view>
+        </view>
     </view>
-  </view>
-  <view class="pkPageBtns" style="justify-content:{{videoType!='pk'?'center':'space-between'}}"
-    wx:if="{{videoType!='my'&&!selfWork}}">
-    <view class="toReading" style="background-color: #00C657;" bindtap="changeRead"
-      wx:if="{{videoInfoCopy.userRead.type=='READ'&&videoType=='pk'}}">
-      <image src="/static/aPlay.png" class="reading" />
-      <view class="reading-text">{{workType=='videoPath'?'示范朗读':'TA的朗读'}}</view>
+    <view class="workFooter" wx:if="{{videoInfoCopy.userRead.status!='CHECK'}}">
+        <button class="resetBtn mangeL-box" open-type="share" data-info='{{videoInfo}}'>
+            <image src="/static/share.png" mode="" class="icon" />
+            <view class="icon-name">分享</view>
+        </button>
+        <view class="mangeL-box" bindtap="collect">
+            <image src="{{videoInfoCopy.isFavorites ? '/static/star_colored.png' : '/static/star.png'}}" mode=""
+                class="icon" />
+            <view class="icon-name">{{videoInfoCopy.isFavorites?'已收藏':'收藏'}}</view>
+        </view>
+        <view class="mangeL-box" bindtap="openComment">
+            <view class="noticeTips" wx:if="{{videoType=='my'&&videoInfoCopy.unReadPostsCount>0}}">
+                +{{videoInfoCopy.unReadPostsCount}}</view>
+            <image src="/static/comment.png" mode="" class="icon" />
+            <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.commentAmount)}}</view>
+        </view>
+        <view class="mangeL-box" bindtap="likeVideo">
+            <image src="{{videoInfoCopy.isLike ? '/static/heart_colored.png' : '/static/heart.png'}}" mode=""
+                class="icon" />
+            <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.likeAmount)}}</view>
+        </view>
     </view>
-    <view class="toReading {{videoType=='pk'?'pkToReading':''}}" bindtap="toPkPage">
-      <image src="/static/reading.png" class="reading" />
-      <view class="reading-text" wx:if="{{videoInfoCopy.userRead.type=='READ'}}">{{videoType!='pk'?'挑战PK':'开始挑战'}}
-      </view>
-      <view class="reading-text" wx:if="{{!isOfficial}}">去朗读</view>
+    <view class="pkPageBtns" style="justify-content:{{videoType!='pk'?'center':'space-between'}}"
+        wx:if="{{videoType!='my'&&!selfWork}}">
+        <view class="toReading" style="background-color: #00C657;" bindtap="changeRead"
+            wx:if="{{videoInfoCopy.userRead.type=='READ'&&videoType=='pk'}}">
+            <image src="/static/aPlay.png" class="reading" />
+            <view class="reading-text">{{workType=='videoPath'?'示范朗读':'TA的朗读'}}</view>
+        </view>
+        <view class="toReading {{videoType=='pk'?'pkToReading':''}}" bindtap="toPkPage">
+            <image src="/static/reading.png" class="reading" />
+            <view class="reading-text" wx:if="{{videoInfoCopy.userRead.type=='READ'}}">{{videoType!='pk'?'挑战PK':'开始挑战'}}
+            </view>
+            <view class="reading-text" wx:if="{{!isOfficial}}">去朗读</view>
+        </view>
     </view>
-  </view>
 </view>

+ 7 - 7
pages/reading/index.js

@@ -81,6 +81,13 @@ Page({
         wx.setNavigationBarTitle({
             title: options.navBarTitle
         })
+        this.setData({
+            readingReset: options.reset || false,
+            readingType: options.readingType || 'public',
+            uploadHide: options.uploadHide,
+            activityId: options.activityId || '',
+            free: options.free ? Number(options.free) : 1
+        })
         this.getreadInfo(videoId, options.reset).then(res => {
             wx.nextTick(() => {
                 if (options.voluntarily && this.data.isVip) {
@@ -91,13 +98,6 @@ Page({
                 }
             })
         })
-        this.setData({
-            readingReset: options.reset || false,
-            readingType: options.readingType || 'public',
-            uploadHide: options.uploadHide,
-            activityId: options.activityId || '',
-            free: options.free ? Number(options.free) : 1
-        })
         // 手工绑定 
         this.storeBindings = createStoreBindings(this, {
             store,

+ 1 - 1
pages/reading/index.wxml

@@ -135,7 +135,7 @@
             <view class="tips">秒后开始</view>
         </view>
     </view>
-    <page-container show="{{uploadState}}" bind:beforeleave='beforeleave'>
+    <page-container wx:if="{{readingType=='pk'}}" show="{{uploadState}}" bind:beforeleave='beforeleave'>
         <view class="uploadBox">
             <view class="upload">
                 <image src="/static/uploadTips.png" class="tipsImg" />

+ 1 - 1
pages/score/index.js

@@ -40,7 +40,7 @@ Page({
         })
         this.storeBindings.updateStoreBindings()
         let score = this.data.readDetail
-        console.log('scorescorescore', score);
+        console.log('score-----', score);
         wx.setNavigationBarTitle({
             title: score.title
         })