JS调用自定义弹窗【bootstrap】

function commonConfirm(msg,call){
    showConfirmBox("消息提示",msg,call);
}

$(document).on('click','.jq_settle',function(){
        var orderId = $(this).attr('data-id');
        if(commonConfirm("确认结算订单?",function(){
            $.post(base + "/order/orders/" + 'settle.json',{id:orderId},function(data){
                if(data.success){
                    getNewspage(0);
                    initPagination(getNewspage);
                }
                commonAlert(data.msg,3000);
            });
        }));
    });

 

posted @ 2016-01-18 15:28  知兮  阅读(587)  评论(0编辑  收藏  举报