Commit 86044a57 authored by xytk's avatar xytk

提交代码

parent 39b31330
......@@ -39,7 +39,7 @@
</div>
<span style="height: 30px; font-size: 18px;">上传音频:</span>
<app-audio-recorder
[audioUrl]="item.audio_url"
[audioUrl]="option.audio_url"
(audioUploaded)="onAudioUploadSuccess2($event, 'audio_url',i)"
></app-audio-recorder>
</div>
......
......@@ -28,6 +28,12 @@ export default class NewClass extends cc.Component {
setAudioClip(ac:cc.AudioClip){
this.text.getComponent<cc.AudioSource>(cc.AudioSource).clip = ac;
}
setText(text:string){
this.text.getComponent<cc.Label>(cc.Label).string = text+"";
}
// start () {}
// update (dt) {}
......
......@@ -143,6 +143,7 @@ cc.Class({
this.initData();
this.initAudio();
this.initView();
this.bottomJs.setText(this.data.bottom_text);
// this.initListener();
},
......
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