Commit f22a5439 authored by hewenhao's avatar hewenhao

feat: update

parent 1f67dd58
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
z-index: 9999998; z-index: 9999998;
opacity: 1; opacity: 1;
box-shadow: rgba(0,0,0, .6) 0px 0px 0px 5000PX; box-shadow: rgba(0,0,0, .6) 0px 0px 0px 5000PX;
animation-name: fadeIn_2;
animation-duration: .5s;
animation-timing-function: ease-out;
animation-iteration-count: 1;
animation-fill-mode: backwards;
animation-delay: 0s;
} }
.content { .content {
...@@ -17,4 +23,19 @@ ...@@ -17,4 +23,19 @@
top: 0; top: 0;
bottom: 0; bottom: 0;
z-index: 9999997; z-index: 9999997;
animation-name: fadeIn_2;
animation-duration: .5s;
animation-timing-function: ease-out;
animation-iteration-count: 1;
animation-fill-mode: backwards;
animation-delay: 0s;
}
@keyframes fadeIn_2 {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
} }
...@@ -7,8 +7,15 @@ ...@@ -7,8 +7,15 @@
background: rgba(0, 0, 0, 0.7); background: rgba(0, 0, 0, 0.7);
z-index: 99999; z-index: 99999;
opacity: 1; opacity: 1;
animation-name: fadeIn_2;
animation-duration: .5s;
animation-timing-function: ease-out;
animation-iteration-count: 1;
animation-fill-mode: backwards;
animation-delay: 0s;
} }
.result_wrap { .result_wrap {
position: fixed; position: fixed;
z-index: 100000; z-index: 100000;
...@@ -17,6 +24,12 @@ ...@@ -17,6 +24,12 @@
right: 0; right: 0;
display: flex; display: flex;
padding: 0 16px; padding: 0 16px;
animation-name: fadeIn_2;
animation-duration: .5s;
animation-timing-function: ease-out;
animation-iteration-count: 1;
animation-fill-mode: backwards;
animation-delay: 0s;
} }
.slogen { .slogen {
...@@ -97,3 +110,12 @@ ...@@ -97,3 +110,12 @@
display: block; display: block;
margin-left: 4px; margin-left: 4px;
} }
@keyframes fadeIn_2 {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
...@@ -52,13 +52,19 @@ const MainPage = () => { ...@@ -52,13 +52,19 @@ const MainPage = () => {
// 激活部落引导 // 激活部落引导
useEffect(() => { useEffect(() => {
if (!isFocus) return const fn = async () => {
const currentIndex = stageList.findIndex(c => c.status === StageStatus.CURRENT) if (
if (isGroupGuideComplete || currentIndex < 3 || !userInfo.pointReceive || !userInfo.city || !userInfo.grade) { !isFocus ||
isGroupGuideComplete ||
!userInfo.pointReceive ||
!userInfo.city ||
!userInfo.grade
) {
return return
} }
const fn = async () => { const currentIndex = stageList.findIndex(c => c.status === StageStatus.CURRENT)
if (point < 50 || currentIndex >= 3) { if (point < 50 || currentIndex >= 3) {
const res = await fetchTribeInfo() const res = await fetchTribeInfo()
if (!res?.id) { if (!res?.id) {
......
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