Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello_taobao
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
hello_taobao
Commits
6542de23
Commit
6542de23
authored
Sep 06, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
156b315c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
46 deletions
+77
-46
.DS_Store
.DS_Store
+0
-0
pagefrontpage.jsx
project/src/pages/pagefrontpage/pagefrontpage.jsx
+12
-18
pagefrontpage.less
project/src/pages/pagefrontpage/pagefrontpage.less
+37
-20
resList.js
project/src/resconfig/resList.js
+26
-8
index.js
project/src/utils/index.js
+2
-0
No files found.
.DS_Store
View file @
6542de23
No preview for this file type
project/src/pages/pagefrontpage/pagefrontpage.jsx
View file @
6542de23
"use strict"
;
'use strict'
;
import
React
,
{
Component
}
from
"react"
;
import
resList
from
"../../resconfig/resList"
;
import
API
from
"../../api"
;
import
React
,
{
Component
}
from
'react'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api'
;
import
"./pagefrontpage.less"
;
import
'./pagefrontpage.less'
;
class
Pagefrontpage
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
this
.
state
||
{
resList
:
resList
};
}
componentDidMount
()
{
API
.
getRule
().
then
((
res
)
=>
{
console
.
log
(
res
)
});
}
render
()
{
return
(
<
div
className=
"frontpage"
>
<
div
className=
"div"
/>
<
img
className=
"image"
src=
{
this
.
state
.
resList
[
"eb602b5e-fd36-4968-bed0-ec786cd8e1c0"
].
url
}
/>
<
img
className=
"frontpage_placeholder"
src=
{
this
.
state
.
resList
[
'9bfe28c7-7e25-4631-b5f1-0f52d4fb0643'
].
url
}
/>
<
div
className=
"frontpage_wrapper"
>
<
img
className=
"frontpage_btn"
src=
{
this
.
state
.
resList
[
'55c6197d-b4a9-45bc-92d8-328cc151512f'
].
url
}
/>
<
label
className=
"frontpage_txt"
>
已有 120382 人参与
</
label
>
<
img
className=
"frontpage_image"
src=
{
this
.
state
.
resList
[
'e4a03a02-4a52-4276-97e3-9f3dade11dfb'
].
url
}
/>
</
div
>
</
div
>
);
}
}
export
default
Pagefrontpage
;
export
default
Pagefrontpage
;
\ No newline at end of file
project/src/pages/pagefrontpage/pagefrontpage.less
View file @
6542de23
.frontpage {
width: 750px;
height: 1624px;
opacity: 1;
position: absolute;
background-image: url(//yun.duiba.com.cn/aurora/assets/fb115c35b78fc3e792ee94b5831cca0c43174c0d.jpg);
.frontpage_placeholder {
width: 750px;
height: 1624px;
display: block
;
opacity: 1
;
position: absolute;
transform-origin: 0px 0px 0px;
left: 228px;
top: 146px;
.div {
width: 300px;
height: 300px;
background-image: url();
}
.frontpage_wrapper {
width: 673px;
height: 1065px;
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;
display: block;
left: 0px;
top: 1042px;
position: absolute;
background-color: #ff6600;
transform-origin: 0px 0px 0px;
top: 278px;
left: -142;
font-size: 14.93076;
color: rgba(255, 255, 255, 1);
text-align: center;
}
.image {
width:
276
px;
height:
275
px;
.
frontpage_
image {
width:
673
px;
height:
830
px;
opacity: 1;
display: block;
position: absolute;
transform-origin: 0px 0px 0px;
left: -184;
top: -134;
}
}
\ No newline at end of file
}
}
project/src/resconfig/resList.js
View file @
6542de23
const
resList
=
{
'eb602b5e-fd36-4968-bed0-ec786cd8e1c0'
:
{
name
:
'资源'
,
ext
:
'.png'
,
url
:
'//yun.duiba.com.cn/spark-prod/assets/资源.7ec4dc0a776a20da7e58e0cee4fab560dea0ec76.png'
,
uuid
:
'eb602b5e-fd36-4968-bed0-ec786cd8e1c0'
}
};
export
default
resList
;
\ No newline at end of file
'81133fa6-44b7-4a3f-b5d6-25e3da99cb8b'
:
{
name
:
'frontpage_placeholder'
,
ext
:
'.png'
,
uuid
:
'81133fa6-44b7-4a3f-b5d6-25e3da99cb8b'
,
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
;
\ No newline at end of file
project/src/utils/index.js
0 → 100644
View file @
6542de23
export
const
getfucked
=
()
=>
{
console
.
log
(
'getfucked'
)}
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