JIALDemo/target/classes/templates/index.html

273 lines
21 KiB
HTML
Raw Permalink Normal View History

2023-12-24 13:39:07 +08:00
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8">
2024-01-11 08:30:14 +08:00
<title>云霄雨霁</title>
<meta name="author" content="JIAL">
2023-12-24 13:39:07 +08:00
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="HandheldFriendly" content="true">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
2024-01-11 08:30:14 +08:00
<link rel="stylesheet" type="text/css" href="/static/style/css/main.css">
<link rel="stylesheet" type="text/css" href="/static/style/css/index.css">
<link rel="icon" href="/static/image/avatar.jpg" type="image/x-icon">
2023-12-24 13:39:07 +08:00
<!-- import CSS -->
2024-01-11 08:30:14 +08:00
<link rel="stylesheet" href="/plugins/element-ui/index.css">
2023-12-24 13:39:07 +08:00
</head>
<body>
<div class="container" id="index-app">
2024-01-12 13:39:24 +08:00
<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>
2023-12-24 13:39:07 +08:00
</div>
2024-01-12 13:39:24 +08:00
<div class="weather-info">
<div><i class="el-icon-sunny">&nbsp&nbsp天&nbsp气&nbsp情&nbsp况&nbsp:&nbsp{{weather.info}}</i></div>
<div><i class="el-icon-sunrise-1">&nbsp&nbsp当&nbsp前&nbsp温&nbsp度&nbsp:&nbsp{{weather.temperature}} ℃</i></div>
<div><i class="el-icon-cold-drink">&nbsp&nbsp当&nbsp前&nbsp湿&nbsp度&nbsp:&nbsp{{weather.humidity}} %</i></div>
<div><i class="el-icon-guide">&nbsp&nbsp当&nbsp前&nbsp风&nbsp向&nbsp:&nbsp{{weather.direct}}</i></div>
<div><i class="el-icon-ship">&nbsp&nbsp当&nbsp前&nbsp风&nbsp速&nbsp:&nbsp{{weather.power}}</i></div>
<div><i class="el-icon-grape">&nbsp&nbsp空&nbsp气&nbsp质&nbsp量&nbsp:&nbsp{{weather.aqi}}</i></div>
</div>
</el-card>
</div>
</template>
2023-12-24 13:39:07 +08:00
<div class="content-container">
2024-01-11 08:30:14 +08:00
<img class="avatar" src="/static/image/avatar.jpg"/>
2023-12-24 13:39:07 +08:00
<div class="text part1">
<div>
<span class="letter"><div class="character">J</div> <span></span></span>
<span class="letter"><div class="character">I</div> <span></span></span>
<span class="letter"><div class="character">A</div> <span></span></span>
<span class="letter"><div class="character"></div> <span></span></span>
<span class="letter"><div class="character"></div> <span></span></span>
<span class="letter"><div class="character">L</div> <span></span></span>
</div>
</div>
<div style="position: relative">
<el-input
v-model="searchText"
placeholder="请输入搜索内容"
@keyup.enter.native="performSearch"
clearable
class="search-input"
style="width: 600px;"
>
<!-- 左侧的搜索引擎选择 -->
<template slot="prepend" s>
<el-select style="width: 80px;" v-model="selectedEngine" placeholder="选择搜索引擎">
<el-option label="百度" value="baidu"></el-option>
<el-option label="Bing" value="bing"></el-option>
</el-select>
</template>
</el-input>
</div>
<span class="bio">
<span style="transition-delay:2s" class="emphasis"></span>
<span style="transition-delay:.5s">霞与</span>
<span style="transition-delay:1s"></span>
<span style="transition-delay:1.5s"></span>
<span style="transition-delay:2s"></span>
<span style="transition-delay:2.5s"></span>
<span style="transition-delay:3s"></span>
<span style="transition-delay:3.5s"></span>
<span style="transition-delay:4s"></span>
<span style="transition-delay:4.5s"></span>
<span style="transition-delay:5s"></span>
<span style="transition-delay:5.5s"></span>
<span style="transition-delay:6s" class="emphasis"></span>
<span style="transition-delay:6.5s"></span>
<span style="transition-delay:7s"></span>
</span>
<div style="position: relative; left: 95px" >
<ul>
<li>
<a href="https://5ime.cn" target="_blank">
<img width="50px" src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIC0yMCA1MTIgNTExIiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiPjxwYXRoIGQ9Im0xMCAzMi4yNjk1MzF2NDA4LjM5ODQzOGMwIDEyLjAyMzQzNyA5Ljc0NjA5NCAyMS43Njk1MzEgMjEuNzY5NTMxIDIxLjc2OTUzMWg0NDguNDYwOTM4YzEyLjAyMzQzNyAwIDIxLjc2OTUzMS05Ljc0NjA5NCAyMS43Njk1MzEtMjEuNzY5NTMxdi00MDguMzk4NDM4YzAtMTIuMDIzNDM3LTkuNzQ2MDk0LTIxLjc2OTUzMS0yMS43Njk1MzEtMjEuNzY5NTMxaC00NDguNDYwOTM4Yy0xMi4wMjM0MzcgMC0yMS43Njk1MzEgOS43NDYwOTQtMjEuNzY5NTMxIDIxLjc2OTUzMXptMCAwIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0ibTMxLjc2OTUzMSAxMC41aDQ0OC40NjA5MzhjMTIuMDIzNDM3IDAgMjEuNzY5NTMxIDkuNzQ2MDk0IDIxLjc2OTUzMSAyMS43Njk1MzF2NzQuMDE5NTMxaC00OTJ2LTc0LjAxOTUzMWMwLTEyLjAyMzQzNyA5Ljc0NjA5NC0yMS43Njk1MzEgMjEuNzY5NTMxLTIxLjc2OTUzMXptMCAwIiBmaWxsPSIjNzJkOGZmIi8+PHBhdGggZD0ibTY3LjE3OTY4OCA0OC4zOTQ1MzFoLS4xMDE1NjNjLTUuNTIzNDM3IDAtMTAgNC40NzY1NjMtMTAgMTAgMCA1LjUyMzQzOCA0LjQ3NjU2MyAxMCAxMCAx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48cGF0aCBkPSJtMTUyLjI5Mjk2OSAyNDIuNTg1OTM4aDE5MnYxNmgtMTkyem0wIDAiIGZpbGw9IiMwMDAwMDAiLz48cGF0aCBkPSJtMTUyLjI5Mjk2OSAyNzQuNTg1OTM4aDE2MHYxNmgtMTYwem0wIDAiIGZpbGw9IiMwMDAwMDAiLz48cGF0aCBkPSJtMzI4LjI5Mjk2OSAyNzQuNTg1OTM4aDE2djE2aC0xNnptMCAwIiBmaWxsPSIjMDAwMDAwIi8+PHBhdGggZD0ibTE5Mi4yOTI5NjkgMzA2LjU4NTkzOGgxMTJ2MTZoLTExMnptMCAwIiBmaWxsPSIjMDAwMDAwIi8+PC9zdmc+Cg=="/>
</a>
</li>
<li>
<a href="https://leetcode.cn/" target="_blank">
2024-01-11 08:30:14 +08:00
<img width="50px" src="/static/image/leetcode.png"/>
2023-12-24 13:39:07 +08:00
</a>
</li>
<li>
<a href="https://www.bing.com/" target="_blank">
<img width="50px" src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cGF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z4KPC9zdmc+Cg=="/>
</a>
</li>
</ul>
</div>
</div>
<!-- 底部footer -->
<el-footer class="footer-container" >
<!-- 办案信息展示区域 -->
<div class="case-info">
<!-- 在这里绑定Vue数据来展示办案信息 -->
<div>Designed by JIAL 2023. Permission granted for redistribution.</div>
<div><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=64020202000218&amp;token=4adb4592-9573-41b6-ab1c-a23850030e0d" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;" target="_blank" >宁公网安备 64020202000218号</a></div>
<div><a href="https://beian.miit.gov.cn/?token=4adb4592-9573-41b6-ab1c-a23850030e0d#/Integrated/index" target="_blank" >宁ICP备2022000681号</a></div>
</div>
</el-footer>
</div>
2024-01-11 08:30:14 +08:00
<script type="text/javascript" src="/static/style/js/main.js"></script>
2023-12-24 13:39:07 +08:00
<!-- import Vue before Element -->
<script src="../plugins/vue/vue.js"></script>
<!-- import JavaScript -->
<script src="../plugins/element-ui/index.js"></script>
<script src="../plugins/calendar/calendar.js"></script>
<script src="../plugins/axios/axios.min.js"></script>
<script src="../plugins/axios/request.js"></script>
2023-12-25 09:19:27 +08:00
<script src="../static/style/js/index.js"></script>
2023-12-24 13:39:07 +08:00
<script>
new Vue({
el: '#index-app',
data() {
return {
currentTime: "",
searchText: '',
selectedEngine: 'baidu', // 默认选中百度
dateValue: new Date(),
selectedDates: [],
inputCity: "",
weather: {
city: "宜兴",
temperature: "",
info: "",
humidity: "",
direct: "",
power: "",
aqi: ""
},
}
},
computed: {
},
created() {
console.log("页面重启中");
},
mounted() {
// 更新时钟
this.updateClock();
setInterval(this.updateClock, 1000);
},
methods: {
async init () {
console.log("页面重启中");
},
updateClock() {
const now = new Date();
const hours = this.padZero(now.getHours());
const minutes = this.padZero(now.getMinutes());
const seconds = this.padZero(now.getSeconds());
// 格式化时间为 HH:mm:ss
this.currentTime = `${hours}:${minutes}:${seconds}`;
},
padZero(value) {
return value < 10 ? `0${value}` : value;
},
// 是否选中日期
isSelected : function(slotDate, slotData) {
return this.selectedDates.includes(slotData.day)
},
// 是否节假日
isFestival(slotDate, slotData) {
let solarDayArr = slotData.day.split('-');
let lunarDay = calendar.solar2lunar(solarDayArr[0], solarDayArr[1], solarDayArr[2])
// 公历节日\农历节日\农历节气
let festAndTerm = [];
festAndTerm.push(lunarDay.festival == null ? '' : ' ' + lunarDay.festival)
festAndTerm.push(lunarDay.lunarFestival == null ? '' : '' + lunarDay.lunarFestival)
festAndTerm.push(lunarDay.Term == null ? '' : '' + lunarDay.Term)
festAndTerm = festAndTerm.join('')
return festAndTerm != ''
},
// 公历转农历
solarToLunar(slotDate, slotData) {
let solarDayArr = slotData.day.split('-');
let lunarDay = calendar.solar2lunar(solarDayArr[0], solarDayArr[1], solarDayArr[2])
// 农历日期
let lunarMD = lunarDay.IMonthCn + lunarDay.IDayCn
// 公历节日\农历节日\农历节气
let festAndTerm = [];
festAndTerm.push(lunarDay.festival == null ? '' : ' ' + lunarDay.festival)
festAndTerm.push(lunarDay.lunarFestival == null ? '' : '' + lunarDay.lunarFestival)
festAndTerm.push(lunarDay.Term == null ? '' : '' + lunarDay.Term)
festAndTerm = festAndTerm.join('')
return festAndTerm == '' ? lunarMD : festAndTerm
},
performSearch() {
// 在这里可以根据选中的搜索引擎执行搜索
const searchUrl =
this.selectedEngine === 'baidu'
? `https://www.baidu.com/s?wd=${encodeURIComponent(this.searchText)}`
: `https://www.bing.com/search?q=${encodeURIComponent(this.searchText)}`;
// 在这里可以根据选中的搜索引擎执行搜索
window.open(searchUrl, '_blank'); // 在新标签页中打开搜索结果
},
async weatherSearch() {
console.log("调用weatherSearch--开始")
const params = {cityName: (this.inputCity === "" ? this.weather.city : this.inputCity)}
console.log(params);
await getWeatherInfo(params).then(weatherInfo => {
if (String(weatherInfo.code) === '1') {
this.weather.city = weatherInfo.data.city;
this.weather.info = weatherInfo.data.info;
this.weather.aqi = weatherInfo.data.aqi;
this.weather.power = weatherInfo.data.power;
this.weather.humidity= weatherInfo.data.humidity;
this.weather.direct = weatherInfo.data.direct;
this.weather.temperature = weatherInfo.data.temperature;
}
}).catch(err => {
this.$message.error('请求出错了:' + err)
})
console.log("调用weatherSearch--结束")
}
}
})
</script>
</body>
</html>