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
a495b2d8
Commit
a495b2d8
authored
Mar 13, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
717c55be
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
72 deletions
+61
-72
bg.png
src/assets/RankNoPrizePop/bg.png
+0
-0
know.png
src/assets/RankNoPrizePop/know.png
+0
-0
bg.png
src/assets/RankPrizePop/bg.png
+0
-0
btn.png
src/assets/RankPrizePop/btn.png
+0
-0
prizePicture.png
src/assets/RankPrizePop/prizePicture.png
+0
-0
CarvePanel.jsx
src/components/CarvePanel/CarvePanel.jsx
+3
-0
CarvePanel.less
src/components/CarvePanel/CarvePanel.less
+8
-0
RankPrizePop.jsx
src/components/RankPrizePop/RankPrizePop.jsx
+13
-21
RankPrizePop.less
src/components/RankPrizePop/RankPrizePop.less
+33
-47
index.js
src/store/index.js
+4
-4
No files found.
src/assets/RankNoPrizePop/bg.png
View replaced file @
717c55be
View file @
a495b2d8
22.5 KB
|
W:
|
H:
123 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/RankNoPrizePop/know.png
deleted
100644 → 0
View file @
717c55be
24.9 KB
src/assets/RankPrizePop/bg.png
View replaced file @
717c55be
View file @
a495b2d8
135 KB
|
W:
|
H:
123 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/RankPrizePop/btn.png
0 → 100644
View file @
a495b2d8
11.6 KB
src/assets/RankPrizePop/prizePicture.png
deleted
100644 → 0
View file @
717c55be
2.44 KB
src/components/CarvePanel/CarvePanel.jsx
View file @
a495b2d8
...
@@ -4,6 +4,8 @@ import "./CarvePanel.less";
...
@@ -4,6 +4,8 @@ import "./CarvePanel.less";
import
{
Button
}
from
"@src/components/Button"
;
import
{
Button
}
from
"@src/components/Button"
;
import
modalStore
from
"@src/store/modal"
;
import
modalStore
from
"@src/store/modal"
;
import
store
from
"@src/store"
;
import
store
from
"@src/store"
;
import
{
SvgaPlayer
}
from
"@spark/svgaplayer"
;
import
{
RES_PATH
}
from
"../../../sparkrc"
;
@
observer
@
observer
class
CarvePanel
extends
React
.
Component
{
class
CarvePanel
extends
React
.
Component
{
...
@@ -23,6 +25,7 @@ class CarvePanel extends React.Component {
...
@@ -23,6 +25,7 @@ class CarvePanel extends React.Component {
render
()
{
render
()
{
return
<
div
className=
"CarvePanel modal_center"
>
return
<
div
className=
"CarvePanel modal_center"
>
<
SvgaPlayer
className=
"effect"
src=
{
RES_PATH
+
"svga/4输出弹窗氛围.svga"
}
/>
<
div
className=
"bg"
/>
<
div
className=
"bg"
/>
<
div
className=
"txt"
>
一共有
{
store
.
setIndex
.
newAssistUser
}
位好友助力
</
div
>
<
div
className=
"txt"
>
一共有
{
store
.
setIndex
.
newAssistUser
}
位好友助力
</
div
>
<
Button
className=
"btn"
onClick=
{
this
.
clickOk
}
/>
<
Button
className=
"btn"
onClick=
{
this
.
clickOk
}
/>
...
...
src/components/CarvePanel/CarvePanel.less
View file @
a495b2d8
...
@@ -16,6 +16,14 @@
...
@@ -16,6 +16,14 @@
.sparkBg("CarvePanel/bg.png")
.sparkBg("CarvePanel/bg.png")
}
}
.effect {
position: absolute;
left: 0;
top: 170px;
width: 750px;
height: 1145px
}
.btn {
.btn {
position: absolute;
position: absolute;
left: 228px;
left: 228px;
...
...
src/components/RankPrizePop/RankPrizePop.jsx
View file @
a495b2d8
import
React
from
"react"
;
import
React
from
"react"
;
import
{
observer
}
from
"mobx-react"
;
import
{
observer
}
from
"mobx-react"
;
import
"./RankPrizePop.less"
;
import
"./RankPrizePop.less"
;
import
{
Button
}
from
"@src/components/Button"
;
import
{
Button
}
from
"@src/components/Button"
;
import
modalStore
from
"@src/store/modal"
;
import
modalStore
from
"@src/store/modal"
;
import
{
SvgaPlayer
}
from
"@spark/svgaplayer"
;
import
{
SvgaPlayer
}
from
"@spark/svgaplayer"
;
import
{
RES_PATH
}
from
"../../../sparkrc"
;
import
{
RES_PATH
}
from
"../../../sparkrc"
;
@
observer
@
observer
class
RankPrizePop
extends
React
.
Component
{
class
RankPrizePop
extends
React
.
Component
{
clickClose
=
()
=>
{
clickClose
=
()
=>
{
modalStore
.
closePop
();
modalStore
.
closePop
();
}
}
;
render
()
{
render
()
{
const
{
data
}
=
this
.
props
.
popData
;
const
{
data
}
=
this
.
props
.
popData
;
return
<
div
className=
"RankPrizePop modal_center"
>
return
<
div
className=
"RankPrizePop modal_center"
>
<
SvgaPlayer
className=
"light"
src=
{
RES_PATH
+
"SVG/6输出礼盒氛围.svga"
}
/>
<
SvgaPlayer
className=
"effect"
src=
{
RES_PATH
+
"svga/4输出弹窗氛围.svga"
}
/>
<
div
className=
"bg"
>
<
div
className=
"bg"
/>
<
div
className=
"rankText"
>
<
div
className=
"rankText"
>
最终排名为
{
data
?.
rank
}
</
div
>
最终排名为
{
data
?.
rank
}
<
img
className=
"prizeImg"
src=
{
data
?.
prizeImg
}
/>
</
div
>
<
div
className=
"prizeText"
>
{
data
?.
prizeName
}
</
div
>
<
img
className=
"prizeImg"
src=
{
data
?.
prizeImg
}
/>
<
Button
className=
"happy"
onClick=
{
this
.
clickClose
}
/>
<
div
className=
"prizeText"
>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
{
data
?.
prizeName
}
</
div
>
<
div
className=
"txt"
>
奖品可在首页_我的奖品中查看
</
div
>
</
div
>
<
Button
className=
"happy md40"
onClick=
{
this
.
clickClose
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
</
div
>;
</
div
>;
}
}
}
}
...
...
src/components/RankPrizePop/RankPrizePop.less
View file @
a495b2d8
...
@@ -6,85 +6,71 @@
...
@@ -6,85 +6,71 @@
top: 0;
top: 0;
width: 750px;
width: 750px;
height: 1624px;
height: 1624px;
.light {
.effect {
position: absolute;
position: absolute;
left: 0
px
;
left: 0;
top:
35
0px;
top:
17
0px;
width: 750px;
width: 750px;
height:
966
px;
height:
1145
px;
}
}
.bg {
.bg {
position: absolute;
position: absolute;
left:
56
px;
left:
99
px;
top:
337
px;
top:
250
px;
width:
620
px;
width:
553
px;
height: 8
65
px;
height: 8
59
px;
.sparkBg("RankPrizePop/bg.png")
.sparkBg("RankPrizePop/bg.png")
}
}
.rankText {
.rankText {
font-size: 24px;
font-size: 30px;
color: rgb(239, 125, 30);
color: #333333;
text-transform: uppercase;
line-height: 3.2;
position: absolute;
position: absolute;
left:
60px
;
left:
0
;
top:
305
px;
top:
530
px;
text-align: center;
text-align: center;
width:
50
0px;
width:
75
0px;
.lineClamp1()
.lineClamp1()
}
}
.prizeImg {
.prizeImg {
border-radius: 37px;
background-color: rgb(223, 185, 126);
position: absolute;
position: absolute;
left: 207px;
left: 245px;
top: 425px;
top: 590px;
width: 220px;
width: 261px;
height: 220px;
height: 261px;
.sparkBg("RankPrizePop/prizePicture.png")
}
}
.prizeText {
.prizeText {
color: #ef7d1e;
font-size: 30px;
font-size: 24px;
color: #333333;
line-height: 2;
position: absolute;
position: absolute;
left:
85
px;
left:
150
px;
top:
651
px;
top:
860
px;
text-align: center;
text-align: center;
width: 450px;
width: 450px;
.lineClamp1()
.lineClamp1();
}
.txt {
font-size: 19px;
color: rgb(204, 135, 70);
text-transform: uppercase;
line-height: 1.2;
text-align: center;
position: absolute;
left: 60px;
width: 500px;
top: 805px;
}
}
.happy {
.happy {
position: absolute;
position: absolute;
left:
199
px;
left:
228
px;
top:
1029
px;
top:
928
px;
width: 3
48
px;
width: 3
10
px;
height:
102
px;
height:
95
px;
.sparkBg("
common/happyB
tn.png")
.sparkBg("
RankPrizePop/b
tn.png")
}
}
.close {
.close {
position: absolute;
position: absolute;
left: 345px;
left: 345px;
top: 1
243
px;
top: 1
160
px;
width: 6
1
px;
width: 6
0
px;
height: 6
1
px;
height: 6
0
px;
.sparkBg("common/closeBtn.png")
.sparkBg("common/closeBtn.png")
}
}
}
}
src/store/index.js
View file @
a495b2d8
...
@@ -136,11 +136,11 @@ const store = makeAutoObservable({
...
@@ -136,11 +136,11 @@ const store = makeAutoObservable({
}
}
// 排行榜弹窗
// 排行榜弹窗
if
(
this
.
setIndex
?.
rankPop
?.
needPop
)
{
if
(
this
.
setIndex
?.
rankPop
Info
)
{
if
(
this
.
setIndex
?.
rankPop
.
result
)
{
if
(
this
.
setIndex
.
rankPopInfo
.
boolReward
)
{
modalStore
.
pushPop
(
"RankPrizePop"
,
{
data
:
this
.
setIndex
?.
rankPop
});
modalStore
.
pushPop
(
"RankPrizePop"
,
{
data
:
this
.
setIndex
?.
rankPop
Info
});
}
else
{
}
else
{
modalStore
.
pushPop
(
"RankNoPrizePop"
,
{
data
:
this
.
setIndex
?.
rankPop
});
modalStore
.
pushPop
(
"RankNoPrizePop"
,
{
data
:
this
.
setIndex
?.
rankPop
Info
});
}
}
}
}
},
},
...
...
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