Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy17_hds
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
hy17_hds
Commits
82979703
Commit
82979703
authored
Jun 25, 2023
by
WangFan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改倒计时开始时的时间
parent
8fd07bc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
hy17_hds.ts
assets/hy17_hds/scene/hy17_hds.ts
+1
-1
defaultData_hy17_hds.ts
assets/hy17_hds/script/defaultData_hy17_hds.ts
+1
-1
No files found.
assets/hy17_hds/scene/hy17_hds.ts
View file @
82979703
...
@@ -136,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -136,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
showTimeUpdate
()
{
showTimeUpdate
()
{
if
(
!
this
.
startTime
)
return
;
if
(
!
this
.
startTime
)
return
;
let
nowTime
=
new
Date
().
getTime
();
let
nowTime
=
new
Date
().
getTime
();
let
subTime
=
this
.
targetTime
-
(
nowTime
-
this
.
startTime
)
/
1000
;
let
subTime
=
this
.
targetTime
-
(
nowTime
-
this
.
startTime
)
/
1000
+
1
;
if
(
subTime
<
0
)
subTime
=
0
;
if
(
subTime
<
0
)
subTime
=
0
;
pg
.
view
.
visible
(
this
.
time_area
,
true
)
pg
.
view
.
visible
(
this
.
time_area
,
true
)
...
...
assets/hy17_hds/script/defaultData_hy17_hds.ts
View file @
82979703
export
const
defaultData
=
export
const
defaultData
=
{
{
"
recordFlag
"
:
false
,
"
title
"
:
""
,
"
questionText
"
:
""
,
"
questionTextAudio
"
:
""
,
"
questions
"
:
[
"
recordFlag
"
:
false
,
"
title
"
:
""
,
"
questionText
"
:
""
,
"
questionTextAudio
"
:
""
,
"
questions
"
:
[
{
"
text
"
:
"
this is info
"
,
"
time
"
:
2
},
{
"
text
"
:
"
this is info
"
,
"
time
"
:
10
},
{
"
text
"
:
"
test some thing.
"
,
"
time
"
:
10
}],
"
bgAudio
"
:
""
,
"
bgAudioName
"
:
""
,
"
audioName
"
:
""
{
"
text
"
:
"
test some thing.
"
,
"
time
"
:
10
}],
"
bgAudio
"
:
""
,
"
bgAudioName
"
:
""
,
"
audioName
"
:
""
}
}
// {
// {
...
...
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