From 7b2d070ebd6ab2a6526d3c08e3a42f31275ef43c Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 28 Jan 2021 18:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/vcCore/vcFramework.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/vcCore/vcFramework.js b/public/vcCore/vcFramework.js index 3c45f7aa4..ab4e761ca 100644 --- a/public/vcCore/vcFramework.js +++ b/public/vcCore/vcFramework.js @@ -1310,7 +1310,13 @@ //获取当前小区信息 // @return {"communityId":"123213","name":"测试小区"} vcFramework.getCurrentCommunity = function () { - return JSON.parse(window.localStorage.getItem('hc_currentCommunityInfo')); + let _community = JSON.parse(window.localStorage.getItem('hc_currentCommunityInfo')); + + // if(_community == null || _community == undefined){ + // vcFramework.toast('您还没有入驻小区请先入住小区'); + // } + + return _community; }; //保存当前小区信息 _communityInfos : [{"communityId":"123213","name":"测试小区"}]