Commit 678832c3 authored by 13732208043's avatar 13732208043

任务界面跳转

parent 77948116
...@@ -4,6 +4,6 @@ module.exports = { ...@@ -4,6 +4,6 @@ module.exports = {
TEMP_DIR: "./.temp", TEMP_DIR: "./.temp",
ENTRY: "src/app.jsx", ENTRY: "src/app.jsx",
TEMPLATE: "./public/index.html", TEMPLATE: "./public/index.html",
MOCK_STATUS: false, MOCK_STATUS: true,
PX2REM: true PX2REM: true
}; };
...@@ -6,9 +6,10 @@ import './prize.less'; ...@@ -6,9 +6,10 @@ import './prize.less';
class Comprize extends Component { class Comprize extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
const {awardName,type,awardPic}=props.data; const { awardName, type, awardPic } = props.data;
this.state = { resList: resList2, this.state = {
awardName,type,awardPic resList: resList2,
awardName, type, awardPic
}; };
} }
...@@ -18,12 +19,12 @@ class Comprize extends Component { ...@@ -18,12 +19,12 @@ class Comprize extends Component {
} }
render() { render() {
const {awardName,type,awardPic}=this.state; const { awardName, type, awardPic } = this.state;
return ( return (
<div className="prize "> <div className="prize ">
<img className="prize_bg " src={this.state.resList['27d97dbc-4f9f-4f3e-b064-1b6729dd8193'].url} /> <img className="prize_bg " src={this.state.resList['27d97dbc-4f9f-4f3e-b064-1b6729dd8193'].url} />
<span className="prize_name ">恭喜你连续签到七天<br/> 获得{awardName}</span> <span className="prize_name ">恭喜你连续签到七天<br /> 获得{awardName}</span>
{/*type !='daPaiCoupons' &&*/<span className="prize_tip ">请前往工银e生活app-我的-<br/>优惠券-电子券中查看</span>} {/*type !='daPaiCoupons' &&*/<span className="prize_tip ">请前往工银e生活app-我的-<br />优惠券-电子券中查看</span>}
<img className="prize_img " src={awardPic} /> <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_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} /> <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 { ...@@ -31,7 +31,6 @@ class Task extends Component {
onClick={ onClick={
() => { () => {
console.log('星球大作战去看看') console.log('星球大作战去看看')
// location.href = urlmap[type]
location.href = " https://gonghang.activity-1.m.duiba.com.cn/projectx/p5a895423/index.html?appID=66480" location.href = " https://gonghang.activity-1.m.duiba.com.cn/projectx/p5a895423/index.html?appID=66480"
} }
} }
...@@ -39,12 +38,10 @@ class Task extends Component { ...@@ -39,12 +38,10 @@ class Task extends Component {
<img <img
className="dong_wu_lian_meng_qu_wan_wan " className="dong_wu_lian_meng_qu_wan_wan "
src={this.state.resList['36bcd134-df2c-4957-b97f-0b8463b4481b'].url} src={this.state.resList['36bcd134-df2c-4957-b97f-0b8463b4481b'].url}
onClick={ onClick={
() => { () => {
console.log('动物连萌去看看') console.log('动物连萌去看看')
location.href = 'https://gonghang.activity-1.m.duiba.com.cn/projectx/p65289b3c/index.html?appID=66480' location.href = 'https://gonghang.activity-1.m.duiba.com.cn/projectx/p65289b3c/index.html?appID=66480'
//location.href = urlmap[type]
} }
} }
/> />
......
...@@ -6,14 +6,13 @@ ...@@ -6,14 +6,13 @@
display: block; display: block;
position: absolute; position: absolute;
top: 50%; top: 50%;
transform:translateY(-50%); transform:translateY(-50%);
.bei_jing { .bei_jing {
width: 750px; width: 750px;
height: 1624px; height: 1624px;
opacity: 1; opacity: 1;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
} }
.pai_zi { .pai_zi {
width: 663px; width: 663px;
...@@ -22,13 +21,13 @@ ...@@ -22,13 +21,13 @@
left: 44px; left: 44px;
top: 390px; top: 390px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
.pai_zi_di_tu { .pai_zi_di_tu {
width: 663px; width: 663px;
height: 805px; height: 805px;
opacity: 1; opacity: 1;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
} }
.xing_qiu_da_zuo_zhan { .xing_qiu_da_zuo_zhan {
width: 602px; width: 602px;
...@@ -37,7 +36,7 @@ ...@@ -37,7 +36,7 @@
left: 30px; left: 30px;
top: 171px; top: 171px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
} }
.dong_wu_lian_meng { .dong_wu_lian_meng {
width: 602px; width: 602px;
...@@ -46,7 +45,7 @@ ...@@ -46,7 +45,7 @@
left: 30px; left: 30px;
top: 464px; top: 464px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
} }
} }
.fan_hui_nong_chang_an_niu { .fan_hui_nong_chang_an_niu {
...@@ -56,7 +55,7 @@ ...@@ -56,7 +55,7 @@
left: 22px; left: 22px;
top: 224px; top: 224px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
} }
.jiao_hu_kuang { .jiao_hu_kuang {
width: 750px; width: 750px;
...@@ -66,14 +65,14 @@ ...@@ -66,14 +65,14 @@
left: 0px; left: 0px;
top: 321px; top: 321px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
.qian_jing { .qian_jing {
width: 750px; width: 750px;
height: 1303px; height: 1303px;
opacity: 1; opacity: 1;
top: 0px; top: 0px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
} }
.xing_qiu_da_zuo_zhan_qu_wan_wan { .xing_qiu_da_zuo_zhan_qu_wan_wan {
width: 175px; width: 175px;
...@@ -83,7 +82,7 @@ ...@@ -83,7 +82,7 @@
left: 285px; left: 285px;
top: 420px; top: 420px;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; // transform-origin: 0px 0px 0px;
} }
.dong_wu_lian_meng_qu_wan_wan { .dong_wu_lian_meng_qu_wan_wan {
width: 175px; width: 175px;
...@@ -93,7 +92,7 @@ ...@@ -93,7 +92,7 @@
left: 285px; left: 285px;
top: 715px; top: 715px;
position: absolute; 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