Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
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
wildfirecode13
icbcRPG
Commits
c35b73ea
Commit
c35b73ea
authored
Dec 22, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1ce0f63f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
2 deletions
+124
-2
index.js
project/mock/e-family/index.js
+1
-1
prize.jsx
project/src/components/prize/prize.jsx
+25
-0
prize.less
project/src/components/prize/prize.less
+65
-0
sign.jsx
project/src/components/sign/sign.jsx
+4
-1
PopMap.js
project/src/pop/PopMap.js
+2
-0
resList2.js
project/src/resconfig/resList2.js
+27
-0
No files found.
project/mock/e-family/index.js
View file @
c35b73ea
...
...
@@ -5,7 +5,7 @@ export const homeInfo = {
"figures"
:
[
{
"figureId"
:
"1"
},
{
"figureId"
:
"2"
},
{
"figureId"
:
"3"
}
],
"newUser"
:
tru
e
,
"newUser"
:
fals
e
,
"userInfo"
:
null
},
"message"
:
null
,
...
...
project/src/components/prize/prize.jsx
0 → 100644
View file @
c35b73ea
'use strict'
;
import
React
,
{
Component
}
from
'react'
;
import
resList2
from
'../../resconfig/resList2'
;
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
import
'./prize.less'
;
class
Comprize
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
resList
:
resList2
};
}
render
()
{
return
(
<
div
className=
"prize "
>
<
img
className=
"prize_bg "
src=
{
this
.
state
.
resList
[
'27d97dbc-4f9f-4f3e-b064-1b6729dd8193'
].
url
}
/>
<
span
className=
"prize_name "
>
恭喜你连续签到七天 获得e生活2元电子券奖励
</
span
>
<
span
className=
"prize_tip "
>
请前往工银e生活app-我的- 优惠券-电子券中查看
</
span
>
<
img
className=
"prize_img "
src=
{
this
.
state
.
resList
[
'1dd8c28e-73c4-433d-9a49-d8ce3a0ca680'
].
url
}
/>
<
img
className=
"prize_close "
onClick=
{
this
.
props
.
onClose
}
src=
{
this
.
state
.
resList
[
'b5b823ed-99a2-47fe-9512-1e3db73e8c89'
].
url
}
/>
<
img
className=
"prize_ok "
onClick=
{
this
.
props
.
onClose
}
src=
{
this
.
state
.
resList
[
'1da83a0f-fa15-43c5-a36f-b696a6628303'
].
url
}
/>
</
div
>
);
}
}
export
default
Comprize
;
\ No newline at end of file
project/src/components/prize/prize.less
0 → 100644
View file @
c35b73ea
.prize {
width: 750px;
height: 1321px;
opacity: 1;
top: 77px;
position: absolute;
transform-origin: 0px 0px 0px;
.prize_bg {
width: 750px;
height: 1321px;
opacity: 1;
position: absolute;
transform-origin: 0px 0px 0px;
}
.prize_name {
width: 340px;
height: 78px;
opacity: 1;
left: 205px;
top: 500px;
position: absolute;
transform-origin: 0px 0px 0px;
font-size: 30px;
color: rgba(83, 83, 83, 1);
}
.prize_tip {
width: 298px;
height: 53px;
opacity: 1;
left: 226px;
top: 1021px;
position: absolute;
transform-origin: 0px 0px 0px;
font-size: 24px;
color: rgba(83, 83, 83, 1);
}
.prize_img {
width: 471px;
height: 237px;
opacity: 1;
left: 137px;
top: 622px;
position: absolute;
transform-origin: 0px 0px 0px;
}
.prize_close {
width: 48px;
height: 48px;
opacity: 1;
left: 635px;
top: 309px;
position: absolute;
transform-origin: 0px 0px 0px;
}
.prize_ok {
width: 446px;
height: 99px;
opacity: 1;
left: 155px;
top: 894px;
position: absolute;
transform-origin: 0px 0px 0px;
}
}
\ No newline at end of file
project/src/components/sign/sign.jsx
View file @
c35b73ea
...
...
@@ -2,7 +2,7 @@
import
React
,
{
Component
}
from
'react'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
import
'./sign.less'
;
import
{
Toast
,
Loading
,
Badge
,
CountDownButton
,
InputNumber
}
from
'@spark/ui'
;
import
API
from
'../../api'
;
...
...
@@ -25,6 +25,9 @@ class Sign extends Component {
doSign
=
()
=>
{
API
.
dosign
().
then
((
res
)
=>
{
Aup
.
show
(
'PrizeRule'
,
{},
this
);
this
.
props
.
ctx
.
updateMoney
();
});
};
...
...
project/src/pop/PopMap.js
View file @
c35b73ea
...
...
@@ -8,10 +8,12 @@ import PopRule from '../components/rule/rule.jsx'
import
Select
from
'../components/select/select.jsx'
import
Sign
from
'../components/sign/sign.jsx'
import
Userinfo
from
'../components/userinfo/userinfo.jsx'
import
Comprize
from
'../components/prize/prize.jsx'
// import PopLightCard from '../components/pop/PopLightCard/PopLightCard.jsx'
let
popMap
=
new
Map
()
popMap
.
set
(
"PrizeRule"
,
Comprize
)
popMap
.
set
(
"PopRule"
,
PopRule
)
popMap
.
set
(
"Select"
,
Select
)
popMap
.
set
(
"Sign"
,
Sign
)
...
...
project/src/resconfig/resList2.js
0 → 100644
View file @
c35b73ea
const
resList2
=
{
'27d97dbc-4f9f-4f3e-b064-1b6729dd8193'
:
{
name
:
'prize_bg'
,
ext
:
'.png'
,
uuid
:
'27d97dbc-4f9f-4f3e-b064-1b6729dd8193'
,
url
:
'//yun.duiba.com.cn/spark/assets/edccac4fdb6a4a1479c9b5773e76300018621773.png'
},
'1dd8c28e-73c4-433d-9a49-d8ce3a0ca680'
:
{
name
:
'prize_img'
,
ext
:
'.png'
,
uuid
:
'1dd8c28e-73c4-433d-9a49-d8ce3a0ca680'
,
url
:
'//yun.duiba.com.cn/spark/assets/c0392f9dba7287d3d2877c6bff60b55f01ef15e6.png'
},
'b5b823ed-99a2-47fe-9512-1e3db73e8c89'
:
{
name
:
'prize_close'
,
ext
:
'.png'
,
uuid
:
'b5b823ed-99a2-47fe-9512-1e3db73e8c89'
,
url
:
'//yun.duiba.com.cn/spark/assets/2686334f61b25f441c4340343beacdb83532f670.png'
},
'1da83a0f-fa15-43c5-a36f-b696a6628303'
:
{
name
:
'prize_ok'
,
ext
:
'.png'
,
uuid
:
'1da83a0f-fa15-43c5-a36f-b696a6628303'
,
url
:
'//yun.duiba.com.cn/spark/assets/d7fd0f2e5f324306613bc1dea0cfd73144596b37.png'
}
};
export
default
resList2
;
\ No newline at end of file
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