主页维护
This commit is contained in:
parent
143663b4eb
commit
db7cdc319b
|
@ -15,43 +15,45 @@
|
|||
</head>
|
||||
<body>
|
||||
<div class="container" id="index-app">
|
||||
<div class="clock-wrapper" >
|
||||
<el-card>
|
||||
<div class="clock-digits">{{currentTime}}</div>
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="calendar-wrapper">
|
||||
<el-calendar v-model="dateValue">
|
||||
<template slot="dateCell" slot-scope="{date, data}">
|
||||
<div :class="{ selected : isSelected(date, data) }">
|
||||
<div class="solar">{{ data.day.split('-')[2] }}</div>
|
||||
<div class="lunar" :class="{ festival : isFestival(date, data) }">{{ solarToLunar(date, data) }}</div>
|
||||
<template>
|
||||
<div class="clock-wrapper" >
|
||||
<el-card>
|
||||
<div class="clock-digits">{{currentTime}}</div>
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="calendar-wrapper">
|
||||
<el-calendar v-model="dateValue">
|
||||
<template slot="dateCell" slot-scope="{date, data}">
|
||||
<div :class="{ selected : isSelected(date, data) }">
|
||||
<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>
|
||||
</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 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="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>
|
||||
</template>
|
||||
<div class="content-container">
|
||||
<img class="avatar" src="/static/image/avatar.jpg"/>
|
||||
<div class="text part1">
|
||||
|
|
Loading…
Reference in New Issue