弹窗一:
样式如下:
HTML代码://弹出窗
//遮罩层
$('.dialog .content').text(text);
$('.dialog, .mark').removeClass('hide');
}tipDialog("1111");$(".sure").click(function(){
var type= $(this).attr('type');
if(type==='bind'){
var link = '/home/employee/employeeBindCompany';
}else{
var link = '/home/employee/employeeUpdateCompany';
}
$.ajax({
type: 'POST',
url: url + link,
dataType: 'json',
contentType: "application/json",//;charset=utf-8
data: JSON.stringify({
"phone": phone,
"companyId": parseInt(companyId,10)
}),
success: function (res) {
window.location.href="success.html"
}
});
});
$('.cancel').click(function(){
$('.dialog, .mark').addClass('hide');
});