Commit 45f6a2ee authored by limingzhe's avatar limingzhe

fix: debug

parent 80dcf92a
...@@ -193,15 +193,49 @@ ...@@ -193,15 +193,49 @@
</div> </div>
</div> </div>
<!-- <div style="width: 400px; display: flex; align-items: center; margin-top: 30px;">
<span>首填部分:</span>
<nz-radio-group [ngModel]="item.firstPart" (ngModelChange)="onRadioChange($event, item)" style="display: flex; align-items: center; justify-content: center; flex-wrap: wrap;"> <div style="margin-top: 30px;"></div>
<div *ngFor="let part of partArr; let i = index" style="display: flex; "> <h2>画圈组设置:</h2>
<label nz-radio nzValue="{{i}}">{{part.name}}</label> <div style="padding: 10px; border: 2px solid #ccc; border-radius: 10px; width: 350px;">
<div *ngFor="let hzItem of item.hotZoneItemArr; let i = index">
<div *ngIf="hzItem.gIdx == '2'" style="margin: 10px; display: flex; align-items: center;">
<div style="width: 300px; height: 70px; border: 1px solid #ccc; border-radius: 10px; padding: 5px; ">
<h3>item-{{i+1}}</h3>
<span>服务端画圈区域:</span>
<a nz-dropdown [nzDropdownMenu]="menu3">
<label *ngIf="hzItem.circleItem">
{{'circle-item-' + hzItem.circleItem}}
</label>
<label *ngIf="!hzItem.circleItem">
{{'select circle'}}
</label>
<i nz-icon nzType="down"></i>
</a>
<nz-dropdown-menu #menu3="nzDropdownMenu">
<ul nz-menu nzSelectable>
<div *ngFor="let temp of item.hotZoneItemArr2; let j = index" (click)="saveCircleItem(hzItem, j+1)" >
<li *ngIf="temp.gIdx == '7' " nz-menu-item>circle-item-{{j+1}}</li>
</div>
</ul>
</nz-dropdown-menu>
</div>
</div> </div>
</nz-radio-group>
</div> --> </div>
</div>
<div style="margin-top: 30px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;"> <div style="margin-top: 30px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;">
......
...@@ -22,7 +22,7 @@ import { removeItemFromArr } from '../play/Unit'; ...@@ -22,7 +22,7 @@ import { removeItemFromArr } from '../play/Unit';
export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit { export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
// 储存数据用 // 储存数据用
saveKey = "cc_mz_write_02"; saveKey = "cc_mz_write_02_link";
// 储存对象 // 储存对象
item; item;
// 公式键盘 // 公式键盘
...@@ -56,6 +56,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -56,6 +56,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
isCopy: true, isCopy: true,
anima: true, anima: true,
}, },
{
name: '画圈区',
rect: true,
isShowPos: true,
isCopy: true,
anima: true,
},
{ {
name: '音频区', name: '音频区',
...@@ -64,6 +72,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -64,6 +72,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
isCopy: true, isCopy: true,
}, },
// { // {
// name: '图片', // name: '图片',
// // audio: true, // // audio: true,
...@@ -128,6 +139,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -128,6 +139,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
label: '字母', label: '字母',
isCopy: true, isCopy: true,
}, },
{
name: '画圈区域',
rect: true,
isCopy: true,
},
] ]
audioTypeArr = [ audioTypeArr = [
...@@ -231,6 +249,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -231,6 +249,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this.save(); this.save();
} }
saveCircleItem(hzItem, rectItemId) {
hzItem.circleItem = rectItemId;
this.save();
}
......
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