Commit 39a65d48 authored by 李维's avatar 李维

添加单词音频

parent 40280bfb
......@@ -36,7 +36,7 @@ export class Option {
this.txt = data.text;
// this.time = data.duration;
this.picUrl = data.image;
this.audioUrl = data.audio;
this.audioUrl = data.audio_url;
// this.right = data.right;
// this.touchRight = false;
}
......
......@@ -98,7 +98,7 @@ export class MyCocosSceneComponent extends cc.Component {
"type": "txt",
"pic_url": "",
"text": option.text_en,
"audio_url": "",
"audio_url": option.audio_url,
"audioName": "",
"audio": ""
},
......@@ -106,7 +106,7 @@ export class MyCocosSceneComponent extends cc.Component {
"type": "txt",
"pic_url": "",
"text": option.text_cn,
"audio_url": "",
"audio_url": option.audio_url,
"audioName": "",
"audio": ""
}
......
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