|
@@ -281,12 +281,22 @@ Component({
|
|
|
url
|
|
|
})
|
|
|
},
|
|
|
- // pkPage页面控制播放按钮
|
|
|
+ // pkPage页面示范朗读
|
|
|
changeRead() {
|
|
|
this.setData({
|
|
|
workType: this.data.workType == 'videoPath' ? 'example' : 'videoPath',
|
|
|
})
|
|
|
- console.log(this.data.workType);
|
|
|
+ if (this.data.videoInfo.userReadExtend.resourcesType == 1) {
|
|
|
+ this.triggerEvent('pkPageAudio', {
|
|
|
+ currentTarget: {
|
|
|
+ dataset: {
|
|
|
+ id: this.data.videoInfoCopy.userRead.id,
|
|
|
+ audio: this.data.workType == 'videoPath' ? this.data.videoInfoCopy.userRead.audioPath : this.data.videoInfoCopy.example.audioPath,
|
|
|
+ isPkPage: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
// 统计作品播放次数
|
|
|
async submitPlayLog(userReadId) {
|