Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-h5app-drs
Overview
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
zhuxiaomei
patzn-cloud-web-h5app-drs
Commits
407ed43f
Commit
407ed43f
authored
Dec 09, 2020
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页宽度固定
parent
0aaf1b8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
35 deletions
+22
-35
Home.vue
src/page/Home.vue
+22
-35
No files found.
src/page/Home.vue
View file @
407ed43f
...
...
@@ -2,6 +2,7 @@
<div>
<div
class=
"layout-cont home-cont"
>
<div
class=
"box-c box-c-1"
@
click=
"_goto('/sampling_plan/sampling_plan')"
>
<!--
<img
src=
"@/assets/home/plan.png"
>
-->
<div>
<img
src=
"@/assets/home/plan.png"
></div>
<div>
...
...
@@ -52,24 +53,12 @@
<div
class=
"title"
>
双随机实现流程
</div>
</div>
</div>
<!--
<van-grid
:gutter=
"10"
:column-num=
"3"
:icon-size=
"40"
>
-->
<!--<!–1、icon参数引入使用,否则不显示–>-->
<!--
<van-grid-item
v-for=
"item in menuList"
:key=
"item.title"
:icon=
"item.img"
--
>
<!--:text="item.title" @click="_goto(item)">
</van-grid-item>
-->
<!--<!–2、require使用 详见:https://youzan.github.io/vant/#/zh-CN/image#chang-jian-wen-ti–>-->
<!--<!–
<van-grid-item
v-for=
"item in menuList"
:key=
"item.title"
:icon=
"require('../assets/index/1.png')"
&
ndash
;&
gt
;
--
>
<!--<!–:text="item.title" >
</van-grid-item>
–>
-->
<!--<!–3、使用该组件的icon插槽 详见:https://youzan.github.io/vant/#/zh-CN/grid#api–>-->
<!--
</van-grid>
-->
</div>
<FooterBar></FooterBar>
</div>
</
template
>
<
script
>
import
indexImg10
from
'../assets/index/10.png'
import
indexImg1
from
'../assets/index/1.png'
import
indexImg11
from
'../assets/index/11.png'
import
FooterBar
from
'@/components/FooterBar.vue'
export
default
{
...
...
@@ -79,11 +68,7 @@
},
data
()
{
return
{
menuList
:
[
{
img
:
indexImg10
,
title
:
'抽样任务'
,
uri
:
'/sampling_task/sampling_task'
},
{
img
:
indexImg1
,
title
:
'抽样单管理'
,
uri
:
'/sampling_list/sampling_task'
},
{
img
:
indexImg11
,
title
:
'历史抽样单'
,
uri
:
'/history_sampling/sampling_list'
},
],
}
},
methods
:
{
...
...
@@ -99,32 +84,37 @@
padding
:
20px
30px
;
color
:
#ffffff
;
height
:
calc
(
100%
-
50px
);
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
/*display: flex;*/
/*flex-direction: column;*/
/*justify-content: space-around;*/
overflow
:
auto
;
}
.home-cont
>
div
{
width
:
100%
;
height
:
23%
;
}
/*.home-cont > div {*/
/*width: 100%;*/
/*height: 23%;*/
/*}*/
img
{
width
:
100%
;
opacity
:
0.6
;
}
.box-c
{
display
:
flex
;
border-radius
:
20px
;
width
:
700px
;
margin
:
0
auto
;
}
.box-c
+
.box-c
{
margin-top
:
20px
;
}
.box-c
:nth-child
(
1
)
{
/*background: #589dff;*/
background-image
:
linear-gradient
(
45deg
,
#10239e
,
#adc6ff
)
}
.box-c
:nth-child
(
4
)
{
/*background: #9B9C9D;*/
background-image
:
linear-gradient
(
45deg
,
#00474f
,
#87e8de
)
}
...
...
@@ -134,7 +124,7 @@
align-items
:
center
;
justify-content
:
center
;
box-shadow
:
2px
2px
10px
#888888
;
height
:
200px
;
>
div
:
nth-child
(
1
)
{
width
:
20%
;
display
:
flex
;
...
...
@@ -155,6 +145,7 @@
}
.box-c-2
,
.box-c-3
{
height
:
180px
;
>
div
{
width
:
50%
;
border-radius
:
20px
;
...
...
@@ -175,27 +166,23 @@
.box-c-2
{
>
div
:
nth-child
(
1
)
{
/*background: #b562bb;*/
background-image
:
linear-gradient
(
45deg
,
#237804
,
#95de64
)
background-image
:
linear-gradient
(
45deg
,
#536DFE
,
#00B0Ff
)
}
>
div
:nth-child
(
2
)
{
/*background: #e8835e;*/
background-image
:
linear-gradient
(
45deg
,
#874d00
,
#e8835e
);
background-image
:
linear-gradient
(
45deg
,
#00B0Ff
,
#536DFE
);
margin-left
:
30px
;
}
}
.box-c-3
{
>
div
:
nth-child
(
1
)
{
/*background: #E24343;*/
background-image
:
linear-gradient
(
45deg
,
#E24343
,
#ff7875
)
background-image
:
linear-gradient
(
45deg
,
#00BFA6
,
#0036ff
)
}
>
div
:nth-child
(
2
)
{
/*background: #a1aeca;*/
background-image
:
linear-gradient
(
45deg
,
#8e9bb7
,
#e0e0e0
);
background-image
:
linear-gradient
(
45deg
,
#0036ff
,
#00BFA6
);
margin-left
:
30px
;
}
}
...
...
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