Commit 96aa3ff5 authored by limingzhe's avatar limingzhe

fix: debug

parent 83016663
...@@ -809,6 +809,15 @@ cc.Class({ ...@@ -809,6 +809,15 @@ cc.Class({
// write_regions : [] // write_regions : []
let lineType = 1;
let circleSize = 1;
if (this.data.lineType == '0') {
lineType = 0;
}
if (this.data.circleSize == '0') {
circleSize = 0;
}
...@@ -823,6 +832,8 @@ cc.Class({ ...@@ -823,6 +832,8 @@ cc.Class({
"line_regions": [], "line_regions": [],
'sign_regions': [], 'sign_regions': [],
lineType,
circleSize
} }
const curCheckGroup = this.typeArr[this.typeArrIndex]; const curCheckGroup = this.typeArr[this.typeArrIndex];
......
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
</div> </div>
</div> </div>
</div> </div>
...@@ -300,10 +301,32 @@ ...@@ -300,10 +301,32 @@
<div style="margin-top: 30px; width: 200px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; justify-content: center;">
<label nz-checkbox [(ngModel)]="item.isGuide" (ngModelChange)="save()">首次引导</label> <div style="margin-top: 30px; width: 300px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; ">
<div style="display: flex; align-items: center; margin: 30px;">
<label>连线类型:</label>
<nz-radio-group [ngModel]="item.lineType" (ngModelChange)="onRadioChangeLine($event)" style="display: flex; align-items: center; justify-content: center; flex-wrap: wrap;">
<label nz-radio nzValue="1">直线</label>
<label nz-radio nzValue="0">曲线</label>
</nz-radio-group>
</div>
</div>
<div style="margin-top: 30px; width: 300px; height: 50px; border: 1px solid #ccc ; border-radius: 5px; display: flex; align-items: center; ">
<div style="display: flex; align-items: center; margin: 30px;">
<label>画圈类型:</label>
<nz-radio-group [ngModel]="item.circleSize" (ngModelChange)="onRadioChangeCircle($event)" style="display: flex; align-items: center; justify-content: center; flex-wrap: wrap;">
<label nz-radio nzValue="1">大圈</label>
<label nz-radio nzValue="0">小圈</label>
</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;">
<label nz-checkbox [(ngModel)]="item.isGuide" (ngModelChange)="save()">首次引导</label>
</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;">
<label nz-checkbox [(ngModel)]="item.isDebug" (ngModelChange)="save()">调试模式</label> <label nz-checkbox [(ngModel)]="item.isDebug" (ngModelChange)="save()">调试模式</label>
</div> </div>
......
...@@ -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_color"; saveKey = "OP72";
// 储存对象 // 储存对象
item; item;
// 公式键盘 // 公式键盘
...@@ -247,7 +247,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -247,7 +247,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
init() { init() {
if (!this.item.lineType) {
this.item.lineType = '1';
}
if (!this.item.circleSize) {
this.item.circleSize = '1';
}
} }
...@@ -386,7 +392,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -386,7 +392,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this.save(); this.save();
} }
onRadioChangeLine(e) {
console.log("e:" ,e);
this.item.lineType = e;
this.save();
}
onRadioChangeCircle(e) {
console.log("e:" ,e);
this.item.circleSize = e;
this.save();
}
/** /**
* 储存图片数据 * 储存图片数据
* @param e * @param e
......
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