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

添加单词音频

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