Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TianGongKaiWu-20251203
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
TianGongKaiWu-20251203
Commits
a6b42c4b
Commit
a6b42c4b
authored
Dec 17, 2025
by
天马流星拳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(HomePage): 修复理财排行榜参与条件和查看分布按钮逻辑
添加 productEnd 检查防止活动结束后参与月榜 在查看分布按钮中添加活动时间判断
parent
da82c702
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+11
-6
No files found.
src/pages/HomePage/HomePage.tsx
View file @
a6b42c4b
...
...
@@ -143,7 +143,11 @@ class HomePage extends React.Component<any, any> {
}
// 理财排行榜切换
rankingTab_click
=
async
(
type
)
=>
{
const
{
canJoinCurrentRank
}
=
store
.
indexData
const
{
canJoinCurrentRank
,
productEnd
}
=
store
.
indexData
if
(
productEnd
==
true
&&
type
==
0
){
Toast
.
show
(
'本月不可参与哦~'
)
return
}
if
(
canJoinCurrentRank
==
false
&&
type
==
0
){
Toast
.
show
(
'本月不可参与哦~'
)
return
...
...
@@ -156,6 +160,7 @@ class HomePage extends React.Component<any, any> {
// 查看分布按钮
viewDistribution
=
(
item
)
=>
{
console
.
log
(
"🚀 ~ HomePage ~ item:"
,
item
)
if
(
!
store
.
judgeActTime
())
return
if
(
!
item
||
(
Object
.
keys
(
item
).
length
===
0
&&
item
.
constructor
===
Object
))
return
// 新增 type 0-月榜 1-总榜
item
.
type
=
this
.
state
.
rankingTab
...
...
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