howTab[1] = 1 } else { // showTab[1] = 0 // html += emptyHtml } // obj1.html(html) $.ajax({ type: "get", url: '/Index_ajaxItemSearch.shtml', data: {keyword: val,type:8,pNo:1,t:Math.random()}, dataType:'json', success: function (rs) { obj2.empty(); // var html = '' if (rs && typeof rs.items != "undefined" && rs.items.length > 0){ var arr = rs.items if (arr.length > 5){ arr = arr.splice(0,5) } $.each(arr, function (key, val) { var classStr = '' if (key == 0 && html == ''){ classStr = 'active' } var jjmc = currentLiveStatus == '1' ? dealStockName(val.jjmc,3) : val.jjmc var jjdm = currentLiveStatus == '1' ? dealStockCode(val.jjdm) : val.jjdm html += '
  • ' + jjdm + '  ' + jjmc + '-基金
  • '; }); showTab[2] = 1 } else { // showTab[2] = 0 // html += emptyHtml } // obj2.html(html) obj.html(html) // if (showTab[0] == 0 && (showTab[1]==1 || showTab[2]==1)){ // if (showTab[1]==1){ // $(".global-search .global-search-types span").eq(1).click() // } else if (showTab[2]==1) { // $(".global-search .global-search-types span").eq(2).click() // } // } } }); } }); } }); } },750); }) $(".global-search").on('click','.global-search-list li',function () { var code = $(this).attr('data-code').toString() if (!code){ return; } var type = $(this).attr('data-type') var url = '' if (type == 'gp'){ url = 'https://www.aniu.com/gp_'+code+'.shtml' } if (type == 'bk'){ url = 'https://www.aniu.com/Bk_detail_id_'+code+'.shtml' } if (type == 'jj'){ url = 'https://www.aniu.com/fund_detail_'+code+'.shtml' } if (url){ window.open(url) } }) $("body").on('focus','input,textarea',function (e) { if($(e.target).attr('data-type') != 'global-search' && $(".global-search").is(":visible")){ showOrHideGlobalSearch() } }) // $("body").on("shown.bs.select",'#exchangeParam2,#exchangeParam2big',function (e, clickedIndex, isSelected, previousValue) { // if($(".global-search").is(":visible")){ // showOrHideGlobalSearch() // } // }) function getNonReadCount(){ $.ajax({ type:'post', url:'https://www.aniu.com/User_getNonReadCount', data:{t:Math.random()}, dataType:'jsonp', success:function (rs){ if (rs.code == '0'){ if (rs.data > 0){ $(".rightBanner .rightBannerLink .msg-num").html(rs.data).show() if (rs.data > 99){ $(".rightBanner .rightBannerLink .msg-num").css('width','24px') } else { $(".rightBanner .rightBannerLink .msg-num").css('width','20px') } } else { $(".rightBanner .rightBannerLink .msg-num").html(rs.data).hide() } } } }) } function getKsxgAuth(){ $.ajax({ url:'/Api_ksxgAuth', data:{t:Math.random()}, dataType:'json', success:function (rs) { if (rs.code == '0' && rs.data == 1){ $("#ksxg_menu_li").show() $(".hotfk").show() setTimeout(function(){ $(".jumptoksxg").show() },1000) // setTimeout(function(){ // $(".jumptoksxg").show() // },3000) setInterval(function(){ $(".jumptoksxg").show() },1500) } } }) } function getXghcAuth(){ $.ajax({ url:'/Api_xghcAuth', data:{t:Math.random()}, dataType:'json', success:function (rs) { if (rs.code == '0' && rs.data){ $("#xghc_menu_li").show() } } }) } function getSczsAuth(){ $.ajax({ url:'/Api_sczsAuth', data:{t:Math.random()}, dataType:'json', success:function (rs) { if (rs.code == '0' && rs.data == 1){ $("#sczsonemenu").show() } } }) } function hasVipAuth(){ $.ajax({ url:"/Ajaxrequest_hasVipPower", data:{t:Math.random()}, success:function (rs) { if (rs.code == 0 && rs.data == 1){ $("#lhxj_menu_a").show() } } }) } if (common.user.isLogin(2,0)){ getNonReadCount() setInterval(function () { if(!globalAjaxTag){ return } getNonReadCount() },90000) $("#zxstock").show() $("#bk_jqrd").show() $("#bk_qsdt").show() $("#zxMenu").show() $("#bk_zxbk").show() $("#my_package").show() $("#ksxj_menu_a").show() $("#zxjj_menu_a").show() getKsxgAuth() getXghcAuth() getSczsAuth() hasVipAuth() } $(document).ready(function () { $(document).keydown(function (event) { if ((event.ctrlKey === true || event.metaKey === true) && (event.which === 61 || event.which === 107 || event.which === 173 || event.which === 109 || event.which === 187 || event.which === 189 || event.which === 48)) { setTimeout(function(){ window.location.reload() },1000) } }); $(window).bind('mousewheel DOMMouseScroll', function (event) { if (event.ctrlKey === true || event.metaKey) { setTimeout(function(){ window.location.reload() },1000) } }); function handleTabChange() { if (document.visibilityState === 'hidden') { globalAjaxTag = false } else { globalAjaxTag = true } } setInterval(function(){ handleTabChange() },3000) });
    请选择打赏数
    • 10牛
    • 30牛
    • 50牛
    • 其它
    砖家也不容易,有你打赏更精彩

    该文章您还未购买,确定要打赏吗?

    付100牛即可查看有谁在踩

    您还未绑定手机号

    请输入手机号码,获取验证码进行手机绑定。

    获取验证码

    您的个人信息将严格保密,请放心填写

    赠人玫瑰 手有余香
    感谢您的鼓励,点赞之余再留个言吧!
    换一组 换一组