Commit ba8c6d0e authored by Chen Jiping's avatar Chen Jiping

feat:动画逻辑调整

parent b561951b
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<tr> <tr>
<th>序号</th> <th>序号</th>
<th>字母</th> <th>字母</th>
<th>音频</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
</thead> </thead>
...@@ -72,6 +73,11 @@ ...@@ -72,6 +73,11 @@
<tr *ngFor="let row of wordTable.data;let j = index"> <tr *ngFor="let row of wordTable.data;let j = index">
<td>{{ j+1 }}</td> <td>{{ j+1 }}</td>
<td><input type="text" nz-input [(ngModel)]="row.val" (blur)="save()" maxlength="1"></td> <td><input type="text" nz-input [(ngModel)]="row.val" (blur)="save()" maxlength="1"></td>
<td>
<app-audio-recorder [audioUrl]="row.audioUrl"
(audioUploaded)="onAudioUploadSuccess($event, row, 'audioUrl')">
</app-audio-recorder>
</td>
<td> <td>
<button nz-button nzType="dashed" id="del-btn" (click)="delWord(item.exercises, j)"> <button nz-button nzType="dashed" id="del-btn" (click)="delWord(item.exercises, j)">
<i nz-icon nzType="delete" nzTheme="outline"></i>删除 <i nz-icon nzType="delete" nzTheme="outline"></i>删除
...@@ -82,9 +88,6 @@ ...@@ -82,9 +88,6 @@
</nz-table> </nz-table>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-divider nzText="音频编辑" nzOrientation="left"></nz-divider>
<app-lrc-editor [LRCData]="item.exercises.lrcData" (editFinished)="getLRC($event, item.exercises)">
</app-lrc-editor>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
This diff is collapsed.
...@@ -2,10 +2,12 @@ export const defaultData = { ...@@ -2,10 +2,12 @@ export const defaultData = {
"exercises":{ "exercises":{
"wordArr":[ "wordArr":[
{ {
"val":"A" "val":"A",
"audioUrl":"http://staging-teach.cdn.ireadabc.com/8b5ecca5d4509e1b8a7e81e69d8db615.mp3"
}, },
{ {
"val":"a" "val":"a",
"audioUrl":"http://staging-teach.cdn.ireadabc.com/607af37644501e678de6cbafee555948.mp3"
} }
], ],
"picUrl":"http://staging-teach.cdn.ireadabc.com/101cdabba6404b73292d3b676f4683b1.png", "picUrl":"http://staging-teach.cdn.ireadabc.com/101cdabba6404b73292d3b676f4683b1.png",
......
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