Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_write_02
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
cc_mz_write_02
Commits
45f6a2ee
Commit
45f6a2ee
authored
Nov 03, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
80dcf92a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
401 additions
and
31 deletions
+401
-31
cc_mz_write_02.js
assets/cc_mz_write_02/scene/cc_mz_write_02.js
+337
-23
form.component.html
form/src/app/form/form.component.html
+41
-7
form.component.ts
form/src/app/form/form.component.ts
+23
-1
No files found.
assets/cc_mz_write_02/scene/cc_mz_write_02.js
View file @
45f6a2ee
This diff is collapsed.
Click to expand it.
form/src/app/form/form.component.html
View file @
45f6a2ee
...
...
@@ -193,15 +193,49 @@
</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 *ngFor="let part of partArr; let i = index" style="display: flex; ">
<label nz-radio nzValue="{{i}}">{{part.name}}</label>
<div
style=
"margin-top: 30px;"
></div>
<h2>
画圈组设置:
</h2>
<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>
</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;"
>
...
...
form/src/app/form/form.component.ts
View file @
45f6a2ee
...
...
@@ -22,7 +22,7 @@ import { removeItemFromArr } from '../play/Unit';
export
class
FormComponent
implements
OnInit
,
OnChanges
,
OnDestroy
,
AfterViewInit
{
// 储存数据用
saveKey
=
"
cc_mz_write_02
"
;
saveKey
=
"
cc_mz_write_02
_link
"
;
// 储存对象
item
;
// 公式键盘
...
...
@@ -56,6 +56,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
isCopy
:
true
,
anima
:
true
,
},
{
name
:
'
画圈区
'
,
rect
:
true
,
isShowPos
:
true
,
isCopy
:
true
,
anima
:
true
,
},
{
name
:
'
音频区
'
,
...
...
@@ -64,6 +72,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
isCopy
:
true
,
},
// {
// name: '图片',
// // audio: true,
...
...
@@ -128,6 +139,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
label
:
'
字母
'
,
isCopy
:
true
,
},
{
name
:
'
画圈区域
'
,
rect
:
true
,
isCopy
:
true
,
},
]
audioTypeArr
=
[
...
...
@@ -231,6 +249,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this
.
save
();
}
saveCircleItem
(
hzItem
,
rectItemId
)
{
hzItem
.
circleItem
=
rectItemId
;
this
.
save
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment