From b3b51a1cfaadf1c33fde775bf93f85caf015bc26 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sat, 6 Aug 2022 09:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=88=91d=E7=9A=84?= =?UTF-8?q?=E5=B0=8F=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/enterCommunity/enterCommunity.js | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/public/pages/common/enterCommunity/enterCommunity.js b/public/pages/common/enterCommunity/enterCommunity.js index 91f8f25c4..b1b98f6f9 100755 --- a/public/pages/common/enterCommunity/enterCommunity.js +++ b/public/pages/common/enterCommunity/enterCommunity.js @@ -1,7 +1,7 @@ /** 入驻小区 **/ -(function (vc) { +(function(vc) { vc.extends({ data: { communityInfo: { @@ -9,21 +9,22 @@ showPage: 'myCommunity' } }, - _initMethod: function () { + _initMethod: function() { vc.component.listMyCommunity(); }, - _initEvent: function () { - vc.on('enterCommunity', 'listMyCommunity', function (_param) { + _initEvent: function() { + vc.on('enterCommunity', 'listMyCommunity', function(_param) { vc.component.listMyCommunity(); }); }, methods: { - listMyCommunity: function () { + listMyCommunity: function() { var param = { - params: { - msg: this.message, - _sb: '123', - communityId: vc.getCurrentCommunity().communityId + params: { + msg: this.message, + _sb: '123', + communityId: vc.getCurrentCommunity().communityId + } } //发送get请求 vc.http.apiGet('/communitys/queryStoreCommunitys', @@ -31,18 +32,18 @@ function(json, res) { vc.component.communityInfo.enterCommunityInfo = JSON.parse(json).data; }, - function (errInfo, error) { + function(errInfo, error) { console.log('请求失败处理'); } ); }, - _openEnterCommunityModal: function () { + _openEnterCommunityModal: function() { vc.emit('storeEnterCommunity', 'openStoreEnterCommunity', {}); }, - _openExitCommunityModel: function (_community) { + _openExitCommunityModel: function(_community) { vc.emit('storeExitCommunity', 'openStoreExitCommunityModal', _community); }, - _openUpdateCommunityModel: function (_community) { + _openUpdateCommunityModel: function(_community) { vc.emit('editCommunityArea', 'openEditCommunityModal', _community); }, _showCommunityStatus(_statusCd) { @@ -55,10 +56,10 @@ } return "未知"; }, - _showHcUse: function () { + _showHcUse: function() { $that.communityInfo.showPage = "hcUse" }, - _goBack: function () { + _goBack: function() { $that.communityInfo.showPage = 'myCommunity'; } }