/** 入驻小区 **/ (function (vc) { var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 20; vc.extends({ data: { payFeeDepositInfo: { fees: [], payerObjId: '', payerObjType:'', ownerId: '', communityId:'', } }, _initMethod: function () { $that.payFeeDepositInfo.communityId = vc.getCurrentCommunity().communityId; }, _initEvent: function () { vc.on('payFeeDeposit', 'computeFeeDeposit', function (_param) { vc.copyObject(_param, $that.payFeeDepositInfo); $that._listFeeDeposit(DEFAULT_PAGE, DEFAULT_ROWS); }); vc.on('payFeeDeposit', 'refresh', function () { $that._listFeeDeposit(DEFAULT_PAGE, DEFAULT_ROWS); }); }, methods: { _queryPayFeeDeposit: function () { $that._listFeeDeposit(DEFAULT_PAGE, DEFAULT_ROWS); }, _listFeeDeposit: function (_page, _rows) { let param = { params: { page: DEFAULT_PAGE, row: DEFAULT_ROWS, payerObjId: $that.payFeeDepositInfo.payerObjId, ownerId: $that.payFeeDepositInfo.ownerId, communityId: vc.getCurrentCommunity().communityId, state:'1400', } }; //发送get请求 vc.http.apiGet('/fee.queryFeeDeposit', param, function (json, res) { let _json = JSON.parse(json); if(_json.code != 0){ return; } $that.payFeeDepositInfo.fees = _json.data; }, function (errInfo, error) { console.log('请求失败处理'); } ); }, _openRefundDeposit:function(_fee){ vc.emit('refundDepositFee', 'openRefundDepositFeeModal',_fee); } } }); })(window.vc);