1、前端右上角天气鼠标悬浮显示预报天气

2、个人中心显示登录次数
3、统计天气接口修改时间格式
pull/254/head
xjs 4 years ago
parent 55a4c66a1c
commit f6d56d9b3f

@ -13,6 +13,7 @@
<el-popover
placement="top"
width="400"
trigger="hover"
title="❉预报天气❉"
v-model="weatherVisible">
<table style="text-align: center" v-loading="loading">
@ -183,18 +184,15 @@ export default {
created() {
this.getNowWeather()
this.getForecastWeather()
},
methods: {
//
getForecastWeather() {
this.loading = true;
getForecastWeather().then(res => {
this.forecastWeatherData = res.data
this.loading = false;
})
this.getNowWeather()
},
//

@ -31,6 +31,10 @@
<svg-icon icon-class="peoples" />所属角色
<div class="pull-right">{{ roleGroup }}</div>
</li>
<li class="list-group-item">
<svg-icon icon-class="peoples" />登录次数
<div class="pull-right">{{ user.loginCount }}</div>
</li>
<li class="list-group-item">
<svg-icon icon-class="date" />创建日期
<div class="pull-right">{{ user.createTime }}</div>

@ -104,7 +104,7 @@ public class WeatherServiceImpl implements WeatherService {
if (StringUtils.contains(startDate, today) && StringUtils.contains(endDate,today)) {
dateTime.add(DateUtil.format(weather.getReporttime(), "HH:mm"));
} else {
dateTime.add(DateUtil.format(weather.getReporttime(), "MM-dd"));
dateTime.add(DateUtil.format(weather.getReporttime(), "MM-dd HH:mm"));
}
temperature.add(weather.getTemperature());

Loading…
Cancel
Save