Commit 6542de23 authored by wildfirecode13's avatar wildfirecode13

1

parent 156b315c
No preview for this file type
"use strict"; 'use strict';
import React, { Component } from "react"; import React, { Component } from 'react';
import resList from "../../resconfig/resList"; import resList from '../../resconfig/resList';
import API from "../../api"; //import API from '../../api';
import "./pagefrontpage.less"; import './pagefrontpage.less';
class Pagefrontpage extends Component { class Pagefrontpage extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = this.state || { resList: resList }; this.state = this.state || { resList: resList };
} }
componentDidMount() {
API.getRule().then((res) => {
console.log(res)
});
}
render() { render() {
return ( return (
<div className="frontpage"> <div className="frontpage">
<div className="div" /> <img className="frontpage_placeholder" src={this.state.resList['9bfe28c7-7e25-4631-b5f1-0f52d4fb0643'].url} />
<img <div className="frontpage_wrapper">
className="image" <img className="frontpage_btn" src={this.state.resList['55c6197d-b4a9-45bc-92d8-328cc151512f'].url} />
src={this.state.resList["eb602b5e-fd36-4968-bed0-ec786cd8e1c0"].url} <label className="frontpage_txt">已有 120382 人参与</label>
/> <img className="frontpage_image" src={this.state.resList['e4a03a02-4a52-4276-97e3-9f3dade11dfb'].url} />
</div>
</div> </div>
); );
} }
......
.frontpage { .frontpage {
width: 750px; width: 750px;
height: 1624px; height: 1624px;
display: block; opacity: 1;
position: absolute;
background-image: url(//yun.duiba.com.cn/aurora/assets/fb115c35b78fc3e792ee94b5831cca0c43174c0d.jpg);
.frontpage_placeholder {
width: 750px;
height: 1624px;
opacity: 1;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px; background-image: url();
left: 228px; }
top: 146px; .frontpage_wrapper {
.div { width: 673px;
width: 300px; height: 1065px;
height: 300px; opacity: 1;
left: 37px;
top: 328px;
position: absolute;
.frontpage_btn {
width: 458px;
height: 138px;
opacity: 1;
left: 108px;
top: 880px;
position: absolute;
}
.frontpage_txt {
width: 673px;
height: 30px;
opacity: 1; opacity: 1;
display: block; left: 0px;
top: 1042px;
position: absolute; position: absolute;
background-color: #ff6600; font-size: 14.93076;
transform-origin: 0px 0px 0px; color: rgba(255, 255, 255, 1);
top: 278px; text-align: center;
left: -142;
} }
.image { .frontpage_image {
width: 276px; width: 673px;
height: 275px; height: 830px;
opacity: 1; opacity: 1;
display: block;
position: absolute; position: absolute;
transform-origin: 0px 0px 0px;
left: -184;
top: -134;
} }
} }
}
const resList = { const resList = {
'eb602b5e-fd36-4968-bed0-ec786cd8e1c0': { '81133fa6-44b7-4a3f-b5d6-25e3da99cb8b': {
name: '资源', name: 'frontpage_placeholder',
ext: '.png', ext: '.png',
url: '//yun.duiba.com.cn/spark-prod/assets/资源.7ec4dc0a776a20da7e58e0cee4fab560dea0ec76.png', uuid: '81133fa6-44b7-4a3f-b5d6-25e3da99cb8b',
uuid: 'eb602b5e-fd36-4968-bed0-ec786cd8e1c0' url: '//yun.duiba.com.cn/spark-prod/assets/807317256624fc9e2d7aa080a5693b88a1cb0a43.png'
},
'55c6197d-b4a9-45bc-92d8-328cc151512f': {
name: 'frontpage_btn',
ext: '.png',
uuid: '55c6197d-b4a9-45bc-92d8-328cc151512f',
url: '//yun.duiba.com.cn/spark-prod/assets/ca79bd0c916e1bbadc7d4011439084061f0dc642.png'
},
'e4a03a02-4a52-4276-97e3-9f3dade11dfb': {
name: 'frontpage_image',
ext: '.png',
uuid: 'e4a03a02-4a52-4276-97e3-9f3dade11dfb',
url: '//yun.duiba.com.cn/spark-prod/assets/dc13e362bec7ac50ca21e84a882c87b9e3c7d3d5.png'
},
'9bfe28c7-7e25-4631-b5f1-0f52d4fb0643': {
name: 'bg',
ext: '.jpg',
url: '//yun.duiba.com.cn/spark-prod/assets/bg.fb115c35b78fc3e792ee94b5831cca0c43174c0d.jpg',
uuid: '9bfe28c7-7e25-4631-b5f1-0f52d4fb0643'
} }
}; };
export default resList; export default resList;
\ No newline at end of file \ No newline at end of file
export const getfucked=()=>{console.log('getfucked')}
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