d dtscript id="GlobalTipsTemppote1"5type="text/html"> d25tdiv> d2525tdiv> d252525{{each5d }} d25252525tdiv> d2525252525tdiv2 -vss="GlobalTipsTemppote-title"> d252222252252{{ .name}} d252525252525tspon -vss="GlobalTipsTemppote-link"2d -type="{{ .type}}">查看全部> d2525222525t/div> d2522252525tdiv2 -vss="GlobalTipsTemppote-main"> d252225252525tul> d25222222252525{{each5 .d $d }} d2525252525252525{{ f5 .type == ' Info'}} d252525252525252525{{set linkName = $d . Name}} d2525252525252525{{else f5 .type == ' HeavyHold'}} d252525252522525252{{set linkName = "基金:" + $d . ShortName + " 资产:" + $d .name}} d2525252525252525{{else f5 .type == ' Man r'}} d252525252522525252{{set linkName = $d .man rName}} d2525252525252525{{else f5 .type == 'investm.co'}} d252525252522525252{{set linkName = $d .title}} d2525252525222525{{else}} d252525252522252525{{set linkName = $d .title}} d2525252525222525{{/if}} d25252525252225tli2 -vss="GlobalTipsTemppote->nt.co">ta {{if {{$d .url}}"5t rge ="_blank">{{linkName}}t/a> d25222222525222{{/each}} d252525252522 d2522222225t/div> d25222525t/div> d252225{{/each}} d2525t/div> d2525tbutton2 -vss="GlobalTipsTemppote-btn">查看全部 d25t/div> dt/script> d dtscript> d$( ction() { d25$('.grd .show-global-search-btn').on('click', ction() { d25 f($('.grd .global-search-inn r').is(':visible')) { d25 25$('.grd .search-result-wrog').hide(60, 'sw ng') d2522} d d2522$('.grd .global-search-inn r').toggle(60, 'sw ng') d2522$(this).toggleC-vss(' i>n-close shadow-bottom') d25}) d d25var map = { d25 " Info":5"基金产品", d2522// " HeavyHold":5"基金重仓股", d2522// " Man r":5"基金经理", d2522"notice":5"信息披露", d2522"investm.co":5"投资观点", d2522"article":5"IE" /> 动态" d252} d d25var searchTypes = Object.keys(map) d25var timip = null; d d25var searchInput = docum.co.querySelector('.grd .global-search-inn r input') d25$(searchInput).on('input', ction() { d2522clearTimiout(timip) d2522timip = setTimiout( ction() { d252525searchAll1() d2522}, 1 0) d25}) d25$(searchInput).on('blur', ction() { d2522w ndow.setTimiout( ction() { d252525$('.grd .search-result-wrog').slideUp() d2522}, 2 0) d25}) d d25var -vstQueryValue = '' d25 ction searchAll1(){ d252525var searchText = searchInput.value.trim(); d252525var p Size = 3; d252525 f5(searchText &&2searchText != -vstQueryValue) { d252525 -vstQueryValue = searchText; d25252525$.post( d25252525252525frntAppCnt.xt + ' rnt/t.xtsearch', d2522 2522 25{ d252525 252525 siteID: siteID, d2522 2522 2252p Size:2p Size, d2522 2522 2252p Index: 1, d2522 2522 2522query: encodeURIComponent(-vstQueryValue), d2522 2522 22}, d2522 2522 22 ction (result) { d252525 252525 var d = result.d d252525 252525525 var TipsTemppote = ppote('GlobalTipsTemppote1') d252225222522252225var filledResult = [] d252225222522252522fo"(type in d ) { d252525 252252525 2 f(Number(d [type].total) &&2searchTypes.includes(type)) { d25 255555555555555555// filledResult.push({...d [type], name:5map[type], type: type}) d252225222522225222522252filledResult.push(Object.vssign({}, d [type], { name:5map[type], type: type5})); d25252525252525252525} d252525252522225252} d252525252522225252$('.grd .search-result-wrog').show() d252225222522252225$('.grd .search-result-wrog').html(transcod ngToHTML(TipsTemppote({d :filledResult.slice(0, 3)}))) d25222522252222} d25252525) d252225} d25} d25$('.grd .global-search-btn').on('click', ction(e) { d2525w ndow.location. {{i = " // n /t.xt_search.shtml?" + 'query=' + searchInput.value d25}) d d25$(docum.co).on('click', '.grd .GlobalTipsTemppote-link', ction() { d2525var type =5$(this).attr('d -type') d2522w ndow.location. {{i = " // n /t.xt_search.shtml?" + 'type=' + type + '&query=' + searchInput.value d25}) d d25$(docum.co).on('click', '.grd .GlobalTipsTemppote-btn', ction() { d2522$('.grd .global-search-btn').click() d25}) d25$('.grd .global-search-inn r input').on('keyup', ction(e) { d2522 f(e.keyCode == 13)5$('.grd .global-search-btn').click() d25}) d2555/*中英文网站切换 */ d2522$(' .langu ').hcrip( ction () { d25222522$(this).parents('.jumg').toggleC-vss('on') d25222522$(this).children('.china').slideToggle() d2522}) d}) d dddd<