favorite.min.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. (function (e) {
  2. config.init();
  3. var b = {
  4. idx: [1, 6, 7, 8],
  5. // count: 4,
  6. count: 2,
  7. current: 6};
  8. var d = {};
  9. icoNavFx.doing(e("#nav_bottom"), b);
  10. TabBlock.init();
  11. var c = {
  12. doing: function () {
  13. hzAPI.getData(window.apiUrl+"?c=Index&a=favoritedHospitalList", d, "#hospital ul", 0, true, null, null, "未关注医院");
  14. hzAPI.getData(window.apiUrl+"?c=Index&a=favoritedDoctorList", d, "#doctor ul", 1, true, null, null, "未关注医生")
  15. }
  16. };
  17. window.reload = c;
  18. c.doing();
  19. var a = Fx.getUrlParam("idx");
  20. if (!a) {
  21. a = 1
  22. }
  23. TabBlock.switchTab(e(".tabBlock-tab").eq(a));
  24. e(".icon-circle-minus").on("tap", function () {
  25. var h = ["favorite_q_hospital_list_del.html", "favorite_q_doctor_list_del.html"], g = ["取消已关注医院", "取消已关注医生"],
  26. f = e(".tabBlock-tab.is-active").index();
  27. icoNav.popWinLayer(h[f], g[f], 0)
  28. });
  29. e(".icon-addRound").on("tap", function () {
  30. var h = ["favorite_q_hospital_list_update.html", "favorite_q_doctor_hospital_list.html"],
  31. g = ["添加关注医院", "添加关注医生"], f = e(".tabBlock-tab.is-active").index();
  32. icoNav.popWinLayer(h[f], g[f], 0)
  33. })
  34. })(Zepto);