Commit 678832c3 authored by 13732208043's avatar 13732208043

任务界面跳转

parent 77948116
......@@ -4,6 +4,6 @@ module.exports = {
TEMP_DIR: "./.temp",
ENTRY: "src/app.jsx",
TEMPLATE: "./public/index.html",
MOCK_STATUS: false,
MOCK_STATUS: true,
PX2REM: true
};
......@@ -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} />
......
......@@ -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]
}
}
/>
......
......@@ -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;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment