Commit 4c38f03b authored by liujiangnan's avatar liujiangnan

feat: 添加录音

parent c84abab2
......@@ -700,6 +700,7 @@ cc.Class({
recrodEnd(data) {
let score = data.result.overall;
this._stageData.curScore = score;
this._stageData.audio_url = data.audioUrl;
// score = (score / 100) * 40 + (100 - 40);
// score = 40;
if (score >= 80) {
......@@ -772,7 +773,8 @@ cc.Class({
console.log(' in pushResultData');
const word = this._stageData.word;
const score = this._stageData.curScore;
this.resultArr.push( {word, score} );
const audio_url = this._stageData.audio_url;
this.resultArr.push( {word, score, audio_url} );
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment