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
678832c3
Commit
678832c3
authored
Jan 19, 2021
by
13732208043
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务界面跳转
parent
77948116
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
22 deletions
+19
-22
sparkrc.js
project/sparkrc.js
+1
-1
prize.jsx
project/src/components/prize/prize.jsx
+8
-7
task.jsx
project/src/components/task/task.jsx
+0
-3
task.less
project/src/components/task/task.less
+10
-11
No files found.
project/sparkrc.js
View file @
678832c3
...
...
@@ -4,6 +4,6 @@ module.exports = {
TEMP_DIR
:
"./.temp"
,
ENTRY
:
"src/app.jsx"
,
TEMPLATE
:
"./public/index.html"
,
MOCK_STATUS
:
fals
e
,
MOCK_STATUS
:
tru
e
,
PX2REM
:
true
};
project/src/components/prize/prize.jsx
View file @
678832c3
...
...
@@ -6,9 +6,10 @@ import './prize.less';
class
Comprize
extends
Component
{
constructor
(
props
)
{
super
(
props
);
const
{
awardName
,
type
,
awardPic
}
=
props
.
data
;
this
.
state
=
{
resList
:
resList2
,
awardName
,
type
,
awardPic
const
{
awardName
,
type
,
awardPic
}
=
props
.
data
;
this
.
state
=
{
resList
:
resList2
,
awardName
,
type
,
awardPic
};
}
...
...
@@ -18,12 +19,12 @@ class Comprize extends Component {
}
render
()
{
const
{
awardName
,
type
,
awardPic
}
=
this
.
state
;
const
{
awardName
,
type
,
awardPic
}
=
this
.
state
;
return
(
<
div
className=
"prize "
>
<
img
className=
"prize_bg "
src=
{
this
.
state
.
resList
[
'27d97dbc-4f9f-4f3e-b064-1b6729dd8193'
].
url
}
/>
<
span
className=
"prize_name "
>
恭喜你连续签到七天
<
br
/>
获得
{
awardName
}
</
span
>
{
/*type !='daPaiCoupons' &&*/
<
span
className=
"prize_tip "
>
请前往工银e生活app-我的-
<
br
/>
优惠券-电子券中查看
</
span
>
}
<
span
className=
"prize_name "
>
恭喜你连续签到七天
<
br
/>
获得
{
awardName
}
</
span
>
{
/*type !='daPaiCoupons' &&*/
<
span
className=
"prize_tip "
>
请前往工银e生活app-我的-
<
br
/>
优惠券-电子券中查看
</
span
>
}
<
img
className=
"prize_img "
src=
{
awardPic
}
/>
<
img
className=
"prize_close "
onClick=
{
this
.
onCloseCustom
}
src=
{
this
.
state
.
resList
[
'b5b823ed-99a2-47fe-9512-1e3db73e8c89'
].
url
}
/>
<
img
className=
"prize_ok md12"
onClick=
{
this
.
onCloseCustom
}
src=
{
this
.
state
.
resList
[
'1da83a0f-fa15-43c5-a36f-b696a6628303'
].
url
}
/>
...
...
project/src/components/task/task.jsx
View file @
678832c3
...
...
@@ -31,7 +31,6 @@ class Task extends Component {
onClick=
{
()
=>
{
console
.
log
(
'星球大作战去看看'
)
// location.href = urlmap[type]
location
.
href
=
" https://gonghang.activity-1.m.duiba.com.cn/projectx/p5a895423/index.html?appID=66480"
}
}
...
...
@@ -39,12 +38,10 @@ class Task extends Component {
<
img
className=
"dong_wu_lian_meng_qu_wan_wan "
src=
{
this
.
state
.
resList
[
'36bcd134-df2c-4957-b97f-0b8463b4481b'
].
url
}
onClick=
{
()
=>
{
console
.
log
(
'动物连萌去看看'
)
location
.
href
=
'https://gonghang.activity-1.m.duiba.com.cn/projectx/p65289b3c/index.html?appID=66480'
//location.href = urlmap[type]
}
}
/>
...
...
project/src/components/task/task.less
View file @
678832c3
...
...
@@ -6,14 +6,13 @@
display: block;
position: absolute;
top: 50%;
transform:translateY(-50%);
.bei_jing {
width: 750px;
height: 1624px;
opacity: 1;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
.pai_zi {
width: 663px;
...
...
@@ -22,13 +21,13 @@
left: 44px;
top: 390px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
.pai_zi_di_tu {
width: 663px;
height: 805px;
opacity: 1;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
.xing_qiu_da_zuo_zhan {
width: 602px;
...
...
@@ -37,7 +36,7 @@
left: 30px;
top: 171px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
.dong_wu_lian_meng {
width: 602px;
...
...
@@ -46,7 +45,7 @@
left: 30px;
top: 464px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
}
.fan_hui_nong_chang_an_niu {
...
...
@@ -56,7 +55,7 @@
left: 22px;
top: 224px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
.jiao_hu_kuang {
width: 750px;
...
...
@@ -66,14 +65,14 @@
left: 0px;
top: 321px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
.qian_jing {
width: 750px;
height: 1303px;
opacity: 1;
top: 0px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
.xing_qiu_da_zuo_zhan_qu_wan_wan {
width: 175px;
...
...
@@ -83,7 +82,7 @@
left: 285px;
top: 420px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
.dong_wu_lian_meng_qu_wan_wan {
width: 175px;
...
...
@@ -93,7 +92,7 @@
left: 285px;
top: 715px;
position: absolute;
transform-origin: 0px 0px 0px;
//
transform-origin: 0px 0px 0px;
}
}
}
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