|
|
@@ -81,7 +81,6 @@
|
|
|
/>
|
|
|
|
|
|
<div class="weather">{{ item.wea_day }}</div>
|
|
|
- <!-- <div class="temp-range">{{ item.high }}℃ / {{ item.low }}℃</div> -->
|
|
|
</div>
|
|
|
<div>
|
|
|
<img
|
|
|
@@ -89,11 +88,7 @@
|
|
|
:src="$imageURL + '/bigdata_app/img/weather/' + item.wea_night + '.png'"
|
|
|
alt=""
|
|
|
/>
|
|
|
- <!-- <img
|
|
|
- class="weather-img"
|
|
|
- :src="$imageURL + '/bigdata_app/img/weather/' + '晴.png'"
|
|
|
- alt=""
|
|
|
- /> -->
|
|
|
+
|
|
|
<div class="weather">{{ item.wea_night }}</div>
|
|
|
<div class="wind">
|
|
|
<i class="yficonfont icon-fengli1"></i>
|
|
|
@@ -153,11 +148,7 @@ export default {
|
|
|
humidity: '--',
|
|
|
win_speed: '--'
|
|
|
},
|
|
|
- forecastData: [
|
|
|
- { low: 1, name: '张三', high: 12 },
|
|
|
- { low: 3, name: '张三', high: 18 },
|
|
|
- { low: 2, name: '张三', high: 14 }
|
|
|
- ],
|
|
|
+ forecastData: [],
|
|
|
chartWidth: 396, // SVG 画布宽度
|
|
|
chartHeight: 60 // SVG 画布高度
|
|
|
// minTemp: 2, // 温度范围最小值(用于坐标映射)
|
|
|
@@ -166,6 +157,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
weatherStyle(level) {
|
|
|
+ console.log(level, '---')
|
|
|
+ if (!level) {
|
|
|
+ return {}
|
|
|
+ }
|
|
|
let style = {}
|
|
|
if (level.includes('优')) {
|
|
|
style = {
|
|
|
@@ -362,9 +357,10 @@ export default {
|
|
|
return y
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ created() {
|
|
|
this.getList()
|
|
|
- }
|
|
|
+ },
|
|
|
+ mounted() {}
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang="less">
|