Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP05
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
OP05
Commits
1ed900a9
Commit
1ed900a9
authored
Sep 22, 2021
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
游戏后台配置完成
parent
4973c0b8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
200 deletions
+77
-200
form.component.html
form/src/app/form/form.component.html
+47
-144
form.component.ts
form/src/app/form/form.component.ts
+7
-15
data.js
play/assets/scene/scene/data.js
+23
-41
No files found.
form/src/app/form/form.component.html
View file @
1ed900a9
This diff is collapsed.
Click to expand it.
form/src/app/form/form.component.ts
View file @
1ed900a9
...
@@ -68,9 +68,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -68,9 +68,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
classItem
()
{
classItem
()
{
function
AniAssets
()
{
function
AniAssets
()
{
this
.
ske
=
""
;
this
.
ske
=
{}
;
this
.
tex
=
""
;
this
.
tex
=
{}
;
this
.
png
=
""
;
this
.
png
=
{}
;
this
.
setData
=
function
(
obj
)
{
this
.
setData
=
function
(
obj
)
{
this
.
ske
=
obj
.
ske
;
this
.
ske
=
obj
.
ske
;
this
.
tex
=
obj
.
tex
;
this
.
tex
=
obj
.
tex
;
...
@@ -83,7 +83,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -83,7 +83,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
bgImg
=
""
;
this
.
bgImg
=
""
;
this
.
wordAudio
=
""
;
this
.
wordAudio
=
""
;
this
.
imgAni
=
new
AniAssets
();
this
.
imgAni
=
new
AniAssets
();
this
.
wordAni
=
new
AniAssets
();
}
}
return
new
Item
();
return
new
Item
();
...
@@ -103,21 +102,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -103,21 +102,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
}
cardItemData
()
{
cardItemData
()
{
return
{
return
this
.
classItem
()
// cardId: "",
// title: "",
// pic_url: "",
// audio_url: "",
};
}
}
getDefaultPicArr
()
{
getDefaultPicArr
()
{
let
arr
=
[
this
.
classItem
()
,
this
.
classItem
(),
this
.
classItem
(),
this
.
classItem
()
]
let
arr
=
[
this
.
classItem
()]
return
arr
;
return
arr
;
}
}
initData
()
{
initData
()
{
...
@@ -129,12 +121,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -129,12 +121,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
}
onImageUploadSuccessByItem
(
e
,
item
)
{
onImageUploadSuccessByItem
(
e
,
item
)
{
item
.
pic_url
=
e
.
url
;
item
.
bgImg
=
e
.
url
;
this
.
save
();
this
.
save
();
}
}
onAudioUploadSuccessByItem
(
e
,
item
)
{
onAudioUploadSuccessByItem
(
e
,
item
)
{
item
.
audio_url
=
e
.
url
;
item
.
wordAudio
=
e
.
url
;
this
.
save
();
this
.
save
();
}
}
...
...
play/assets/scene/scene/data.js
View file @
1ed900a9
This diff is collapsed.
Click to expand it.
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