Commit 3cca2f05 by 肖康

新闻详情页面API地址更换

parent 31829ab4
...@@ -96,7 +96,7 @@ export const apis = { ...@@ -96,7 +96,7 @@ export const apis = {
* 新闻详情api * 新闻详情api
* * * *
*/ */
newsArticleDetailAd: productionUrlApi + 'api/newsdetailad', newsArticleDetailAd: productionUrl + 'api/newsdetailad',
/** /**
* * * *
* 登录接口api * 登录接口api
......
<!DOCTYPE HTML><html lang=zh-CN><head><title></title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=description content=猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。><meta name=keywords content=猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-1bc51d6f.045485d7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1d3c5852.c0f345b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-33510d46.43c91bcb.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4da9392a.29799028.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-6cd0cdfb.d7e46390.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-bf12cf58.16c2a686.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-ce72359e.bcecf0d4.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-e78c7db2.927a837d.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1bc51d6f.e06019d2.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1d3c5852.c1c4a54c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-33510d46.60007b2e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4da9392a.f1e9ebbb.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-6cd0cdfb.f237429f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-bf12cf58.5fbddaf2.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-ce72359e.1c5d93cd.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-e78c7db2.9bf89e44.js rel=prefetch><link href=//h5static.ichunt.com/css/app.b0927897.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.59ded326.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.6f53716c.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.2a431709.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.59ded326.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.b0927897.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) { <!DOCTYPE HTML><html lang=zh-CN><head><title></title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=description content=猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。><meta name=keywords content=猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-1bc51d6f.045485d7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1d3c5852.c0f345b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-33510d46.43c91bcb.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4da9392a.29799028.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-6cd0cdfb.d7e46390.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-bf12cf58.16c2a686.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-ce72359e.bcecf0d4.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-e78c7db2.927a837d.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1bc51d6f.e6e138df.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1d3c5852.a9f51aba.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-33510d46.d1eb2a68.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4da9392a.90740a7a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-6cd0cdfb.9e1b9a9d.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-bf12cf58.c06104e7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-ce72359e.4748f4a6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-e78c7db2.2498bf97.js rel=prefetch><link href=//h5static.ichunt.com/css/app.b0927897.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.59ded326.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.f4057a0a.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.2a431709.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.59ded326.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.b0927897.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) {
domain = domain ? ";domain=" + domain : ""; domain = domain ? ";domain=" + domain : "";
var Days = time; var Days = time;
var exp = new Date(); var exp = new Date();
...@@ -224,4 +224,4 @@ ...@@ -224,4 +224,4 @@
user_rank: '0' user_rank: '0'
}); });
sensors.quick('autoTrack'); sensors.quick('autoTrack');
}</script><script src=//h5static.ichunt.com/js/chunk-vendors.2a431709.js></script><script src=//h5static.ichunt.com/js/app.6f53716c.js></script></body></html> }</script><script src=//h5static.ichunt.com/js/chunk-vendors.2a431709.js></script><script src=//h5static.ichunt.com/js/app.f4057a0a.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(function(t){function e(e){for(var a,i,r=e[0],s=e[1],u=e[2],d=0,l=[];d<r.length;d++)i=r[d],o[i]&&l.push(o[i][0]),o[i]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t[a]=s[a]);f&&f(e);while(l.length)l.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],a=!0,i=1;i<n.length;i++){var r=n[i];0!==o[r]&&(a=!1)}a&&(c.splice(e--,1),t=s(s.s=n[0]))}return t}var a={},i={app:0},o={app:0},c=[];function r(t){return s.p+"js/"+({}[t]||t)+"."+{"chunk-1bc51d6f":"e06019d2","chunk-1d3c5852":"c1c4a54c","chunk-33510d46":"60007b2e","chunk-4da9392a":"f1e9ebbb","chunk-6cd0cdfb":"f237429f","chunk-bf12cf58":"5fbddaf2","chunk-ce72359e":"1c5d93cd","chunk-e78c7db2":"9bf89e44"}[t]+".js"}function s(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(t){var e=[],n={"chunk-1bc51d6f":1,"chunk-1d3c5852":1,"chunk-33510d46":1,"chunk-4da9392a":1,"chunk-6cd0cdfb":1,"chunk-bf12cf58":1,"chunk-ce72359e":1,"chunk-e78c7db2":1};i[t]?e.push(i[t]):0!==i[t]&&n[t]&&e.push(i[t]=new Promise(function(e,n){for(var a="css/"+({}[t]||t)+"."+{"chunk-1bc51d6f":"045485d7","chunk-1d3c5852":"c0f345b7","chunk-33510d46":"43c91bcb","chunk-4da9392a":"29799028","chunk-6cd0cdfb":"d7e46390","chunk-bf12cf58":"16c2a686","chunk-ce72359e":"bcecf0d4","chunk-e78c7db2":"927a837d"}[t]+".css",o=s.p+a,c=document.getElementsByTagName("link"),r=0;r<c.length;r++){var u=c[r],d=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(d===a||d===o))return e()}var l=document.getElementsByTagName("style");for(r=0;r<l.length;r++){u=l[r],d=u.getAttribute("data-href");if(d===a||d===o)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var a=e&&e.target&&e.target.src||o,c=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");c.request=a,delete i[t],f.parentNode.removeChild(f),n(c)},f.href=o;var m=document.getElementsByTagName("head")[0];m.appendChild(f)}).then(function(){i[t]=0}));var a=o[t];if(0!==a)if(a)e.push(a[2]);else{var c=new Promise(function(e,n){a=o[t]=[e,n]});e.push(a[2]=c);var u,d=document.createElement("script");d.charset="utf-8",d.timeout=120,s.nc&&d.setAttribute("nonce",s.nc),d.src=r(t),u=function(e){d.onerror=d.onload=null,clearTimeout(l);var n=o[t];if(0!==n){if(n){var a=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src,c=new Error("Loading chunk "+t+" failed.\n("+a+": "+i+")");c.type=a,c.request=i,n[1](c)}o[t]=void 0}};var l=setTimeout(function(){u({type:"timeout",target:d})},12e4);d.onerror=d.onload=u,document.head.appendChild(d)}return Promise.all(e)},s.m=t,s.c=a,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)s.d(n,a,function(e){return t[e]}.bind(null,a));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="//h5static.ichunt.com/",s.oe=function(t){throw t};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],d=u.push.bind(u);u.push=e,u=u.slice();for(var l=0;l<u.length;l++)e(u[l]);var f=d;c.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"365c":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return m});var a,i,o,c=n("bd31"),r=n("7f43"),s=n.n(r);switch(window.location.hostname){case"m.ichunt.com":o="https://www.ichunt.com/v3/",i="https://m.ichunt.com/v3/",a="https://api.ichunt.com/";break;case"szm.ichunt.com":a="https://szapi.ichunt.com/",i="https://szm.ichunt.com/v3/",o="https://sz.ichunt.com/v3/";break;case"tm.ichunt.com":i="https://tm.ichunt.com/v3/",a="https://api.ichunt.com/",o="https://t.ichunt.com/v3/";break;case"m.liexin.com":i="http://m.liexin.com/v3/",a="http://api.liexin.com/",o="http://www.liexin.com/v3/";break;default:i="/m/v3/",a="/apis/"}var u=o,d=i,l=a,f={index:d+"index",loginCheck:l+"login/check",cartCount:l+"cart/count",customsrService:l+"public/customsrservice",getCommonParams:d+"getcommonparams",wxaccess:d+"api/wxaccess",checkAccountExists:l+"public/checkAccountExists",customSmsVerify:l+"public/customSmsVerify",chainFind:d+"Service/chainFind",wechatArticle:l+"Wechat/WechatArticleJinJi/article",newsArticle:l+"Article/Article/index",newsArticleDetail:l+"Article/Article/details",newsArticleDetailAd:l+"api/newsdetailad",actionLogin:l+"login/action",smsVerify:l+"public/smsVerify",feedback:l+"help/help/feedback"},m={index:function(t){return s.a.post(f.index,t)},loginCheck:function(t){return s.a.get(f.loginCheck,{params:Object(c["a"])({},t)})},smsVerify:function(t){return s.a.post(f.smsVerify,t)},actionLogin:function(t){return s.a.post(f.actionLogin,t)},feedback:function(t){return s.a.post(f.feedback,t)},cartCount:function(t){return s.a.get(f.cartCount,{params:Object(c["a"])({},t)})},customsrService:function(t){return s.a.get(f.customsrService,{params:Object(c["a"])({},t)})},getCommonParams:function(t){return s.a.post(f.getCommonParams,t)},wxaccess:function(t){return s.a.post(f.wxaccess,t)},checkAccountExists:function(t){return s.a.post(f.checkAccountExists,t)},customSmsVerify:function(t){return s.a.post(f.customSmsVerify,t)},chainFind:function(t){return s.a.post(f.chainFind,t)},wechatArticle:function(t){return s.a.post(f.wechatArticle,t)},newsArticle:function(t){return s.a.post(f.newsArticle,t)},newsArticleDetail:function(t){return s.a.post(f.newsArticleDetail,t)},newsArticleDetailAd:function(t){return s.a.post(f.newsArticleDetailAd,t)}}},"56d7":function(t,e,n){"use strict";n.r(e);var a=n("a700"),i=n.n(a),o=n("bd31"),c=n("0ec6"),r=n.n(c),s=(n("612f"),n("53da"),n("40f8"),n("8973")),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("keep-alive",{attrs:{exclude:"newsDetail"}},[n("router-view",{staticClass:"router-view"})],1)],1)},d=[],l={name:"app"},f=l,m=n("8c9c"),h=Object(m["a"])(f,u,d,!1,null,null,null),p=h.exports,g=n("7f43"),v=n.n(g),b=(n("3a23"),n("081a")),w=function(t){return n.e("chunk-e78c7db2").then(function(){var e=[n("9553")];t.apply(null,e)}.bind(this)).catch(n.oe)},y=function(t){return n.e("chunk-6cd0cdfb").then(function(){var e=[n("2500")];t.apply(null,e)}.bind(this)).catch(n.oe)},k=function(t){return n.e("chunk-33510d46").then(function(){var e=[n("9055")];t.apply(null,e)}.bind(this)).catch(n.oe)},_=function(t){return n.e("chunk-1d3c5852").then(function(){var e=[n("bd04")];t.apply(null,e)}.bind(this)).catch(n.oe)},A=function(t){return n.e("chunk-ce72359e").then(function(){var e=[n("2536")];t.apply(null,e)}.bind(this)).catch(n.oe)},C=function(t){return n.e("chunk-1bc51d6f").then(function(){var e=[n("832f")];t.apply(null,e)}.bind(this)).catch(n.oe)},x=function(t){return n.e("chunk-4da9392a").then(function(){var e=[n("f825")];t.apply(null,e)}.bind(this)).catch(n.oe)},S=function(t){return n.e("chunk-bf12cf58").then(function(){var e=[n("9c63")];t.apply(null,e)}.bind(this)).catch(n.oe)};s["a"].use(b["a"]);var O=[{path:"/",component:w,meta:{title:"猎芯网"}},{path:"/smt",component:y,meta:{title:"SMT打样"}},{path:"/supplier",component:k,meta:{title:"猎芯网,猎芯网供应商,猎芯网合作伙伴,电子元器件采购,电子元器件商城,IC采购网"}},{path:"/wxlist",name:"Wxlist",component:_,meta:{title:"猎芯网"}},{path:"/news",name:"News",component:A,meta:{title:"猎芯网-新闻列表"}},{path:"/seo",name:"Seo",component:x,meta:{title:"猎芯网——京东战投元器件商城"}},{path:"/findthing",name:"Findthing",component:S,meta:{title:"猎芯网——快速找料"}},{path:"/news/detail/:art_id/:cat_id",name:"NewsDetail",component:C,meta:{title:"猎芯网-新闻详情"}},{path:"*",redirect:"/"}];O.forEach(function(t){t.path=t.path||"/"+(t.name||"")});var j=new b["a"]({routes:O});j.beforeEach(function(t,e,n){var a=t.meta&&t.meta.title;a&&(document.title=a),n()});var T=n("52c1"),D=n("5101"),E=n("365c"),L=(n("f91a"),n("ab56"),n("ab01")),P=n.n(L),V=(n("ea65"),0),M=8;function I(t){return B(F(z(t),t.length*M))}function F(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),a=1732584193,i=-271733879,o=-1732584194,c=271733878,r=-1009589776,s=0;s<t.length;s+=16){for(var u=a,d=i,l=o,f=c,m=r,h=0;h<80;h++){n[h]=h<16?t[s+h]:R(n[h-3]^n[h-8]^n[h-14]^n[h-16],1);var p=W(W(R(a,5),N(h,i,o,c)),W(W(r,n[h]),q(h)));r=c,c=o,o=R(i,30),i=a,a=p}a=W(a,u),i=W(i,d),o=W(o,l),c=W(c,f),r=W(r,m)}return Array(a,i,o,c,r)}function N(t,e,n,a){return t<20?e&n|~e&a:t<40?e^n^a:t<60?e&n|e&a|n&a:e^n^a}function q(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function W(t,e){var n=(65535&t)+(65535&e),a=(t>>16)+(e>>16)+(n>>16);return a<<16|65535&n}function R(t,e){return t<<e|t>>>32-e}function z(t){for(var e=Array(),n=(1<<M)-1,a=0;a<t.length*M;a+=M)e[a>>5]|=(t.charCodeAt(a/M)&n)<<24-a%32;return e}function B(t){for(var e=V?"0123456789ABCDEF":"0123456789abcdef",n="",a=0;a<4*t.length;a++)n+=e.charAt(t[a>>2]>>8*(3-a%4)+4&15)+e.charAt(t[a>>2]>>8*(3-a%4)&15);return n}var Y=n("0427"),J={setCookie:function(t,e,n,a){a=a?";domain="+a:"";var i=n,o=new Date;return o.setTime(o.getTime()+24*i*60*60*1e3),document.cookie=t+"="+encodeURIComponent(e)+";expires="+o.toGMTString()+";path=/"+a,!0},getCookie:function(t){for(var e=document.cookie,n=e.split("; "),a=0;a<n.length;a++){var i=n[a].split("=");if(t==i[0])return i[1]}return null},delCookie:function(t){var e=new Date;e.setTime(e.getTime()-1);var n=this.getCookie(t);null!=n&&(document.cookie=t+"="+n+";expires="+e.toGMTString())},getParams:function(t){var e=this.getCookie("Yo4teW_gid"),n=this.getCookie("cache_time");if(null!=n)var a=Math.floor((new Date).getTime()/1e3);else{a=Math.floor((new Date).getTime()/1e3)+window.fwtimes;this.setCookie("cache_time",window.fwtimes,1,window.cookieHostname)}var i=[],o={},c="",s="",u="",d={pf:2,qwertyuiop:a,Yo4teW_gid:e},l=P()({},d,t);r()(l).forEach(function(t,e,n){i.push(t)}),i=i.sort(),i.forEach(function(t,e,n){o[i[e]]=l[i[e]]}),r()(o).forEach(function(t,e,n){c+=t+"="+o[t]}),s=c.replace(/[^0-9a-zA-Z]/g,""),s=s.toUpperCase();for(var f=0;f<s.length;f++)"A"!=s[f]&&"B"!=s[f]&&"C"!=s[f]&&(u+=s[f]);c=I(u);var m=P()({},t,{asdfghjkl:c},{qwertyuiop:a},{pf:2});return Y.stringify(m)}};s["a"].use(D["i"]);var H={index:{},loading:!0},$={index:function(t,e){t.index=e.data}},G={index:function(t,e){var n=t.commit;H.loading=!0;var a=J.getParams();E["b"].index(a).then(function(t){var e=t.data;H.loading=!1,0==e.err_code?n({type:"index",data:e.data}):2==e.err_code&&Object(D["i"])({message:"非常抱歉,当前客户端时间与服务器时间不一致,请校准您的时间",duration:3e3})}).catch(function(t){H.loading=!1})}},U={},Z={state:H,mutations:$,actions:G,getters:U};s["a"].use(D["i"]);var K={cartCount:"",loginCheck:!1,phpParams:{}},Q={cartCount:function(t,e){t.cartCount=0==e.data?"":e.data},loginCheck:function(t,e){0==e.data.err_code?t.loginCheck=!0:11030==e.data.err_code?t.loginCheck=!0:t.loginCheck=!1},phpParams:function(t,e){t.phpParams=e.data.data}},X={cartCount:function(t,e){var n=t.commit;E["b"].cartCount().then(function(t){var e=t.data;0==e.err_code&&n({type:"cartCount",data:e.datacartCount})}).catch(function(t){})},loginCheck:function(t,e){var n=t.commit;E["b"].loginCheck().then(function(t){var e=t.data;n({type:"loginCheck",data:e})}).catch(function(t){})},customsrService:function(t,e){t.commit;var n={pf:window.lxpf,searchModel:""};E["b"].customsrService(n).then(function(t){}).catch(function(t){})},getCommonParams:function(t,e){var n=t.commit,a=J.getParams();E["b"].getCommonParams(a).then(function(t){var e=t.data;n({type:"phpParams",data:e})}).catch(function(t){})}},tt={},et={state:K,mutations:Q,actions:X,getters:tt},nt=n("0427");s["a"].use(D["i"]);var at={loading:!1},it={index:function(t,e){t.index=e.data}},ot={checkAccountExists:function(t,e){t.commit;at.loading=!0;var n={pf:2,type:2,account:e.account};E["b"].checkAccountExists(nt.stringify(n)).then(function(t){var e=t.data;at.loading=!1,0!=e.err_code&&Object(D["i"])({message:"该手机号尚未注册,我们将为您自动生成猎芯网帐号",duration:3e3})}).catch(function(t){at.loading=!1})},customSmsVerify:function(t,e){t.commit;at.loading=!0;var n={pf:2,verify:"",mobile:e.mobile};E["b"].customSmsVerify(nt.stringify(n)).then(function(t){var e=t.data;at.loading=!1,0==e.err_code?Object(D["i"])({message:e.err_msg,duration:2e3}):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){at.loading=!1})},chainFind:function(t,e){t.commit;if(at.loading=!0,1==e.types)var n={type:2,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode,com_name:e.com_name,main_brand:e.main_brand,supplier_type:e.supplier_type};else if(3==e.types)n={type:3,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode};E["b"].chainFind(nt.stringify(n)).then(function(t){var n=t.data;at.loading=!1,1==n.errcode?Object(D["i"])({message:n.errmsg,duration:3e3}):2==n.errcode?(Object(D["i"])({message:"已为您自动创建的猎芯网登录账号为"+e.mobile+"请使用免密码登录",duration:3e3}),setTimeout(function(){window.location.reload()},3e3)):(Object(D["i"])({message:"您已经提交成功,我们将会在2个工作日内联系您",duration:3e3}),setTimeout(function(){window.location.reload()},3e3))}).catch(function(t){at.loading=!1,Object(D["i"])({message:"网络出现问题,请重试",duration:3e3})})}},ct={},rt={state:at,mutations:it,actions:ot,getters:ct},st=n("0427");s["a"].use(D["i"]);var ut={loadStatus:!1,wechatArticle:{},wechatArticleList:[],finished:!1,limits:1},dt={wechatArticle:function(t,e){t.wechatArticle=e.data,t.wechatArticleList=t.wechatArticleList.concat(e.data.list),t.limits=Math.ceil(e.data.total/6),e.page>=t.limits&&(t.finished=!0)}},lt={wechatArticle:function(t,e){var n=t.commit;ut.loadStatus=!0;var a={type_id:e.type_id,page:e.page,limit:e.limit};E["b"].wechatArticle(st.stringify(a)).then(function(t){var a=t.data;ut.loadStatus=!1,0==a.err_code&&n({type:"wechatArticle",data:a.data,page:e.page,limit:e.limit})}).catch(function(t){ut.loadStatus=!1})}},ft={},mt={state:ut,mutations:dt,actions:lt,getters:ft},ht=(n("b06f"),n("0427"));s["a"].use(D["i"]);var pt={finished:!1,loadStatus:!1,cat_list:[],content_list:[],rollbanner:[],p:1,limit:10,totalLimit:0},gt={newsArticle:function(t,e){t.rollbanner=e.data.rollbanner,t.cat_list=e.data.cat_list,1==t.p?t.content_list=e.data.content_list:t.content_list=t.content_list.concat(e.data.content_list),t.totalLimit=Math.ceil(Number(e.data.tatol_num)/t.limit),t.p>=t.totalLimit?t.finished=!0:t.finished=!1}},vt={newsArticle:function(t,e){var n=t.commit;pt.loadStatus=!0;var a={cat_id:e.cat_id,p:e.p,limit:e.limit};pt.p=e.p,pt.limit=e.limit,E["b"].newsArticle(ht.stringify(a)).then(function(t){var e=t.data;pt.loadStatus=!1,0==e.err_code&&n({type:"newsArticle",data:e.data})}).catch(function(t){pt.loadStatus=!1})}},bt={},wt={state:pt,mutations:gt,actions:vt,getters:bt},yt=n("0427");s["a"].use(D["i"]);var kt={loadStatus:!1,newsDetailObj:{},newsDetailAd:{}},_t={newsArticleDetail:function(t,e){t.newsDetailObj=e.data},newsArticleDetailAd:function(t,e){t.newsDetailAd=e.data,J.getCookie("newsdetailpop")?t.newsDetailAd.h5_news_ad_pop="":J.setCookie("newsdetailpop","1",1)}},At={newsArticleDetail:function(t,e){var n=t.commit;kt.newsDetailObj={},kt.loadStatus=!0;var a={art_id:e.art_id};E["b"].newsArticleDetail(yt.stringify(a)).then(function(t){kt.loadStatus=!1;var e=t.data;0==e.err_code&&n({type:"newsArticleDetail",data:e.data})}).catch(function(t){kt.loadStatus=!1})},newsArticleDetailAd:function(t,e){var n=t.commit,a={cat_id:e.cat_id},i=J.getParams(a);E["b"].newsArticleDetailAd(i).then(function(t){var e=t.data;0==e.err_code&&n({type:"newsArticleDetailAd",data:e.data})}).catch(function(t){})}},Ct={},xt={state:kt,mutations:_t,actions:At,getters:Ct},St=n("0427");s["a"].use(D["i"]);var Ot={loading:!1,form1ImgShow:!1,form2ImgShow:!1,form1CodeStatus:!1,form2CodeStatus:!1,isRegLogin:!1},jt={smsVerify:function(t,e){}},Tt={smsVerify:function(t,e){var n=t.commit;Ot.form1CodeStatus=!1,Ot.loading=!0;var a={mobile:e.mobile,verify:e.verify,channel:1};E["b"].smsVerify(St.stringify(a)).then(function(t){var a=t.data;Ot.loading=!1;var i="form2"==e.types?"form2":"form1";Ot[i+"ImgShow"]=!1,0==a.err_code?(Object(D["i"])({message:a.err_msg,duration:2e3}),Ot[i+"CodeStatus"]=!0,n({type:"smsVerify",data:a.data})):23019==a.err_code||11008==a.err_code||11011==a.err_code?(Object(D["i"])({message:a.err_msg,duration:2e3}),Ot[i+"ImgShow"]=!0):Object(D["i"])({message:a.err_msg,duration:3e3})}).catch(function(t){Ot.loading=!1})},actionLogin:function(t,e){var n=t.commit;Ot.loading=!0,Ot.isRegLogin=!1;var a={account:e.account,sms_verify:e.sms_verify};E["b"].actionLogin(St.stringify(a)).then(function(t){var a=t.data;if(Ot.loading=!1,0==a.err_code){if("form1"==e.form_name)return Object(D["i"])({message:"提交成功",duration:2e3}),void setTimeout(function(){window.location.href="/"},2e3);Ot.isRegLogin=!0,n({type:"actionLogin",data:a.data})}else Object(D["i"])({message:a.err_msg,duration:3e3})}).catch(function(t){Ot.loading=!1})},feedback:function(t,e){var n=t.commit;Ot.loading=!0;var a={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};E["b"].feedback(St.stringify(a)).then(function(t){var e=t.data;Ot.loading=!1,0==e.err_code?(Object(D["i"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout(function(){window.location.href="/"},3e3),n({type:"feedback",data:e.data})):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Ot.loading=!1})}},Dt={},Et={state:Ot,mutations:jt,actions:Tt,getters:Dt},Lt=n("0427");s["a"].use(D["i"]);var Pt={loading:!1,form1ImgShow:!1,form1CodeStatus:!1,isRegLogin:!1},Vt={},Mt={smsVerify1:function(t,e){var n=t.commit;Pt.form1CodeStatus=!1,Pt.loading=!0;var a={mobile:e.mobile,verify:e.verify,channel:1};E["b"].smsVerify(Lt.stringify(a)).then(function(t){var e=t.data;Pt.loading=!1,Pt["form1ImgShow"]=!1,0==e.err_code?(Object(D["i"])({message:e.err_msg,duration:2e3}),Pt["form1CodeStatus"]=!0,n({type:"smsVerify",data:e.data})):23019==e.err_code||11008==e.err_code||11011==e.err_code?(Object(D["i"])({message:e.err_msg,duration:2e3}),Pt["form1ImgShow"]=!0):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Pt.loading=!1})},actionLogin1:function(t,e){var n=t.commit;Pt.loading=!0,Pt.isRegLogin=!1;var a={account:e.account,sms_verify:e.sms_verify};E["b"].actionLogin(Lt.stringify(a)).then(function(t){var e=t.data;Pt.loading=!1,0==e.err_code?(Pt.isRegLogin=!0,n({type:"actionLogin",data:e.data})):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Pt.loading=!1})},feedback1:function(t,e){var n=t.commit;Pt.loading=!0;var a={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};E["b"].feedback(Lt.stringify(a)).then(function(t){var e=t.data;Pt.loading=!1,0==e.err_code?(Object(D["i"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout(function(){window.location.href="/"},3e3),n({type:"feedback",data:e.data})):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Pt.loading=!1})}},It={},Ft={state:Pt,mutations:Vt,actions:Mt,getters:It};s["a"].use(T["a"]);var Nt=new T["a"].Store({modules:{home:Z,common:et,smt:rt,wxlist:mt,news:wt,newsdetail:xt,seo:Et,findthing:Ft}}),qt=function(t,e){var n=t;return-1==n.indexOf("ptag")&&(n=n.indexOf("?")>-1?n+"&ptag="+e:n+"?ptag="+e),n},Wt=function(t){return t.indexOf("?")>-1?t+"&ptag=index-dynamic":t+"?ptag=index-dynamic"},Rt=function(t,e){var n=new Date(1e3*t);function a(t){return t<10&&(t="0"+t),t}var i=n.getFullYear(),o=n.getMonth()+1,c=n.getDate(),r=n.getHours(),s=n.getMinutes(),u=n.getSeconds();return i+"-"+a(o)+"-"+a(c)+" "+a(r)+":"+a(s)+":"+a(u)},zt={dateTimeFormate:Rt,urlParams:Wt,urlPatg:qt},Bt={bind:function(t,e){t.addEventListener("click",function(){var t=document.querySelector(".container-wrap").scrollTop,e=(t/100).toFixed(0),n=setInterval(function(){t-=e,t<=0&&(t=0,clearInterval(n)),document.querySelector(".container-wrap").scrollTop=t},1)},!1)}},Yt={bind:function(t,e){t.addEventListener("click",function(t){var e=document.documentElement.scrollTop||document.body.scrollTop,n=(e/100).toFixed(0),a=setInterval(function(){e-=n,e<=0&&(e=0,clearInterval(a)),document.documentElement.scrollTop?document.documentElement.scrollTop=e:document.body.scrollTop?document.body.scrollTop=e:document.querySelector("html,body").scrollTop=e},1)},!1)}},Jt={install:function(t){t.directive("backTop",Bt),t.directive("backTopWindow",Yt)}},Ht=n("897d"),$t=n.n(Ht),Gt=n("5482"),Ut=n.n(Gt);n("13f6"),n("bfd9");s["a"].config.productionTip=!1;var Zt="production";if("production"!=Zt)new Ut.a;r()(zt).forEach(function(t){return s["a"].filter(t,zt[t])}),s["a"].use(Jt),s["a"].prototype.$http=v.a,v.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",v.a.defaults.withCredentials=!0,v.a.interceptors.request.use(function(t){if("post"==t.method)t.data?-1==t.data.indexOf("&pf=2")&&(t.data+="&pf="+window.lxpf):t.data="pf="+window.lxpf;else if("get"==t.method){var e=r()(t.params);e.length?-1==e.indexOf("pf")&&(t.params=Object(o["a"])({pf:window.lxpf},t.params)):t.params={pf:window.lxpf}}return t},function(t){return i.a.reject(t)});var Kt=J.getCookie("Yo4teW_gid");if(null==Kt){var Qt=$t()("");J.setCookie("Yo4teW_gid",Qt,1,window.cookieHostname)}var Xt={urlhash:window.location.hash};Xt=J.getParams(Xt),E["b"].wxaccess(Xt).then(function(t){var e=t.data;0==e.err_code&&e.data&&(window.location.href=e.data)}),new s["a"]({router:j,store:Nt,render:function(t){return t(p)}}).$mount("#app")},bfd9:function(t,e,n){}}); (function(t){function e(e){for(var a,i,r=e[0],s=e[1],u=e[2],d=0,l=[];d<r.length;d++)i=r[d],o[i]&&l.push(o[i][0]),o[i]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t[a]=s[a]);f&&f(e);while(l.length)l.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],a=!0,i=1;i<n.length;i++){var r=n[i];0!==o[r]&&(a=!1)}a&&(c.splice(e--,1),t=s(s.s=n[0]))}return t}var a={},i={app:0},o={app:0},c=[];function r(t){return s.p+"js/"+({}[t]||t)+"."+{"chunk-1bc51d6f":"e6e138df","chunk-1d3c5852":"a9f51aba","chunk-33510d46":"d1eb2a68","chunk-4da9392a":"90740a7a","chunk-6cd0cdfb":"9e1b9a9d","chunk-bf12cf58":"c06104e7","chunk-ce72359e":"4748f4a6","chunk-e78c7db2":"2498bf97"}[t]+".js"}function s(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(t){var e=[],n={"chunk-1bc51d6f":1,"chunk-1d3c5852":1,"chunk-33510d46":1,"chunk-4da9392a":1,"chunk-6cd0cdfb":1,"chunk-bf12cf58":1,"chunk-ce72359e":1,"chunk-e78c7db2":1};i[t]?e.push(i[t]):0!==i[t]&&n[t]&&e.push(i[t]=new Promise(function(e,n){for(var a="css/"+({}[t]||t)+"."+{"chunk-1bc51d6f":"045485d7","chunk-1d3c5852":"c0f345b7","chunk-33510d46":"43c91bcb","chunk-4da9392a":"29799028","chunk-6cd0cdfb":"d7e46390","chunk-bf12cf58":"16c2a686","chunk-ce72359e":"bcecf0d4","chunk-e78c7db2":"927a837d"}[t]+".css",o=s.p+a,c=document.getElementsByTagName("link"),r=0;r<c.length;r++){var u=c[r],d=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(d===a||d===o))return e()}var l=document.getElementsByTagName("style");for(r=0;r<l.length;r++){u=l[r],d=u.getAttribute("data-href");if(d===a||d===o)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var a=e&&e.target&&e.target.src||o,c=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");c.request=a,delete i[t],f.parentNode.removeChild(f),n(c)},f.href=o;var m=document.getElementsByTagName("head")[0];m.appendChild(f)}).then(function(){i[t]=0}));var a=o[t];if(0!==a)if(a)e.push(a[2]);else{var c=new Promise(function(e,n){a=o[t]=[e,n]});e.push(a[2]=c);var u,d=document.createElement("script");d.charset="utf-8",d.timeout=120,s.nc&&d.setAttribute("nonce",s.nc),d.src=r(t),u=function(e){d.onerror=d.onload=null,clearTimeout(l);var n=o[t];if(0!==n){if(n){var a=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src,c=new Error("Loading chunk "+t+" failed.\n("+a+": "+i+")");c.type=a,c.request=i,n[1](c)}o[t]=void 0}};var l=setTimeout(function(){u({type:"timeout",target:d})},12e4);d.onerror=d.onload=u,document.head.appendChild(d)}return Promise.all(e)},s.m=t,s.c=a,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)s.d(n,a,function(e){return t[e]}.bind(null,a));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="//h5static.ichunt.com/",s.oe=function(t){throw t};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],d=u.push.bind(u);u.push=e,u=u.slice();for(var l=0;l<u.length;l++)e(u[l]);var f=d;c.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"365c":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return m});var a,i,o,c=n("bd31"),r=n("7f43"),s=n.n(r);switch(window.location.hostname){case"m.ichunt.com":o="https://www.ichunt.com/v3/",i="https://m.ichunt.com/v3/",a="https://api.ichunt.com/";break;case"szm.ichunt.com":a="https://szapi.ichunt.com/",i="https://szm.ichunt.com/v3/",o="https://sz.ichunt.com/v3/";break;case"tm.ichunt.com":i="https://tm.ichunt.com/v3/",a="https://api.ichunt.com/",o="https://t.ichunt.com/v3/";break;case"m.liexin.com":i="http://m.liexin.com/v3/",a="http://api.liexin.com/",o="http://www.liexin.com/v3/";break;default:i="/m/v3/",a="/apis/"}var u=o,d=i,l=a,f={index:d+"index",loginCheck:l+"login/check",cartCount:l+"cart/count",customsrService:l+"public/customsrservice",getCommonParams:d+"getcommonparams",wxaccess:d+"api/wxaccess",checkAccountExists:l+"public/checkAccountExists",customSmsVerify:l+"public/customSmsVerify",chainFind:d+"Service/chainFind",wechatArticle:l+"Wechat/WechatArticleJinJi/article",newsArticle:l+"Article/Article/index",newsArticleDetail:l+"Article/Article/details",newsArticleDetailAd:d+"api/newsdetailad",actionLogin:l+"login/action",smsVerify:l+"public/smsVerify",feedback:l+"help/help/feedback"},m={index:function(t){return s.a.post(f.index,t)},loginCheck:function(t){return s.a.get(f.loginCheck,{params:Object(c["a"])({},t)})},smsVerify:function(t){return s.a.post(f.smsVerify,t)},actionLogin:function(t){return s.a.post(f.actionLogin,t)},feedback:function(t){return s.a.post(f.feedback,t)},cartCount:function(t){return s.a.get(f.cartCount,{params:Object(c["a"])({},t)})},customsrService:function(t){return s.a.get(f.customsrService,{params:Object(c["a"])({},t)})},getCommonParams:function(t){return s.a.post(f.getCommonParams,t)},wxaccess:function(t){return s.a.post(f.wxaccess,t)},checkAccountExists:function(t){return s.a.post(f.checkAccountExists,t)},customSmsVerify:function(t){return s.a.post(f.customSmsVerify,t)},chainFind:function(t){return s.a.post(f.chainFind,t)},wechatArticle:function(t){return s.a.post(f.wechatArticle,t)},newsArticle:function(t){return s.a.post(f.newsArticle,t)},newsArticleDetail:function(t){return s.a.post(f.newsArticleDetail,t)},newsArticleDetailAd:function(t){return s.a.post(f.newsArticleDetailAd,t)}}},"56d7":function(t,e,n){"use strict";n.r(e);var a=n("a700"),i=n.n(a),o=n("bd31"),c=n("0ec6"),r=n.n(c),s=(n("612f"),n("53da"),n("40f8"),n("8973")),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("keep-alive",{attrs:{exclude:"newsDetail"}},[n("router-view",{staticClass:"router-view"})],1)],1)},d=[],l={name:"app"},f=l,m=n("8c9c"),h=Object(m["a"])(f,u,d,!1,null,null,null),p=h.exports,g=n("7f43"),v=n.n(g),b=(n("3a23"),n("081a")),w=function(t){return n.e("chunk-e78c7db2").then(function(){var e=[n("9553")];t.apply(null,e)}.bind(this)).catch(n.oe)},y=function(t){return n.e("chunk-6cd0cdfb").then(function(){var e=[n("2500")];t.apply(null,e)}.bind(this)).catch(n.oe)},k=function(t){return n.e("chunk-33510d46").then(function(){var e=[n("9055")];t.apply(null,e)}.bind(this)).catch(n.oe)},_=function(t){return n.e("chunk-1d3c5852").then(function(){var e=[n("bd04")];t.apply(null,e)}.bind(this)).catch(n.oe)},A=function(t){return n.e("chunk-ce72359e").then(function(){var e=[n("2536")];t.apply(null,e)}.bind(this)).catch(n.oe)},C=function(t){return n.e("chunk-1bc51d6f").then(function(){var e=[n("832f")];t.apply(null,e)}.bind(this)).catch(n.oe)},x=function(t){return n.e("chunk-4da9392a").then(function(){var e=[n("f825")];t.apply(null,e)}.bind(this)).catch(n.oe)},S=function(t){return n.e("chunk-bf12cf58").then(function(){var e=[n("9c63")];t.apply(null,e)}.bind(this)).catch(n.oe)};s["a"].use(b["a"]);var O=[{path:"/",component:w,meta:{title:"猎芯网"}},{path:"/smt",component:y,meta:{title:"SMT打样"}},{path:"/supplier",component:k,meta:{title:"猎芯网,猎芯网供应商,猎芯网合作伙伴,电子元器件采购,电子元器件商城,IC采购网"}},{path:"/wxlist",name:"Wxlist",component:_,meta:{title:"猎芯网"}},{path:"/news",name:"News",component:A,meta:{title:"猎芯网-新闻列表"}},{path:"/seo",name:"Seo",component:x,meta:{title:"猎芯网——京东战投元器件商城"}},{path:"/findthing",name:"Findthing",component:S,meta:{title:"猎芯网——快速找料"}},{path:"/news/detail/:art_id/:cat_id",name:"NewsDetail",component:C,meta:{title:"猎芯网-新闻详情"}},{path:"*",redirect:"/"}];O.forEach(function(t){t.path=t.path||"/"+(t.name||"")});var j=new b["a"]({routes:O});j.beforeEach(function(t,e,n){var a=t.meta&&t.meta.title;a&&(document.title=a),n()});var T=n("52c1"),D=n("5101"),E=n("365c"),L=(n("f91a"),n("ab56"),n("ab01")),P=n.n(L),V=(n("ea65"),0),M=8;function I(t){return B(F(z(t),t.length*M))}function F(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),a=1732584193,i=-271733879,o=-1732584194,c=271733878,r=-1009589776,s=0;s<t.length;s+=16){for(var u=a,d=i,l=o,f=c,m=r,h=0;h<80;h++){n[h]=h<16?t[s+h]:R(n[h-3]^n[h-8]^n[h-14]^n[h-16],1);var p=W(W(R(a,5),N(h,i,o,c)),W(W(r,n[h]),q(h)));r=c,c=o,o=R(i,30),i=a,a=p}a=W(a,u),i=W(i,d),o=W(o,l),c=W(c,f),r=W(r,m)}return Array(a,i,o,c,r)}function N(t,e,n,a){return t<20?e&n|~e&a:t<40?e^n^a:t<60?e&n|e&a|n&a:e^n^a}function q(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function W(t,e){var n=(65535&t)+(65535&e),a=(t>>16)+(e>>16)+(n>>16);return a<<16|65535&n}function R(t,e){return t<<e|t>>>32-e}function z(t){for(var e=Array(),n=(1<<M)-1,a=0;a<t.length*M;a+=M)e[a>>5]|=(t.charCodeAt(a/M)&n)<<24-a%32;return e}function B(t){for(var e=V?"0123456789ABCDEF":"0123456789abcdef",n="",a=0;a<4*t.length;a++)n+=e.charAt(t[a>>2]>>8*(3-a%4)+4&15)+e.charAt(t[a>>2]>>8*(3-a%4)&15);return n}var Y=n("0427"),J={setCookie:function(t,e,n,a){a=a?";domain="+a:"";var i=n,o=new Date;return o.setTime(o.getTime()+24*i*60*60*1e3),document.cookie=t+"="+encodeURIComponent(e)+";expires="+o.toGMTString()+";path=/"+a,!0},getCookie:function(t){for(var e=document.cookie,n=e.split("; "),a=0;a<n.length;a++){var i=n[a].split("=");if(t==i[0])return i[1]}return null},delCookie:function(t){var e=new Date;e.setTime(e.getTime()-1);var n=this.getCookie(t);null!=n&&(document.cookie=t+"="+n+";expires="+e.toGMTString())},getParams:function(t){var e=this.getCookie("Yo4teW_gid"),n=this.getCookie("cache_time");if(null!=n)var a=Math.floor((new Date).getTime()/1e3);else{a=Math.floor((new Date).getTime()/1e3)+window.fwtimes;this.setCookie("cache_time",window.fwtimes,1,window.cookieHostname)}var i=[],o={},c="",s="",u="",d={pf:2,qwertyuiop:a,Yo4teW_gid:e},l=P()({},d,t);r()(l).forEach(function(t,e,n){i.push(t)}),i=i.sort(),i.forEach(function(t,e,n){o[i[e]]=l[i[e]]}),r()(o).forEach(function(t,e,n){c+=t+"="+o[t]}),s=c.replace(/[^0-9a-zA-Z]/g,""),s=s.toUpperCase();for(var f=0;f<s.length;f++)"A"!=s[f]&&"B"!=s[f]&&"C"!=s[f]&&(u+=s[f]);c=I(u);var m=P()({},t,{asdfghjkl:c},{qwertyuiop:a},{pf:2});return Y.stringify(m)}};s["a"].use(D["i"]);var H={index:{},loading:!0},$={index:function(t,e){t.index=e.data}},G={index:function(t,e){var n=t.commit;H.loading=!0;var a=J.getParams();E["b"].index(a).then(function(t){var e=t.data;H.loading=!1,0==e.err_code?n({type:"index",data:e.data}):2==e.err_code&&Object(D["i"])({message:"非常抱歉,当前客户端时间与服务器时间不一致,请校准您的时间",duration:3e3})}).catch(function(t){H.loading=!1})}},U={},Z={state:H,mutations:$,actions:G,getters:U};s["a"].use(D["i"]);var K={cartCount:"",loginCheck:!1,phpParams:{}},Q={cartCount:function(t,e){t.cartCount=0==e.data?"":e.data},loginCheck:function(t,e){0==e.data.err_code?t.loginCheck=!0:11030==e.data.err_code?t.loginCheck=!0:t.loginCheck=!1},phpParams:function(t,e){t.phpParams=e.data.data}},X={cartCount:function(t,e){var n=t.commit;E["b"].cartCount().then(function(t){var e=t.data;0==e.err_code&&n({type:"cartCount",data:e.datacartCount})}).catch(function(t){})},loginCheck:function(t,e){var n=t.commit;E["b"].loginCheck().then(function(t){var e=t.data;n({type:"loginCheck",data:e})}).catch(function(t){})},customsrService:function(t,e){t.commit;var n={pf:window.lxpf,searchModel:""};E["b"].customsrService(n).then(function(t){}).catch(function(t){})},getCommonParams:function(t,e){var n=t.commit,a=J.getParams();E["b"].getCommonParams(a).then(function(t){var e=t.data;n({type:"phpParams",data:e})}).catch(function(t){})}},tt={},et={state:K,mutations:Q,actions:X,getters:tt},nt=n("0427");s["a"].use(D["i"]);var at={loading:!1},it={index:function(t,e){t.index=e.data}},ot={checkAccountExists:function(t,e){t.commit;at.loading=!0;var n={pf:2,type:2,account:e.account};E["b"].checkAccountExists(nt.stringify(n)).then(function(t){var e=t.data;at.loading=!1,0!=e.err_code&&Object(D["i"])({message:"该手机号尚未注册,我们将为您自动生成猎芯网帐号",duration:3e3})}).catch(function(t){at.loading=!1})},customSmsVerify:function(t,e){t.commit;at.loading=!0;var n={pf:2,verify:"",mobile:e.mobile};E["b"].customSmsVerify(nt.stringify(n)).then(function(t){var e=t.data;at.loading=!1,0==e.err_code?Object(D["i"])({message:e.err_msg,duration:2e3}):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){at.loading=!1})},chainFind:function(t,e){t.commit;if(at.loading=!0,1==e.types)var n={type:2,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode,com_name:e.com_name,main_brand:e.main_brand,supplier_type:e.supplier_type};else if(3==e.types)n={type:3,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode};E["b"].chainFind(nt.stringify(n)).then(function(t){var n=t.data;at.loading=!1,1==n.errcode?Object(D["i"])({message:n.errmsg,duration:3e3}):2==n.errcode?(Object(D["i"])({message:"已为您自动创建的猎芯网登录账号为"+e.mobile+"请使用免密码登录",duration:3e3}),setTimeout(function(){window.location.reload()},3e3)):(Object(D["i"])({message:"您已经提交成功,我们将会在2个工作日内联系您",duration:3e3}),setTimeout(function(){window.location.reload()},3e3))}).catch(function(t){at.loading=!1,Object(D["i"])({message:"网络出现问题,请重试",duration:3e3})})}},ct={},rt={state:at,mutations:it,actions:ot,getters:ct},st=n("0427");s["a"].use(D["i"]);var ut={loadStatus:!1,wechatArticle:{},wechatArticleList:[],finished:!1,limits:1},dt={wechatArticle:function(t,e){t.wechatArticle=e.data,t.wechatArticleList=t.wechatArticleList.concat(e.data.list),t.limits=Math.ceil(e.data.total/6),e.page>=t.limits&&(t.finished=!0)}},lt={wechatArticle:function(t,e){var n=t.commit;ut.loadStatus=!0;var a={type_id:e.type_id,page:e.page,limit:e.limit};E["b"].wechatArticle(st.stringify(a)).then(function(t){var a=t.data;ut.loadStatus=!1,0==a.err_code&&n({type:"wechatArticle",data:a.data,page:e.page,limit:e.limit})}).catch(function(t){ut.loadStatus=!1})}},ft={},mt={state:ut,mutations:dt,actions:lt,getters:ft},ht=(n("b06f"),n("0427"));s["a"].use(D["i"]);var pt={finished:!1,loadStatus:!1,cat_list:[],content_list:[],rollbanner:[],p:1,limit:10,totalLimit:0},gt={newsArticle:function(t,e){t.rollbanner=e.data.rollbanner,t.cat_list=e.data.cat_list,1==t.p?t.content_list=e.data.content_list:t.content_list=t.content_list.concat(e.data.content_list),t.totalLimit=Math.ceil(Number(e.data.tatol_num)/t.limit),t.p>=t.totalLimit?t.finished=!0:t.finished=!1}},vt={newsArticle:function(t,e){var n=t.commit;pt.loadStatus=!0;var a={cat_id:e.cat_id,p:e.p,limit:e.limit};pt.p=e.p,pt.limit=e.limit,E["b"].newsArticle(ht.stringify(a)).then(function(t){var e=t.data;pt.loadStatus=!1,0==e.err_code&&n({type:"newsArticle",data:e.data})}).catch(function(t){pt.loadStatus=!1})}},bt={},wt={state:pt,mutations:gt,actions:vt,getters:bt},yt=n("0427");s["a"].use(D["i"]);var kt={loadStatus:!1,newsDetailObj:{},newsDetailAd:{}},_t={newsArticleDetail:function(t,e){t.newsDetailObj=e.data},newsArticleDetailAd:function(t,e){t.newsDetailAd=e.data,J.getCookie("newsdetailpop")?t.newsDetailAd.h5_news_ad_pop="":J.setCookie("newsdetailpop","1",1)}},At={newsArticleDetail:function(t,e){var n=t.commit;kt.newsDetailObj={},kt.loadStatus=!0;var a={art_id:e.art_id};E["b"].newsArticleDetail(yt.stringify(a)).then(function(t){kt.loadStatus=!1;var e=t.data;0==e.err_code&&n({type:"newsArticleDetail",data:e.data})}).catch(function(t){kt.loadStatus=!1})},newsArticleDetailAd:function(t,e){var n=t.commit,a={cat_id:e.cat_id},i=J.getParams(a);E["b"].newsArticleDetailAd(i).then(function(t){var e=t.data;0==e.err_code&&n({type:"newsArticleDetailAd",data:e.data})}).catch(function(t){})}},Ct={},xt={state:kt,mutations:_t,actions:At,getters:Ct},St=n("0427");s["a"].use(D["i"]);var Ot={loading:!1,form1ImgShow:!1,form2ImgShow:!1,form1CodeStatus:!1,form2CodeStatus:!1,isRegLogin:!1},jt={smsVerify:function(t,e){}},Tt={smsVerify:function(t,e){var n=t.commit;Ot.form1CodeStatus=!1,Ot.loading=!0;var a={mobile:e.mobile,verify:e.verify,channel:1};E["b"].smsVerify(St.stringify(a)).then(function(t){var a=t.data;Ot.loading=!1;var i="form2"==e.types?"form2":"form1";Ot[i+"ImgShow"]=!1,0==a.err_code?(Object(D["i"])({message:a.err_msg,duration:2e3}),Ot[i+"CodeStatus"]=!0,n({type:"smsVerify",data:a.data})):23019==a.err_code||11008==a.err_code||11011==a.err_code?(Object(D["i"])({message:a.err_msg,duration:2e3}),Ot[i+"ImgShow"]=!0):Object(D["i"])({message:a.err_msg,duration:3e3})}).catch(function(t){Ot.loading=!1})},actionLogin:function(t,e){var n=t.commit;Ot.loading=!0,Ot.isRegLogin=!1;var a={account:e.account,sms_verify:e.sms_verify};E["b"].actionLogin(St.stringify(a)).then(function(t){var a=t.data;if(Ot.loading=!1,0==a.err_code){if("form1"==e.form_name)return Object(D["i"])({message:"提交成功",duration:2e3}),void setTimeout(function(){window.location.href="/"},2e3);Ot.isRegLogin=!0,n({type:"actionLogin",data:a.data})}else Object(D["i"])({message:a.err_msg,duration:3e3})}).catch(function(t){Ot.loading=!1})},feedback:function(t,e){var n=t.commit;Ot.loading=!0;var a={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};E["b"].feedback(St.stringify(a)).then(function(t){var e=t.data;Ot.loading=!1,0==e.err_code?(Object(D["i"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout(function(){window.location.href="/"},3e3),n({type:"feedback",data:e.data})):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Ot.loading=!1})}},Dt={},Et={state:Ot,mutations:jt,actions:Tt,getters:Dt},Lt=n("0427");s["a"].use(D["i"]);var Pt={loading:!1,form1ImgShow:!1,form1CodeStatus:!1,isRegLogin:!1},Vt={},Mt={smsVerify1:function(t,e){var n=t.commit;Pt.form1CodeStatus=!1,Pt.loading=!0;var a={mobile:e.mobile,verify:e.verify,channel:1};E["b"].smsVerify(Lt.stringify(a)).then(function(t){var e=t.data;Pt.loading=!1,Pt["form1ImgShow"]=!1,0==e.err_code?(Object(D["i"])({message:e.err_msg,duration:2e3}),Pt["form1CodeStatus"]=!0,n({type:"smsVerify",data:e.data})):23019==e.err_code||11008==e.err_code||11011==e.err_code?(Object(D["i"])({message:e.err_msg,duration:2e3}),Pt["form1ImgShow"]=!0):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Pt.loading=!1})},actionLogin1:function(t,e){var n=t.commit;Pt.loading=!0,Pt.isRegLogin=!1;var a={account:e.account,sms_verify:e.sms_verify};E["b"].actionLogin(Lt.stringify(a)).then(function(t){var e=t.data;Pt.loading=!1,0==e.err_code?(Pt.isRegLogin=!0,n({type:"actionLogin",data:e.data})):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Pt.loading=!1})},feedback1:function(t,e){var n=t.commit;Pt.loading=!0;var a={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};E["b"].feedback(Lt.stringify(a)).then(function(t){var e=t.data;Pt.loading=!1,0==e.err_code?(Object(D["i"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout(function(){window.location.href="/"},3e3),n({type:"feedback",data:e.data})):Object(D["i"])({message:e.err_msg,duration:3e3})}).catch(function(t){Pt.loading=!1})}},It={},Ft={state:Pt,mutations:Vt,actions:Mt,getters:It};s["a"].use(T["a"]);var Nt=new T["a"].Store({modules:{home:Z,common:et,smt:rt,wxlist:mt,news:wt,newsdetail:xt,seo:Et,findthing:Ft}}),qt=function(t,e){var n=t;return-1==n.indexOf("ptag")&&(n=n.indexOf("?")>-1?n+"&ptag="+e:n+"?ptag="+e),n},Wt=function(t){return t.indexOf("?")>-1?t+"&ptag=index-dynamic":t+"?ptag=index-dynamic"},Rt=function(t,e){var n=new Date(1e3*t);function a(t){return t<10&&(t="0"+t),t}var i=n.getFullYear(),o=n.getMonth()+1,c=n.getDate(),r=n.getHours(),s=n.getMinutes(),u=n.getSeconds();return i+"-"+a(o)+"-"+a(c)+" "+a(r)+":"+a(s)+":"+a(u)},zt={dateTimeFormate:Rt,urlParams:Wt,urlPatg:qt},Bt={bind:function(t,e){t.addEventListener("click",function(){var t=document.querySelector(".container-wrap").scrollTop,e=(t/100).toFixed(0),n=setInterval(function(){t-=e,t<=0&&(t=0,clearInterval(n)),document.querySelector(".container-wrap").scrollTop=t},1)},!1)}},Yt={bind:function(t,e){t.addEventListener("click",function(t){var e=document.documentElement.scrollTop||document.body.scrollTop,n=(e/100).toFixed(0),a=setInterval(function(){e-=n,e<=0&&(e=0,clearInterval(a)),document.documentElement.scrollTop?document.documentElement.scrollTop=e:document.body.scrollTop?document.body.scrollTop=e:document.querySelector("html,body").scrollTop=e},1)},!1)}},Jt={install:function(t){t.directive("backTop",Bt),t.directive("backTopWindow",Yt)}},Ht=n("897d"),$t=n.n(Ht),Gt=n("5482"),Ut=n.n(Gt);n("13f6"),n("bfd9");s["a"].config.productionTip=!1;var Zt="production";if("production"!=Zt)new Ut.a;r()(zt).forEach(function(t){return s["a"].filter(t,zt[t])}),s["a"].use(Jt),s["a"].prototype.$http=v.a,v.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",v.a.defaults.withCredentials=!0,v.a.interceptors.request.use(function(t){if("post"==t.method)t.data?-1==t.data.indexOf("&pf=2")&&(t.data+="&pf="+window.lxpf):t.data="pf="+window.lxpf;else if("get"==t.method){var e=r()(t.params);e.length?-1==e.indexOf("pf")&&(t.params=Object(o["a"])({pf:window.lxpf},t.params)):t.params={pf:window.lxpf}}return t},function(t){return i.a.reject(t)});var Kt=J.getCookie("Yo4teW_gid");if(null==Kt){var Qt=$t()("");J.setCookie("Yo4teW_gid",Qt,1,window.cookieHostname)}var Xt={urlhash:window.location.hash};Xt=J.getParams(Xt),E["b"].wxaccess(Xt).then(function(t){var e=t.data;0==e.err_code&&e.data&&(window.location.href=e.data)}),new s["a"]({router:j,store:Nt,render:function(t){return t(p)}}).$mount("#app")},bfd9:function(t,e,n){}});
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment