|
@ -6,14 +6,14 @@ |
|
|
</screen-title> |
|
|
</screen-title> |
|
|
<div class="card-item-hmyf"> |
|
|
<div class="card-item-hmyf"> |
|
|
<div class="top"> |
|
|
<div class="top"> |
|
|
<img src="@/assets/images/weather/index0.png" alt=""> |
|
|
<div class="item"> |
|
|
<div>12°</div> |
|
|
<img src="@/assets/images/weather/kqwd.png" alt=""> |
|
|
<div> |
|
|
<div><span>12°</span> <span>空气温度</span></div> |
|
|
<span>多云</span> |
|
|
|
|
|
<span>4/12°C</span> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<img src="@/assets/images/weather/line.png" alt="" style="width: 14px;height: 68px;"> |
|
|
良 |
|
|
<div class="item"> |
|
|
|
|
|
<img src="@/assets/images/weather/kqsd.png" alt=""> |
|
|
|
|
|
<div><span class="num">12°</span> <span>空气湿度</span></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bto"> |
|
|
<div class="bto"> |
|
@ -42,7 +42,7 @@ |
|
|
<div class="card-item-whyf"> |
|
|
<div class="card-item-whyf"> |
|
|
<div class="item" v-for="(item, index) in cultureList" :key="index"> |
|
|
<div class="item" v-for="(item, index) in cultureList" :key="index"> |
|
|
<img :src="item.imgSrc" alt=""> |
|
|
<img :src="item.imgSrc" alt=""> |
|
|
<span>{{item.title}}</span> |
|
|
<span>{{ item.title }}</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -55,19 +55,24 @@ export default { |
|
|
return { |
|
|
return { |
|
|
weatherList: [ |
|
|
weatherList: [ |
|
|
{ |
|
|
{ |
|
|
units: '温度', |
|
|
units: '雨量', |
|
|
img: require('@/assets/images/weather/temperature.png'), |
|
|
img: require('@/assets/images/weather/yu.png'), |
|
|
value: '20~30°' |
|
|
value: '20~30mm' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
units: '光照', |
|
|
|
|
|
img: require('@/assets/images/weather/gz.png'), |
|
|
|
|
|
value: '18.8lux' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
units: '风力', |
|
|
units: '土壤温度', |
|
|
img: require('@/assets/images/weather/windPower.png'), |
|
|
img: require('@/assets/images/weather/trwd.png'), |
|
|
value: '3~4级' |
|
|
value: '15~21°C' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
units: 'PM2.5', |
|
|
units: '土壤湿度', |
|
|
img: require('@/assets/images/weather/PM.png'), |
|
|
img: require('@/assets/images/weather/trsd.png'), |
|
|
value: '21~46μg' |
|
|
value: '52°C' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
videoStatus: '', |
|
|
videoStatus: '', |
|
@ -116,75 +121,64 @@ export default { |
|
|
|
|
|
|
|
|
>.top { |
|
|
>.top { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
|
|
|
margin-right: 9px; |
|
|
margin-right: 9px; |
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
padding: 0 20px; |
|
|
|
|
|
position: relative; |
|
|
|
|
|
>.item { |
|
|
|
|
|
@include flex(); |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
img { |
|
|
img { |
|
|
width: 70px; |
|
|
width: 34px; |
|
|
height: 70px; |
|
|
height: 34px; |
|
|
|
|
|
margin-right: 12px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
>:nth-child(2) { |
|
|
>div { |
|
|
text-shadow: 0 0 10px; |
|
|
width: 100%; |
|
|
font-size: 48px; |
|
|
|
|
|
margin-right: 25px; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
>:nth-child(3) { |
|
|
|
|
|
height: 100%; |
|
|
height: 100%; |
|
|
@include flex(column); |
|
|
@include flex(column); |
|
|
justify-content: space-evenly; |
|
|
justify-content: space-evenly; |
|
|
color: #BDCEEA; |
|
|
:nth-child(1) { |
|
|
|
|
|
text-shadow: 0 0 10px; |
|
|
|
|
|
font-size: 22px; |
|
|
|
|
|
font-weight: bold; |
|
|
|
|
|
font-family: pangmenzhengdao; |
|
|
|
|
|
letter-spacing: 4px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
>:nth-child(4) { |
|
|
:nth-child(2) { |
|
|
padding: 4px 16px 4px 23px; |
|
|
color: #BDCEEA; |
|
|
height: 22px; |
|
|
// margin-top: 12px; |
|
|
box-sizing: border-box; |
|
|
|
|
|
background: #31609f; |
|
|
|
|
|
border-radius: 11px; |
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
color: #ACBBD4; |
|
|
|
|
|
line-height: 14px; |
|
|
|
|
|
position: relative; |
|
|
|
|
|
top: -15px; |
|
|
|
|
|
|
|
|
|
|
|
&::after { |
|
|
|
|
|
content: ''; |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 10px; |
|
|
|
|
|
top: 7px; |
|
|
|
|
|
width: 8px; |
|
|
|
|
|
height: 8px; |
|
|
|
|
|
border-radius: 50%; |
|
|
|
|
|
background: #E3FFFF; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
>.bto { |
|
|
>.bto { |
|
|
margin-top: 16px; |
|
|
margin-top: 20px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: space-around; |
|
|
justify-content: space-around; |
|
|
|
|
|
|
|
|
>.item { |
|
|
>.item { |
|
|
width: 120px; |
|
|
width: 90px; |
|
|
height: 100px; |
|
|
height: 106px; |
|
|
background: url('~@/assets/images/common/weather-card.png') no-repeat; |
|
|
background: url('~@/assets/images/common/weather-card.png') no-repeat; |
|
|
background-size: 100% 100%; |
|
|
background-size: 100% 100%; |
|
|
@include flex(column); |
|
|
@include flex(column); |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
padding-bottom: 5px; |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
|
img { |
|
|
img { |
|
|
width: 30px; |
|
|
width: 30px; |
|
|
height: 30px; |
|
|
height: 30px; |
|
|
margin: 12px 0; |
|
|
margin-top: 15px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
:nth-child(3) { |
|
|
:nth-child(3) { |
|
@ -205,6 +199,7 @@ export default { |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-wrap: wrap; |
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
|
.item { |
|
|
.item { |
|
|
width: 140px; |
|
|
width: 140px; |
|
|
height: 108px; |
|
|
height: 108px; |
|
@ -216,6 +211,7 @@ export default { |
|
|
color: #BDCEEA; |
|
|
color: #BDCEEA; |
|
|
font-size: 12px; |
|
|
font-size: 12px; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
|
|
|
img { |
|
|
img { |
|
|
width: 130px; |
|
|
width: 130px; |
|
|
height: 80px; |
|
|
height: 80px; |
|
@ -224,5 +220,4 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
}</style> |
|
|
</style> |
|
|
|
|
|