an_" + type_id).removeClass("color_666"); $(".provinfo_span_" + prov).addClass ("screen-span-active"); $(".provinfo_span_" + prov).removeClass("color_666"); $(".hospinfo_span_" + hosp_id).addClass ("screen-span-active"); $(".hospinfo_span_" + hosp_id).removeClass("color_666"); $(".docscreen-span").click (function(){ var mark = $(this).data("mark");//获取点击类型的分类类型; var id = $(this).data("id"); if (mark == "depinfo"){ if (id == depid){ return false; }else{ depid = id; dise = "全部" } }else if (mark == "diseinfo"){ if (id == dise){ return false; }else{ dise = id; } }else if (mark == "typeinfo"){ if (id == type_id){ return false; }else{ type_id = id; } }else if (mark == "provinfo"){ if (id == prov){ return false; }else{ prov = id; hosp_id = -1; } }else if (mark == "hospinfo"){ if (id == hosp_id){ return false; }else{ hosp_id = id; } } var str = link_url (); location.href = "/home/doctor/docscreen" + str;// + "#docter"; }); var isPC_flag = isPC (); if (isPC_flag == false){ $(".PCorAPP").hide (); } $(".screen-span-btn").click (function(){ var flag = $(this).data("flag"); var mark = $(this).data("id"); up_down (".screen-span-div-" + mark,mark,flag); }); $(".APP_btn").click (function (){ if (isPC_flag == false){ var mark = $(this).data("mark"); if (mark == true){ $(this).data("mark",false); $(".PCorAPP").hide (); }else{ $(this).data("mark",true); $(".PCorAPP").show (); } } }); }) var link_url = function (){ var str = ""; if (depid != -1){ if (str == ""){ str += "?"; }else{ str += "&"; } str += "depid=" + depid; } if (dise != "全部"){ if (str == ""){ str += "?"; }else{ str += "&"; } str += "dise=" + dise; } if (type_id != -1){ if (str == ""){ str += "?"; }else{ str += "&"; } str += "typeid=" + type_id; } if (prov != "全部"){ if (str == ""){ str += "?"; }else{ str += "&"; } str += "prov=" + prov; } if (hosp_id != -1){ if (str == ""){ str += "?"; }else{ str += "&"; } str += "hospid=" + hosp_id; } return str; } var up_down = function(span_class,mark,flag){ if (mark == 1){ if (flag == true){ $(".depinfo").css ({"height":"auto","overflow":"auto"}) $(span_class).data("flag",false); $(span_class).html('收起'); }else{ $(".depinfo").css ({"height":"25px","overflow":"hidden"}) $(span_class).data("flag",true); $(span_class).html('展开'); } }else if(mark == 2){ if (flag == true){ $(".diseinfo").css ({"height":"auto","overflow":"auto"}) $(span_class).data("flag",false); $(span_class).html('收起'); }else{ $(".diseinfo").css ({"height":"25px","overflow":"hidden"}) $(span_class).data("flag",true); $(span_class).html('展开'); } }else if(mark == 3){ if (flag == true){ $(".typeinfo").css ({"height":"auto","overflow":"auto"}) $(span_class).data("flag",false); $(span_class).html('收起'); }else{ $(".typeinfo").css ({"height":"25px","overflow":"hidden"}) $(span_class).data("flag",true); $(span_class).html('展开'); } }else if(mark == 4){ if (flag == true){ $(".provinfo").css ({"height":"auto","overflow":"auto"}) $(span_class).data("flag",false); $(span_class).html('收起'); }else{ $(".provinfo").css ({"height":"25px","overflow":"hidden"}) $(span_class).data("flag",true); $(span_class).html('展开'); } }else if(mark == 5){ if (flag == true){ $(".hospinfo").css ({"height":"auto","overflow":"auto"}) $(span_class).data("flag",false); $(span_class).html('收起'); }else{ $(".hospinfo").css ({"height":"25px","overflow":"hidden"}) $(span_class).data("flag",true); $(span_class).html('展开'); } } } var isPC = function() { var sUserAgent = navigator.userAgent.toLowerCase(); // var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp = sUserAgent.match(/midp/i) == "midp"; var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroid = sUserAgent.match(/android/i) == "android"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; if (!(bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) { return true; } else { return false; } }
根据科室查找医生:
医生姓名: 搜 索
医生级别: 全部 主任医师 副主任医师 主治医师
擅长:
更改医生