Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
华
华夏模拟理财_20250701
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
华夏模拟理财_20250701
Commits
9a8973dc
Commit
9a8973dc
authored
Jul 15, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
1cc93271
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
draw.ts
mock/draw.ts
+1
-0
TurnTable.tsx
src/pages/ResPage/TurnTable/TurnTable.tsx
+4
-1
ResStore.ts
src/store/ResStore.ts
+1
-0
No files found.
mock/draw.ts
View file @
9a8973dc
...
...
@@ -8,6 +8,7 @@ export default [
message
:
""
,
timeStamp
:
Date
.
now
(),
data
:
{
drawEndTime
:
Date
.
now
()
+
999999
,
titleImg
:
"titleImg"
,
interval
:
"interval"
,
amount
:
Math
.
random
()
*
100000
>>
0
,
...
...
src/pages/ResPage/TurnTable/TurnTable.tsx
View file @
9a8973dc
...
...
@@ -36,9 +36,12 @@ class TurnTable extends React.Component {
// 开始抽奖
drawHandle
=
_asyncThrottle
(
async
()
=>
{
if
(
!
store
.
judgeActTime
())
return
if
(
this
.
btnStarting
)
return
false
;
if
(
store
.
indexData
.
currentTime
>=
resStore
.
info
.
drawEndTime
)
{
return
Toast
.
show
(
"活动已结束"
);
}
if
(
resStore
.
info
.
remainDrawTime
<=
0
)
{
return
Toast
.
show
(
"已抽过奖哦"
);
}
...
...
src/store/ResStore.ts
View file @
9a8973dc
...
...
@@ -15,6 +15,7 @@ class ResStore {
profit
:
0
,
cycle
:
""
,
remainDrawTime
:
0
,
drawEndTime
:
0
,
prizeInfo
:
[],
cycleStartTime
:
0
,
cycleEndTime
:
0
,
...
...
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