personal-dialog-form.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. (function() {
  2. var personalDialogForm = {
  3. // 修改密码
  4. selectIndustry: function(industryid, directionid) {
  5. top.layer.open({
  6. type: 2,
  7. title: '<h3 class="mt15 bgc-f9f9f9">请选择行业<h3>',
  8. shadeClose: false,
  9. closeBtn: true, //显示关闭按钮
  10. area: ['620px', '455px'],
  11. content: "../../mine/html/select-industry.html?industryid=" + industryid + "&directionid=" + directionid, //iframe的url
  12. });
  13. },
  14. // 取消预约
  15. cancelAppointment: function(id) {
  16. return new Promise(function(resolve, reject) {
  17. var layerid = top.layer.confirm('取消须知:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', {
  18. title: '是否确认取消预约?',
  19. btn: ['确定', '取消'] //按钮
  20. }, function() {
  21. // agentAPI.delCompany({
  22. // id: companyId
  23. // }).then(function(res) {
  24. // if(res.successMsg == "find success") {
  25. // top.toastr.success("删除成功!")
  26. // } else {
  27. // top.toastr.error("删除失败!")
  28. // }
  29. // resolve(layerid)
  30. // })
  31. resolve(layerid)
  32. }, function() {
  33. });
  34. })
  35. },
  36. }
  37. window.personalDialogForm = personalDialogForm
  38. })()