Files
PropertyDeployment/resources/Web/MicroCommunityWeb/html/components/scm/deleteApplyWithholdIntegral/deleteApplyWithholdIntegral.js
2025-12-09 20:22:03 +08:00

47 lines
1.9 KiB
JavaScript

(function (vc, vm) {
vc.extends({
data: {
deleteApplyWithholdIntegralInfo: {}
},
_initMethod: function () {
},
_initEvent: function () {
vc.on('deleteApplyWithholdIntegral', 'openDeleteApplyWithholdIntegralModal', function (_params) {
$that.deleteApplyWithholdIntegralInfo = _params;
$('#deleteApplyWithholdIntegralModel').modal('show');
});
},
methods: {
deleteApplyWithholdIntegral: function () {
$that.deleteApplyWithholdIntegralInfo.communityId = vc.getCurrentCommunity().communityId;
$that.deleteApplyWithholdIntegralInfo.mallApiCode = 'deleteIntegralWithdrawalBmoImpl';
vc.http.apiPost(
'/mall.postMallOpenApi',
JSON.stringify($that.deleteApplyWithholdIntegralInfo),
{
emulateJSON: true
},
function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status == 200) {
//关闭model
$('#deleteApplyWithholdIntegralModel').modal('hide');
vc.emit('applyWithholdIntegral', 'notify', {});
vc.toast("删除成功");
return;
}
},
function (errInfo, error) {
console.log('请求失败处理');
vc.toast(json);
});
},
closeDeleteApplyWithholdIntegralModel: function () {
$('#deleteApplyWithholdIntegralModel').modal('hide');
}
}
});
})(window.vc, window.$that);