/**
* Created by Administrator on 2017/11/28 0028.
*/
//关于我们 鼠标点击显示div
function aboutTab(){
$.ajax({
url: " "+baseConfig.URL.aboutUsClear +"",
type: "POST",
success:function (data) {
if(data.status=="SUCCESS"){
$.each(data.list,function (name,value){
if(value.para == "科大讯飞"){
var kdxf ="";
kdxf ='
'+
'
'+
'
'+
'
' + value.content+ '
'+
'
'+
'
'+
'
';
$("#kdxf").html(kdxf);
var htmlStr ="";
}else if(value.para == "吉林科讯信息技术有限公司"){
htmlStr ='' + value.title+ '
'+
''+
'
'+
'
'+
'
' + value.content+ '
'+
'
'+
'
'+
'
';
$("#us").html(htmlStr);
}else{
htmlStr = '' + value.title+ '
'+
''+
'
'+
'
'+
'
' + value.content+ '
'+
'
'+
'
'+
'
';
$("#us").append(htmlStr);
}
});
}
}
});
}
$(function(){
aboutTab();
$(".nav-pills >li").each(function(i){
$(".nav-pills >li:eq("+ i +")").click(function(){
$("#dis_wrap>div").hide();
$("#dis_wrap>div:eq("+ i +")").show();
$(".nav-pills >li").css({"background":"none"});
$(".nav-pills >li:eq("+ i +")").css({"background":"rgba(0,0,0,.5)"});
// aboutTab();
});
});
// 关于我们页面
$("#caption_pos .address_pos").each(function(i){
$("#caption_pos .address_pos:eq("+ i +")").mouseenter(function(){
$("#caption_pos .div_hov").fadeOut("slow");
$("#caption_pos .div_hov:eq("+ i +")").fadeIn("slow");
});
});
$("#aboutPage div").click(function(i){
var text = $(this).children("a").children("p").text();
if(text == "科大讯飞"){
window.location.href="about.html?id=iflytek"
}else if(text == "吉林科讯"){
window.location.href="about.html?id=kosun"
}else if(text == "联系我们"){
window.location.href="about.html?id=contact"
}
});
});
//获取url参数
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}