|
@@ -30,34 +30,34 @@
|
|
|
</div>
|
|
|
<div class="main-right">
|
|
|
<!-- 时间 -->
|
|
|
- <div v-show="isHome" class="main-time">
|
|
|
- <div v-if="Object.keys(weatherInfo).length !== 0">111</div>
|
|
|
- </div>
|
|
|
- <!-- 天气 -->
|
|
|
- <div v-show="!isHome" class="main-home" @click="showWeather = true">
|
|
|
- <div class="weatherBox" v-if="Object.keys(weather).length !== 0">
|
|
|
- <div class="box-left">
|
|
|
- <i class="qing" v-if="weather.day_weather === '晴'"></i>
|
|
|
- <i class="duoyun" v-else-if="weather.day_weather === '多云'"></i>
|
|
|
- <i class="yin" v-else-if="weather.day_weather === '阴'"></i>
|
|
|
- <i class="xiaoyu" v-else-if="weather.day_weather === '小雨'"></i>
|
|
|
- <i class="zyu" v-else-if="weather.day_weather === '中雨'"></i>
|
|
|
- <i class="dyu" v-else-if="weather.day_weather === '大雨'"></i>
|
|
|
- <i class="byu" v-else-if="weather.day_weather === '暴雨'"></i>
|
|
|
- <i class="xxue" v-else-if="weather.day_weather === '小雪'"></i>
|
|
|
- <i class="zxue" v-else-if="weather.day_weather === '中雪'"></i>
|
|
|
- <i class="dxue" v-else-if="weather.day_weather === '大雪'"></i>
|
|
|
- <i class="bxue" v-else-if="weather.day_weather === '暴学'"></i>
|
|
|
- </div>
|
|
|
- <div class="box-right">
|
|
|
- <p class="fontSize">{{weather.day_weather}}</p>
|
|
|
- <p class="fontSize">{{weather.min_degree}}-{{weather.max_degree}}℃</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div v-else @click="refresh">抓取天气数据失败,请重试</div>
|
|
|
- </div>
|
|
|
+<!-- <div v-show="isHome" class="main-time">-->
|
|
|
+<!-- <div v-if="Object.keys(weatherInfo).length !== 0">111</div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <!– 天气 –>-->
|
|
|
+<!-- <div v-show="!isHome" class="main-home" @click="showWeather = true">-->
|
|
|
+<!-- <div class="weatherBox" v-if="Object.keys(weather).length !== 0">-->
|
|
|
+<!-- <div class="box-left">-->
|
|
|
+<!-- <i class="qing" v-if="weather.day_weather === '晴'"></i>-->
|
|
|
+<!-- <i class="duoyun" v-else-if="weather.day_weather === '多云'"></i>-->
|
|
|
+<!-- <i class="yin" v-else-if="weather.day_weather === '阴'"></i>-->
|
|
|
+<!-- <i class="xiaoyu" v-else-if="weather.day_weather === '小雨'"></i>-->
|
|
|
+<!-- <i class="zyu" v-else-if="weather.day_weather === '中雨'"></i>-->
|
|
|
+<!-- <i class="dyu" v-else-if="weather.day_weather === '大雨'"></i>-->
|
|
|
+<!-- <i class="byu" v-else-if="weather.day_weather === '暴雨'"></i>-->
|
|
|
+<!-- <i class="xxue" v-else-if="weather.day_weather === '小雪'"></i>-->
|
|
|
+<!-- <i class="zxue" v-else-if="weather.day_weather === '中雪'"></i>-->
|
|
|
+<!-- <i class="dxue" v-else-if="weather.day_weather === '大雪'"></i>-->
|
|
|
+<!-- <i class="bxue" v-else-if="weather.day_weather === '暴学'"></i>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="box-right">-->
|
|
|
+<!-- <p class="fontSize">{{weather.day_weather}}</p>-->
|
|
|
+<!-- <p class="fontSize">{{weather.min_degree}}-{{weather.max_degree}}℃</p>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div v-else @click="refresh">抓取天气数据失败,请重试</div>-->
|
|
|
+<!-- </div>-->
|
|
|
</div>
|
|
|
- <div class="time">{{currentTime}}</div>
|
|
|
+ <div class="time" v-show="isHome">{{currentTime}}</div>
|
|
|
<div class="main-bottom">青莲食品</div>
|
|
|
<div class="content">
|
|
|
<router-view></router-view>
|
|
@@ -182,7 +182,6 @@ export default {
|
|
|
background: url("../assets/u1.jpg") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
box-sizing: border-box;
|
|
|
- padding: 20px 20px;
|
|
|
position: relative;
|
|
|
}
|
|
|
.content {
|
|
@@ -195,22 +194,22 @@ export default {
|
|
|
}
|
|
|
.main-title {
|
|
|
width: 230px;
|
|
|
- height: 52px;
|
|
|
- line-height: 52px;
|
|
|
+ height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
position: absolute;
|
|
|
top: 25px;
|
|
|
left: 50.5%;
|
|
|
text-align: center;
|
|
|
transform: translate(-50%, 0);
|
|
|
color: #66FFFF;
|
|
|
- font-size: 18px;
|
|
|
+ font-size: 22px;
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
.main-left {
|
|
|
width: 180px;
|
|
|
height: 40px;
|
|
|
position: absolute;
|
|
|
- top: 15px;
|
|
|
+ top: 0;
|
|
|
left: 150px;
|
|
|
}
|
|
|
.main-right {
|
|
@@ -242,7 +241,7 @@ export default {
|
|
|
font-size: 24px;
|
|
|
font-weight: 600;
|
|
|
left: 51%;
|
|
|
- bottom: 35px;
|
|
|
+ bottom: 20px;
|
|
|
transform: translate(-50% , 0);
|
|
|
}
|
|
|
.main-back {
|