Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
翁阳
babycare_xiaoxiao
Commits
9905ed2c
Commit
9905ed2c
authored
Aug 05, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点
parent
27512409
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
18 deletions
+38
-18
workspace.xml
.idea/workspace.xml
+6
-2
StartPanel.ts
src/panels/StartPanel.ts
+4
-0
StartPanelPrize.ts
src/panels/StartPanelPrize.ts
+4
-0
LoadingScene.ts
src/scene/LoadingScene.ts
+24
-16
No files found.
.idea/workspace.xml
View file @
9905ed2c
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanelPrize.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanelPrize.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/LoadingScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/LoadingScene.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -129,6 +132,7 @@
...
@@ -129,6 +132,7 @@
<workItem
from=
"1596187812585"
duration=
"636000"
/>
<workItem
from=
"1596187812585"
duration=
"636000"
/>
<workItem
from=
"1596418925126"
duration=
"14112000"
/>
<workItem
from=
"1596418925126"
duration=
"14112000"
/>
<workItem
from=
"1596505747021"
duration=
"2300000"
/>
<workItem
from=
"1596505747021"
duration=
"2300000"
/>
<workItem
from=
"1596609620649"
duration=
"537000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
<created>
1594122339119
</created>
...
@@ -536,10 +540,10 @@
...
@@ -536,10 +540,10 @@
</state>
</state>
<state
x=
"156"
y=
"286"
key=
"run.anything.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596432664001"
/>
<state
x=
"156"
y=
"286"
key=
"run.anything.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596432664001"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595475548860"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595475548860"
/>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"1596
447926332
"
>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"1596
610144284
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596
447926332
"
/>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596
610144284
"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584259535"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584259535"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
src/panels/StartPanel.ts
View file @
9905ed2c
...
@@ -71,6 +71,10 @@ export class StartPanel extends Panel {
...
@@ -71,6 +71,10 @@ export class StartPanel extends Panel {
this
.
enableMouseEvt
(
true
);
this
.
enableMouseEvt
(
true
);
if
(
!
success
)
return
;
if
(
!
success
)
return
;
Tools
.
gameData
.
power
=
res
.
data
.
power
;
Tools
.
gameData
.
power
=
res
.
data
.
power
;
// 访问页面埋点
sendTbNet
(
TbNetName
.
reportAnalytics
,
{
logkey
:
'join'
});
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
this
.
hidePanel
();
this
.
hidePanel
();
}
}
...
...
src/panels/StartPanelPrize.ts
View file @
9905ed2c
...
@@ -72,6 +72,10 @@ export class StartPanelPrize extends Panel {
...
@@ -72,6 +72,10 @@ export class StartPanelPrize extends Panel {
(
success
,
res
)
=>
{
(
success
,
res
)
=>
{
this
.
enableMouseEvt
(
true
);
this
.
enableMouseEvt
(
true
);
if
(
!
success
)
return
;
if
(
!
success
)
return
;
// 访问页面埋点
sendTbNet
(
TbNetName
.
reportAnalytics
,
{
logkey
:
'join'
});
Tools
.
gameData
.
power
=
res
.
data
.
power
;
Tools
.
gameData
.
power
=
res
.
data
.
power
;
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
this
.
hidePanel
();
this
.
hidePanel
();
...
...
src/scene/LoadingScene.ts
View file @
9905ed2c
...
@@ -30,12 +30,16 @@ export class LoadingScene extends Scene {
...
@@ -30,12 +30,16 @@ export class LoadingScene extends Scene {
var
l2
=
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"lighting_2.png"
))
var
l2
=
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"lighting_2.png"
))
l2
.
position
.
set
(
545
,
765
)
l2
.
position
.
set
(
545
,
765
)
l2
.
visible
=
false
;
l2
.
visible
=
false
;
FYGE
.
Tween
.
get
(
l1
,
{
loop
:
true
})
FYGE
.
Tween
.
get
(
l1
,
{
loop
:
true
})
.
wait
(
500
)
.
wait
(
500
)
.
call
(()
=>
{
l1
.
visible
=
!
l1
.
visible
})
.
call
(()
=>
{
FYGE
.
Tween
.
get
(
l2
,
{
loop
:
true
})
l1
.
visible
=
!
l1
.
visible
})
FYGE
.
Tween
.
get
(
l2
,
{
loop
:
true
})
.
wait
(
500
)
.
wait
(
500
)
.
call
(()
=>
{
l2
.
visible
=
!
l2
.
visible
})
.
call
(()
=>
{
l2
.
visible
=
!
l2
.
visible
})
// console.log(a.position,b.position)
// console.log(a.position,b.position)
//摩天轮
//摩天轮
var
wheel
=
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"wheel.png"
))
var
wheel
=
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
"wheel.png"
))
...
@@ -93,12 +97,16 @@ export class LoadingScene extends Scene {
...
@@ -93,12 +97,16 @@ export class LoadingScene extends Scene {
async
start
()
{
async
start
()
{
super
.
start
()
super
.
start
()
// 访问页面埋点
sendTbNet
(
TbNetName
.
reportAnalytics
,
{
logkey
:
'visit'
});
this
.
addEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
)
this
.
addEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
)
//首次进度一点
//首次进度一点
this
.
dispatchEvent
(
FYGE
.
Event
.
PROGRESS
,
0.2
)
this
.
dispatchEvent
(
FYGE
.
Event
.
PROGRESS
,
0.2
)
//获取app数据
//获取app数据
const
{
data
}
=
await
sendTbNet
(
TbNetName
.
getAppData
);
const
{
data
}
=
await
sendTbNet
(
TbNetName
.
getAppData
);
Tools
.
globalData
=
data
;
Tools
.
globalData
=
data
;
this
.
dispatchEvent
(
FYGE
.
Event
.
PROGRESS
,
0.3
)
this
.
dispatchEvent
(
FYGE
.
Event
.
PROGRESS
,
0.3
)
//询问读取权限,不阻止进程
//询问读取权限,不阻止进程
...
@@ -153,11 +161,11 @@ export class LoadingScene extends Scene {
...
@@ -153,11 +161,11 @@ export class LoadingScene extends Scene {
progressEvent
(
e
:
FYGE
.
Event
)
{
progressEvent
(
e
:
FYGE
.
Event
)
{
let
pro
=
e
.
data
;
let
pro
=
e
.
data
;
FYGE
.
Tween
.
get
(
this
.
progressBar
,
null
,
null
,
true
)
FYGE
.
Tween
.
get
(
this
.
progressBar
,
null
,
null
,
true
)
.
to
({
value
:
pro
},
2000
/**(p-this.lastP)*/
)
.
to
({
value
:
pro
},
2000
/**(p-this.lastP)*/
)
.
call
(()
=>
{
.
call
(()
=>
{
if
(
pro
>=
1
)
{
if
(
pro
>=
1
)
{
this
.
removeEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
);
this
.
removeEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
);
changeScene
(
MapScene
,
{
from
:
"loading"
})
changeScene
(
MapScene
,
{
from
:
"loading"
})
// changeScene(LotteryScene,{level:1});
// changeScene(LotteryScene,{level:1});
}
}
})
})
...
@@ -221,19 +229,19 @@ class Title extends FYGE.Container {
...
@@ -221,19 +229,19 @@ class Title extends FYGE.Container {
this
.
y
=
-
560
;
//待调整
this
.
y
=
-
560
;
//待调整
//新建就动画出现吧,
//新建就动画出现吧,
FYGE
.
Tween
.
get
(
this
)
FYGE
.
Tween
.
get
(
this
)
.
to
({
y
:
targetY
+
25
},
300
)
.
to
({
y
:
targetY
+
25
},
300
)
.
to
({
y
:
targetY
-
30
},
100
)
.
to
({
y
:
targetY
-
30
},
100
)
.
to
({
y
:
targetY
},
100
);
.
to
({
y
:
targetY
},
100
);
[
line
,
title
].
forEach
((
e
)
=>
{
[
line
,
title
].
forEach
((
e
)
=>
{
FYGE
.
Tween
.
get
(
e
)
FYGE
.
Tween
.
get
(
e
)
.
to
({
rotation
:
1.5
},
300
)
.
to
({
rotation
:
1.5
},
300
)
.
to
({
rotation
:
-
0.5
},
100
)
.
to
({
rotation
:
-
0.5
},
100
)
.
to
({
rotation
:
0
},
100
)
.
to
({
rotation
:
0
},
100
)
if
(
e
===
line
)
{
if
(
e
===
line
)
{
FYGE
.
Tween
.
get
(
e
)
FYGE
.
Tween
.
get
(
e
)
.
to
({
scaleY
:
1.05
},
300
)
.
to
({
scaleY
:
1.05
},
300
)
.
to
({
scaleY
:
0.96
},
100
)
.
to
({
scaleY
:
0.96
},
100
)
.
to
({
scaleY
:
1
},
100
)
.
to
({
scaleY
:
1
},
100
)
}
}
})
})
...
...
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