diff --git a/Application/Admin/View/MarketPercentage/showbonuslist.html b/Application/Admin/View/MarketPercentage/showbonuslist.html index 741305c5d..d0c1d63e1 100644 --- a/Application/Admin/View/MarketPercentage/showbonuslist.html +++ b/Application/Admin/View/MarketPercentage/showbonuslist.html @@ -323,6 +323,31 @@ pickerPosition:'bottom-left' }) + $('.recaculate').click(function(){ + var url = $(this).attr('url'); + layer.confirm('是否确认重算提成!', { + title:'重算提成?', + icon:0, + btn: ['重算','取消'] //按钮 + }, function(){ + $.ajax({ + type: "POST", + url: url, + dataType: 'json', + async: false, + success:function(data){ + layer.msg("重新计算需要时间,请等待5分钟后再查看"); + setTimeout(function(){ + window.location.reload(); + },1500); + }, + }); + }, function(){ + layer.close(); + }); + + }); + })