Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ngt_video
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
ngt_video
Commits
81531605
Commit
81531605
authored
Oct 02, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
6708a344
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
defaultData.js
assets/ngt_video/Script/defaultData.js
+15
-0
form.component.html
form/src/app/form/form.component.html
+12
-0
form.component.ts
form/src/app/form/form.component.ts
+11
-0
No files found.
assets/ngt_video/Script/defaultData.js
View file @
81531605
export
const
defaultData
=
{
export
const
defaultData
=
{
"
title
"
:
"
Hello Apples
"
,
"
endImgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
https://teach.cdn.ireadabc.com/8a5825bc51a32f13ddb55d3065d713a9.json
"
,
"
name
"
:
"
动画用图川阅阅奖励_ske.json
"
},
"
tex
"
:
{
"
url
"
:
"
https://teach.cdn.ireadabc.com/c4f5e10343ab1e79eb7407867fc4a85b.json
"
,
"
name
"
:
"
动画用图川阅阅奖励_tex.json
"
},
"
png
"
:
{
"
url
"
:
"
https://teach.cdn.ireadabc.com/bc984a44b7537f051707f662fba3943e.png
"
,
"
name
"
:
"
动画用图川阅阅奖励_tex.png
"
}
},
"
video_url
"
:
"
http://staging-teach.cdn.ireadabc.com/1dde63cee33e4445fbab13297479e733.mp4
"
"
video_url
"
:
"
http://staging-teach.cdn.ireadabc.com/1dde63cee33e4445fbab13297479e733.mp4
"
}
}
\ No newline at end of file
form/src/app/form/form.component.html
View file @
81531605
<div
class=
"model-content"
>
<div
class=
"model-content"
>
<div>
<span
style=
"font-size: 20px;"
>
标题:
</span><input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
title
"
(
blur
)="
save
()"
>
<span
style=
"font-size: 20px;"
>
提示动画:
</span>
<app-upload-dragon-bone
style=
"width: 100%"
(
save
)="
onDragonBoneSave
($
event
,
item
)"
[
skeJsonData
]="
item
.
endImgAni
.
ske
"
[
texJsonData
]="
item
.
endImgAni
.
tex
"
[
texPngData
]="
item
.
endImgAni
.
png
"
>
</app-upload-dragon-bone>
</div>
<div
style=
"padding: 10px;background-color: #fff;"
>
<div
style=
"padding: 10px;background-color: #fff;"
>
<div
style=
"padding: 20px"
>
<div
style=
"padding: 20px"
>
<app-upload-video
[
videoUrl
]="
item
.
video_url
"
(
videoUploaded
)="
onVideoUploaded
($
event
)"
></app-upload-video>
<app-upload-video
[
videoUrl
]="
item
.
video_url
"
(
videoUploaded
)="
onVideoUploaded
($
event
)"
></app-upload-video>
...
...
form/src/app/form/form.component.ts
View file @
81531605
...
@@ -16,6 +16,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -16,6 +16,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
saveKey
=
"
cartoon_video
"
;
saveKey
=
"
cartoon_video
"
;
item
=
{
item
=
{
title
:
""
,
endImgAni
:
{
ske
:
{},
tex
:
{},
png
:
{}
},
video_url
:
""
,
video_url
:
""
,
};
};
...
@@ -29,6 +35,11 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -29,6 +35,11 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this
.
save
();
this
.
save
();
}
}
onDragonBoneSave
(
e
,
item
)
{
console
.
log
(
e
);
this
.
save
();
}
onVideoUploaded
(
evt
)
{
onVideoUploaded
(
evt
)
{
this
.
item
.
video_url
=
evt
.
url
;
this
.
item
.
video_url
=
evt
.
url
;
console
.
log
(
evt
);
console
.
log
(
evt
);
...
...
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