Commit 08138e40 authored by limingzhe's avatar limingzhe

fix: 序号添加和展示

parent af450371
...@@ -37,16 +37,16 @@ ...@@ -37,16 +37,16 @@
<h5 style="width: 100%; line-height: 40px; text-align: center;"> 句组-{{i+1}}</h5> <h5 style="width: 100%; line-height: 40px; text-align: center;"> 句组-{{i+1}}</h5>
<div nz-form> <div nz-form>
<nz-form-item> <nz-form-item>
<nz-radio-group [(ngModel)]="it.left.num" (ngModelChange)="save()"> <nz-radio-group [(ngModel)]="it.left.num" (ngModelChange)="save()" style="margin-left: 9%">
<label nz-radio nzValue="Y"></label> <label nz-radio nzValue="Y"></label>
<label nz-radio nzValue="N"></label> <label nz-radio nzValue="N"></label>
</nz-radio-group> </nz-radio-group>
<div *ngIf="it.num== 'Y'" style="width: 33%"> <div *ngIf="it.left.num== 'Y'" style="width: 33%; margin-left: 9%">
<nz-form-label nzFor="xuhao">序号</nz-form-label> <nz-form-label nzFor="xuhao">序号</nz-form-label>
<input style="width: 20%; margin-bottom: 0.5vw" type="text" nz-input placeholder="" [(ngModel)]="it.xuhao" (blur)="saveItem()"> <input style="width: 20%; margin-bottom: 0.5vw" type="text" nz-input placeholder="" [(ngModel)]="it.xuhao" (blur)="saveItem()">
</div> </div>
<div *ngIf="it.num== 'N'" style="width: 80%"> <div *ngIf="it.left.num== 'N'" style="width: 80%">
<br> <br>
</div> </div>
......
...@@ -88,7 +88,6 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -88,7 +88,6 @@ export class PlayComponent implements OnInit, OnDestroy {
guide: MySprite; guide: MySprite;
wordArr wordArr
musicArr = []; musicArr = [];
number = 0;
juziWidth juziWidth
word_bg_groups = []; word_bg_groups = [];
word_show_index; word_show_index;
...@@ -725,8 +724,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -725,8 +724,7 @@ export class PlayComponent implements OnInit, OnDestroy {
if (this.data.wordArr[index].left.num == 'Y') { if (this.data.wordArr[index].left.num == 'Y') {
// 加一个序号 // 加一个序号
let letter_num = new Label(); let letter_num = new Label();
this.number++; letter_num.text = this.data.wordArr[index].xuhao + ".";
letter_num.text = this.number + ".";
letter_num.textAlign = 'left'; letter_num.textAlign = 'left';
// letter_num.fontSize = word_content.word_font_size ? word_content.word_font_size : 110; // letter_num.fontSize = word_content.word_font_size ? word_content.word_font_size : 110;
letter_num.fontSize = 40; letter_num.fontSize = 40;
......
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