123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- (function() {
- var personalDialogForm = {
- // 修改密码
- selectIndustry: function(industryid, directionid) {
- top.layer.open({
- type: 2,
- title: '<h3 class="mt15 bgc-f9f9f9">请选择行业<h3>',
- 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('<div><h3 class="c-t-center mt10">是否确认取消预约?</h3><div class="quxiaobox">取消须知:<div class="c-909090">过多的退号可能导致您在一段时间内无法预约,我们对预约和退号频次达到一定数量的帐户将采取限制措施:每个帐号每个月下单满10笔时且退号满5笔时限制该帐户当月预约权限.</div></div></div>', {
- title: '取消预约',
- area: ['500px', '370px'],
- btn: ['确定', '取消'] //按钮
- }, function() {
- var oauthInfo = JSON.parse(sessionStorage.getItem("oauthInfo"));
- appointmentAPI.cancelOrder({
- orderId: id,
- thirdPartyUserId: oauthInfo.id
- }).then(function(res) {
- if(res.Code == "10000") {
- jiuzhenAPI.cancelOrder({
- id: id,
- state: 99
- }).then(function(res) {
- alert("取消成功!")
- })
- } else {
- alert("取消失败!")
- }
- resolve(layerid)
- })
- resolve(layerid)
- }, function() {
- });
- })
- },
- }
- window.personalDialogForm = personalDialogForm
- })()
|