/*! 版权所有,翻版必究 */ webpackJsonp([5],[,,,,,,,,,,,,,function(i,e,s){(function(i){if(s(14),s(16),s(17),"mobile"!=(new(s(18))).getDevice().type){try{window.stop()}catch(i){}var e=window.location.href,o=window.location.pathname,r=window.location.search,n={},a="";for(var t in n){if(new RegExp(t).test(o)){a="http://xxx"+n[t],r&&(a+=r);break}}""==a&&(a=e.replace(/\/\/(h5|m)\./,"//walker."),(a=e.replace(/\/\/(m)\./,"//www."))!=e?location.replace(a):(a=e.replace(/\.(pioneer)/,".pc-pioneer"))!=e&&location.replace(a))}i(function(){var e=0,s=!1;i(window).scroll(function(){if(!s){i(window).height();var o=i(window.document).height();s=!0;var r=i(this).scrollTop();r>50&&r>e?i(".bottom-nav").addClass("hide"):ri(window).height()?i(".return-top").css("bottom","100px"):i(".return-top").css("bottom","-100px")}}),i(".return-top").click(function(){i("html,body").animate({scrollTop:"0px"},600)}),i(".join-prd-tab li").click(function(){var e=i(this).index();i(this).addClass("on").siblings("li").removeClass("on"),i(".join-prd-cont-box").children(".join-cont").eq(e).show().siblings(".join-cont").hide()}),i(".go-back,.goback").click(function(){window.history.length>0?window.history.back():window.location.href="/"}),i("body").on("click",".searcher",function(){i(".torlstra-wap-booddy").hide(),i(".focus-fixedtop").show(),i(".search-land").show(),i(".fixed-search").focus()}),i(".searcher").on("click",function(){i(".torlstra-wap-booddy").hide(),i(".focus-fixedtop").show(),i(".search-land").show(),i(".fixed-search").focus(),o.init()}),i(".searcher-back").click(function(){i(".torlstra-wap-booddy").show(),i(".focus-fixedtop").hide(),i(".search-land").hide(),i(".fixed-search").blur()}),i.cookie.defaults={path:"/"};var o={elem:i(".keywords-searcher"),cookieKey:"_search_history",history:[],localData:{suggestions:[]},searchTask:null,searchData:null,ResultTemplate:'
',templateItem:'{value}',renderItem:function(e){if(o.searchData=e,console.log(e),e.suggestions){var s="";return i(e.suggestions).each(function(i,e){var r="";r=o.templateItem.replace("{link}",e.data.url),r=(r="cate"==e.data.type?r.replace("{value}",""+e.value+"加盟"):r.replace("{value}",e.value)).replace("{index}",i),s+=r}),s}},renderResult:function(e){var s=this.renderItem(e);s=o.ResultTemplate.replace("{items}",s),i(".result-container").html(s)},renderHot:function(e){var s=this.renderItem(e);s&&(i(".hot-container .search-lb").html(s),i(".hot-container").show())},renderHistory:function(e){if(e.length<=0)return i(".history-container .search-lb").html(""),void i(".history-container").hide();var s=this.renderItem(e);s&&(i(".history-container .search-lb").html(s),i(".history-container").show())},reset:function(){o.searchTask&&clearTimeout(o.searchTask),o.searchData=[],i(".result-container").html("")},init:function(){if(i.cookie(this.cookieKey)&&(this.history=JSON.parse(i.cookie("_search_history")),console.log(this.history)),this.history){for(var e in this.history)this.localData.suggestions.push(this.history[e]);this.localData.suggestions=this.localData.suggestions.reverse()}i.ajax({url:"/project/ax_search",type:"get",data:{keyword:"+"},dataType:"json",async:!0,success:function(i){o.renderHot(i)},error:function(){},beforeSend:function(){},complete:function(){}}),o.localData.suggestions.length&&o.renderHistory(o.localData),this.elem.on("input",function(){var e=i.trim(i(this).val());e?(console.log(e),o.searchTask&&clearTimeout(o.searchTask),o.searchTask=setTimeout(function(){i.ajax({url:"/project/ax_search",type:"get",data:{keyword:e},dataType:"json",async:!0,success:function(i){o.renderResult(i)},error:function(){},beforeSend:function(){},complete:function(){}})},320)):o.reset()}),i(".search-land").on("click",".search-result-item",function(e){var s=i(e.target),r=s.attr("data-index"),n=o.searchData.suggestions[r];console.log(o.searchData),console.log(s),console.log(r),console.log(n);var a=!1;if(o.history)for(var t in o.history)if(o.history[t].value==n.value){a=!0;break}a||(o.history.push(n),o.history.length>10&&o.history.shift(),i.cookie(o.cookieKey,JSON.stringify(o.history),{expires:90})),n.data.url&&(window.location.href=n.data.url)}),i(".search-land").on("click",".searcher-clear",function(e){o.history=[],o.localData={suggestions:[]},i.removeCookie(o.cookieKey),o.renderHistory(o.history)})}}})}).call(e,s(0))},function(i,e){},,function(i,e){},function(i,e,s){var o,r,n,a; /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ a=function(i){var e=/\+/g;function s(i){return r.raw?i:encodeURIComponent(i)}function o(s,o){var n=r.raw?s:function(i){0===i.indexOf('"')&&(i=i.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return i=decodeURIComponent(i.replace(e," ")),r.json?JSON.parse(i):i}catch(i){}}(s);return i.isFunction(o)?o(n):n}var r=i.cookie=function(e,n,a){if(void 0!==n&&!i.isFunction(n)){if("number"==typeof(a=i.extend({},r.defaults,a)).expires){var t=a.expires,d=a.expires=new Date;d.setTime(+d+864e5*t)}return document.cookie=[s(e),"=",function(i){return s(r.json?JSON.stringify(i):String(i))}(n),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var l,c=e?void 0:{},u=document.cookie?document.cookie.split("; "):[],w=0,h=u.length;w * Dual licensed under GPLv2 or MIT */ /*! * UAParser.js v0.7.18 * Lightweight JavaScript-based User-Agent string parser * https://github.com/faisalman/ua-parser-js * * Copyright © 2012-2016 Faisal Salman * Dual licensed under GPLv2 or MIT */ !function(r,n){"use strict";var a="model",t="name",d="type",l="vendor",c="version",u="mobile",w="tablet",h={extend:function(i,e){var s={};for(var o in i)e[o]&&e[o].length%2==0?s[o]=e[o].concat(i[o]):s[o]=i[o];return s},has:function(i,e){return"string"==typeof i&&-1!==e.toLowerCase().indexOf(i.toLowerCase())},lowerize:function(i){return i.toLowerCase()},major:function(i){return"string"==typeof i?i.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(i){return i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(i,e){for(var s,o,r,n,a,t,d=0;d0?2==n.length?"function"==typeof n[1]?this[n[0]]=n[1].call(this,t):this[n[0]]=n[1]:3==n.length?"function"!=typeof n[1]||n[1].exec&&n[1].test?this[n[0]]=t?t.replace(n[1],n[2]):void 0:this[n[0]]=t?n[1].call(this,t,n[2]):void 0:4==n.length&&(this[n[0]]=t?n[3].call(this,t.replace(n[1],n[2])):void 0):this[n]=t||void 0;d+=2}},str:function(i,e){for(var s in e)if("object"==typeof e[s]&&e[s].length>0){for(var o=0;o