function apply(id,type,method){
    var query=new Object();
    query.id=id;//label_id
    query.type=type;//0加入，3退出
    query.method=method;//1已有加入过
    $.ajax({
        url:APP + "Shop/Promot/apply_contract",
        data:query,
        type:"post",
        success:function(data){
            if(data.status==1) {
                window.location.reload();
            }else{
                $.showErr(data.msg,0,'hc');
            }
        }
    })
}