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
bc477a24
Commit
bc477a24
authored
Dec 17, 2025
by
天马流星拳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复活动结束判断和排行榜展示逻辑
修复分享页活动结束判断条件,增加错误码900002的情况处理 重构首页排行榜展示逻辑,优先判断productEnd状态
parent
00d46f39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+17
-8
sharePage.jsx
src/pages/sharePage/sharePage.jsx
+1
-1
No files found.
src/pages/HomePage/HomePage.tsx
View file @
bc477a24
...
...
@@ -48,19 +48,28 @@ class HomePage extends React.Component<any, any> {
async
componentDidMount
()
{
await
store
.
updateIndex
()
const
{
canJoinCurrentRank
}
=
store
.
indexData
// canJoinCurrentRank true-可以参与当前月度排行榜
if
(
canJoinCurrentRank
){
this
.
setState
({
rankingTab
:
0
,
})
this
.
getQueryRankInfo
(
0
)
}
else
{
const
{
canJoinCurrentRank
,
productEnd
}
=
store
.
indexData
// canJoinCurrentRank true-可以参与当前月度排行榜
// productEnd 理财到达终点,true-是 定位到总榜
if
(
productEnd
){
this
.
setState
({
rankingTab
:
1
,
})
this
.
getQueryRankInfo
(
1
);
}
else
{
if
(
canJoinCurrentRank
){
this
.
setState
({
rankingTab
:
0
,
})
this
.
getQueryRankInfo
(
0
)
}
else
{
this
.
setState
({
rankingTab
:
1
,
})
this
.
getQueryRankInfo
(
1
);
}
}
// 分享页
// PageCtrl.changePage(SharePage)
...
...
src/pages/sharePage/sharePage.jsx
View file @
bc477a24
...
...
@@ -71,7 +71,7 @@ class SharePage extends React.Component {
btn
:
2
})
}
else
{
if
(
code
===
'20002'
)
{
if
(
code
===
'20002'
||
code
===
'900002'
)
{
Toast
.
show
(
'活动已结束,感谢您的关注~'
)
}
else
{
switch
(
code
)
{
...
...
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