|
@@ -390,17 +390,9 @@ Page({
|
|
|
let audioPath = formateRes.data;
|
|
|
let uploadRes = await publishWorks({
|
|
|
exampleId: this.data.pkData.exampleId,
|
|
|
- audioPath
|
|
|
+ audioPath,
|
|
|
})
|
|
|
let _data = this.data.readDetail
|
|
|
- console.log('挑战分数-----', {
|
|
|
- "userReadId": uploadRes.id,
|
|
|
- "complete": _data.integrity,
|
|
|
- "accuracy": _data.accuracy,
|
|
|
- "speed": _data.fluency,
|
|
|
- "intonation": _data.tone,
|
|
|
- "score": _data.myOverall
|
|
|
- });
|
|
|
postWorksScore({
|
|
|
"userReadId": uploadRes.id,
|
|
|
"complete": _data.integrity,
|
|
@@ -415,6 +407,9 @@ Page({
|
|
|
winnerUId: this.data.pkData.score > _data.myOverall ? this.data.pkData.uid : this.data.pkData.score == _data.myOverall ? '' : wx.getStorageSync('uid')
|
|
|
}
|
|
|
let result = await uploadPk(data)
|
|
|
+ await userEvent({
|
|
|
+ action: 'WXUPLOADPK',
|
|
|
+ })
|
|
|
wx.redirectTo({
|
|
|
url: `/pages/pkResult/index?id=${result.id}`
|
|
|
})
|
|
@@ -517,7 +512,7 @@ Page({
|
|
|
this.innerAudioContext.play();
|
|
|
}
|
|
|
await userEvent({
|
|
|
- action: 'READING',
|
|
|
+ action: 'WXREADING',
|
|
|
readId: this.data.videoInfo.userRead.id
|
|
|
})
|
|
|
},
|