﻿/**
* 2017版StockSuggest
* publish time: 2024/11/1 19:41:27
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.suggest2017=e():t.suggest2017=e()}(this,function(){return function(t){function e(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return t[a].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e){var n={get:function(t){var e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));try{if(null!=e)return decodeURIComponent(e[2])}catch(n){}return null},set:function(t,e,n,a){var s=[t+"="+encodeURIComponent(e)];if(n){var i=new Date;i.setDate(i.getDate()+n),s.push("expires="+i.toGMTString())}s.push("path=/"),a&&s.push("domain="+a),document.cookie=s.join(";")},del:function(t,e){var n=new Date((new Date).getTime()-1);document.cookie=e?t+"=;path=/;domain="+e+";expires="+n.toGMTString():t+"=;path=/;expires="+n.toGMTString()}};t.exports=n},function(t,e){t.exports={get:function(t,e){return e==undefined&&(e="dev"),this[e][t]},dev:{styleurl:"../css/stocksuggest2017.css",apiurl:"//searchapi.eastmoney.com/api/",apiurl2:"//searchadapter.eastmoney.com/api/",apiurl_new:"//search-codetable.eastmoney.com/",apiurl_new2:"//search-api-web.eastmoney.com/"},test:{styleurl:"//emcharts.eastmoney.com/suggest/test/stocksuggest2017.css",apiurl:"http://api.so.zptest.emapd.com/api/",apiurl2:"//searchadapter-zptest.eastmoney.com/api/",apiurl_new:"//search-codetable.eastmoney.com/",apiurl_new2:"//search-api-web-zptest.eastmoney.com/"},prod:{styleurl:"//emcharts.eastmoney.com/suggest/stocksuggest2017.css",apiurl:"//searchapi.eastmoney.com/api/",apiurl2:"//searchadapter.eastmoney.com/api/",apiurl_new:"//search-codetable.eastmoney.com/",apiurl_new2:"//search-api-web.eastmoney.com/"}}},function(t,e){function n(t){var e=a.Deferred();return t(e.resolve,e.reject),e.promise()}var a=jQuery;n.all=function(t){return new n(function(e,n){a.when.apply(this,t).then(function(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n][0]);e(t)}).fail(function(t){n(t)})})},n.reject=function(t){return new n(function(e,n){n(t)})},n.resolve=function(t){return new n(function(e,n){e(t)})},t.exports=n},function(t,e,n){function a(t){var e={newapi:!1,inputid:null,onSubmit:"search",onConfirmStock:"quote",moveinput:"Code",zindex:1e3,position:{left:null,top:null},offset:{left:0,top:0},newtipsoffset:{left:0,top:0},placeholder:"输入股票代码、名称、简拼或关键字",stockcount:5,gubacount:4,width:364,showblank:!0,showstocklink:!0,gubaprotocol:!1,modules:["functions","stock","guba","module","info","searchall"],infomodules:"all",xg_modules:["datacenter","zhuti","baike","zhuanti","huati","cfh","passport","group"],shownewtips:!1,filter:{markettype:"",mktnum:"",jys:"",classify:"",securitytype:"",status:""},hotStockLink:null,quoteLink:null,dataLink:null,alwaysshowresult:!1,gubatable:!1,onClickGubaTable:null,quote_confirm:!1};if(this.options=i.extend(e,t),this.options.modules=this.options.modules.filter(function(t){return"info"!=t}),this.options.alwaysshowresult&&(this.options.showblank=!0),this.input=i("#"+this.options.inputid),this.input.length<=0)return!1;this.form=this.input.parents("form"),this.form.css({position:"relative","_zoom:":"1"}),this.stock_data=null,this.key="",this.sghtml=new r(this),this.isposition=!1,this.init(),this.bind()}function s(t,e,n,a){n.on("focus",function(){d("input","focus","Web_so_srk")}),a.on("submit",function(){d("form","submit","Web_so_ss",t.key)}),e.on("click","a",function(){var e=i(this).data("stype"),n=decodeURIComponent(i(this).data("skey"));e&&d("a","click","Web_so_"+e,t.key,n)})}n(4);var i=jQuery,o=n(10),r=n(11),l=n(1),c=n(33),d=n(34),u=n(35);o(l.get("styleurl","prod"));var p=null;a.prototype.init=function(){var t=this;this.input.prop("autocomplete","off").addClass("noieclear"),""!=this.options.placeholder&&("placeholder"in document.createElement("input")?(this.input.prop("placeholder",this.options.placeholder),i.trim(this.input.val())!=this.options.placeholder&&(this.key=i.trim(this.input.val()))):(""!=i.trim(this.input.val())?this.key=i.trim(this.input.val()):this.input.val(this.options.placeholder).addClass("sugphder"),this.input.on("focus",function(){t.input.val()==t.options.placeholder&&t.input.val("").removeClass("sugphder")}),this.input.on("blur",function(){""==t.input.val()&&t.input.val(t.options.placeholder).addClass("sugphder")}))),this.widths={};var e=Math.floor(this.options.width-364),n=Math.floor((this.options.width-364)/2);this.widths.text_left_fix=Math.floor((this.options.width-364)/6),this.widths.text_left_fix_2=Math.floor((this.options.width-364)/12),this.widths.sg2017lp_li=158+n,this.widths.sg2017ll=182+n,this.widths.sg2land=270+e,this.widths.sg2landl2=195+e,this.div==undefined&&(this.div=this.sghtml.init(this.options.width),this.divc=i(".suggest2017c",this.div),u.isIpad()&&(this.closediv=i('<div class="suggest2017_close"><img src="//emcharts.eastmoney.com/imgcdn/c9e50c9888.png"></div>'),this.div.append(this.closediv),this.closediv.click(function(){t.div.hide()})),this.div.css({zIndex:this.options.zindex}),this.rePosition(),this.form.append(this.div)),this.options.shownewtips&&this.sghtml.showHotNew(p,function(t){p=t})},a.prototype.rePosition=function(){var t=this.input.position().left,e=this.input.position().top+this.input.outerHeight()+1;this.options.position.left&&(t=this.options.position.left),this.options.position.top&&(e=this.options.position.top),this.options.offset.left&&(t+=this.options.offset.left),this.options.offset.top&&(e+=this.options.offset.top),this.div.css({left:t,top:e})},a.prototype.bind=function(){var t=this,e=null,n="";this.input.on("keyup change",function(a){return 38==a.keyCode?(t.movedown(-1),!1):40==a.keyCode?(t.movedown(1),!1):(t.key=i.trim(t.input.val()),void(t.key!=n&&(clearTimeout(e),e=setTimeout(function(){t.search()},300),n=t.key)))}),this.input.on("keydown",function(t){if(13==t.keyCode){var e=i(".xgstock .sg2017table tr.suggest2017tf",this.div);if(e.length>0)return e.click(),!1}}),this.input.on("focus",function(){t.showBlankInit(),t.options.shownewtips&&t.options.showblank&&t.sghtml.showHotNewIconed(t)}),this.options.alwaysshowresult&&t.showBlankInit(),this.form.on("submit",function(){t.input.blur();e="";if(t.options.quote_confirm&&""!=t.comfirm_quotecode&&t.comfirm_quotecode!=undefined)return window.open("//quote.eastmoney.com/unify/r/"+t.comfirm_quotecode),t.hide(),!1;if("search"==t.options.onSubmit)return e="http://so.eastmoney.com/web/s?keyword="+encodeURIComponent(t.key),""==t.key&&(e="http://so.eastmoney.com/"),window.open(e),t.hide(),!1;if("quote"==t.options.onSubmit){var e="";return null!=t.stock_data?(e="//quote.eastmoney.com/unify/r/"+t.stock_data.QuoteID,"6"==t.stock_data.MarketType&&(e="//fund.eastmoney.com/"+t.stock_data.Code+".html")):(e="http://so.eastmoney.com/web/s?keyword="+encodeURIComponent(t.key),""==t.key&&(e="http://so.eastmoney.com/")),window.open(e),t.hide(),!1}if("default"==t.options.onSubmit)t.hide();else if("function"==typeof t.options.onSubmit)return t.hide(),t.options.onSubmit({key:t.key,stock:t.stock_data})}),0==this.options.alwaysshowresult&&(u.isIpad()?i(document).on("touchend",function(e){var n=i(e.target);n.is(t.input)||t.div.has(n).length>0||(t.div.hide(),t.input.blur())}):i(document).on("click",function(e){var n=i(e.target);n.is(t.input)||t.div.has(n).length>0||t.div.hide()})),i(window).resize(function(){t.isposition&&t.rePosition()}),this.div.on("click","a",function(){i(this).data("searchhistory")&&c.addHistory(i(this).data("searchhistory"))}),this.div.on("click",".clearhsr",function(){return c.clearHistory(),i(".sg2017hsr",t.div).remove(),!1}),this.div.on("click",".hotsearchchange",function(){return d("a","click","Web_rmss_hyh1"),t.sghtml.hotSearchChange(i(".hotsearchdiv",t.div)),!1}),this.div.on("click",".hotstockchange",function(){return d("a","click","Web_rmgg_hyh2"),t.sghtml.hotStockChange(i(".hotstockdiv",t.div)),!1}),s(this,this.div,this.input,this.form)},a.prototype.movedown=function(t){var e=i(".xgstock .sg2017table tr",this.div);if(e.length<1)return!1;var n=e.filter(".suggest2017tf").index();e.removeClass("suggest2017tf"),(n+=t)<0?n=e.length-1:n>=e.length&&(n=0);var a=e.eq(n);a.addClass("suggest2017tf"),this.stock_data=a.data("stockdata"),this.input.val(this.stock_data[this.options.moveinput])},a.prototype.search=function(){if(this.options.modules=this.options.modules.filter(function(t){return"info"!=t}),""==this.key)return this.options.showblank?this.showBlankInit():this.hide(),!1;this.showResult(this.key)},a.prototype.showBlankInit=function(){return""!=this.key?(this.showResult(this.key),!1):(this.options.showblank&&this.sghtml.blankInit(),!1)},a.prototype.showResult=function(){var t=this;this.options.modules=this.options.modules.filter(function(t){return"info"!=t}),this.sghtml.newSearch().then(function(){var e=i(".xgstock .sg2017table tr",t.div);e.length>0?t.stock_data=e.eq(0).data("stockdata"):t.stock_data=null,e.one("click",function(){if(t.stock_data=i(this).data("stockdata"),d("tr","click","Web_so_zq",t.key,t.stock_data.Name),"quote"==t.options.onConfirmStock)t.stock_data.QuoteID?window.open("//quote.eastmoney.com/unify/r/"+t.stock_data.QuoteID):window.open("//quote.eastmoney.com/unify/r/"+t.stock_data.market+"."+t.stock_data.code);else if("submit"==t.options.onConfirmStock)t.form.submit();else if("function"==typeof t.options.onConfirmStock)return t.hide(),t.options.onConfirmStock({key:t.key,stock:t.stock_data});t.hide()}),e.on("click","a",function(){var e=i(this).data("stype"),n=decodeURIComponent(i(this).data("skey"));return e&&d("a","click","Web_so_"+e,t.key,n),window.open(i(this).attr("href")),t.hide(),!1}),i(".modules_guba .sg2017table tr",this.div).on("click",function(){var e=i(this).data("gubadata");t.options.onClickGubaTable?t.options.onClickGubaTable(e):window.open(e.Url)})})},a.prototype.remove=function(){this.div.remove()},a.prototype.show=function(){this.div.show()},a.prototype.hide=function(){this.div.hide()},t.exports=a},function(t,e,n){n(5),n(6),n(7),n(8),n(9)},function(t,e){"function"!=typeof Object.assign&&(Object.assign=function(t){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t})},function(t,e){!function(t){"use strict";t.console||(t.console={});for(var e,n,a=t.console,s=["memory"],i="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=s.pop();)a[e]||(a[e]={});for(;n=i.pop();)a[n]||(a[n]=function(){})}("undefined"==typeof window?this:window)},function(module,exports){window.JSON||(window.JSON={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(){var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,n=Array.isArray||function(e){return"[object Array]"===t.call(e)},a={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},s=function(t){return a[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)},i=/[\\"\u0000-\u001F\u2028\u2029]/g;return function o(a){if(null==a)return"null";if("number"==typeof a)return isFinite(a)?a.toString():"null";if("boolean"==typeof a)return a.toString();if("object"==typeof a){if("function"==typeof a.toJSON)return o(a.toJSON());if(n(a)){for(var r="[",l=0;l<a.length;l++)r+=(l?", ":"")+o(a[l]);return r+"]"}if("[object Object]"===t.call(a)){var c=[];for(var d in a)e.call(a,d)&&c.push(o(d)+": "+o(a[d]));return"{"+c.join(", ")+"}"}}return'"'+a.toString().replace(i,s)+'"'}}()})},function(t,e){Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,a;if(null==this)throw new TypeError(" this is null or not defined");var s=Object(this),i=s.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),a=0;a<i;){var o;a in s&&(o=s[a],t.call(n,o,a,s)),a++}}),Array.prototype.map||(Array.prototype.map=function(t,e){var n,a,s;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("[object Function]"!=Object.prototype.toString.call(t))throw new TypeError(t+" is not a function");for(e&&(n=e),a=new Array(o),s=0;s<o;){var r,l;s in i&&(r=i[s],l=t.call(n,r,s,i),a[s]=l),s++}return a}),Array.prototype.some||(Array.prototype.some=function(t){"use strict";if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,a=arguments.length>=2?arguments[1]:void 0,s=0;s<n;s++)if(s in e&&t.call(a,e[s],s,e))return!0;return!1}),Array.prototype.filter||(Array.prototype.filter=function(t,e){"use strict";if("Function"!=typeof t&&"function"!=typeof t||!this)throw new TypeError;var n=this.length>>>0,a=new Array(n),s=this,i=0,o=-1;if(e===undefined)for(;++o!==n;)o in this&&t(s[o],o,s)&&(a[i++]=s[o]);else for(;++o!==n;)o in this&&t.call(e,s[o],o,s)&&(a[i++]=s[o]);return a.length=i,a})},function(module,exports){window.JSON||(window.JSON={parse:function(sJSON){return eval("("+sJSON+")")},stringify:function(){var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)},n={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},a=function(t){return n[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)},s=/[\\"\u0000-\u001F\u2028\u2029]/g;return function i(n){if(null==n)return"null";if("number"==typeof n)return isFinite(n)?n.toString():"null";if("boolean"==typeof n)return n.toString();if("object"==typeof n){if("function"==typeof n.toJSON)return i(n.toJSON());if(e(n)){for(var o="[",r=0;r<n.length;r++)o+=(r?", ":"")+i(n[r]);return o+"]"}if("[object Object]"===t.call(n)){var l=[];for(var c in n)n.hasOwnProperty(c)&&l.push(i(c)+": "+i(n[c]));return"{"+l.join(", ")+"}"}}return'"'+n.toString().replace(s,a)+'"'}}()})},function(t,e){t.exports=function(t){var e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),e.appendChild(n)}},function(t,e,n){function a(t){this.thissg=t}var s=n(12),i=(n(14),n(15)),o=n(26),r=n(27),l=n(28),c=n(29),d=n(30),u=n(31),p=n(32),h=n(2),g=jQuery;htmlobj={hotSearchChange:function(t){var e=t.data("thispage");e=e==undefined?1:parseInt(e),s.hotsearch(function(n){var a=Math.ceil(n.Currency.length/10);++e>a&&(e=1),n.hotSearchList=n.Currency.slice(10*(e-1),10*(e-1)+10),t.html(u.template(c)(n)),t.data("thispage",e)},function(t){})},hotStockChange:function(t){var e=t.data("thispage");e=e==undefined?1:parseInt(e),s.hotsearch(function(n){var a=Math.ceil(n.Stock.length/10);++e>a&&(e=1),n.hotStockList=n.Stock.slice(10*(e-1),10*(e-1)+10),t.html(u.template(d)(n)),t.data("thispage",e)},function(t){})},showHotNew:function(t,e,n){var a=this;null==e?s.getNewCount().then(function(e){a.showHotNewIcon(t,e),n&&n(e)}).fail(function(t){}):a.showHotNewIcon(t,e)},showHotNewIcon:function(t,e){var n=g('<div class="suggest2017hotnewt">'+e+"</div>");t.newhothtml=n,t.form.append(n);var a=t.input.position().left+t.input.width()-12,s=t.input.position().top+6;n.css({left:a+t.options.newtipsoffset.left,top:s+t.options.newtipsoffset.top})},showHotNewIconed:function(t){"undefined"!=typeof t.newhothtml&&t.newhothtml.addClass("suggest2017hotnewted")},xgsearch:function(t,e,n,a,s,i,o,r){var l=this,c=0,d=0,p=u.template(xgsearch_init_template)({key:t});s.html(p).show(),this.stock(t,n,a,s,i,function(t){t||d++,c++,l.checksearchballFuc(d,c,s),o&&o()}),this.searchinfo(t,n,s,i,function(t){t||d++,c++,l.checksearchballFuc(d,c,s),r&&r()})},newSearch:function(t,e,n){var a=this;t.modules=t.modules.filter(function(t){return"info"!=t});var s=t.modules.map(function(t){return'<div class="modules_'+t+'"></div>'});s.push('<div class="sg2017loading"><div class="sg2017loadingimg"></div></div>'),t.containerc.html(s.join("")),t.container.show(),g.when.apply(g,t.modules.map(function(e){return a.searchModule({key:t.key,module_name:e,filter:t.filter,stockcount:t.stockcount,gubacount:t.gubacount,container:t.container,containerc:t.containerc,widths:t.widths})})).done(function(){g(".sg2017loading",t.container).remove();try{a.moduleFillHtml({container:t.container,containerc:t.containerc,widths:t.widths,modules:t.modules,key:t.key,showstocklink:t.showstocklink,dataLink:t.dataLink,quoteLink:t.quoteLink},arguments)}catch(s){}g(".sg2017bb:last",t.container).addClass("nobb");var n=g.trim(t.containerc.text());""!=n&&"查看全部搜索结果"!=n||(t.containerc.prepend('<div class="sg2017nof"><div class="sg2017nofi"><span class="sggicon sggicon_face"></span><br>未能搜索到符合条件的结果</div></div>'),g(".sg2017nof",t.container).show()),e()})},searchModule:function(t,e,n){if("searchall"==e)return h.resolve({key:t});var a=[];switch(e){case"functions":a=["functions"];break;case"stock":a=[14];break;case"guba":a=[8];break;case"user":a=[2,7];break;case"group":a=[3];break;case"module":a=this.getXGModules(n.xg_modules);break;case"info":a=this.getInfoModules(n.infomodules)}var i=1;return"stock"==e&&(i=n.stockcount),"guba"==e&&(i=n.gubacount),s.getdata2({key:t,types:a,count:i,filter:n.filter,newapi:n.newapi,gubaprotocol:n.gubaprotocol})},getInfoModules:function(t){var e={gg:10,yb:6,zx:20,bk:12,ht:5,cfh:4,gb:9,wdm:11,wd:39};return t instanceof Array?t.map(function(t){return e[t]}):[4,5,6,9,10,11,12,20,39]},getXGModules:function(t){var e={tiezi:9,datacenter:16,zhuti:43,baike:38,zhuanti:35,huati:501,cfh:2,passport:7,group:3};return t instanceof Array?t.map(function(t){return e[t]}):[16,43,38,35,501,2,7,3]},moduleFillHtml:function(t,e){t.modules.forEach(function(n,a){var s=e[a];"searchall"==n&&(s={}),s.key=t.key,s.text=p,s.widths=t.widths,s.showstocklink=t.showstocklink,s.quoteLink=t.quoteLink,s.dataLink=t.dataLink;var o=u.template(i[n])(s);g(".modules_"+n,t.container).html(o)})},checksearchballFuc:function(t,e,n){2==e&&(2==t&&g(".sg2017nof",n).show(),g(".sg2017loading",n).hide())},stock:function(t,e,n,a,i,o){s.stockdata(t,e,n,function(e){(e=e.QuotationCodeTable).key=t,e.hasdata=null!=e.Data&&e.Data.length>0,e.text=p,e.widths=i;var n=u.template(modules_stock_template)(e);g(".xgstock",a).html(n),o&&o(e.hasdata)},function(t){})},searchinfo:function(t,e,n,a,i){s.searchinfo(t,e,function(e){e.key=t,e.text=p,e.hasguba=null!=e.GubaCodeTable.Data&&e.GubaCodeTable.Data.length>0,e.hasuser=null!=e.FortuneAccount.Data&&e.FortuneAccount.Data.length>0||null!=e.Passport.Data&&e.Passport.Data.length>0,e.hasxg=e.Notice.TotalCount>0||e.ResearchReport.TotalCount>0||e.CMSArticle.TotalCount>0||e.Blog.TotalCount>0||e.GubaTopic.TotalCount>0||e.FortuneArticle.TotalCount>0||e.GubaArticle.TotalCount>0||e.WenDongMi.TotalCount>0,e.widths=a;var s=u.template(o)(e);g(".xgsearch",n).html(s),i&&i(e.hasguba||e.hasuser||e.hasxg)},function(t){})}},a.prototype.init=function(t){return g(u.template(r)({width:t}))},a.prototype.blankInit=function(){var t=this;t.thissg.divc.html('<div class="sg2017loading"><div class="sg2017loadingimg"></div></div>'),s.hotsearch(function(e){e.search_history=s.getSearchHistory(10),e.widths=t.thissg.widths,e.text=p,e.hotStockLink=t.thissg.options.hotStockLink,e.hotSearchList=e.Currency.slice(0,10),e.hotStockList=e.Stock.slice(0,10);var n=g(u.template(l)(e));g(".hotsearchdiv",n).html(u.template(c)(e)),g(".hotstockdiv",n).html(u.template(d)(e)),t.thissg.divc.html(n),t.thissg.div.show()},function(t){})},a.prototype.newSearch=function(){var t=this,e=this.thissg.options.modules.map(function(t){return'<div class="modules_'+t+'"></div>'});return e.push('<div class="sg2017loading"><div class="sg2017loadingimg"></div></div>'),this.thissg.divc.html(e.join("")),this.thissg.div.show(),t.pbword="",g.when.apply(g,this.thissg.options.modules.map(function(e){return t.searchAndShowModule(e)})).done(function(){g(".sg2017loading",t.thissg.div).remove(),g(".sg2017bb:last",t.thissg.div).addClass("nobb");var e=g.trim(t.thissg.divc.text());""!=e&&"查看全部搜索结果"!=e||(t.pbword?t.thissg.divc.prepend('<div class="sg2017nof"><div class="sg2017nofi"><span class="sggicon sggicon_face"></span><br>'+t.pbword+"</div></div>"):t.thissg.divc.prepend('<div class="sg2017nof"><div class="sg2017nofi"><span class="sggicon sggicon_face"></span><br>未能搜索到符合条件的结果</div></div>'),g(".modules_searchall",t.thissg.divc).remove(),g(".sg2017nof",t.thissg.div).show())})},a.prototype.searchAndShowModule=function(t){var e=this,n=this.thissg.options;return n.modules=n.modules.filter(function(t){return"info"!=t}),htmlobj.searchModule(this.thissg.key,t,n).then(function(a){if(a.key!=e.thissg.key)return!1;var s=a;"searchall"==t&&(s={}),s.key=e.thissg.key,s.text=p,s.widths=e.thissg.widths,s.showstocklink=n.showstocklink,s.quoteLink=n.quoteLink,s.dataLink=n.dataLink;var o=t;"guba"==t&&n.gubatable&&(o="guba_table");for(var r in s)if(s[r]&&"B0001"==s[r].BizCode&&s[r].BizMsg){e.pbword=s[r].BizMsg;break}if("info"==o){var l=!1;for(var r in s)if(s[r]&&0==s[r].Status){l=!0;break}s.hasdata=l}"stock"!=o||n.newapi||(s&&s.QuotationCodeTable&&s.QuotationCodeTable.Data&&s.QuotationCodeTable.Data instanceof Array&&1==s.QuotationCodeTable.Data.length?e.thissg.comfirm_quotecode=s.QuotationCodeTable.Data[0].QuoteID:e.thissg.comfirm_quotecode=""),"stock"==o&&n.newapi&&(s&&s.result&&s.result instanceof Array&&1==s.result.length?e.thissg.comfirm_quotecode=s.result[0].market+"."+s.result[0].code:e.thissg.comfirm_quotecode="");var c="";c="stock"==o&&n.newapi?u.template(i.stocknew)(s):u.template(i[o])(s),g(".modules_"+t,e.thissg.div).html(c)})},a.prototype.showHotNew=function(t,e){var n=this;return new h(function(e,a){null==t?s.getNewCount().then(function(t){n.showHotNewIcon(t),e(t)}).fail(function(t){a(t)}):n.showHotNewIcon(t)})},a.prototype.showHotNewIcon=function(t){var e=g('<div class="suggest2017hotnewt" style="position: absolute;">'+t+"</div>");this.thissg.newhothtml=e,this.thissg.form.prepend(e);var n=this.thissg.input.position().left+this.thissg.input.width()-12,a=this.thissg.input.position().top+6;e.css({left:n+this.thissg.options.newtipsoffset.left,top:a+this.thissg.options.newtipsoffset.top})},a.prototype.showHotNewIconed=function(){"undefined"!=typeof this.thissg.newhothtml&&this.thissg.newhothtml.addClass("suggest2017hotnewted")},a.prototype.hotSearchChange=function(t){var e=this,n=t.data("thispage");n=n==undefined?1:parseInt(n),s.hotsearch(function(a){var s=Math.ceil(a.Currency.length/10);++n>s&&(n=1),a.text=p,a.widths=e.thissg.widths,a.hotSearchList=a.Currency.slice(10*(n-1),10*(n-1)+10),t.html(u.template(c)(a)),t.data("thispage",n)},function(t){})},a.prototype.hotStockChange=function(t){var e=this,n=t.data("thispage");n=n==undefined?1:parseInt(n),s.hotsearch(function(a){var s=Math.ceil(a.Stock.length/10);++n>s&&(n=1),a.text=p,a.widths=e.thissg.widths,a.hotStockList=a.Stock.slice(10*(n-1),10*(n-1)+10),t.html(u.template(d)(a)),t.data("thispage",n)},function(t){})},t.exports=a},function(t,e,n){var a=jQuery,s=n(0),i=n(1),o=n(2),r=n(13),l=i.get("apiurl","prod"),c=i.get("apiurl2","prod"),d=i.get("apiurl_new","prod"),u=i.get("apiurl_new2","prod"),p=r.get(),h=p?p.id:"";l=c;var g={search:{}};t.exports={getdata:function(t,e,n,s,i,o){var r=encodeURIComponent(t+"||"+s.join(","));if(g.search[r]==undefined){var c={input:t,type:s.join(","),token:"D43BF722C8E33BDC906FB84D85E326E8",markettype:e.markettype,mktnum:e.mktnum,jys:e.jys,classify:e.classify,securitytype:e.securitytype};n>0&&(c.count=n),a.ajax({url:l+"suggest/get?cb=?",type:"GET",dataType:"jsonp",data:c,scriptCharset:"utf-8"}).done(function(t){g.search[r]=t,i(t)}).fail(function(t){o(t)})}else i(g.search[r])},getdata2:function(t){return new o(function(e,n){var s=encodeURIComponent(t.key+"||"+t.newapi+"||"+t.types.join(",")+"||"+JSON.stringify(t.filter));if(g.search[s]==undefined)if(t.newapi&&"14"==t.types.toString())a.ajax({url:d+"codetable/search/web?client=web&clientType=webSuggest&clientVersion=lastest&cb=?",type:"GET",dataType:"jsonp",data:{keyword:t.key,pageIndex:1,pageSize:t.count,securityFilter:t.filter.securitytype},scriptCharset:"utf-8"}).done(function(n){n.key=t.key,g.search[s]=n,e(n)}).fail(function(t){n(t)});else if("functions"==t.types.toString()){i={input:t.key,type:t.types.join(","),token:"D43BF722C8E33BDC906FB84D85E326E8",markettype:t.filter.markettype,mktnum:t.filter.mktnum,jys:t.filter.jys,classify:t.filter.classify,securitytype:t.filter.securitytype,status:t.filter.status,count:t.count};getojb={uid:h,keyword:t.key,type:["functionWeb"],client:"web",clientVersion:"curr",clientType:"web",param:{"function":{pageIndex:1,pageSize:10}}},a.ajax({url:u+"search/jsonp?cb=?",type:"GET",dataType:"jsonp",data:{param:JSON.stringify(getojb)},scriptCharset:"utf-8"}).done(function(n){var a={key:t.key,result:[]};n&&n.result&&n.result.functionWeb&&n.result.functionWeb instanceof Array&&(a.result=n.result.functionWeb.map(function(t){return{name:t.name,url:t.url}})),g.search[s]=a,e(a)}).fail(function(t){n(t)})}else{var i={input:t.key,type:t.types.join(","),token:"D43BF722C8E33BDC906FB84D85E326E8",markettype:t.filter.markettype,mktnum:t.filter.mktnum,jys:t.filter.jys,classify:t.filter.classify,securitytype:t.filter.securitytype,status:t.filter.status,count:t.count};a.ajax({url:c+"suggest/get?cb=?",type:"GET",dataType:"jsonp",data:i,scriptCharset:"utf-8"}).done(function(n){"8"==t.types.join(",")&&n&&n.GubaCodeTable&&n.GubaCodeTable.Data&&n.GubaCodeTable.Data instanceof Array&&t.gubaprotocol&&n.GubaCodeTable.Data.forEach(function(t){t.Url&&0==t.Url.indexOf("http://")&&(t.Url=t.Url.replace("http://","//"))}),n.key=t.key,g.search[s]=n,e(n)}).fail(function(t){n(t)})}else e(g.search[s])})},getNewCount:function(){var t=a.Deferred(),e={token:"D43BF722C8E33BDC906FB84D85E326E8"};return a.ajax({url:l+"suggest/getbubble?cb=?",type:"GET",dataType:"jsonp",data:e,scriptCharset:"utf-8"}).done(function(e){0==e.Status&&e.Data?t.resolve(e.Data.BubbleCount):t.reject(new Error(e.Message))}).fail(function(e){t.reject(e)}),t.promise()},stockdata:function(t,e,n,a,s){this.getdata(t,e,n,[14],function(t){g.stockdata=t,a(t)},s)},searchinfo:function(t,e,n,a){return this.getdata(t,e,null,[2,3,4,5,6,7,8,9,10,11,12,20],n,a)},search:function(t,e,n){return this.getdata2(t,e,n)},hotsearch:function(t,e){g.hotsearch==undefined?a.ajax({url:l+"HotKeyword/GetBatch?cb=?",type:"GET",dataType:"jsonp",data:{count:20,stockCount:30,token:"D43BF722C8E33BDC906FB84D85E326E8"},scriptCharset:"utf-8"}).done(function(n){if(0==n.Status){n.Data.Currency.forEach(function(t,e){t.index=e}),n.Data.Stock.forEach(function(t,e){t.index=e}),g.hotsearch=n.Data;var a=JSON.parse(JSON.stringify(n));t(a.Data)}else e(new Error(n.Message))}).fail(function(t){e(t)}):t(g.hotsearch)},getSearchHistory:function(t){var e=s.get("emshistory");if(!e)return[];try{return(e=JSON.parse(e)).slice(0,t)}catch(n){return[]}}}},function(t,e,n){var a=n(0),s={get:function(){var t=undefined;return t!=undefined?t:t=a.get("ut")&&a.get("ct")&&a.get("uidal")?{id:a.get("uidal").substring(0,16),nick:a.get("uidal").substring(16)}:null},logOut:function(t){var e=new Date;document.cookie="pi=;path=/;domain=eastmoney.com;expires="+e.toUTCString(),document.cookie="ct=;path=/;domain=eastmoney.com;expires="+e.toUTCString(),document.cookie="ut=;path=/;domain=eastmoney.com;expires="+e.toUTCString(),document.cookie="uidal=;path=/;domain=eastmoney.com;expires="+e.toUTCString(),t&&t()},isLogin:function(){return!!this.get()}};t.exports=s},function(t,e){t.exports='{{? it.hasdata }}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关证券\r\n    <div class="sg2017tm"><a href="http://quote.eastmoney.com/search.html?stockcode={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <table class="sg2017table sg2017tableho sg2017stockt">\r\n      {{~it.Data:value:index}}\r\n      <tr data-stockdata=\'{{= JSON.stringify(value) }}\'>\r\n          <td>{{= value.SecurityTypeName }}</td>\r\n          <td>{{= it.text.highLight(value.Code, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.Name, 12 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.PinYin.toUpperCase(), 8 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          {{? it.showstocklink }}\r\n          <td class="tdl5">\r\n            <a href="http://so-link.eastmoney.com/link?input={{= value.Code }}&returnurl={{= encodeURIComponent(\'http://quote.eastmoney.com/unify/r/\' + value.QuoteID) }}&marketType={{= value.MarketType }}" target="_blank" class="bblink">行情</a>\r\n            {{? value.Classify.toLowerCase() == \'astock\' || value.Classify.toLowerCase() == \'bstock\' }}\r\n            <a href="http://so-link.eastmoney.com/link?input={{= value.Code }}&returnurl={{= encodeURIComponent(\'http://data.eastmoney.com/stockdata/\' + value.Code + \'.html\') }}&marketType=" target="_blank" class="rblink">数据</a>\r\n            {{??}}\r\n            <span class="nolink">数据</span>\r\n            {{?}}\r\n          </td>\r\n          {{?}}\r\n        </tr>\r\n      {{~}}\r\n    </table>\r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e,n){var a=n(16),s=n(17),i=n(18),o=n(19),r=n(20),l=n(21),c=n(22),d=n(23),u=n(24),p=n(25);t.exports={stock:a,stocknew:s,guba:i,user:r,module:l,group:c,info:d,searchall:u,guba_table:o,functions:p}},function(t,e){t.exports='{{? it.QuotationCodeTable && it.QuotationCodeTable.Data != null && it.QuotationCodeTable.Data.length > 0}}\r\n<div class="sg2017b xgstock">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关证券\r\n    <div class="sg2017tm"><a data-stype="zqjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://quote.eastmoney.com/search.html?stockcode={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.QuotationCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <table class="sg2017table sg2017tableho sg2017stockt">\r\n      {{~it.QuotationCodeTable.Data:value:index}}\r\n      <tr data-stockdata=\'{{! JSON.stringify(value) }}\'>\r\n          <td class="fcgray">{{= value.SecurityTypeName }}</td>\r\n          <td>{{= it.text.highLight(value.Code, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.Name, 12 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.PinYin.toUpperCase(), 8 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          {{? it.showstocklink }}\r\n          <td class="tdl5">\r\n            <a data-stype="hq" data-skey="{{= encodeURIComponent(value.Name) }}" href="{{? it.quoteLink == null }}//quote.eastmoney.com/unify/r/{{= value.QuoteID }}{{??}}{{= it.quoteLink({Code: value.Code, Name: value.Name, MarketType: value.MarketType, Classify: value.Classify}) }}{{?}}" target="_blank" class="bblink suggesttsquotelink">行情</a>\r\n            {{? (value.Classify.toLowerCase() == \'astock\' || value.Classify.toLowerCase() == \'bstock\' || value.Classify.toLowerCase() == \'23\' || value.SecurityTypeName == \'京A\') && value.MktNum != \'47\' }}\r\n            <a data-stype="sj" data-skey="{{= encodeURIComponent(value.Name) }}" href="{{? it.dataLink == null }}//data.eastmoney.com/stockdata/{{= value.Code }}.html{{??}}{{= it.dataLink({Code: value.Code, Name: value.Name, MarketType: value.MarketType, Classify: value.Classify}) }}{{?}}" target="_blank" class="rblink suggesttsdatalink">数据</a>\r\n            {{??}}\r\n            <span class="nolink">数据</span>\r\n            {{?}}\r\n          </td>\r\n          {{?}}\r\n        </tr>\r\n      {{~}}\r\n    </table>\r\n  </div>\r\n</div>\r\n{{?}}\r\n'},function(t,e){t.exports='{{? it.result && it.result.length > 0}}\r\n<div class="sg2017b xgstock">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关证券\r\n    <div class="sg2017tm"><a data-stype="zqjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://quote.eastmoney.com/search.html?stockcode={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">更多结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <table class="sg2017table sg2017tableho sg2017stockt">\r\n      {{~it.result:value:index}}\r\n      <tr data-stockdata=\'{{! JSON.stringify(value) }}\'>\r\n          <td class="fcgray">{{= value.securityTypeName }}</td>\r\n          <td>{{= it.text.highLight(value.code, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.shortName, 12 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.pinyin.toUpperCase(), 8 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          {{? it.showstocklink }}\r\n          <td class="tdl5">\r\n            <a data-stype="hq" data-skey="{{= encodeURIComponent(value.shortName) }}" href="{{? it.quoteLink == null }}//quote.eastmoney.com/unify/r/{{= value.market + \'.\' + value.code }}{{??}}{{= it.quoteLink({Code: value.code, Name: value.shortName}) }}{{?}}" target="_blank" class="bblink suggesttsquotelink">行情</a>\r\n            {{? (value.securityTypeName == \'沪A\' || value.securityTypeName == \'科创板\' || value.securityTypeName == \'深A\' || value.securityTypeName == \'沪B\' || value.securityTypeName == \'深B\' || value.securityTypeName == \'京A\') && value.MktNum != \'47\' }}\r\n            <a data-stype="sj" data-skey="{{= encodeURIComponent(value.shortName) }}" href="{{? it.dataLink == null }}//data.eastmoney.com/stockdata/{{= value.code }}.html{{??}}{{= it.dataLink({Code: value.code, Name: value.shortName}) }}{{?}}" target="_blank" class="rblink suggesttsdatalink">数据</a>\r\n            {{??}}\r\n            <span class="nolink">数据</span>\r\n            {{?}}\r\n          </td>\r\n          {{?}}\r\n        </tr>\r\n      {{~}}\r\n    </table>\r\n  </div>\r\n</div>\r\n{{?}}\r\n'},function(t,e){t.exports='{{? it.GubaCodeTable && it.GubaCodeTable.Data != null}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关股吧\r\n    <div class="sg2017tm"><a data-stype="gbjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=2" target="_blank" class="blink">{{= it.text.formatNum( it.GubaCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017hp sg2017hpb">\r\n      {{~it.GubaCodeTable.Data:value:index}}\r\n        <a data-stype="gb" data-skey="{{= encodeURIComponent(value.ShortName + \'吧\') }}" href="{{= value.Url }}" data-searchhistory="{{= value.ShortName }}" target="_blank">{{= it.text.highLight(value.ShortName, it.key) }}吧</a>\r\n      {{~}}\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e){t.exports='{{? it.GubaCodeTable && it.GubaCodeTable.Data != null}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关股吧\r\n    <div class="sg2017tm"><a data-stype="gbjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=2" target="_blank" class="blink">{{= it.text.formatNum( it.GubaCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <table class="sg2017table sg2017tableho">\r\n      {{~it.GubaCodeTable.Data:value:index}}\r\n      <tr data-gubadata=\'{{! JSON.stringify(value) }}\'>\r\n        <td>{{= it.text.highLight(value.OuterCode, it.key) }}</td>\r\n        <td>{{= it.text.highLight(value.ShortName, it.key) }}吧</td>\r\n        <td>{{= it.text.highLight(value.HeadCharacter, it.key) }}</td>\r\n      </tr>\r\n      {{~}}\r\n    </table>\r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e){t.exports='{{? (it.FortuneAccount && it.FortuneAccount.Data != null) || (it.Passport && it.Passport.Data != null)}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关用户\r\n  </div>\r\n  <div class="sg2017bb">\r\n    {{? it.FortuneAccount.Data && it.FortuneAccount.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.FortuneAccount.Data[0].NickName) }}" href="{{= it.FortuneAccount.Data[0].Url }}" class="bbrlink" data-searchhistory="{{= it.FortuneAccount.Data[0].NickName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">财富号</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.FortuneAccount.Data[0].NickName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/CAccount/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.FortuneAccount.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n    {{? it.Passport && it.Passport.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="by" data-skey="{{= encodeURIComponent(it.Passport.Data[0].ualias) }}" href="{{= it.Passport.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Passport.Data[0].ualias }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">吧友</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Passport.Data[0].ualias, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a data-stype="byjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/User/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=3" target="_blank" class="blink">{{= it.text.formatNum(it.Passport.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e){t.exports='{{? (it.FortuneAccount && it.FortuneAccount.Data != null) || (it.DataCenter && it.DataCenter.Data != null) || ( it.CategoryInvestment && it.CategoryInvestment.Data != null) || ( it.NewEncyclopedia != undefined && it.NewEncyclopedia.Data != null) || ( it.CMSTopic && it.CMSTopic.Data != null) || ( it.GubaTopic && it.GubaTopic.Data != null) || ( it.Passport && it.Passport.Data != null) || ( it.Portfolio && it.Portfolio.Data != null) || ( it.GubaArticle && it.GubaArticle.Data != null)}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关模块\r\n  </div>\r\n  <div class="sg2017bb">\r\n\r\n    {{? it.GubaArticle && it.GubaArticle.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.GubaArticle.Data[0].Name) }}" href="{{= it.GubaArticle.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.GubaArticle.Data[0].Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">帖子</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.GubaArticle.Data[0].title, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.GubaArticle.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="https://so.eastmoney.com/tiezi/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.GubaArticle.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n    \r\n    {{? it.DataCenter && it.DataCenter.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.DataCenter.Data[0].Name) }}" href="{{= it.DataCenter.Data[0].PageUrl }}" class="bbrlink" data-searchhistory="{{= it.DataCenter.Data[0].Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">数据</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.DataCenter.Data[0].Name, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.DataCenter.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://data.eastmoney.com/center/" target="_blank" class="blink">{{= it.text.formatNum(it.DataCenter.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.CategoryInvestment && it.CategoryInvestment.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.CategoryInvestment.Data[0].CategoryName) }}" href="http://quote.eastmoney.com/zhuti/{{= it.CategoryInvestment.Data[0].IsImportant == \'1\'?\'topic\':\'subject\' }}/{{= it.CategoryInvestment.Data[0].CategoryCode }}" class="bbrlink" data-searchhistory="{{= it.CategoryInvestment.Data[0].CategoryName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">主题</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.CategoryInvestment.Data[0].CategoryName, 22 + it.widths.text_left_fix, it.key) }}\r\n            {{? it.CategoryInvestment.Data[0].ParentName }}\r\n            <span class="ztspan" onclick="window.open(\'http://quote.eastmoney.com/zhuti/topic/{{= it.CategoryInvestment.Data[0].ParentCode }}\');return false;">{{= it.CategoryInvestment.Data[0].ParentName }}</span>\r\n            {{?}}\r\n          </span>\r\n        </div>\r\n      </a>\r\n      {{? it.CategoryInvestment.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://quote.eastmoney.com/zhuti/" target="_blank" class="blink">{{= it.text.formatNum(it.CategoryInvestment.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.NewEncyclopedia && it.NewEncyclopedia.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.NewEncyclopedia.Data[0].EncyclopediaName) }}" href="http://baike.eastmoney.com/item/{{= encodeURIComponent(it.NewEncyclopedia.Data[0].EncyclopediaName) }}" class="bbrlink" data-searchhistory="{{= it.NewEncyclopedia.Data[0].EncyclopediaName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">百科</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.NewEncyclopedia.Data[0].EncyclopediaName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.NewEncyclopedia.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/baike/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.NewEncyclopedia.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.CMSTopic && it.CMSTopic.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.CMSTopic.Data[0].Topic_Name) }}" href="http://topic.eastmoney.com/{{= it.CMSTopic.Data[0].Topic_PinYin }}/" class="bbrlink" data-searchhistory="{{= it.CMSTopic.Data[0].Topic_Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">专题</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.CMSTopic.Data[0].Topic_Name, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.CMSTopic.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://topic.eastmoney.com/" target="_blank" class="blink">{{= it.text.formatNum(it.CMSTopic.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}} \r\n\r\n    {{? it.GubaTopic && it.GubaTopic.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.GubaTopic.Data[0].Name) }}" href="http://gubatopic.eastmoney.com/topic_v3.html?htid={{= it.GubaTopic.Data[0].Id }}" class="bbrlink" data-searchhistory="{{= it.GubaTopic.Data[0].Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">话题</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.GubaTopic.Data[0].Name, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.GubaTopic.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="//so.eastmoney.com/huati/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.GubaTopic.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}     \r\n       \r\n\r\n\r\n\r\n    {{? it.Passport && it.Passport.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="by" data-skey="{{= encodeURIComponent(it.Passport.Data[0].ualias) }}" href="{{= it.Passport.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Passport.Data[0].ualias }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">用户</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Passport.Data[0].ualias, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.Passport.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="byjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/caccount/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Passport.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.Portfolio && it.Portfolio.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="zh" data-skey="{{= encodeURIComponent(it.Portfolio.Data[0].zuheName) }}" href="{{= it.Portfolio.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Portfolio.Data[0].zuheName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">组合</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Portfolio.Data[0].zuheName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.Portfolio.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="zhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/ZuHe/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Portfolio.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n    \r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e){t.exports='{{? it.Portfolio && it.Portfolio.Data != null}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关组合\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="zh" data-skey="{{= encodeURIComponent(it.Portfolio.Data[0].zuheName) }}" href="{{= it.Portfolio.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Portfolio.Data[0].zuheName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">组合</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Portfolio.Data[0].zuheName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a data-stype="zhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/ZuHe/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Portfolio.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e){t.exports='{{? it.hasdata }}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关信息 <span class="sg2017tt">以下为“<span class="sg2017hl">{{! it.text.txtLeft(it.key,20)}}</span>”的搜索个数</span>\r\n  </div>\r\n  <div class="sg2017bb">\r\n      <div class="sg2017hpb">\r\n        {{? it.Notice && it.Notice.Status == 0 }}\r\n          <a data-stype="ggjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/Ann/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">公告 <span class="bspan">{{= it.text.formatNum(it.Notice.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.ResearchReport && it.ResearchReport.Status == 0 }}\r\n          <a data-stype="ybjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/Yanbao/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">研报 <span class="bspan">{{= it.text.formatNum(it.ResearchReport.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.CMSArticle && it.CMSArticle.Status == 0 }}\r\n          <a data-stype="zxjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/news/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">资讯 <span class="bspan">{{= it.text.formatNum(it.CMSArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.Blog && it.Blog.Status == 0 }}\r\n          <a data-stype="bkjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/Blog/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">博客 <span class="bspan">{{= it.text.formatNum(it.Blog.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaTopic && it.GubaTopic.Status == 0 }}\r\n          <a data-stype="htjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank">话题 <span class="bspan">{{= it.text.formatNum(it.GubaTopic.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.FortuneArticle && it.FortuneArticle.Status == 0 }}\r\n          <a data-stype="cfhwzjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/CArticle/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">财富号文章 <span class="bspan">{{= it.text.formatNum(it.FortuneArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaArticle && it.GubaArticle.Status == 0 }}\r\n          <a data-stype="gbwzjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">股吧 <span class="bspan">{{= it.text.formatNum(it.GubaArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.WenDongMi && it.WenDongMi.Status == 0 }}\r\n          <a data-stype="wdmjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/QA/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">问董秘 <span class="bspan">{{= it.text.formatNum(it.WenDongMi.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.Ask && it.Ask.Status == 0 }}\r\n          <a data-stype="wdmjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/ask/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">悬赏问答 <span class="bspan">{{= it.text.formatNum(it.Ask.TotalCount) }}</span></a>\r\n        {{?}}\r\n      </div>\r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e){t.exports='<div class="sg2017va"><a data-stype="all" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">查看全部搜索结果</a></div>'},function(t,e){t.exports='{{? it.result && it.result.length > 0 }}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关功能\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017hp sg2017hpb">\r\n      {{~it.result:value:index}}\r\n        <a data-stype="gb" data-skey="{{= encodeURIComponent(value.name + \'吧\') }}" href="{{= value.url }}" data-searchhistory="{{= value.name }}" target="_blank">{{= it.text.highLight(value.name, it.key) }}</a>\r\n      {{~}}\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}'},function(t,e){t.exports='{{? it.hasguba}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关股吧\r\n    <div class="sg2017tm"><a href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum( it.GubaCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017hp sg2017hpb">\r\n      {{~it.GubaCodeTable.Data:value:index}}\r\n        <a href="{{= value.Url }}" target="_blank">{{= it.text.highLight(value.ShortName, it.key) }}吧</a>\r\n      {{~}}\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}\r\n\r\n{{? it.hasuser}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关用户\r\n  </div>\r\n  <div class="sg2017bb">\r\n    {{? it.FortuneAccount && it.FortuneAccount.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a href="{{= it.FortuneAccount.Data[0].Url }}" class="bbrlink" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">财富号</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.FortuneAccount.Data[0].NickName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a href="http://so.eastmoney.com/CAccount/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.FortuneAccount.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n    {{? it.Passport && it.Passport.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a href="{{= it.Passport.Data[0].url }}" class="bbrlink" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">吧友</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Passport.Data[0].ualias, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a href="http://so.eastmoney.com/User/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=3" target="_blank" class="blink">{{= it.text.formatNum(it.Passport.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n  </div>\r\n</div>\r\n{{?}}\r\n\r\n{{? it.Portfolio && it.Portfolio.Data != null }}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关组合\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017xgyz">\r\n      <a href="{{= it.Portfolio.Data[0].url }}" class="bbrlink" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">组合</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Portfolio.Data[0].zuheName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a href="http://so.eastmoney.com/ZuHe/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Portfolio.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}\r\n\r\n{{? it.hasxg}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关信息 <span class="sg2017tt">以下为“<span class="sg2017hl">{{! it.text.txtLeft(it.key,20)}}</span>”的搜索个数</span>\r\n  </div>\r\n  <div class="sg2017bb nobb">\r\n      <div class="sg2017hpb">\r\n        {{? it.Notice.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/Ann/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">公告 <span class="bspan">{{= it.text.formatNum(it.Notice.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.ResearchReport.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/Yanbao/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">研报 <span class="bspan">{{= it.text.formatNum(it.ResearchReport.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.CMSArticle.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/news/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">资讯 <span class="bspan">{{= it.text.formatNum(it.CMSArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.Blog.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/Blog/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">博客 <span class="bspan">{{= it.text.formatNum(it.Blog.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaTopic.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank">话题 <span class="bspan">{{= it.text.formatNum(it.GubaTopic.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.FortuneArticle.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/CArticle/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">财富号文章 <span class="bspan">{{= it.text.formatNum(it.FortuneArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaArticle.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">股吧 <span class="bspan">{{= it.text.formatNum(it.GubaArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.WenDongMi.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/QA/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">问董秘 <span class="bspan">{{= it.text.formatNum(it.WenDongMi.TotalCount) }}</span></a>\r\n        {{?}}\r\n      </div>\r\n  </div>\r\n</div> \r\n{{?}}'},function(t,e){t.exports='<div class="suggest2017" style="width:{{= it.width }}px;">\r\n  <div class="suggest2017c"></div>\r\n</div>\r\n'},function(t,e){t.exports='{{?it.search_history.length > 0}}\r\n<div class="sg2017b sg2017hsr">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_history"></span>历史搜索\r\n    <div class="sg2017tm2"><a href="javascript:;" class="clearhsr" target="_self">清空历史</a></div>\r\n  </div>\r\n  <div class="sg2017bb clearfix">\r\n    <ul class="sg2017lp clearfix">\r\n        {{~it.search_history:value:index}}\r\n        <li style="width:{{= it.widths.sg2017ll}}px;"><a data-stype="lsss" data-skey="{{= encodeURIComponent(value) }}" href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(value) }}" target="_blank">{{= it.text.txtLeft(value, 20 + it.widths.text_left_fix_2, true) }}</a>\r\n        </li>\r\n        {{~}}\r\n    </ul>          \r\n  </div>\r\n</div>\r\n{{?}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_hotsearch"></span>热门搜索\r\n    <div class="sg2017tm2"><a href="javascript:;" class="sgchange hotsearchchange" target="_self">换一换<span class="sggicon sggicon_change"></span></a></div>\r\n  </div>\r\n  <div class="sg2017bb clearfix hotsearchdiv"></div>\r\n</div>\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_hotstock"></span>热门个股\r\n    <div class="sg2017tm2"><a href="javascript:;" class="sgchange hotstockchange" target="_self">换一换<span class="sggicon sggicon_change"></span></a></div>\r\n  </div>\r\n  <div class="sg2017bb clearfix nobb hotstockdiv"></div>\r\n</div>'},function(t,e){t.exports='<ul class="sg2017l sg2017ll" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{~it.hotSearchList:value:index}}\r\n  <li><a data-stype="rmss" data-skey="{{= encodeURIComponent(value.KeyPhrase) }}" href="{{= value.JumpAddress }}" target="_blank"><span class="{{? value.index < 3 }}indexred{{?}}">{{= value.index + 1 }}.</span>{{= it.text.txtLeft(value.KeyPhrase, 20 + it.widths.text_left_fix_2, true) }}</a>\r\n  {{? value.HotKeywordStatus == "3"}}\r\n    <span class="sggicon sggicon_new"></span>\r\n  {{?}}\r\n  </li>\r\n  {{? index == 4 }}\r\n</ul>\r\n<ul class="sg2017l" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{?}}\r\n  {{~}}\r\n</ul>'},function(t,e){t.exports='<ul class="sg2017l sg2017ll" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{~it.hotStockList:value:index}}\r\n  <li><a data-stype="rsgg" data-skey="{{= encodeURIComponent(value.Name) }}" href="{{? it.hotStockLink == null }}{{= value.JumpAddress }}{{??}}{{= it.hotStockLink({Code: value.Code, Name: value.Name, MarketType: value.MarketType}) }}{{?}}" target="_blank"><span class="{{? value.index < 3 }}indexred{{?}}">{{= value.index + 1 }}.</span>{{= it.text.txtLeft(value.Name + \'[\' + value.Code + \']\', 20 + it.widths.text_left_fix_2, true) }}</a>\r\n  {{? value.HotKeywordStatus == "3"}}\r\n    <span class="sggicon sggicon_new"></span>\r\n  {{?}}\r\n  </li>\r\n  {{? index == 4 }}\r\n</ul>\r\n<ul class="sg2017l" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{?}}\r\n  {{~}}\r\n</ul>'},function(t,e,n){function a(t,e,n){return("string"==typeof e?e:e.toString()).replace(t.define||c,function(e,a,s,i){return 0===a.indexOf("def.")&&(a=a.substring(4)),a in n||(":"===s?(t.defineParams&&i.replace(t.defineParams,function(t,e,s){n[a]={arg:e,text:s}}),a in n||(n[a]=i)):new Function("def","def['"+a+"']="+i)(n)),""}).replace(t.use||c,function(e,s){t.useParams&&(s=s.replace(t.useParams,function(t,e,a,s){if(n[a]&&n[a].arg&&s){var i=(a+":"+s).replace(/'|\\/g,"_");return n.__exp=n.__exp||{},n.__exp[i]=n[a].text.replace(new RegExp("(^|[^\\w$])"+n[a].arg+"([^\\w$])","g"),"$1"+s+"$2"),e+"def.__exp['"+i+"']"}}));var i=new Function("def","return "+s)(n);return i?a(t,i,n):i})}function s(t){return t.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}var i,o,r={version:"1.1.1",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:undefined,compile:undefined,log:!0};r.encodeHTMLSource=function(t){var e={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=t?/[&<>"'\/]/g:/&(?!#?\w+;)|<|>|"|'|\//g;return function(t){return t?t.toString().replace(n,function(t){return e[t]||t}):""}},o=function(){return this||(0,eval)("this")}(),void 0!==t&&t.exports?t.exports=r:(i=function(){return r}.call(e,n,e,t))!==undefined&&(t.exports=i);var l={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},c=/$^/;r.template=function(t,e,n){var i,d,u=(e=e||r.templateSettings).append?l.append:l.split,p=0,h=e.use||e.define?a(e,t,n||{}):t;h=("var out='"+(e.strip?h.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):h).replace(/'|\\/g,"\\$&").replace(e.interpolate||c,function(t,e){return u.start+s(e)+u.end}).replace(e.encode||c,function(t,e){return i=!0,u.startencode+s(e)+u.end}).replace(e.conditional||c,function(t,e,n){return e?n?"';}else if("+s(n)+"){out+='":"';}else{out+='":n?"';if("+s(n)+"){out+='":"';}out+='"}).replace(e.iterate||c,function(t,e,n,a){return e?(p+=1,d=a||"i"+p,e=s(e),"';var arr"+p+"="+e+";if(arr"+p+"){var "+n+","+d+"=-1,l"+p+"=arr"+p+".length-1;while("+d+"<l"+p+"){"+n+"=arr"+p+"["+d+"+=1];out+='"):"';} } out+='"}).replace(e.evaluate||c,function(t,e){return"';"+s(e)+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|\}|^|\{)out\+='';/g,"$1").replace(/\+''/g,""),i&&(e.selfcontained||!o||o._encodeHTML||(o._encodeHTML=r.encodeHTMLSource(e.doNotSkipEncoded)),h="var encodeHTML = typeof _encodeHTML !== 'undefined' ? _encodeHTML : ("+r.encodeHTMLSource.toString()+"("+(e.doNotSkipEncoded||"")+"));"+h);try{return new Function(e.varname,h)}catch(g){throw g}},r.compile=function(t,e){return r.template(t,null,e)},t.exports=r},function(t,e){t.exports={formatNum:function(t){if(t==undefined||""==t||isNaN(t))return"";var e="";if(t>=1e8)t/=1e8,e="亿";else{if(!(t>=1e4))return t;t/=1e4,e="万"}var n=t.toFixed(2);return parseInt(t)>=1e3&&(n=t.toFixed(1)),n.toString()+e},cut:function(t,e){return t.length>e?t.substring(0,e)+"...":t},txtLength:function(t){for(var e=0,n=0;n<t.length;n++)t.charCodeAt(n)>255?e+=2:e++;return e},txtLeft:function(t,e,n){if(null==t||""==t)return"";for(var a=0,s=0;s<t.length;s++)if(t.charCodeAt(s)>255?a+=2:a++,a>e+3)return n?'<span title="'+t+'">'+t.substring(0,s)+"...</span>":t.substring(0,s)+"...";return t},highLight:function(t,e){try{var n=new RegExp(e,"ig");t=t.replace(n,function(t){return'<span class="sg2017hl">'+t+"</span>"})}catch(a){}return t},leftAndHighLight:function(t,e,n){if(null==t||""==t)return"";for(var a=t,s=!1,i=0,o=0;o<t.length;o++)if(t.charCodeAt(o)>255?i+=2:i++,i>e+3){s=!0,a='<span title="'+t+'">'+this.highLight(t.substring(0,o),n)+"...</span>";break}return s?a:this.highLight(a,n)}}},function(t,e,n){var a=n(0);t.exports={_count:20,_histotyLength:40,_historyCookieName:"emshistory",getHistory:function(){var t=a.get(this._historyCookieName);return t?JSON.parse(t):[]},unHistory:function(t){for(var e=this.getHistory(),n=0;n<e.length;n++)t==e[n]&&(e.splice(n,1),n--);return e},addHistory:function(t){var e=this.unHistory(t);t&&this.txtLength(t)<=this._histotyLength&&(e.length>=this._count&&e.pop(),e.unshift(t),a.set(this._historyCookieName,JSON.stringify(e),90,".eastmoney.com"))},clearHistory:function(){a.del(this._historyCookieName,".eastmoney.com")},txtLength:function(t){for(var e=0,n=0;n<t.length;n++)t.charCodeAt(n)>255?e+=2:e++;return e}}},function(t,e){t.exports=function(t,e,n,a,s){var i="";s!=undefined?i="SearchWord:"+a+";EntryWord:"+s:a&&(i="SearchWord:"+a);try{i?window.sendTrackLog(t,e,n,encodeURIComponent(i)):window.sendTrackLog(t,e,n)}catch(o){}}},function(t,e){t.exports={isIE9:function(){return document.all&&document.addEventListener&&!window.atob},isIpad:function(){return navigator.userAgent.toLowerCase().indexOf("ipad")>=0},isMobile:function(){return["ipad1","android","ios"].some(function(t){return navigator.userAgent.toLowerCase().indexOf(t)>0})}}}])});