From 4c9ede33386ba855e9b7c439cd3595c1a3ef540c Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Thu, 14 Oct 2021 22:32:20 +0800 Subject: [PATCH] no message --- pages/mall/fragment/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/mall/fragment/index.js b/pages/mall/fragment/index.js index bccea5c..596d190 100644 --- a/pages/mall/fragment/index.js +++ b/pages/mall/fragment/index.js @@ -85,8 +85,9 @@ Component({ return } console.log('mall>>fragment>>onEvent', message) - if(message.what == 888){ + if(message.what == 888 && app.globalData.userInfo){ this.initLogin() + this.fetchAgentList() } else if(message.what == 444){ form.cityId = app.nowCity.cityCode this.setData({ cityName: app.nowCity.cityName })