Commit a6b42c4b authored by 天马流星拳's avatar 天马流星拳

fix(HomePage): 修复理财排行榜参与条件和查看分布按钮逻辑

添加 productEnd 检查防止活动结束后参与月榜
在查看分布按钮中添加活动时间判断
parent da82c702
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment