doctorCalendar.min.js 1.1 KB

123456789101112131415161718192021222324252627282930
  1. (function (d) {
  2. // config.init();
  3. d('#cancelFlag').on('tap',function () {
  4. var e = {
  5. orderId: d('#btn-cancle').attr('name')
  6. }
  7. hzAPI.sendData(window.apiUrl+"?c=ReqHis&a=cancelOrder", e, false, ["取消挂号失败", "取消挂号成功"], null, null, i);
  8. });
  9. var a = {
  10. idx: [1, 6, 7, 8],
  11. // count: 4,
  12. count: 2,
  13. current: 8
  14. };
  15. icoNavFx.doing(d("#nav_bottom"), a);
  16. var c = {rowed: 0, pageSize: 5};
  17. var b = {
  18. doing: function () {
  19. d.extend(c, {customerFamilyId: JSON.parse(d("#familyList .selected a").attr("data")).id});
  20. c.rowed = 0;
  21. hzAPI.getData(window.apiUrl + "?c=Index&a=historyList", c, "#list ul", 1, true, null, null, "无就诊记录", b.scroll)
  22. }, scroll: {
  23. doing: function () {
  24. hzAPI.scroll(window.apiUrl + "?c=Index&a=historyList", c, "#list ul", 1, false)
  25. }
  26. }
  27. };
  28. window.reload = b;
  29. hzAPI.getData(window.apiUrl + "?c=Index&a=customerFamilyList", {idCk: Fx.getUrlParam("id")}, "#familyList", 0, true, 4, true)
  30. })(Zepto);