From 7f25b7b4940a30ee7bed38d6d0f2ea4fa67dfac6 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 09 May 2021 08:34:10 +0800
Subject: [PATCH] 细节面包屑和天气

---
 public/weather/index.html |   36 +++---------------------------------
 1 files changed, 3 insertions(+), 33 deletions(-)

diff --git a/public/weather/index.html b/public/weather/index.html
index 3c9e458..5da9d84 100644
--- a/public/weather/index.html
+++ b/public/weather/index.html
@@ -18,9 +18,8 @@
             align-items: center;
             justify-content: center;
             position: relative;
-right: -20px;
+            right: -20px;
         }
-
         .time {
             position: relative;
             top: -6px;
@@ -43,12 +42,6 @@
         var me = new Vue({
             el: '#weather',
             data: {
-                begin: false,
-                weathers: {
-                    nowWeather: '',
-                    highTemperature: '',
-                    lowTemperature: '',
-                },
                 nowTime: {
                     year: '',
                     month: '',
@@ -56,8 +49,7 @@
                     hour: '',
                     minute: '',
                     second: '',
-                },
-                city: "南昌",
+                }
             },
             methods: {
                 getNewTime() {
@@ -68,38 +60,16 @@
                     this.nowTime.minute = (new Date()).getMinutes() < 10 ? '0' + (new Date()).getMinutes() : (new Date()).getMinutes();
                     this.nowTime.second = (new Date()).getSeconds() < 10 ? '0' + (new Date()).getSeconds() : (new Date()).getSeconds();
                 },
-                // getWeather() {
-                //     var that = this;
-                //     // var url = `http://wthrcdn.etouch.cn/weather_mini?city=${this.city}`
-                //     var url = `https://web.byisf.com/weatherGet/weather_mini?city=${this.city}`
-                //     axios.get(url).then((res) => {
-                //         var data = res.data.data,
-                //             nowDay = data.forecast[0];
-                //         that.weathers.nowWeather = nowDay.type;
-                //         that.weathers.highTemperature = nowDay.high.slice(3);
-                //         that.weathers.lowTemperature = nowDay.low.slice(3);
-                //         that.begin = true;
-                //     })
-                // },
-                // getCity() {
-                //     var ctiyName = returnCitySN["cname"];
-                //     console.log(ctiyName, 4343543);
-                //     this.city = '南昌'
-                //     this.getWeather();
-                // }
             },
             mounted() {
                 this.getNewTime();
                 setInterval(() => {
                     this.getNewTime();
                 }, 1000);
-                // this.begin = true;
-                // this.getWeather();
-                // this.getCity();
             }
         })
     </script>
 
 </body>
 
-</html>
+</html>
\ No newline at end of file

--
Gitblit v1.9.3