Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB-studyChina-20250617
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
RB-studyChina-20250617
Commits
8cb4e11a
Commit
8cb4e11a
authored
Jun 23, 2025
by
jtwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7
parent
24b7e6d2
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
52 deletions
+48
-52
draw.ts
mock/draw.ts
+12
-18
index.jsx
src/panels/AwardPopup/index.jsx
+4
-3
index.less
src/panels/AwardPopup/index.less
+2
-2
index.less
src/panels/FailPopup/index.less
+2
-2
index.jsx
src/panels/GiftPackPopup/index.jsx
+0
-1
index.less
src/panels/GiftPackPopup/index.less
+1
-9
index.less
src/panels/NotWinPopup/index.less
+2
-2
index.jsx
src/panels/VictoryPopup/index.jsx
+10
-8
index.less
src/panels/VictoryPopup/index.less
+15
-7
No files found.
mock/draw.ts
View file @
8cb4e11a
...
@@ -61,24 +61,18 @@ export default [
...
@@ -61,24 +61,18 @@ export default [
"message"
:
"信息xxx"
,
"message"
:
"信息xxx"
,
"success"
:
true
,
"success"
:
true
,
"data"
:
{
"data"
:
{
"boolPrize"
:
true
,
// true-中奖,取prizeInfo信息,false-未中奖,取productInfo
"prize"
:
{
"productInfos"
:
[
"ruleId"
:
"ru_draw"
,
{
"optionId"
:
"ccccdddd"
,
"productImg"
:
"//yun.duiba.com.cn/spark/assets/f77861647e7b55e9c95e9c49d891a21526157a76.jpg"
,
"optionName"
:
"华为手环"
,
"productText"
:
"介绍1介绍费1介绍1介绍费1介绍1介绍费1介绍1介绍费1介绍1介绍费1介绍1介绍费1介绍1介绍费1介绍1介绍1介绍费1介绍1介绍1介绍费1介绍1介绍1介绍费1介绍1介绍1介绍费1介绍1"
"optionImg"
:
"https://www.baidu.com/hw1.png"
,
},
"prizeId"
:
"sss_3"
,
{
"prizeType"
:
2
,
"productImg"
:
"//yun.duiba.com.cn/polaris/111.8b981b3fc7d090da2457b4f29b9feec496dc95fd.png"
,
"position"
:
1
,
"productText"
:
"介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2介绍2"
"userRecordId"
:
666
,
},
"url"
:
"https://www.baidu.com/order/666"
,
{
"sendCount"
:
1
,
"productImg"
:
"//yun.duiba.com.cn/polaris/mgtv.e5f0709a2a4083bc57ce52ff200a50a2e56b2658.png"
,
"extra"
:
"{}"
"productText"
:
"介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3介绍3"
}
],
"prizeInfo"
:
{
"name"
:
`奖品1`
,
"icon"
:
`//yun.duiba.com.cn/polaris/jinmoqiang.9e5bbc004f69ab6a3f34d93daeda028616a9f00d.png`
,
}
}
}
}
}
}
...
...
src/panels/AwardPopup/index.jsx
View file @
8cb4e11a
...
@@ -15,7 +15,7 @@ class AwardPopup extends React.Component {
...
@@ -15,7 +15,7 @@ class AwardPopup extends React.Component {
super
(
props
);
super
(
props
);
// console.log('ddddd::::::', props);
// console.log('ddddd::::::', props);
this
.
state
=
{
this
.
state
=
{
prize
Info
:
props
.
prizeInfo
prize
:
props
.
prize
};
};
}
}
...
@@ -32,13 +32,14 @@ class AwardPopup extends React.Component {
...
@@ -32,13 +32,14 @@ class AwardPopup extends React.Component {
}
}
render
()
{
render
()
{
const
{
prize
}
=
this
.
state
;
return
(
return
(
<
div
className=
"AwardPopup"
>
<
div
className=
"AwardPopup"
>
<
div
className=
"ap_mask"
></
div
>
<
div
className=
"ap_mask"
></
div
>
<
div
className=
'ap_bg'
>
<
div
className=
'ap_bg'
>
<
div
className=
'ap_txt'
>
成功获得奖品
</
div
>
<
div
className=
'ap_txt'
>
成功获得奖品
</
div
>
<
div
className=
'ap_icon'
style=
{
{
backgroundImage
:
`url(${
this.state.prizeInfo.icon
})`
}
}
></
div
>
<
div
className=
'ap_icon'
style=
{
{
backgroundImage
:
`url(${
prize.optionImg
})`
}
}
></
div
>
<
div
className=
'ap_award_name'
>
{
this
.
state
.
prizeInfo
.
n
ame
}
</
div
>
<
div
className=
'ap_award_name'
>
{
prize
.
optionN
ame
}
</
div
>
<
div
className=
'ap_btn'
onClick=
{
()
=>
this
.
onReceive
()
}
></
div
>
<
div
className=
'ap_btn'
onClick=
{
()
=>
this
.
onReceive
()
}
></
div
>
</
div
>
</
div
>
<
div
className=
'ap_close'
onClick=
{
()
=>
this
.
onClose
()
}
></
div
>
<
div
className=
'ap_close'
onClick=
{
()
=>
this
.
onClose
()
}
></
div
>
...
...
src/panels/AwardPopup/index.less
View file @
8cb4e11a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
position: absolute;
position: absolute;
width: 641px;
width: 641px;
height: 903px;
height: 903px;
top:
2
49px;
top:
1
49px;
left: 55px;
left: 55px;
.sparkBg("awardPopup/award_bg.png");
.sparkBg("awardPopup/award_bg.png");
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
width: 66px;
width: 66px;
height: 66px;
height: 66px;
left: 342px;
left: 342px;
top: 1
2
42px;
top: 1
1
42px;
.sparkBg("awardPopup/close.png");
.sparkBg("awardPopup/close.png");
}
}
}
}
\ No newline at end of file
src/panels/FailPopup/index.less
View file @
8cb4e11a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
position: absolute;
position: absolute;
width: 596px;
width: 596px;
height: 512px;
height: 512px;
top:
4
97px;
top:
3
97px;
left: 77px;
left: 77px;
.sparkBg("failPopup/fail_bg.png");
.sparkBg("failPopup/fail_bg.png");
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
width: 66px;
width: 66px;
height: 66px;
height: 66px;
left: 342px;
left: 342px;
top: 1
1
42px;
top: 1
0
42px;
.sparkBg("failPopup/close.png");
.sparkBg("failPopup/close.png");
}
}
}
}
\ No newline at end of file
src/panels/GiftPackPopup/index.jsx
View file @
8cb4e11a
...
@@ -47,7 +47,6 @@ class GiftPackPopup extends React.Component {
...
@@ -47,7 +47,6 @@ class GiftPackPopup extends React.Component {
return
(
return
(
<
div
className=
"GiftPackPopup"
onClick=
{
()
=>
this
.
onClose
()
}
>
<
div
className=
"GiftPackPopup"
onClick=
{
()
=>
this
.
onClose
()
}
>
<
div
className=
"gpp_mask"
></
div
>
<
div
className=
"gpp_mask"
></
div
>
{
/* <div className='gpp_icon'></div> */
}
<
SvgaPlayer
className=
"output1"
src=
{
output1Svga
}
/>
<
SvgaPlayer
className=
"output1"
src=
{
output1Svga
}
/>
</
div
>
</
div
>
);
);
...
...
src/panels/GiftPackPopup/index.less
View file @
8cb4e11a
...
@@ -15,16 +15,8 @@
...
@@ -15,16 +15,8 @@
position: absolute;
position: absolute;
width: 750px;
width: 750px;
height: 1179px;
height: 1179px;
top:
2
00px;
top:
1
00px;
left: 0px;
left: 0px;
pointer-events: none;
pointer-events: none;
}
}
.gpp_icon{
position: absolute;
width: 325px;
height: 342px;
top: 641px;
left: 214px;
.sparkBg("giftPackPopup/gift_pack_icon.png");
}
}
}
\ No newline at end of file
src/panels/NotWinPopup/index.less
View file @
8cb4e11a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
position: absolute;
position: absolute;
width: 596px;
width: 596px;
height: 392px;
height: 392px;
top:
5
76px;
top:
4
76px;
left: 77px;
left: 77px;
.sparkBg("notWinPopup/nw_bg.png");
.sparkBg("notWinPopup/nw_bg.png");
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
width: 66px;
width: 66px;
height: 66px;
height: 66px;
left: 342px;
left: 342px;
top:
10
72px;
top:
9
72px;
.sparkBg("notWinPopup/close.png");
.sparkBg("notWinPopup/close.png");
}
}
}
}
\ No newline at end of file
src/panels/VictoryPopup/index.jsx
View file @
8cb4e11a
...
@@ -51,6 +51,7 @@ class VictoryPopup extends React.Component {
...
@@ -51,6 +51,7 @@ class VictoryPopup extends React.Component {
return
(
return
(
<
div
className=
"VictoryPopup"
>
<
div
className=
"VictoryPopup"
>
<
div
className=
"vp_mask"
></
div
>
<
div
className=
"vp_mask"
></
div
>
<
div
className=
'vp_bg'
>
<
div
className=
'vp_title'
></
div
>
<
div
className=
'vp_title'
></
div
>
<
div
className=
'vp_ditu_txt'
>
{
gotSpInfo
.
name
}
地图
</
div
>
<
div
className=
'vp_ditu_txt'
>
{
gotSpInfo
.
name
}
地图
</
div
>
<
div
className=
'vp_guang'
></
div
>
<
div
className=
'vp_guang'
></
div
>
...
@@ -61,6 +62,7 @@ class VictoryPopup extends React.Component {
...
@@ -61,6 +62,7 @@ class VictoryPopup extends React.Component {
<
div
className=
'vp_btn'
onClick=
{
()
=>
this
.
onDraw
()
}
></
div
>
<
div
className=
'vp_btn'
onClick=
{
()
=>
this
.
onDraw
()
}
></
div
>
<
div
className=
'vp_close'
onClick=
{
()
=>
this
.
onClose
()
}
></
div
>
<
div
className=
'vp_close'
onClick=
{
()
=>
this
.
onClose
()
}
></
div
>
</
div
>
</
div
>
</
div
>
);
);
}
}
};
};
...
...
src/panels/VictoryPopup/index.less
View file @
8cb4e11a
...
@@ -11,11 +11,19 @@
...
@@ -11,11 +11,19 @@
background: #000;
background: #000;
opacity: 0.5;
opacity: 0.5;
}
}
.vp_bg{
position: absolute;
width: 100%;
height: auto;
top: 280px;
left: 0px;
.sparkBg("victoryPopup/title.png");
}
.vp_title{
.vp_title{
position: absolute;
position: absolute;
width: 399px;
width: 399px;
height: 57px;
height: 57px;
top:
333
px;
top:
0
px;
left: 174px;
left: 174px;
.sparkBg("victoryPopup/title.png");
.sparkBg("victoryPopup/title.png");
}
}
...
@@ -26,14 +34,14 @@
...
@@ -26,14 +34,14 @@
font-size: 38px;
font-size: 38px;
font-weight: 400;
font-weight: 400;
color: #fff;
color: #fff;
top:
407
px;
top:
74
px;
left: 0px;
left: 0px;
}
}
.vp_guang{
.vp_guang{
position: absolute;
position: absolute;
width: 641px;
width: 641px;
height: 580px;
height: 580px;
top:
389
px;
top:
56
px;
left: 55px;
left: 55px;
.sparkBg("victoryPopup/guang.png");
.sparkBg("victoryPopup/guang.png");
}
}
...
@@ -41,7 +49,7 @@
...
@@ -41,7 +49,7 @@
position: absolute;
position: absolute;
width: 287px;
width: 287px;
height: 327px;
height: 327px;
top:
49
3px;
top:
16
3px;
left: 230px;
left: 230px;
background-size: 100% 100%;
background-size: 100% 100%;
// .sparkBg("victoryPopup/shanghai.png");
// .sparkBg("victoryPopup/shanghai.png");
...
@@ -50,7 +58,7 @@
...
@@ -50,7 +58,7 @@
position: absolute;
position: absolute;
width: 255px;
width: 255px;
height: 73px;
height: 73px;
top:
860
px;
top:
527
px;
left: 248px;
left: 248px;
.sparkBg("victoryPopup/cjjh_tips.png");
.sparkBg("victoryPopup/cjjh_tips.png");
line-height: 90px;
line-height: 90px;
...
@@ -62,7 +70,7 @@
...
@@ -62,7 +70,7 @@
position: absolute;
position: absolute;
width: 343px;
width: 343px;
height: 106px;
height: 106px;
top:
1015
px;
top:
682
px;
left: 204px;
left: 204px;
.sparkBg("victoryPopup/cj_btn.png");
.sparkBg("victoryPopup/cj_btn.png");
}
}
...
@@ -71,7 +79,7 @@
...
@@ -71,7 +79,7 @@
width: 66px;
width: 66px;
height: 66px;
height: 66px;
left: 342px;
left: 342px;
top:
1242
px;
top:
870
px;
position: absolute;
position: absolute;
.sparkBg("victoryPopup/close.png");
.sparkBg("victoryPopup/close.png");
}
}
...
...
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