Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kww_dayDayGetCredits_250512
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
kww_dayDayGetCredits_250512
Commits
f64c13ed
Commit
f64c13ed
authored
May 19, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
b261cf2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
main.ts
mock/main.ts
+3
-3
project.settings.json
project.settings.json
+1
-1
OverflowBubble.ts
src/pages/HomePage/Top/Components/OverflowBubble.ts
+6
-0
No files found.
mock/main.ts
View file @
f64c13ed
...
...
@@ -29,9 +29,9 @@ export default [
}
}),
overflowBubble
:
{
id
:
1
,
creditsNum
:
100
,
expireTime
:
Date
.
now
()
+
10000000
,
creditsNum
:
700
,
expireTime
:
1746669495352
,
id
:
218090705
,
},
bubbleRecords
:
new
Array
(
1
+
(
Math
.
random
()
*
4
>>
0
)).
fill
(
1
).
map
((
_
,
index
)
=>
{
return
{
...
...
project.settings.json
View file @
f64c13ed
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"pd71a2911"
},{
"label"
:
"test2"
,
"value"
:
"p960d47b7"
}],
"prodId"
:[]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"pd71a2911"
},{
"label"
:
"test2"
,
"value"
:
"p960d47b7"
}],
"prodId"
:[
{
"label"
:
"线上测试"
,
"value"
:
"p69bb35bf"
}
]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
src/pages/HomePage/Top/Components/OverflowBubble.ts
View file @
f64c13ed
...
...
@@ -90,6 +90,12 @@ export class OverflowBubble extends Container implements IBase {
this
.
text
.
text
=
creditsNum
;
this
.
cdTarget
.
cd
=
Math
.
max
((
expireTime
-
Date
.
now
())
/
1000
>>
0
,
1
);
if
(
this
.
cdTarget
.
cd
<=
0
)
{
this
.
visible
=
false
;
Tween
.
removeTweens
(
this
.
cdTarget
);
return
;
}
this
.
setTime
();
Tween
.
removeTweens
(
this
.
cdTarget
);
Tween
.
get
(
this
.
cdTarget
,
{
loop
:
true
})
...
...
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