Asynchronous processing: the data attribute change page does not take effect in uniapp and records of common problems

        Briefly describe the scene: click the button, call the server to check whether the user information is complete, if not, jump to the specified page to guide the improvement of user information; if the user information is complete, call the server interface to obtain product information and display it. The page initializes user information Whether to complete the identification: userInfoIsFull, the default is false. Call the server to check whether the user information is complete. If the information is complete in the logic, set it userInfoIsFullto true. js related pseudo code is as follows:

export default {
   
    
    
data() {
   
    
    
		return {
   
    
    
				userInfoIsFull: false
			}
		},
methods:{
   
    
    
	// 点击按钮触发操作,打开商品页面
	openGoods</

Je suppose que tu aimes

Origine blog.csdn.net/weixin_43401380/article/details/130328200
conseillé
Classement