Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_007
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_007
Commits
196c0114
Commit
196c0114
authored
Sep 21, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 表单不渲染
parent
92699e89
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
2 deletions
+8
-2
.DS_Store
.DS_Store
+0
-0
form.component.html
form/src/app/form/form.component.html
+1
-1
form.component.ts
form/src/app/form/form.component.ts
+7
-0
scene.js
play/assets/mz_007/script/scene.js
+0
-1
.DS_Store
publish/.DS_Store
+0
-0
No files found.
.DS_Store
View file @
196c0114
No preview for this file type
form/src/app/form/form.component.html
View file @
196c0114
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
style=
"padding: 20px"
>
<div
style=
"padding: 20px"
>
<div
*
ngFor=
"let group of
item.
groupArr; let gIdx = index;"
>
<div
*
ngFor=
"let group of groupArr; let gIdx = index;"
>
<div
style=
"width: 100%"
align=
"center"
>
<div
style=
"width: 100%"
align=
"center"
>
<h1>
组-{{gIdx + 1}}
</h1>
<h1>
组-{{gIdx + 1}}
</h1>
...
...
form/src/app/form/form.component.ts
View file @
196c0114
...
@@ -37,6 +37,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -37,6 +37,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
}
]
]
groupArr
=
[];
constructor
(
private
appRef
:
ApplicationRef
,
private
changeDetectorRef
:
ChangeDetectorRef
,
private
message
:
NzMessageService
)
{
constructor
(
private
appRef
:
ApplicationRef
,
private
changeDetectorRef
:
ChangeDetectorRef
,
private
message
:
NzMessageService
)
{
}
}
...
@@ -86,6 +88,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -86,6 +88,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
if
(
!
this
.
item
.
groupArr
)
{
if
(
!
this
.
item
.
groupArr
)
{
this
.
item
.
groupArr
=
[];
this
.
item
.
groupArr
=
[];
}
}
this
.
groupArr
=
this
.
item
.
groupArr
;
}
}
...
@@ -184,11 +188,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -184,11 +188,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
texJsonData
:
{},
texJsonData
:
{},
texPngData
:
{},
texPngData
:
{},
});
});
this
.
groupArr
=
this
.
item
.
groupArr
;
this
.
save
();
this
.
save
();
}
}
deleteGroup
(
i
)
{
deleteGroup
(
i
)
{
this
.
item
.
groupArr
.
splice
(
i
,
1
);
this
.
item
.
groupArr
.
splice
(
i
,
1
);
this
.
groupArr
=
this
.
item
.
groupArr
;
this
.
save
();
this
.
save
();
}
}
...
...
play/assets/mz_007/script/scene.js
View file @
196c0114
...
@@ -183,7 +183,6 @@ cc.Class({
...
@@ -183,7 +183,6 @@ cc.Class({
}
}
this
.
data
.
groupArr
.
forEach
((
group
)
=>
{
this
.
data
.
groupArr
.
forEach
((
group
)
=>
{
if
(
group
.
hotZoneItemArr
)
{
if
(
group
.
hotZoneItemArr
)
{
group
.
hotZoneItemArr
.
forEach
((
item
)
=>
{
group
.
hotZoneItemArr
.
forEach
((
item
)
=>
{
if
(
item
.
gIdx
==
'
0
'
&
item
.
skeJsonData
)
{
if
(
item
.
gIdx
==
'
0
'
&
item
.
skeJsonData
)
{
...
...
publish/.DS_Store
View file @
196c0114
No preview for this file type
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