Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_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
new_taobao
Commits
80eba834
Commit
80eba834
authored
Sep 16, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
553a8276
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
74 deletions
+74
-74
app.jsx
project/src/app.jsx
+1
-1
comrulepanel.jsx
project/src/components/comrulepanel/comrulepanel.jsx
+11
-11
comrulepanel.less
project/src/components/comrulepanel/comrulepanel.less
+16
-16
pagefrontpage.jsx
project/src/pages/pagefrontpage/pagefrontpage.jsx
+12
-12
pagefrontpage.less
project/src/pages/pagefrontpage/pagefrontpage.less
+28
-28
resList.js
project/src/resconfig/resList.js
+6
-6
No files found.
project/src/app.jsx
View file @
80eba834
...
...
@@ -3,7 +3,7 @@ import ReactDOM from "react-dom";
import
"./app.less"
;
import
{
MOCK_STATUS
}
from
'../sparkrc'
;
MOCK_STATUS
&&
(
require
(
'../mock/index'
));
import
MD
from
'./MD'
;
import
MD
from
'.
.
/MD'
;
MD
();
//此处为spark-cli动态生成
import
Pagefrontpage
from
"./pages/pagefrontpage/pagefrontpage.jsx"
;
...
...
project/src/components/comrulepanel/comrulepanel.jsx
View file @
80eba834
...
...
@@ -6,16 +6,16 @@ import resList from '../../resconfig/resList';
import
'./comrulepanel.less'
;
class
Comrulepanel
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
this
.
state
||
{
resList
:
resList
};
}
render
()
{
return
(
<
div
className=
"rulepanel
"
>
<
img
className=
"image2
"
src=
{
this
.
state
.
resList
[
'eb602b5e-fd36-4968-bed0-ec786cd8e1c0'
].
url
}
/>
</
div
>
);
}
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
resList
:
resList
};
}
render
()
{
return
(
<
div
className=
"rulepanel
"
>
<
img
className=
"image2
"
src=
{
this
.
state
.
resList
[
'eb602b5e-fd36-4968-bed0-ec786cd8e1c0'
].
url
}
/>
</
div
>
);
}
}
export
default
Comrulepanel
;
project/src/components/comrulepanel/comrulepanel.less
View file @
80eba834
.rulepanel {
top: 0px;
left: 0px;
width: 750px;
height: 1624px;
display: block;
position: absolute;
.image2 {
width: 300px;
height: 300px;
opacity: 1;
display: block;
left: 0px;
top: 0px;
position: absolute;
transform-origin: 0px 0px 0px;
}
top: 0px;
left: 0px;
width: 750px;
height: 1624px;
display: block;
position: absolute;
.image2 {
width: 300px;
height: 300px;
opacity: 1;
display: block;
left: 0px;
top: 0px;
position: absolute;
transform-origin: 0px 0px 0px;
}
}
project/src/pages/pagefrontpage/pagefrontpage.jsx
View file @
80eba834
...
...
@@ -7,17 +7,17 @@ import resList from '../../resconfig/resList';
import
'./pagefrontpage.less'
;
class
Pagefrontpage
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
this
.
state
||
{
resList
:
resList
};
}
render
()
{
return
(
<
div
className=
"frontpage
"
>
<
div
className=
"div
"
/>
<
img
className=
"image
"
src=
{
this
.
state
.
resList
[
'eb602b5e-fd36-4968-bed0-ec786cd8e1c0'
].
url
}
/>
</
div
>
);
}
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
resList
:
resList
};
}
render
()
{
return
(
<
div
className=
"frontpage
"
>
<
div
className=
"div
"
/>
<
img
className=
"image
"
src=
{
this
.
state
.
resList
[
'eb602b5e-fd36-4968-bed0-ec786cd8e1c0'
].
url
}
/>
</
div
>
);
}
}
export
default
Pagefrontpage
;
project/src/pages/pagefrontpage/pagefrontpage.less
View file @
80eba834
.frontpage {
width: 750px;
height: 1624px;
display: block;
position: absolute;
transform-origin: 0px 0px 0px;
left: 228px;
top: 146px;
.div {
width: 300px;
height: 300px;
opacity: 1;
display: block;
position: absolute;
background-color: #ff6600;
transform-origin: 0px 0px 0px;
top: 278px;
left: -142px;
}
.image {
width: 276px;
height: 275px;
opacity: 1;
display: block;
position: absolute;
transform-origin: 0px 0px 0px;
left: -184px;
top: -134px;
}
width: 750px;
height: 1624px;
display: block;
position: absolute;
transform-origin: 0px 0px 0px;
left: 228px;
top: 146px;
.div {
width: 300px;
height: 300px;
opacity: 1;
display: block;
position: absolute;
background-color: #ff6600;
transform-origin: 0px 0px 0px;
top: 278px;
left: -142px;
}
.image {
width: 276px;
height: 275px;
opacity: 1;
display: block;
position: absolute;
transform-origin: 0px 0px 0px;
left: -184px;
top: -134px;
}
}
project/src/resconfig/resList.js
View file @
80eba834
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'
,
},
'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
;
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