优化 我d的小区

This commit is contained in:
java110 2022-08-06 09:39:26 +08:00
parent 9dd9829afb
commit b3b51a1cfa

View File

@ -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';
}
}