Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
2
20250310_人保春游
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
20250310_人保春游
Commits
1f4ebd06
Commit
1f4ebd06
authored
Mar 14, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
music
parent
7a0891de
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
87 additions
and
0 deletions
+87
-0
bg.png
src/assets/AssistFailPanel/bg.png
+0
-0
btn.png
src/assets/AssistFailPanel/btn.png
+0
-0
AssistFailPanel.jsx
src/components/AssistFailPanel/AssistFailPanel.jsx
+36
-0
AssistFailPanel.less
src/components/AssistFailPanel/AssistFailPanel.less
+46
-0
modal.jsx
src/modal/modal.jsx
+2
-0
userhomepage.jsx
src/pages/userhomepage/userhomepage.jsx
+3
-0
No files found.
src/assets/AssistFailPanel/bg.png
0 → 100644
View file @
1f4ebd06
115 KB
src/assets/AssistFailPanel/btn.png
0 → 100644
View file @
1f4ebd06
12.3 KB
src/components/AssistFailPanel/AssistFailPanel.jsx
0 → 100644
View file @
1f4ebd06
import
React
from
"react"
;
import
{
observer
}
from
"mobx-react"
;
import
"./AssistFailPanel.less"
;
import
{
Button
}
from
"@src/components/Button"
;
import
modalStore
from
"@src/store/modal"
;
import
store
from
"@src/store"
;
import
{
PAGE_MAP
}
from
"@src/utils/constants"
;
@
observer
class
AssistFailPanel
extends
React
.
Component
{
componentDidMount
=
async
()
=>
{
};
/** 关闭 */
clickClose
=
()
=>
{
modalStore
.
closePop
();
};
clickOk
=
()
=>
{
modalStore
.
closePop
();
store
.
changePage
(
PAGE_MAP
.
DRAW_PAGE
);
}
render
()
{
return
<
div
className=
"AssistFailPanel modal_center"
>
<
div
className=
"bg"
/>
<
div
className=
"tip"
>
活动已结束
</
div
>
<
Button
className=
"btn"
onClick=
{
this
.
clickOk
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
</
div
>;
}
}
export
default
AssistFailPanel
;
src/components/AssistFailPanel/AssistFailPanel.less
0 → 100644
View file @
1f4ebd06
@import "../../res.less";
.AssistFailPanel {
position: absolute;
left: 0;
top: 0;
width: 750px;
height: 1624px;
.bg {
position: absolute;
left: 99px;
top: 358px;
width: 553px;
height: 610px;
.sparkBg("AssistFailPanel/bg.png")
}
.btn {
position: absolute;
left: 221px;
top: 784px;
width: 310px;
height: 94px;
.sparkBg("AssistFailPanel/btn.png")
}
.tip {
position: absolute;
top: 673px;
left: 150px;
right: 150px;
text-align: center;
font-size: 35px;
color: #333333;
}
.close {
position: absolute;
left: 345px;
top: 1046px;
width: 60px;
height: 60px;
.sparkBg("common/closeBtn.png")
}
}
src/modal/modal.jsx
View file @
1f4ebd06
...
...
@@ -18,6 +18,7 @@ import LongImgPop from "@src/components/longImgPop/longImgPop";
import
AssistCountPanel
from
"@src/components/AssistCountPanel/AssistCountPanel"
;
import
CarvePanel
from
"@src/components/CarvePanel/CarvePanel"
;
import
AssistSucPanel
from
"@src/components/AssistSucPanel/AssistSucPanel"
;
import
AssistFailPanel
from
"@src/components/AssistFailPanel/AssistFailPanel"
;
/**
* 弹窗配置
*/
...
...
@@ -51,6 +52,7 @@ export const cfg = {
AssistCountPanel
,
CarvePanel
,
AssistSucPanel
,
AssistFailPanel
,
};
...
...
src/pages/userhomepage/userhomepage.jsx
View file @
1f4ebd06
...
...
@@ -34,6 +34,9 @@ class Userhomepage extends React.Component {
await
store
.
getHomeInfo
();
this
.
flushCD
();
shareStore
.
doAssist
();
modalStore
.
pushPop
(
"AssistFailPanel"
)
}
/** 规则按钮*/
...
...
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