xuyonghao
2025-03-12 8758dde802bcf136a64b01da5a3c630056bae24a
注释天气部分
3个文件已修改
15 ■■■■■ 已修改文件
pages/index/index.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/parking/left-road.png 补丁 | 查看 | 原始文档 | blame | 历史
static/parking/right-road.png 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/index.vue
@@ -8,7 +8,7 @@
    </view>
    <view class="content">
        <view class="header_bg">
            <div class="header-info">
            <!--<div class="header-info">
                <div class="left">
                    <div class="weather-info">
                        <image :src="`../../static/weather-icon/${curWeather.cond_code}.png`" mode="widthFix"></image>
@@ -24,6 +24,7 @@
                    <div class="cube" v-for="(i,index) in limitNum" :key="index">{{i}}</div>
                </div>
            </div>
            -->
        </view>
        <view class="body">
            <div class="card remain">
@@ -131,9 +132,6 @@
            });
            return true
        },
        onReady(){
        },
        onLoad() {
                  let {
                    statusBarHeight,
@@ -141,7 +139,6 @@
                  } = uni.getSystemInfoSync()
                  this.statusBarHeight = statusBarHeight
                  this.navHeight = statusBarHeight + (system.indexOf('iOS') > -1 ? 40 : 44)
                  console.log(this.navHeight, "导航栏高度");
        },
        onPullDownRefresh(){
            console.log("refresh");
@@ -150,19 +147,19 @@
        
        methods: {
            init(){
                this.getWeatherInfo();
                // this.getWeatherInfo();
                this.getRemainNum();
                this.getLimitedNum();
                uni.stopPullDownRefresh();
            },
            async getWeatherInfo(){
            /*async getWeatherInfo(){
                let res = await this.$api.syncRequest({
                    url:'https://free-api.heweather.net/s6/weather/now?location=beijing&key=618660daa2144e1094ce8d2ef90516d4',
                    url:'https://free-api.heweather.net',
                    loading: true
                });
                this.curWeather = res.data.HeWeather6[0].now;
            },
            },*/
            async getRemainNum(){
                let res = await this.$api.syncRequest({
                    url: '/basic/api/car/statistic',
static/parking/left-road.png

static/parking/right-road.png