daDetails.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. $(function () {
  2. /**
  3. * 初始化滚动条
  4. * */
  5. var iscroll;
  6. iscroll = new IScroll(".detailIscroll",{
  7. scrollbars: true,
  8. fadeScrollbars:true,
  9. scrollbars: 'custom',
  10. shrinkScrollbars:'clip',
  11. click:true
  12. });
  13. setTimeout(function(){
  14. iscroll.refresh();
  15. }, 600);
  16. $(".xian:last-of-type").remove();
  17. /**
  18. * 点击按钮刷新高度
  19. * */
  20. $(".mui-navigate-right").on("tap",function(){
  21. setTimeout(function(){
  22. iscroll.refresh();
  23. }, 100);
  24. });
  25. insertZzwd();
  26. });
  27. //返回事件
  28. function backUrl() {
  29. if ($("#fromtt").val() != 'zztt') {//来自档案
  30. haifm.loadMobilePage("haifm", "hvSjlrMzDaIndex.htm?mcid=" + $("#mcid").val() + "&ztsl=" + $("#ztsl").val() + "&cxeph=" + $("#cxeph").val());
  31. } else {//来自淘汰
  32. haifm.loadMobilePage("haifm", "hvSjlrZzttIndex.htm?mcid=" + $("#mcid").val());
  33. }
  34. }
  35. function edit() {
  36. haifm.loadMobilePage("haifm", "hvSjlrMzdaAdd.htm?mcid=" + $("#mcid").val() + "&dweb=" + $("#dweb").val() + "&ebh=" + $("#ebh").val()+ "&edit=" + "edit");
  37. }
  38. function insertZzwd() {
  39. if ($("#dweb").val() != "") {
  40. jQuery.ajax({
  41. type : "get",
  42. url : "getHaifmvZzwdTjt.htm",
  43. data : {"dweb" : $("#dweb").val()},
  44. dataType : "json",
  45. async : true,
  46. success : function(data) {
  47. getHighchartTjt(data, "container");
  48. }
  49. });
  50. }
  51. }