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

57 lines
1.8 KiB
JavaScript

(function(vc,vm){
vc.extends({
data:{
deleteApplyWithholdGoldInfo:{
}
},
_initMethod:function(){
},
_initEvent:function(){
vc.on('deleteApplyWithholdGold','openDeleteApplyWithholdGoldModal',function(_params){
$that.deleteApplyWithholdGoldInfo = _params;
$('#deleteApplyWithholdGoldModel').modal('show');
});
},
methods:{
deleteApplyWithholdGold:function(){
$that.deleteApplyWithholdGoldInfo.communityId=vc.getCurrentCommunity().communityId;
let _data = $that.deleteApplyWithholdGoldInfo;
_data.mallApiCode = 'deleteGoldWithHoldBmoImpl';
vc.http.apiPost(
'/mall.postMallOpenApi',
JSON.stringify(_data),
{
emulateJSON:true
},
function(json,res){
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _json = JSON.parse(json);
if (_json.code == 0) {
//关闭model
$('#deleteApplyWithholdGoldModel').modal('hide');
vc.emit('applyWithholdGold', 'notify',{});
return ;
}
vc.toast(_json.msg);
},
function(errInfo,error){
console.log('请求失败处理');
vc.toast(json);
});
},
closeDeleteApplyWithholdGoldModel:function(){
$('#deleteApplyWithholdGoldModel').modal('hide');
}
}
});
})(window.vc,window.$that);