Files
2025-12-09 20:22:03 +08:00

47 lines
1.8 KiB
JavaScript

(function (vc, vm) {
vc.extends({
data: {
refundDepositFeeInfo: {}
},
_initMethod: function () {
},
_initEvent: function () {
vc.on('refundDepositFee', 'openRefundDepositFeeModal', function (_params) {
$that.refundDepositFeeInfo = _params;
$('#refundDepositFeeModel').modal('show');
});
},
methods: {
refundDepositFee: function () {
$that.refundDepositFeeInfo.communityId = vc.getCurrentCommunity().communityId;
vc.http.apiPost(
'/fee.refundFeeDeposit',
JSON.stringify($that.refundDepositFeeInfo), {
emulateJSON: true
},
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _json = JSON.parse(json);
if (_json.code == 0) {
//关闭model
$('#refundDepositFeeModel').modal('hide');
vc.emit('payFeeDeposit', 'refresh', {});
vc.emit('payFeeUserAccount', 'refreshAndChoose', {});
vc.toast("退押金成功");
return;
} else {
vc.toast(_json.msg);
}
},
function (errInfo, error) {
console.log('请求失败处理');
vc.toast(errInfo);
});
},
closeRefundDepositFeeModel: function () {
$('#refundDepositFeeModel').modal('hide');
}
}
});
})(window.vc, window.$that);