//schoolcity
|
$(document).ready(function(){
|
$(".schoolcity-w>li").click(function(){
|
$(".schoolcity-t")
|
.css("left","30.48%")
|
});
|
});
|
$(document).ready(function(){
|
$(".schoolcity-t>li").click(function(){
|
$(".schoolcity-s")
|
.css("left","66.96%")
|
});
|
});
|
|
//grade开始
|
$(document).ready(function(){
|
$(".grade-w>li").click(function(){
|
$(".grade-t")
|
.css("left","30.48%")
|
});
|
});
|
$(document).ready(function(){
|
$(".grade-t>li").click(function(){
|
$(".grade-s")
|
.css("left","66.96%")
|
});
|
});
|
|
|
$(document).ready(function(){
|
$(".popup").click(function(){
|
var pop=$(this).attr('data-pop');
|
if(pop=='lietouhy' || pop=='lietoujobs'){
|
var type='grade-w-rolls';
|
var style='top:0;'
|
}else{
|
var type='grade-w-roll';
|
var style='top:2.5rem;'
|
}
|
if ($('.'+pop+'-eject').hasClass(type)) {
|
$('body').removeAttr('style');
|
$('.popshow').removeClass(type);
|
$('.popshow').removeAttr('style',style);
|
$('.popshow').removeClass('popshow');
|
setTimeout(function(){
|
$('.'+pop+'-eject').addClass('none');
|
},200);
|
} else {
|
$('.'+pop+'-eject').removeClass('none');
|
setTimeout(function(){
|
$('.'+pop+'-eject').attr('style',style);
|
$('.popshow').removeAttr('style',style);
|
$('.'+pop+'-eject').addClass(type);
|
$('.popshow').removeClass(type);
|
$('.popshow').removeClass('popshow');
|
$('.'+pop+'-eject').addClass('popshow');
|
$('body').attr('style','position: fixed; width: 100%;');
|
},200);
|
}
|
});
|
});
|
//Category开始
|
$(document).ready(function(){
|
$(".Category-w>li").click(function(){
|
$(".Category-t").css("left","30.48%")
|
});
|
});
|
|
$(document).ready(function(){
|
$(".Category-t>li").click(function(){
|
$(".Category-s").css("left","66.96%")
|
});
|
});
|
|
//Gengduo开始
|
$(document).ready(function(){
|
$(".Gengduoj-w>li").click(function(){
|
$(".Gengduoj-t").css("left","50%")
|
});
|
});
|
|
//Gengduos开始
|
$(document).ready(function(){
|
$(".Gengduos-w>li").click(function(){
|
$(".Gengduos-t").css("left","50%")
|
});
|
});
|
|
//Gengduot开始
|
$(document).ready(function(){
|
$(".Gengduot-w>li").click(function(){
|
$(".Gengduot-t").css("left","50%")
|
});
|
});
|
|
//lietou开始
|
$(document).ready(function(){
|
$(".lietou-w>li").click(function(){
|
$(".lietou-t").css("left","50%")
|
});
|
});
|
//lietouhy开始
|
$(document).ready(function(){
|
$(".lietouhy-w>li").click(function(){
|
$(".lietouhy-t").css("left","50%")
|
});
|
});
|
//lietoujobs开始
|
$(document).ready(function(){
|
$(".lietoujobs-w>li").click(function(){
|
$(".lietoujobs-t").css("left","50%")
|
});
|
});
|
//lthy开始
|
$(document).ready(function(){
|
$(".lthy-w>li").click(function(){
|
$(".lthy-t").css("left","50%")
|
});
|
});
|
//redeem开始
|
$(document).ready(function(){
|
$(".redeem-w>li").click(function(){
|
$(".redeem-t").css("left","50%")
|
});
|
});
|
//js点击事件监听开始
|
function grade1(id,name,type,smartya){
|
$(".grade-w li").removeClass("yun_category_on");
|
$(".qgrade"+id).addClass('yun_category_on');
|
if(smartya=='schoolacademy' || smartya=='xjh'){
|
var url = wapurl+"?c=ajax&a=schoolcity";
|
}else{
|
var url = wapurl+"?c=ajax&a=getcity";
|
}
|
$(".grade-s").attr("style","");
|
var kzq = $("#kzq").val();
|
$.post(url,{id:id,type:'cityid',kzq:kzq},function(data){
|
$("#cityid").html(data);
|
})
|
}
|
|
function gradet(id,name,type){
|
$(".grade-t li").removeClass("yun_category_ons");
|
$(".qgradet"+id).addClass('yun_category_ons');
|
$.post(wapurl+"?c=ajax&a=getcity",{id:id,type:'three_cityid'},function(data){
|
$(".grade-s").css("left","66.96%");
|
$("#three_cityid").html(data);
|
})
|
}
|
|
|
function Categorytw(id,name,type){
|
$(".Category-w li").removeClass("yun_category_on");
|
$(".qCategorytw"+id).addClass('yun_category_on');
|
$(".Category-s").attr("style","");
|
$.post(wapurl+"?c=ajax&a=getjob",{id:id,type:'jobone_son'},function(data){
|
$("#jobone_son").html(data);
|
})
|
}
|
|
function Categoryt(id,name,type){
|
$(".Category-t li").removeClass("yun_category_ons");
|
$(".qCategoryt"+id).addClass('yun_category_ons');
|
showLoading()
|
$.post(wapurl+"?c=ajax&a=getjob",{id:id,type:'job_post'},function(data){
|
hideLoading();
|
$(".Category-s").css("left","56.96%")
|
$("#job_post").html(data);
|
})
|
}
|
|
|
function lietouw(id,name,type){
|
$(".lietou-w li").removeClass("yun_category_on");
|
$(".qlietouw"+id).addClass('yun_category_on');
|
$.post(wapurl+"?c=ajax&a=getltjob",{id:id,type:'jobtwo'},function(data){
|
$("#jobtwo").html(data);
|
})
|
}
|
|
function lietouhy(id){
|
$(".lietouhy-w li").removeClass("yun_category_on");
|
$(".qlietouhy"+id).addClass('yun_category_on');
|
$(".hytwo").addClass("none");
|
$(".two"+id).removeClass("none");
|
}
|
function lthyw(id,name,type){
|
$(".lthy-w li").removeClass("yun_category_on");
|
$(".qlthyw"+id).addClass('yun_category_on');
|
$.post(wapurl+"?c=ajax&a=getlietouhy",{id:id,type:'lthytwo'},function(data){
|
$("#lthytwo").html(data);
|
})
|
}
|
|
function lietoujobs(id){
|
$(".lietoujobs-w li").removeClass("yun_category_on");
|
$(".qlietoujobs"+id).addClass('yun_category_on');
|
$(".jobtwo").addClass("none");
|
$(".jtwo"+id).removeClass("none");
|
}
|
function redeemw(id,name,type){
|
$(".redeem-w li").removeClass("yun_category_on");
|
$(".qredeemw"+id).addClass('yun_category_on');
|
$.post(wapurl+"?c=ajax&a=getredeem",{id:id,type:'tnid'},function(data){
|
$("#tnid").html(data);
|
})
|
}
|
$(document).ready(function(){
|
$(".Gengduoj-w").find("li").bind("click",function(){
|
var id=$(this).attr("tab_name");
|
$(".Gengduoj-t").hide();
|
$(".yun_category_on").removeClass("yun_category_on");
|
$(this).addClass("yun_category_on");
|
$("#"+id).show();});
|
$(".Gengduoj-t").find("li").bind("click",function(){
|
var id=$(this).attr("tab_name");
|
var data=$(this).attr("data");
|
var html=$(this).html();
|
$("#"+id).html(" "+html);
|
$("#"+id+"i").val(data);
|
$(".yun_category_on").removeClass("yun_category_on");
|
$(this).parent().hide();
|
});
|
});
|
|
$(document).ready(function(){
|
$(".Gengduos-w").find("li").bind("click",function(){
|
var id=$(this).attr("tab_name");
|
$(".Gengduos-t").hide();
|
$(".yun_category_on").removeClass("yun_category_on");
|
$(this).addClass("yun_category_on");
|
$("#"+id).show();
|
});
|
$(".Gengduos-t").find("li").bind("click",function(){
|
var id=$(this).attr("tab_name");
|
var data=$(this).attr("data");
|
var html=$(this).html();
|
$("#"+id).html(" "+html);
|
$("#"+id+"i").val(data);
|
$(".yun_category_on").removeClass("yun_category_on");
|
$(this).parent().hide();
|
});
|
});
|
|
$(document).ready(function(){
|
$(".Gengduot-w").find("li").bind("click",function(){
|
var id=$(this).attr("tab_name");
|
$(".Gengduot-t").hide();
|
$(".yun_category_on").removeClass("yun_category_on");
|
$(this).addClass("yun_category_on");
|
$("#"+id).show();});
|
$(".Gengduot-t").find("li").bind("click",function(){
|
var id=$(this).attr("tab_name");
|
var data=$(this).attr("data");
|
var html=$(this).html();
|
$("#"+id).html(" "+html);
|
$("#"+id+"i").val(data);
|
$(".yun_category_on").removeClass("yun_category_on");
|
$(this).parent().hide();
|
});
|
|
});
|
function lihide(name){
|
$('body').removeAttr('style');
|
$("."+name).removeClass('grade-w-roll');
|
$("."+name).removeClass('grade-w-rolls');
|
$("."+name).removeClass('popshow');
|
$("."+name).removeAttr('style');
|
}
|
|
function Closes(type) {
|
$('body').removeAttr('style');
|
$("#"+type+"list").removeClass('grade-w-roll');
|
$("#"+type+"list").removeClass('grade-w-rolls');
|
$("#"+type+"list").removeClass('popshow');
|
$("#"+type+"list").removeAttr('style');
|
}
|