|
@@ -95,23 +95,38 @@ Component({
|
|
|
};
|
|
|
let res
|
|
|
if (this.properties.readingType == 'readMatch') {
|
|
|
+ console.log('publishRankWorks1');
|
|
|
res = await publishRankWorks(data)
|
|
|
+ console.log('publishRankWorks2');
|
|
|
} else {
|
|
|
+ console.log('publishWorks1');
|
|
|
res = await publishWorks(data)
|
|
|
+ console.log('publishWorks2');
|
|
|
}
|
|
|
console.log('shareVideo', res);
|
|
|
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
|
|
|
+ userReadId: res.id,
|
|
|
+ complete: _data.integrity,
|
|
|
+ accuracy: _data.accuracy,
|
|
|
+ speed: _data.fluency,
|
|
|
+ intonation: _data.tone,
|
|
|
+ score: _data.myOverall,
|
|
|
+ })
|
|
|
+ console.log(scoreRes, 'scoreRes');
|
|
|
+ await userEvent({
|
|
|
+ action: 'WXSCORE',
|
|
|
+ targetContent: {
|
|
|
+ userReadId: res.id,
|
|
|
+ complete: _data.integrity,
|
|
|
+ accuracy: _data.accuracy,
|
|
|
+ speed: _data.fluency,
|
|
|
+ intonation: _data.tone,
|
|
|
+ score: _data.myOverall,
|
|
|
+ scoreRes: scoreRes
|
|
|
+ }
|
|
|
})
|
|
|
- console.log(scoreRes,'scoreRes');
|
|
|
this.setData({
|
|
|
uploadFlag: false,
|
|
|
uploadState: true,
|