getApp()页面跳转后获取不到值，是什么问题？getApp() can't get the value after the page jumps, what's the problem?
Uni app H5 is shown in the figure: define a global variable appdata, whose value is getapp(), and get the openid of the currently logged in user through appdata in getinfoby() method. Problem: there is no problem getting openid after the page is loaded. The problem occurs when calling wechat payment. After entering the payment amount, the payment operation is successfully completed. After the payment operation is completed, the route will jump to the applet page. At this time, call the getinfoby () method, where appdata gets openid and cannot get the value (appdata seems to be destroyed). Testing QR code test steps: wechat scanning code "login" personal center "recharge amount 0.01" recharge PS: there is a vconsole button in the lower right corner of the applet. After clicking, the console will pop up. The console can be debugged and checked PS: many methods have been tried, but they can't be done. Ask the boss to solve his doubts.