(function(vc,vm){ vc.extends({ data:{ deleteCommunityPaymentInfo:{ } }, _initMethod:function(){ }, _initEvent:function(){ vc.on('deleteCommunityPayment','openDeleteCommunityPaymentModal',function(_params){ $that.deleteCommunityPaymentInfo = _params; $('#deleteCommunityPaymentModel').modal('show'); }); }, methods:{ deleteCommunityPayment:function(){ vc.http.apiPost( '/payment.deleteAdminPaymentPool', JSON.stringify($that.deleteCommunityPaymentInfo), { emulateJSON:true }, function(json,res){ //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); let _json = JSON.parse(json); if (_json.code == 0) { //关闭model $('#deleteCommunityPaymentModel').modal('hide'); vc.emit('communityPayment', 'listCommunityPayment', {}); return ; } vc.toast(_json.msg); }, function(errInfo,error){ console.log('请求失败处理'); vc.toast(json); }); }, closeDeleteCommunityPaymentModel:function(){ $('#deleteCommunityPaymentModel').modal('hide'); } } }); })(window.vc,window.$that);