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
9c34a72a
Commit
9c34a72a
authored
Jul 08, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
41258f3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
draw.ts
mock/draw.ts
+2
-0
ResPage.tsx
src/pages/ResPage/ResPage.tsx
+2
-2
ResStore.ts
src/store/ResStore.ts
+2
-0
No files found.
mock/draw.ts
View file @
9c34a72a
...
@@ -13,6 +13,8 @@ export default [
...
@@ -13,6 +13,8 @@ export default [
amount
:
Math
.
random
()
*
100000
>>
0
,
amount
:
Math
.
random
()
*
100000
>>
0
,
profit
:
Math
.
random
()
*
10000000
>>
0
,
profit
:
Math
.
random
()
*
10000000
>>
0
,
cycle
:
"12312312cyclecycle"
,
cycle
:
"12312312cyclecycle"
,
cycleStartTime
:
Date
.
now
()
-
9999999
,
cycleEndTime
:
Date
.
now
()
+
9999999
,
remainDrawTime
:
Math
.
random
()
*
3
>>
0
,
remainDrawTime
:
Math
.
random
()
*
3
>>
0
,
prizeInfo
:
new
Array
(
6
).
fill
(
1
).
map
((
_
,
i
)
=>
{
prizeInfo
:
new
Array
(
6
).
fill
(
1
).
map
((
_
,
i
)
=>
{
return
{
return
{
...
...
src/pages/ResPage/ResPage.tsx
View file @
9c34a72a
...
@@ -39,7 +39,7 @@ class ResPage extends React.Component<any, any> {
...
@@ -39,7 +39,7 @@ class ResPage extends React.Component<any, any> {
render
()
{
render
()
{
const
{
tab
}
=
this
.
state
;
const
{
tab
}
=
this
.
state
;
const
{
prizeList
,
info
}
=
resStore
;
const
{
prizeList
,
info
}
=
resStore
;
const
{
titleImg
,
interval
,
cycle
,
profit
,
remainDrawTime
,
prizeInfo
,
amount
}
=
info
;
const
{
titleImg
,
interval
,
cycle
EndTime
,
cycleStartTime
,
profit
,
remainDrawTime
,
prizeInfo
,
amount
}
=
info
;
const
tabCls
=
classNames
(
styles
.
tab
,
{
const
tabCls
=
classNames
(
styles
.
tab
,
{
[
styles
.
tab1
]:
tab
===
1
,
[
styles
.
tab1
]:
tab
===
1
,
...
@@ -60,7 +60,7 @@ class ResPage extends React.Component<any, any> {
...
@@ -60,7 +60,7 @@ class ResPage extends React.Component<any, any> {
累计收益
<
span
>
{
profit
/
100
}
元
</
span
>
累计收益
<
span
>
{
profit
/
100
}
元
</
span
>
</
div
>
</
div
>
<
div
className=
{
classNames
(
styles
.
rankTip
,
styles
.
rank4
)
}
>
<
div
className=
{
classNames
(
styles
.
rankTip
,
styles
.
rank4
)
}
>
理财周期
<
span
>
{
cycle
}
</
span
>
理财周期
<
span
>
{
dateFormatter
(
cycleStartTime
,
`yyyy-MM-dd`
)
}
-
{
dateFormatter
(
cycleEndTime
,
`yyyy-MM-dd`
)
}
</
span
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
tabCls
}
>
<
div
className=
{
tabCls
}
>
...
...
src/store/ResStore.ts
View file @
9c34a72a
...
@@ -16,6 +16,8 @@ class ResStore {
...
@@ -16,6 +16,8 @@ class ResStore {
cycle
:
""
,
cycle
:
""
,
remainDrawTime
:
0
,
remainDrawTime
:
0
,
prizeInfo
:
[],
prizeInfo
:
[],
cycleStartTime
:
0
,
cycleEndTime
:
0
,
};
};
prizeList
=
[];
prizeList
=
[];
...
...
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