how to use chained calls to promise when encountering asynchronous code across files?
I now write WeChat Mini Programs, calling wx.login,wx.getUserInfo in app.js and returning token and uid interfaces from my server.
but in a subpage, you need to get the uid returned in app.js before you can request the request of the current page again. Because it is cross-file, how to write this string of chained calls to promise?