Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hzlh-beautifulFunFestival-snake-20241222
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
hzlh-beautifulFunFestival-snake-20241222
Commits
d9561453
Commit
d9561453
authored
Dec 25, 2024
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 埋点 按照红包雨
parent
6af5e4fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
LimitPanel.ts
...stival-snake-20241222/assets/Scripts/Panels/LimitPanel.ts
+3
-1
NotLoginPanel.ts
...val-snake-20241222/assets/Scripts/Panels/NotLoginPanel.ts
+3
-1
runMainPage.ts
...ake-20241222/assets/Scripts/Scenes/runMain/runMainPage.ts
+5
-0
No files found.
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Panels/LimitPanel.ts
View file @
d9561453
...
@@ -2,7 +2,7 @@ import Panel from "../../Module/Panel";
...
@@ -2,7 +2,7 @@ import Panel from "../../Module/Panel";
import
{
_decorator
,
Button
,
Node
}
from
"cc"
;
import
{
_decorator
,
Button
,
Node
}
from
"cc"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
observer
}
from
"../store/decorators"
;
import
ShareCenter
from
"../ShareCenter"
;
import
ShareCenter
from
"../ShareCenter"
;
import
{
getWebData
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
getWebData
,
LOG_TYPE
,
sendLog
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -22,9 +22,11 @@ export default class LimitPanel extends Panel {
...
@@ -22,9 +22,11 @@ export default class LimitPanel extends Panel {
}
}
async
start
()
{
async
start
()
{
sendLog
(
LOG_TYPE
.
EXPOSURE
,
11
);
}
}
bindCard
=
()
=>
{
bindCard
=
()
=>
{
sendLog
(
LOG_TYPE
.
CLICK
,
11
);
const
urlType
=
JSON
.
parse
(
getWebData
(
WebNetName
.
getFrontVariable
)?.
data
?.
bindCardUrl
||
""
)
||
{};
const
urlType
=
JSON
.
parse
(
getWebData
(
WebNetName
.
getFrontVariable
)?.
data
?.
bindCardUrl
||
""
)
||
{};
console
.
info
(
'urlType'
,
urlType
);
console
.
info
(
'urlType'
,
urlType
);
if
(
ShareCenter
.
ins
.
isWeChat
())
{
if
(
ShareCenter
.
ins
.
isWeChat
())
{
...
...
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Panels/NotLoginPanel.ts
View file @
d9561453
...
@@ -2,7 +2,7 @@ import Panel from "../../Module/Panel";
...
@@ -2,7 +2,7 @@ import Panel from "../../Module/Panel";
import
{
_decorator
,
Button
,
Node
}
from
"cc"
;
import
{
_decorator
,
Button
,
Node
}
from
"cc"
;
import
{
observer
}
from
"../store/decorators"
;
import
{
observer
}
from
"../store/decorators"
;
import
ShareCenter
from
"../ShareCenter"
;
import
ShareCenter
from
"../ShareCenter"
;
import
{
getProjectId
,
getWebData
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
getProjectId
,
getWebData
,
LOG_TYPE
,
sendLog
,
WebNetName
}
from
"../Utils/WebNet/WebNet"
;
import
{
_asyncThrottle
,
getUrlParam
}
from
"../Utils/Utils"
;
import
{
_asyncThrottle
,
getUrlParam
}
from
"../Utils/Utils"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -23,9 +23,11 @@ export default class NotLoginPanel extends Panel {
...
@@ -23,9 +23,11 @@ export default class NotLoginPanel extends Panel {
}
}
async
start
()
{
async
start
()
{
sendLog
(
LOG_TYPE
.
EXPOSURE
,
10
);
}
}
login
=
_asyncThrottle
(()
=>
{
login
=
_asyncThrottle
(()
=>
{
sendLog
(
LOG_TYPE
.
CLICK
,
10
);
// MFS.login({
// MFS.login({
// "channel": "CHANNEL_CODE", // 需要在认证系统申请
// "channel": "CHANNEL_CODE", // 需要在认证系统申请
// "callback": "loginCallback"
// "callback": "loginCallback"
...
...
hzlh-beautifulFunFestival-snake-20241222/assets/Scripts/Scenes/runMain/runMainPage.ts
View file @
d9561453
...
@@ -80,6 +80,9 @@ export class runMainPage extends Scene {
...
@@ -80,6 +80,9 @@ export class runMainPage extends Scene {
this
.
startBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
click_startGame
,
this
)
this
.
startBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
click_startGame
,
this
)
this
.
taskBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
click_Task
,
this
)
this
.
taskBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
click_Task
,
this
)
sendLog
(
LOG_TYPE
.
EXPOSURE
,
21
);
sendLog
(
LOG_TYPE
.
EXPOSURE
,
22
);
sendLog
(
LOG_TYPE
.
EXPOSURE
,
23
);
}
}
async
getIndex
()
{
async
getIndex
()
{
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
tcs_Index
);
const
{
success
,
data
}
=
await
sendWebNet
(
WebNetName
.
tcs_Index
);
...
@@ -136,8 +139,10 @@ export class runMainPage extends Scene {
...
@@ -136,8 +139,10 @@ export class runMainPage extends Scene {
click_Task
=
_asyncThrottle
(()
=>
{
click_Task
=
_asyncThrottle
(()
=>
{
showPanel
(
TaskPanel
)
showPanel
(
TaskPanel
)
sendLog
(
LOG_TYPE
.
CLICK
,
23
);
})
})
click_startGame
=
_asyncThrottle
(
async
()
=>
{
click_startGame
=
_asyncThrottle
(
async
()
=>
{
sendLog
(
LOG_TYPE
.
CLICK
,
22
);
const
{
data
,
timeStamp
}
=
getWebData
(
WebNetName
.
tcs_Index
)
||
{};
const
{
data
,
timeStamp
}
=
getWebData
(
WebNetName
.
tcs_Index
)
||
{};
const
{
const
{
boolBankUser
,
// 是否是银行用户 true:是 false:不是
boolBankUser
,
// 是否是银行用户 true:是 false:不是
...
...
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