|
@@ -121,6 +121,12 @@ Page({
|
|
|
["silderData.currentTime"]: setDuration(this.resultAudioContext.currentTime)
|
|
|
})
|
|
|
})
|
|
|
+ this.resultAudioContext.onError(res => {
|
|
|
+ console.log(res, 'resultAudioContext');
|
|
|
+ })
|
|
|
+ this.innerAudioContext.onError(res => {
|
|
|
+ console.log(res, 'bbbb');
|
|
|
+ })
|
|
|
this.resultAudioContext.onEnded(res => {
|
|
|
console.log('102-resultAudioContext.ended');
|
|
|
this.setData({
|
|
@@ -311,6 +317,23 @@ Page({
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ eeeeee() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/score/index?readingType=${this.data.readingType}`,
|
|
|
+ events: {
|
|
|
+ // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
|
|
+ someEvent: (data) => {
|
|
|
+ console.log(data)
|
|
|
+ this.setData({
|
|
|
+ readingReset: data.reset || false,
|
|
|
+ readingType: data.readingType || 'public',
|
|
|
+ uploadHide: data.uploadHide
|
|
|
+ })
|
|
|
+ console.log(this.data, 'ggggggggg');
|
|
|
+ }
|
|
|
+ },
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取测评结果
|
|
|
getRecordScore(res) {
|
|
|
const result = res.result;
|
|
@@ -335,8 +358,20 @@ Page({
|
|
|
}
|
|
|
this.setReadDetail(detail)
|
|
|
if (this.data.readingType == 'public' || this.data.readingType == 'readMatch') {
|
|
|
- wx.redirectTo({
|
|
|
- url: `/pages/score/index?readingType=${this.data.readingType}`
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/score/index?readingType=${this.data.readingType}`,
|
|
|
+ events: {
|
|
|
+ // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
|
|
+ goback: (data) => {
|
|
|
+ console.log(data)
|
|
|
+ this.setData({
|
|
|
+ readingReset: data.reset || false,
|
|
|
+ readingType: data.readingType || 'public',
|
|
|
+ uploadHide: data.uploadHide
|
|
|
+ })
|
|
|
+ console.log(this.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
})
|
|
|
} else {
|
|
|
this.uploadAudio(detail)
|
|
@@ -425,7 +460,6 @@ Page({
|
|
|
},
|
|
|
// 视频播放结束
|
|
|
videoEnd() {
|
|
|
- console.log('视频播放结束触发的');
|
|
|
this.resetReading()
|
|
|
},
|
|
|
videoPlay() {
|
|
@@ -548,9 +582,11 @@ Page({
|
|
|
}, 300)
|
|
|
},
|
|
|
onHide() {
|
|
|
+ console.log('结束了吗');
|
|
|
this.resetReading()
|
|
|
},
|
|
|
onUnload() {
|
|
|
+ console.log('结束了吗22222');
|
|
|
this.resetReading()
|
|
|
this.storeBindings.destroyStoreBindings()
|
|
|
},
|