Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ns_video_map
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
ns_video_map
Commits
f80f4ef9
Commit
f80f4ef9
authored
May 01, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加 隐藏跳过按钮
parent
3d9c327e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
ns_video_map.ts
assets/ns_video_map/scene/ns_video_map.ts
+4
-0
defaultData.ts
assets/ns_video_map/script/defaultData.ts
+1
-1
form.component.html
form/src/app/form/form.component.html
+8
-0
form.component.ts
form/src/app/form/form.component.ts
+8
-2
No files found.
assets/ns_video_map/scene/ns_video_map.ts
View file @
f80f4ef9
...
@@ -60,6 +60,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -60,6 +60,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
videoPlayEnd
();
this
.
videoPlayEnd
();
})
})
if
(
this
.
data
.
isJump
!=
'
1
'
)
{
jumpBtn
.
active
=
false
;
}
const
playBtn
=
cc
.
find
(
'
Canvas/btn_play
'
);
const
playBtn
=
cc
.
find
(
'
Canvas/btn_play
'
);
playBtn
.
on
(
'
click
'
,
()
=>
{
playBtn
.
on
(
'
click
'
,
()
=>
{
...
...
assets/ns_video_map/script/defaultData.ts
View file @
f80f4ef9
export
const
defaultData
=
{
"
video_url
"
:
"
http://staging-teach.cdn.ireadabc.com/31581cee2192077e91982eeb59d5ea5e.mp4
"
}
export
const
defaultData
=
{
"
video_url
"
:
"
http://staging-teach.cdn.ireadabc.com/31581cee2192077e91982eeb59d5ea5e.mp4
"
,
"
isJump
"
:
"
0
"
}
\ No newline at end of file
\ No newline at end of file
form/src/app/form/form.component.html
View file @
f80f4ef9
...
@@ -11,6 +11,14 @@
...
@@ -11,6 +11,14 @@
[
videoUrl
]="
item
.
video_url
"
></app-upload-video>
[
videoUrl
]="
item
.
video_url
"
></app-upload-video>
</div>
</div>
<div
style=
"padding: 20px"
>
<nz-radio-group
[
ngModel
]="
item
.
isJump
"
(
ngModelChange
)="
onRadioChange
($
event
)"
>
<label>
跳过:
</label>
<label
nz-radio
nzValue=
"1"
>
有
</label>
<label
nz-radio
nzValue=
"0"
>
无
</label>
</nz-radio-group>
</div>
</div>
</div>
...
...
form/src/app/form/form.component.ts
View file @
f80f4ef9
...
@@ -59,11 +59,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -59,11 +59,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
}
init
()
{
init
()
{
if
(
!
this
.
item
.
isJump
)
{
this
.
item
.
isJump
=
'
0
'
;
}
}
}
onRadioChange
(
e
)
{
console
.
log
(
'
e:
'
,
e
);
this
.
item
.
isJump
=
e
;
this
.
save
();
}
onVideoUploadSuccess
(
e
)
{
onVideoUploadSuccess
(
e
)
{
console
.
log
(
'
e:
'
,
e
);
console
.
log
(
'
e:
'
,
e
);
...
...
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