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
156b315c
Commit
156b315c
authored
Sep 04, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dd7f4ebf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
package.json
project/package.json
+2
-0
pagefrontpage.jsx
project/src/pages/pagefrontpage/pagefrontpage.jsx
+17
-7
No files found.
project/package.json
View file @
156b315c
...
...
@@ -3,6 +3,8 @@
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"start"
:
"spark dev --type h5"
,
"build"
:
"spark build --type taobao"
,
"prettier"
:
"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"
},
"dependencies"
:
{
...
...
project/src/pages/pagefrontpage/pagefrontpage.jsx
View file @
156b315c
'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=
"image"
src=
{
this
.
state
.
resList
[
"eb602b5e-fd36-4968-bed0-ec786cd8e1c0"
].
url
}
/>
</
div
>
);
}
}
export
default
Pagefrontpage
;
\ No newline at end of file
export
default
Pagefrontpage
;
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