Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wildfirecode13
new_taobao
Commits
7f9bcb7a
Commit
7f9bcb7a
authored
Oct 04, 2020
by
AU-Pro-mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed open animation load lottie bug --02
parent
c19fa890
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+6
-4
No files found.
taobao_mini/client/pages/homePage/homePage.js
View file @
7f9bcb7a
...
@@ -95,6 +95,7 @@ Page({
...
@@ -95,6 +95,7 @@ Page({
// 页面加载
// 页面加载
// 开场动画
// 开场动画
this
.
setData
({
gameShow
:
true
,
gameType
:
3
,
gameShow_timeout
:
true
})
this
.
onAnimationLoadOver
()
this
.
onAnimationLoadOver
()
this
.
getAuth
()
this
.
getAuth
()
},
},
...
@@ -221,18 +222,19 @@ Page({
...
@@ -221,18 +222,19 @@ Page({
// 收到 canvas lottie 加载结束的 信息 -- 且等待 开场动画 30s
// 收到 canvas lottie 加载结束的 信息 -- 且等待 开场动画 30s
onAnimationLoadOver
(
msg
=
''
)
{
onAnimationLoadOver
(
msg
=
''
)
{
if
(
msg
=
'lottieReady'
)
{
if
(
msg
=
==
'lottieReady'
)
{
console
.
log
(
'%creceive canvas lottie ready, onAnimationLoadOver'
,
'color:red;font-weight:bold;font-size:16px;padding: 4px 20px;'
)
console
.
log
(
'%creceive canvas lottie ready, onAnimationLoadOver'
,
'color:red;font-weight:bold;font-size:16px;padding: 4px 20px;'
)
console
.
log
(
`%c
${
msg
}
`
,
'color:red;font-weight:bold;font-size:16px;padding: 4px 20px;'
)
console
.
log
(
`%c
${
msg
}
`
,
'color:red;font-weight:bold;font-size:16px;padding: 4px 20px;'
)
this
.
openAnimationTimeout
=
null
clearTimeout
(
this
.
openAnimationTimeout
)
clearTimeout
(
this
.
openAnimationTimeout
)
this
.
openAnimationTimeout
=
setTimeout
(()
=>
{
this
.
openAnimationTimeout
=
setTimeout
(()
=>
{
this
.
backToPage
()
this
.
setData
({
gameShow_timeout
:
false
,
gameType
:
0
})
setTimeout
(()
=>
{
this
.
setData
({
gameShow
:
false
})
},
350
)
},
5000
)
},
5000
)
}
else
if
(
!
this
.
openAnimationTimeout
)
{
}
else
if
(
!
this
.
openAnimationTimeout
)
{
console
.
log
(
'%conAnimationLoadOver timeout run'
,
'color:red;font-weight:bold;font-size:16px;padding: 4px 20px;'
)
console
.
log
(
'%conAnimationLoadOver timeout run'
,
'color:red;font-weight:bold;font-size:16px;padding: 4px 20px;'
)
this
.
openAnimationTimeout
=
setTimeout
(()
=>
{
this
.
openAnimationTimeout
=
setTimeout
(()
=>
{
this
.
backToPage
()
this
.
setData
({
gameShow_timeout
:
false
,
gameType
:
0
})
setTimeout
(()
=>
{
this
.
setData
({
gameShow
:
false
})
},
350
)
},
30000
)
},
30000
)
}
}
},
},
...
...
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