|
@@ -26,11 +26,11 @@
|
|
|
}
|
|
|
};
|
|
|
if (d.payFlag == "0") {
|
|
|
- hzAPI.sendData(window.apiUrl+"?c=ReqHis&a=returnPay", g.extend(d, {
|
|
|
+ hzAPI.sendData(window.apiUrl + "?c=ReqHis&a=returnPay", g.extend(d, {
|
|
|
patientId: JSON.parse(g("ul.card a").attr("data")).patientId
|
|
|
}), false, ["退费失败", "退费成功"], null, null, i)
|
|
|
} else {
|
|
|
- hzAPI.sendData(window.apiUrl+"?c=ReqHis&a=cancelOrder", d, false, ["取消挂号失败", "取消挂号成功"], null, null, i)
|
|
|
+ hzAPI.sendData(window.apiUrl + "?c=ReqHis&a=cancelOrder", d, false, ["取消挂号失败", "取消挂号成功"], null, null, i)
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -41,13 +41,20 @@
|
|
|
if (h.isCard) {
|
|
|
var i = {
|
|
|
doing: function () {
|
|
|
+ //进行发短信
|
|
|
+ var s = {
|
|
|
+ smsType: "appointPay",
|
|
|
+ orderId: d.orderId
|
|
|
+ };
|
|
|
+ hzAPI.sendData(window.apiUrl + "?c=Other&a=sendSmsInfo", s, false, null, null, null, null);
|
|
|
+
|
|
|
setTimeout(function () {
|
|
|
- f.doing()
|
|
|
+ f.doing();
|
|
|
},
|
|
|
2000)
|
|
|
}
|
|
|
};
|
|
|
- hzAPI.sendData(window.apiUrl+"?c=ReqHis&a=payOrder", g.extend(d, {
|
|
|
+ hzAPI.sendData(window.apiUrl + "?c=ReqHis&a=payOrder", g.extend(d, {
|
|
|
payMode: 1,
|
|
|
payCardNum: JSON.parse(g("ul.card a").attr("data")).cardId,
|
|
|
patientId: JSON.parse(g("ul.card a").attr("data")).patientId
|
|
@@ -57,7 +64,7 @@
|
|
|
});
|
|
|
var b = {
|
|
|
doing: function () {
|
|
|
- hzAPI.scroll(window.apiUrl+"?c=Index&a=historyListForPay", h, "#list ul.historyList", 1, false);
|
|
|
+ hzAPI.scroll(window.apiUrl + "?c=Index&a=historyListForPay", h, "#list ul.historyList", 1, false);
|
|
|
g("ul.historyList li a").on("tap",
|
|
|
function () {
|
|
|
d = JSON.parse(g(this).attr("data"));
|
|
@@ -98,7 +105,7 @@
|
|
|
}
|
|
|
};
|
|
|
var h = {
|
|
|
- isCard: true,
|
|
|
+ isCard: true,
|
|
|
rowed: 0,
|
|
|
pageSize: 5
|
|
|
};
|
|
@@ -107,10 +114,10 @@
|
|
|
var j = JSON.parse(g("ul.card a").attr("data"));
|
|
|
var i = {
|
|
|
customerFamilyId: g("#familyList").val(),
|
|
|
- hospitalId: g("#hospitalId").val()
|
|
|
+ hospitalId: g("#hospitalId").val()
|
|
|
};
|
|
|
g.extend(h, i);
|
|
|
- hzAPI.getData(window.apiUrl+"?c=Index&a=historyListForPay", h, "#list ul.historyList", 3, true, null, true, "无支付记录", b)
|
|
|
+ hzAPI.getData(window.apiUrl + "?c=Index&a=historyListForPay", h, "#list ul.historyList", 3, true, null, true, "无支付记录", b)
|
|
|
}
|
|
|
};
|
|
|
var f = {
|
|
@@ -125,7 +132,7 @@
|
|
|
hospitalName: g("#hospitalId").text().trim()
|
|
|
};
|
|
|
g.extend(f.parameters, i);
|
|
|
- hzAPI.getData(window.apiUrl+"?c=ReqHis&a=cardMoney", f.parameters, "#list ul.card", 2, true, null, true, "未办理诊疗卡", c, f.err)
|
|
|
+ hzAPI.getData(window.apiUrl + "?c=ReqHis&a=cardMoney", f.parameters, "#list ul.card", 2, true, null, true, "未办理诊疗卡", c, f.err)
|
|
|
},
|
|
|
err: {
|
|
|
doing: function () {
|
|
@@ -139,7 +146,7 @@
|
|
|
customerFamilyId: g("#familyList").val(),
|
|
|
hospitalIdCk: a.hospitalIdCk
|
|
|
};
|
|
|
- hzAPI.getData(window.apiUrl+"?c=Index&a=customerCardHospitalList", i, "#hospitalId", 1, true, null, true, "未绑定或未办理诊疗卡", f, e.err)
|
|
|
+ hzAPI.getData(window.apiUrl + "?c=Index&a=customerCardHospitalList", i, "#hospitalId", 1, true, null, true, "未绑定或未办理诊疗卡", f, e.err)
|
|
|
},
|
|
|
err: {
|
|
|
doing: function () {
|
|
@@ -151,7 +158,7 @@
|
|
|
}
|
|
|
},
|
|
|
init: function () {
|
|
|
- hzAPI.getData(window.apiUrl+"?c=Index&a=customerFamilyList", a, "#familyList", 0, true, null, true, null, e)
|
|
|
+ hzAPI.getData(window.apiUrl + "?c=Index&a=customerFamilyList", a, "#familyList", 0, true, null, true, null, e)
|
|
|
}
|
|
|
};
|
|
|
e.init();
|