Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdsf-wx-app
Project
Overview
Details
Activity
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
姜雷
cdsf-wx-app
Commits
bae24f48
Commit
bae24f48
authored
Oct 17, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页样式
parent
da60d25e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
16 deletions
+47
-16
Index.js
src/containers/Home/Index.js
+17
-10
banner@2x.png
src/containers/Home/images/banner@2x.png
+0
-0
bg@2x.png
src/containers/Home/images/bg@2x.png
+0
-0
official_car_order@2x.png
src/containers/Home/images/official_car_order@2x.png
+0
-0
official_car_order_process@2x.png
src/containers/Home/images/official_car_order_process@2x.png
+0
-0
repair_process@2x.png
src/containers/Home/images/repair_process@2x.png
+0
-0
repairs-new@2x.png
src/containers/Home/images/repairs-new@2x.png
+0
-0
style.css
src/containers/Home/style.css
+30
-6
No files found.
src/containers/Home/Index.js
View file @
bae24f48
...
...
@@ -3,12 +3,19 @@ import PropTypes from 'prop-types';
import
styles
from
'./style.css'
;
import
{
Toast
}
from
'antd-mobile'
;
import
UserInfoContext
from
'../../context/userinfo-context'
;
import
bannerIcon
from
'./images/home_page_banner@2x.png'
;
import
repairIcon
from
'./images/repairs@2x.png'
;
import
repairDealIcon
from
'./images/repairs_dispose@2x.png'
;
import
publicCarIcon
from
'./images/service_car@2x.png'
;
import
publicCarDealIcon
from
'./images/service_car_dispose@2x.png'
;
import
bgImg
from
'./images/bg@2x.png'
;
import
bannerIcon
from
'./images/banner@2x.png'
;
import
repairIcon
from
'./images/repairs-new@2x.png'
;
import
repairDealIcon
from
'./images/repair_process@2x.png'
;
import
publicCarIcon
from
'./images/official_car_order@2x.png'
;
import
publicCarDealIcon
from
'./images/official_car_order_process@2x.png'
;
const
HomePageStyle
=
{
width
:
'100%'
,
height
:
'100%'
,
background
:
`url(
${
bgImg
}
)`
,
overflowY
:
'auto'
,
};
export
class
Index
extends
React
.
Component
{
static
propTypes
=
{
name
:
PropTypes
.
string
,
...
...
@@ -29,31 +36,31 @@ export class Index extends React.Component {
};
render
()
{
return
(
<
div
className
=
{
styles
.
HomePag
e
}
>
<
div
style
=
{
HomePageStyl
e
}
>
<
div
className
=
{
styles
.
banner
}
>
<
img
src
=
{
bannerIcon
}
alt
=
""
/>
<
/div
>
<
div
className
=
{
styles
.
iconBox
}
>
<
div
className
=
{
styles
.
iconItem
}
className
=
{
styles
.
repairIcon
}
onClick
=
{()
=>
this
.
validate
(
'CSHQ0001'
,
'/Repair'
)}
>
<
img
src
=
{
repairIcon
}
alt
=
""
/>
<
/div
>
<
div
className
=
{
styles
.
iconItem
}
className
=
{
styles
.
publicCarIcon
}
onClick
=
{()
=>
this
.
validate
(
'CSHQ0003'
,
'/publicCar'
)}
>
<
img
src
=
{
publicCarIcon
}
alt
=
""
/>
<
/div
>
<
div
className
=
{
styles
.
iconItem
}
className
=
{
styles
.
repairDealIcon
}
onClick
=
{()
=>
this
.
validate
(
'CSHQ0002'
,
'/RepairDeal'
)}
>
<
img
src
=
{
repairDealIcon
}
alt
=
""
/>
<
/div
>
<
div
className
=
{
styles
.
iconItem
}
className
=
{
styles
.
publicCarDealIcon
}
onClick
=
{()
=>
this
.
validate
(
'CSHQ0004'
,
'/publicCarDeal'
)}
>
<
img
src
=
{
publicCarDealIcon
}
alt
=
""
/>
...
...
src/containers/Home/images/banner@2x.png
0 → 100644
View file @
bae24f48
292 KB
src/containers/Home/images/bg@2x.png
0 → 100644
View file @
bae24f48
140 KB
src/containers/Home/images/official_car_order@2x.png
0 → 100644
View file @
bae24f48
17 KB
src/containers/Home/images/official_car_order_process@2x.png
0 → 100644
View file @
bae24f48
17.6 KB
src/containers/Home/images/repair_process@2x.png
0 → 100644
View file @
bae24f48
15.5 KB
src/containers/Home/images/repairs-new@2x.png
0 → 100644
View file @
bae24f48
24.7 KB
src/containers/Home/style.css
View file @
bae24f48
.banner
{
height
:
341px
;
height
:
384px
;
margin
:
17px
20.5px
;
}
.iconBox
{
display
:
flex
;
/*
display: flex;
flex-wrap: wrap;
justify-content
:
space-between
;
margin
:
18.7px
20.5px
0
;
justify-content: space-between; */
position
:
relative
;
height
:
600px
;
margin
:
0
20.5px
0
;
}
.iconItem
{
position
:
absolute
;
width
:
290px
;
height
:
293.5px
;
margin-bottom
:
18.7px
;
/* height: 293.5px; */
/* margin-bottom: 18.7px; */
}
.repairIcon
{
composes
:
iconItem
;
height
:
409px
;
}
.publicCarIcon
{
composes
:
iconItem
;
height
:
317.44px
;
right
:
0
;
}
.repairDealIcon
{
composes
:
iconItem
;
height
:
256px
;
bottom
:
0
;
}
.publicCarDealIcon
{
composes
:
iconItem
;
height
:
328.53px
;
right
:
0
;
bottom
:
0
;
}
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