You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.1 KiB

  1. var base_path = "/gys-xm/";
  2. var domain_path = "zhizhuchuxing.com"
  3. var cs1_path = "http://cs1." + domain_path;
  4. var system_path = cs1_path + "/menu/menu";
  5. var cookie_path = "http://cs." + domain_path + "/";
  6. $(document).ready(function () {
  7. document.domain = domain_path;
  8. refreshPage();
  9. });
  10. function open_new_path(index) {
  11. var go_path = $(index).attr("go_path");
  12. $.cookie('user_path', "2", {path: "/", domain: domain_path});
  13. $.cookie("path_url", cookie_path + go_path, {domain: domain_path, path: "/"});
  14. window.open(system_path);
  15. }
  16. function open_order_detail_path(index) {
  17. var go_path = $(index).attr("go_path");
  18. $.cookie('user_path', "2", {path: "/", domain: domain_path});
  19. $.cookie("path_url", cs1_path + "/" + go_path, {domain: domain_path, path: "/"});
  20. window.open(system_path);
  21. }
  22. function refreshPage() {
  23. var index = location.href;
  24. $.cookie("path_url", index, {domain: domain_path, path: "/"});
  25. $('body').attr("path", index);
  26. }
  27. $(document).click(function(e){
  28. e.stopPropagation();
  29. if($(".cut_system",parent.document).is(':visible')){
  30. $(".cut_system",parent.document).slideToggle(200);
  31. }else{
  32. return;
  33. }
  34. });