guideList.min.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. (function (d) {
  2. config.init();
  3. var a = {
  4. idx: [1, 6, 7, 8],
  5. // count: 4,
  6. count: 2,
  7. current: 8
  8. };
  9. icoNavFx.doing(d("#nav_bottom"), a);
  10. var c = {
  11. hospitalId: "1000"
  12. };
  13. var b = {
  14. doing: function () {
  15. d.extend(c, {
  16. customerFamilyId: JSON.parse(d("#familyList .selected a").attr("data")).id
  17. });
  18. hzAPI.getDataNoTemp(window.apiUrl+"?c=Other&a=getGuideList", c, e)
  19. }
  20. };
  21. var e = {
  22. doing: function (f) {
  23. if (f != null) {
  24. var data = {
  25. list: f
  26. };
  27. $("#list").html(template('jslist', data));
  28. $("#bcTarget").empty().barcode(d("#bcTarget").attr("data"), "code128", { barWidth: 1, barHeight: 30, showHRI: false });
  29. } else {
  30. $("#list").html(template('jslist', ""));
  31. }
  32. }
  33. };
  34. window.reload = b;
  35. hzAPI.getData(window.apiUrl+"?c=Index&a=customerFamilyList", {
  36. idCk: Fx.getUrlParam("id")
  37. },
  38. "#familyList", 0, true, 4, true)
  39. })(Zepto);