scglIndex.js 785 B

12345678910111213141516171819202122232425262728293031
  1. $(function () {
  2. /**
  3. * 初始化滚动条
  4. * */
  5. var iscroll;
  6. iscroll = new IScroll(".scglIscroll",{
  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. //点击菜单进入相应页面
  17. $(".xxul > li").on("tap", function() {
  18. var type = $(this).data("for");
  19. if (type == "Zztt") { //目前只做种猪淘汰
  20. if (type != "" && type != undefined) {
  21. haifm.loadMobilePage("haifm", "hvSjlr" + type + "Index.htm?mcid=" + $("#mcid").val());
  22. }
  23. }
  24. });
  25. });
  26. /**
  27. * 返回
  28. */
  29. function backUrl() {
  30. haifm.loadMobilePage("haifm", "haifmvMain.htm?uuid=" + $("#uuid").val() + "&mcid=" + $("#mcid").val() + "&qyid=" + $("#qyid").val() +"&toList=2");
  31. }