personal-dialog-form.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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('<div><h3 class="c-t-center mt10">是否确认取消预约?</h3><div class="quxiaobox">取消须知:<div class="c-909090">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div></div></div>', {
  18. title: '取消预约',
  19. area: ['500px', '370px'],
  20. btn: ['确定', '取消'] //按钮
  21. }, function() {
  22. // agentAPI.delCompany({
  23. // id: companyId
  24. // }).then(function(res) {
  25. // if(res.successMsg == "find success") {
  26. // top.toastr.success("删除成功!")
  27. // } else {
  28. // top.toastr.error("删除失败!")
  29. // }
  30. // resolve(layerid)
  31. // })
  32. resolve(layerid)
  33. }, function() {
  34. });
  35. })
  36. },
  37. }
  38. window.personalDialogForm = personalDialogForm
  39. })()