主页维护
This commit is contained in:
parent
143663b4eb
commit
db7cdc319b
|
@ -15,43 +15,45 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container" id="index-app">
|
<div class="container" id="index-app">
|
||||||
<div class="clock-wrapper" >
|
<template>
|
||||||
<el-card>
|
<div class="clock-wrapper" >
|
||||||
<div class="clock-digits">{{currentTime}}</div>
|
<el-card>
|
||||||
</el-card>
|
<div class="clock-digits">{{currentTime}}</div>
|
||||||
</div>
|
</el-card>
|
||||||
<div class="calendar-wrapper">
|
</div>
|
||||||
<el-calendar v-model="dateValue">
|
<div class="calendar-wrapper">
|
||||||
<template slot="dateCell" slot-scope="{date, data}">
|
<el-calendar v-model="dateValue">
|
||||||
<div :class="{ selected : isSelected(date, data) }">
|
<template slot="dateCell" slot-scope="{date, data}">
|
||||||
<div class="solar">{{ data.day.split('-')[2] }}</div>
|
<div :class="{ selected : isSelected(date, data) }">
|
||||||
<div class="lunar" :class="{ festival : isFestival(date, data) }">{{ solarToLunar(date, data) }}</div>
|
<div class="solar">{{ data.day.split('-')[2] }}</div>
|
||||||
|
<div class="lunar" :class="{ festival : isFestival(date, data) }">{{ solarToLunar(date, data) }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-calendar>
|
||||||
|
</div>
|
||||||
|
<div class="weather-wrapper">
|
||||||
|
<el-card>
|
||||||
|
<div class="weather-title">
|
||||||
|
<span>{{weather.city}}天气情况</span>
|
||||||
|
<el-input
|
||||||
|
ref=""
|
||||||
|
placeholder="输入城市"
|
||||||
|
v-model="inputCity"
|
||||||
|
@keyup.enter.native="weatherSearch"
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
<div class="weather-info">
|
||||||
</el-calendar>
|
<div><i class="el-icon-sunny">  天 气 情 况 : {{weather.info}}</i></div>
|
||||||
</div>
|
<div><i class="el-icon-sunrise-1">  当 前 温 度 : {{weather.temperature}} ℃</i></div>
|
||||||
<div class="weather-wrapper">
|
<div><i class="el-icon-cold-drink">  当 前 湿 度 : {{weather.humidity}} %</i></div>
|
||||||
<el-card>
|
<div><i class="el-icon-guide">  当 前 风 向 : {{weather.direct}}</i></div>
|
||||||
<div class="weather-title">
|
<div><i class="el-icon-ship">  当 前 风 速 : {{weather.power}}</i></div>
|
||||||
<span>{{weather.city}}天气情况</span>
|
<div><i class="el-icon-grape">  空 气 质 量 : {{weather.aqi}}</i></div>
|
||||||
<el-input
|
</div>
|
||||||
ref=""
|
</el-card>
|
||||||
placeholder="输入城市"
|
</div>
|
||||||
v-model="inputCity"
|
</template>
|
||||||
@keyup.enter.native="weatherSearch"
|
|
||||||
>
|
|
||||||
</el-input>
|
|
||||||
</div>
|
|
||||||
<div class="weather-info">
|
|
||||||
<div><i class="el-icon-sunny">  天 气 情 况 : {{weather.info}}</i></div>
|
|
||||||
<div><i class="el-icon-sunrise-1">  当 前 温 度 : {{weather.temperature}} ℃</i></div>
|
|
||||||
<div><i class="el-icon-cold-drink">  当 前 湿 度 : {{weather.humidity}} %</i></div>
|
|
||||||
<div><i class="el-icon-guide">  当 前 风 向 : {{weather.direct}}</i></div>
|
|
||||||
<div><i class="el-icon-ship">  当 前 风 速 : {{weather.power}}</i></div>
|
|
||||||
<div><i class="el-icon-grape">  空 气 质 量 : {{weather.aqi}}</i></div>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</div>
|
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<img class="avatar" src="/static/image/avatar.jpg"/>
|
<img class="avatar" src="/static/image/avatar.jpg"/>
|
||||||
<div class="text part1">
|
<div class="text part1">
|
||||||
|
|
Loading…
Reference in New Issue