The order of WeChat Mini Programs function execution

I customize two functions in WeChat Mini Programs, one is to get the location, the other is to get the weather,
in Page

Page({
    onLoad:function(){
        this.getLocalCity();
        this.getWeather();
    }
})

is called on onLoad, but no matter how I write the, getWeather () function, it always executes first. Why?

description:
getWeather uses wx.request () API,getLocalCity is followed by wx.getLoaction (), followed by Gaode Mini Program SDK.
ask for information and guide ~
Jan.21,2022

return a Promise and then chain the call.

    getLocalCity() {
        return new Promise(resolve => {
            wx.request({
                url: "",
                success: res => {
                    // ...
                    return resolve();
                },
            })
        });
    },
    getWeather(){
      // ...  
    },
    onLoad() {
        this.getLocalCity().then(result => {
            this.getWeather();
        });
    }
Menu