(function() {
var personalDialogForm = {
// 修改密码
selectIndustry: function(industryid, directionid) {
top.layer.open({
type: 2,
title: '
请选择行业',
shadeClose: false,
closeBtn: true, //显示关闭按钮
area: ['620px', '455px'],
content: "../../mine/html/select-industry.html?industryid=" + industryid + "&directionid=" + directionid, //iframe的url
});
},
// 取消预约
cancelAppointment: function(id) {
return new Promise(function(resolve, reject) {
var layerid = top.layer.confirm('取消须知:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', {
title: '是否确认取消预约?',
btn: ['确定', '取消'] //按钮
}, function() {
// agentAPI.delCompany({
// id: companyId
// }).then(function(res) {
// if(res.successMsg == "find success") {
// top.toastr.success("删除成功!")
// } else {
// top.toastr.error("删除失败!")
// }
// resolve(layerid)
// })
resolve(layerid)
}, function() {
});
})
},
}
window.personalDialogForm = personalDialogForm
})()