Commit 3155ec2c by 梁建民

js

parent 1d2b59e4
......@@ -64,7 +64,7 @@ export const apis = {
*/
customsrService: productionUrlApi + 'public/customsrservice',
/**
* 获取php
* 获取php
*/
getCommonParams: productionUrl + 'getcommonparams'
}
......
......@@ -65,7 +65,7 @@ const actions = {
}
Services.customsrService(params).then(function (res) {
console.log(res.data)
}).catch(function (err) {
Toast({
message: '网络出现问题,请重试',
......
......@@ -31,7 +31,7 @@ export default {
return arr[1];
}
}
return "";
return null;
},
/**
* 删除cookie
......@@ -49,12 +49,12 @@ export default {
*/
getParams(params) {
var Yo4teW_gid = getCookie('Yo4teW_gid');
var cache_time = this.getCookie('cache_time') || 1;
var cache_time = this.getCookie('cache_time');
if (cache_time <= 0) {
if (cache_time != null) {
var qwertyuiop = Math.floor((new Date().getTime()) / 1000);
} else {
var qwertyuiop = Math.floor((new Date().getTime()) / 1000) + window.fwtimes;
var qwertyuiop = Math.floor((new Date().getTime()) / 1000) + fwtimes;
this.setCookie('cache_time', window.fwtimes, 1, window.cookieHostname);
}
......
......@@ -50,18 +50,10 @@
computed: mapState({
phpParams: state => state.common.phpParams,
}),
created() {
this.getData();
},
mounted() {
this.scrollFn();
},
methods: {
getData() {
this.$store.dispatch({
type: 'index'
})
},
customsrService() {
this.$store.dispatch({
type: 'customsrService'
......
<!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=//szh5static.ichunt.com/favicon.ico><link rel=stylesheet href=//szh5static.ichunt.com/static/css/iconfont.css><script src=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=//szh5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//szh5static.ichunt.com/css/chunk-18d036ff.8f935603.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-18d036ff.ca8e4e25.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.5642d040.css rel=preload as=style><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=preload as=style><link href=//szh5static.ichunt.com/js/app.f40318d0.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.4db798ef.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.5642d040.css rel=stylesheet></head><body><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=//szh5static.ichunt.com/favicon.ico><link rel=stylesheet href=//szh5static.ichunt.com/static/css/iconfont.css><script src=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=//szh5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//szh5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//szh5static.ichunt.com/css/chunk-18d036ff.8f935603.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-18d036ff.29daf24c.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.5642d040.css rel=preload as=style><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=preload as=style><link href=//szh5static.ichunt.com/js/app.7aa81fa9.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.4db798ef.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.5642d040.css rel=stylesheet></head><body><noscript><strong>网站出现了一点小问题,正在修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) {
domain = domain ? ";domain=" + domain : "";
var Days = time;
var exp = new Date();
......@@ -224,4 +224,4 @@
user_rank: '0'
});
sensors.quick('autoTrack');
}</script><script src=//szh5static.ichunt.com/js/chunk-vendors.4db798ef.js></script><script src=//szh5static.ichunt.com/js/app.f40318d0.js></script></body></html>
\ No newline at end of file
}</script><script src=//szh5static.ichunt.com/js/chunk-vendors.4db798ef.js></script><script src=//szh5static.ichunt.com/js/app.7aa81fa9.js></script></body></html>
\ No newline at end of file
(function(t){function e(e){for(var r,a,i=e[0],u=e[1],s=e[2],f=0,m=[];f<i.length;f++)a=i[f],o[a]&&m.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);l&&l(e);while(m.length)m.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],r=!0,a=1;a<n.length;a++){var i=n[a];0!==o[i]&&(r=!1)}r&&(c.splice(e--,1),t=u(u.s=n[0]))}return t}var r={},a={app:0},o={app:0},c=[];function i(t){return u.p+"js/"+({}[t]||t)+"."+{"chunk-18d036ff":"29daf24c"}[t]+".js"}function u(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(t){var e=[],n={"chunk-18d036ff":1};a[t]?e.push(a[t]):0!==a[t]&&n[t]&&e.push(a[t]=new Promise(function(e,n){for(var r="css/"+({}[t]||t)+"."+{"chunk-18d036ff":"8f935603"}[t]+".css",o=u.p+r,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=c[i],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===o))return e()}var m=document.getElementsByTagName("style");for(i=0;i<m.length;i++){s=m[i],f=s.getAttribute("data-href");if(f===r||f===o)return e()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=e,l.onerror=function(e){var r=e&&e.target&&e.target.src||o,c=new Error("Loading CSS chunk "+t+" failed.\n("+r+")");c.request=r,delete a[t],l.parentNode.removeChild(l),n(c)},l.href=o;var d=document.getElementsByTagName("head")[0];d.appendChild(l)}).then(function(){a[t]=0}));var r=o[t];if(0!==r)if(r)e.push(r[2]);else{var c=new Promise(function(e,n){r=o[t]=[e,n]});e.push(r[2]=c);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=i(t),s=function(e){f.onerror=f.onload=null,clearTimeout(m);var n=o[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,c=new Error("Loading chunk "+t+" failed.\n("+r+": "+a+")");c.type=r,c.request=a,n[1](c)}o[t]=void 0}};var m=setTimeout(function(){s({type:"timeout",target:f})},12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(e)},u.m=t,u.c=r,u.d=function(t,e,n){u.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},u.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)u.d(n,r,function(e){return t[e]}.bind(null,r));return n},u.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return u.d(e,"a",e),e},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},u.p="//szh5static.ichunt.com/",u.oe=function(t){throw console.error(t),t};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=e,s=s.slice();for(var m=0;m<s.length;m++)e(s[m]);var l=f;c.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"56d7":function(t,e,n){"use strict";n.r(e);var r=n("0ec6"),a=n.n(r),o=(n("c764"),n("9f07"),n("0964"),n("1cc5")),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("keep-alive",{attrs:{exclude:""}},[n("router-view",{staticClass:"router-view"})],1)],1)},i=[],u={name:"app"},s=u,f=n("25c1"),m=Object(f["a"])(s,c,i,!1,null,null,null);m.options.__file="App.vue";var l=m.exports,d=n("7f43"),p=n.n(d),h=(n("0a16"),n("081a")),g=function(t){return n.e("chunk-18d036ff").then(function(){var e=[n("9553")];t.apply(null,e)}.bind(this)).catch(n.oe)};o["a"].use(h["a"]);var v=[{path:"/home",component:g,meta:{title:"猎芯网"}},{path:"/",redirect:"/home"},{path:"*",redirect:"/"}];v.forEach(function(t){t.path=t.path||"/"+(t.name||"")});var w=new h["a"]({routes:v});w.beforeEach(function(t,e,n){var r=t.meta&&t.meta.title;r&&(document.title=r),n()});var b,k,C=n("52c1");switch(window.location.hostname){case"www.ichunt.com":b="https://api.ichunt.com/";break;case"m.ichunt.com":k="https://m.ichunt.com/v3",b="https://api.ichunt.com/";break;case"sz.ichunt.com":b="https://szapi.ichunt.com/";break;case"szm.ichunt.com":b="https://szapi.ichunt.com/",k="https://szm.ichunt.com/v3/";break;case"t.ichunt.com":b="https://api.ichunt.com/";break;case"tm.ichunt.com":k="https://tm.ichunt.com/v3",b="https://api.ichunt.com/";break;case"www.liexin.com":b="http://api.liexin.com/";break;case"m.liexin.com":k="http://m.liexin.com/v3/",b="http://api.liexin.com/";break;default:b="/api/"}var y=k,x=b,T={index:y+"index",loginCheck:x+"login/check",cartCount:x+"cart/count",customsrService:x+"public/customsrservice",getCommonParams:y+"getcommonparams"},P={index:function(t){return p.a.post(T.index,t)},loginCheck:function(t){return p.a.get(T.loginCheck,{params:{data:t}})},cartCount:function(t){return p.a.get(T.cartCount,{params:{data:t}})},customsrService:function(t){return p.a.get(T.customsrService,{params:{data:t}})},getCommonParams:function(t){return p.a.post(T.getCommonParams,t)}},j=n("6ef6"),E=(n("ac74"),n("9029"),n("ab01")),S=n.n(E),_=(n("4ddc"),0),O=8;function A(t){return F(M(N(t),t.length*O))}function M(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),r=1732584193,a=-271733879,o=-1732584194,c=271733878,i=-1009589776,u=0;u<t.length;u+=16){for(var s=r,f=a,m=o,l=c,d=i,p=0;p<80;p++){n[p]=p<16?t[u+p]:B(n[p-3]^n[p-8]^n[p-14]^n[p-16],1);var h=q(q(B(r,5),z(p,a,o,c)),q(q(i,n[p]),D(p)));i=c,c=o,o=B(a,30),a=r,r=h}r=q(r,s),a=q(a,f),o=q(o,m),c=q(c,l),i=q(i,d)}return Array(r,a,o,c,i)}function z(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function D(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function q(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function B(t,e){return t<<e|t>>>32-e}function N(t){for(var e=Array(),n=(1<<O)-1,r=0;r<t.length*O;r+=O)e[r>>5]|=(t.charCodeAt(r/O)&n)<<24-r%32;return e}function F(t){for(var e=_?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(t[r>>2]>>8*(3-r%4)+4&15)+e.charAt(t[r>>2]>>8*(3-r%4)&15);return n}var L=n("0427"),Y={setCookie:function(t,e,n,r){r=r?";domain="+r:"";var a=n,o=new Date;return o.setTime(o.getTime()+24*a*60*60*1e3),document.cookie=t+"="+encodeURIComponent(e)+";expires="+o.toGMTString()+";path=/"+r,!0},getCookie:function(t){for(var e=document.cookie,n=e.split("; "),r=0;r<n.length;r++){var a=n[r].split("=");if(t==a[0])return a[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=getCookie("Yo4teW_gid"),n=this.getCookie("cache_time");if(null!=n)var r=Math.floor((new Date).getTime()/1e3);else{r=Math.floor((new Date).getTime()/1e3)+fwtimes;this.setCookie("cache_time",window.fwtimes,1,window.cookieHostname)}var o=[],c={},i="",u="",s="",f={pf:2,qwertyuiop:r,Yo4teW_gid:e},m=S()({},f,t);a()(m).forEach(function(t,e,n){o.push(t)}),o=o.sort(),o.forEach(function(t,e,n){c[o[e]]=m[o[e]]}),a()(c).forEach(function(t,e,n){i+=t+"="+c[t]}),u=i.replace(/[^0-9a-zA-Z]/g,""),u=u.toUpperCase();for(var l=0;l<u.length;l++)"A"!=u[l]&&"B"!=u[l]&&"C"!=u[l]&&(s+=u[l]);i=A(s);var d=S()({},t,{asdfghjkl:i},{qwertyuiop:r},{pf:2});return L.stringify(d)}};o["a"].use(j["g"]);var $={index:{},loading:!0},G={index:function(t,e){t.index=e.data}},H={index:function(t,e){var n=t.commit;$.loading=!0;var r=Y.getParams();P.index(r).then(function(t){var e=t.data;0==e.err_code&&(n({type:"index",data:e.data}),$.loading=!1)}).catch(function(t){$.loading=!1,Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})}},J={},U={state:$,mutations:G,actions:H,getters:J};o["a"].use(j["g"]);var W={cartCount:"",loginCheck:!1,phpParams:{}},I={cartCount:function(t,e){t.cartCount=0==e.data?"":e.data},loginCheck:function(t,e){0==e.data.err_code?t.loginCheck=!0:t.loginCheck=!1},phpParams:function(t,e){t.phpParams=e.data.data}},R={cartCount:function(t,e){var n=t.commit;P.cartCount().then(function(t){var e=t.data;0==e.err_code&&n({type:"cartCount",data:e.data})}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})},loginCheck:function(t,e){var n=t.commit;P.loginCheck().then(function(t){var e=t.data;n({type:"loginCheck",data:e})}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})},customsrService:function(t,e){t.commit;var n={pf:window.lxpf,searchModel:""};P.customsrService(n).then(function(t){}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})},getCommonParams:function(t,e){var n=t.commit,r=Y.getParams();P.getCommonParams(r).then(function(t){var e=t.data;n({type:"phpParams",data:e})}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})}},Z={},K={state:W,mutations:I,actions:R,getters:Z};o["a"].use(C["a"]);var Q=new C["a"].Store({modules:{home:U,common:K}}),V=function(t){var e=new Date;e.setTime(1e3*t);var n=e.getFullYear(),r=e.getMonth()+1;r=r<10?"0"+r:r;var a=e.getDate();a=a<10?"0"+a:a;var o=e.getHours();o=o<10?"0"+o:o;var c=e.getMinutes(),i=e.getSeconds();return c=c<10?"0"+c:c,i=i<10?"0"+i:i,n+"-"+r+"-"+a+" "},X={dateTimeFormate:V},tt={bind:function(t,e){t.addEventListener("click",function(){document.body.scrollTop=0,document.documentElement.scrollTop=0,document.querySelector(".container-wrap").scrollTop=0},!1)}},et={install:function(t){t.directive("backTop",tt)}};n("e1a5"),n("bfd9");a()(X).forEach(function(t){return o["a"].filter(t,X[t])}),o["a"].use(et),o["a"].prototype.$http=p.a,p.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",p.a.defaults.withCredentials=!0,o["a"].config.productionTip=!1,new o["a"]({router:w,store:Q,render:function(t){return t(l)}}).$mount("#app")},bfd9:function(t,e,n){}});
//# sourceMappingURL=app.7aa81fa9.js.map
\ No newline at end of file
(function(t){function e(e){for(var r,o,i=e[0],u=e[1],s=e[2],f=0,m=[];f<i.length;f++)o=i[f],a[o]&&m.push(a[o][0]),a[o]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);l&&l(e);while(m.length)m.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],r=!0,o=1;o<n.length;o++){var i=n[o];0!==a[i]&&(r=!1)}r&&(c.splice(e--,1),t=u(u.s=n[0]))}return t}var r={},o={app:0},a={app:0},c=[];function i(t){return u.p+"js/"+({}[t]||t)+"."+{"chunk-18d036ff":"ca8e4e25"}[t]+".js"}function u(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(t){var e=[],n={"chunk-18d036ff":1};o[t]?e.push(o[t]):0!==o[t]&&n[t]&&e.push(o[t]=new Promise(function(e,n){for(var r="css/"+({}[t]||t)+"."+{"chunk-18d036ff":"8f935603"}[t]+".css",a=u.p+r,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=c[i],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===a))return e()}var m=document.getElementsByTagName("style");for(i=0;i<m.length;i++){s=m[i],f=s.getAttribute("data-href");if(f===r||f===a)return e()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=e,l.onerror=function(e){var r=e&&e.target&&e.target.src||a,c=new Error("Loading CSS chunk "+t+" failed.\n("+r+")");c.request=r,delete o[t],l.parentNode.removeChild(l),n(c)},l.href=a;var d=document.getElementsByTagName("head")[0];d.appendChild(l)}).then(function(){o[t]=0}));var r=a[t];if(0!==r)if(r)e.push(r[2]);else{var c=new Promise(function(e,n){r=a[t]=[e,n]});e.push(r[2]=c);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=i(t),s=function(e){f.onerror=f.onload=null,clearTimeout(m);var n=a[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src,c=new Error("Loading chunk "+t+" failed.\n("+r+": "+o+")");c.type=r,c.request=o,n[1](c)}a[t]=void 0}};var m=setTimeout(function(){s({type:"timeout",target:f})},12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(e)},u.m=t,u.c=r,u.d=function(t,e,n){u.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},u.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)u.d(n,r,function(e){return t[e]}.bind(null,r));return n},u.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return u.d(e,"a",e),e},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},u.p="//szh5static.ichunt.com/",u.oe=function(t){throw console.error(t),t};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=e,s=s.slice();for(var m=0;m<s.length;m++)e(s[m]);var l=f;c.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"56d7":function(t,e,n){"use strict";n.r(e);var r=n("0ec6"),o=n.n(r),a=(n("c764"),n("9f07"),n("0964"),n("1cc5")),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("keep-alive",{attrs:{exclude:""}},[n("router-view",{staticClass:"router-view"})],1)],1)},i=[],u={name:"app"},s=u,f=n("25c1"),m=Object(f["a"])(s,c,i,!1,null,null,null);m.options.__file="App.vue";var l=m.exports,d=n("7f43"),p=n.n(d),h=(n("0a16"),n("081a")),g=function(t){return n.e("chunk-18d036ff").then(function(){var e=[n("9553")];t.apply(null,e)}.bind(this)).catch(n.oe)};a["a"].use(h["a"]);var v=[{path:"/home",component:g,meta:{title:"猎芯网"}},{path:"/",redirect:"/home"},{path:"*",redirect:"/"}];v.forEach(function(t){t.path=t.path||"/"+(t.name||"")});var w=new h["a"]({routes:v});w.beforeEach(function(t,e,n){var r=t.meta&&t.meta.title;r&&(document.title=r),n()});var b,k,C=n("52c1");switch(window.location.hostname){case"www.ichunt.com":b="https://api.ichunt.com/";break;case"m.ichunt.com":k="https://m.ichunt.com/v3",b="https://api.ichunt.com/";break;case"sz.ichunt.com":b="https://szapi.ichunt.com/";break;case"szm.ichunt.com":b="https://szapi.ichunt.com/",k="https://szm.ichunt.com/v3/";break;case"t.ichunt.com":b="https://api.ichunt.com/";break;case"tm.ichunt.com":k="https://tm.ichunt.com/v3",b="https://api.ichunt.com/";break;case"www.liexin.com":b="http://api.liexin.com/";break;case"m.liexin.com":k="http://m.liexin.com/v3/",b="http://api.liexin.com/";break;default:b="/api/"}var y=k,x=b,T={index:y+"index",loginCheck:x+"login/check",cartCount:x+"cart/count",customsrService:x+"public/customsrservice",getCommonParams:y+"getcommonparams"},P={index:function(t){return p.a.post(T.index,t)},loginCheck:function(t){return p.a.get(T.loginCheck,{params:{data:t}})},cartCount:function(t){return p.a.get(T.cartCount,{params:{data:t}})},customsrService:function(t){return p.a.get(T.customsrService,{params:{data:t}})},getCommonParams:function(t){return p.a.post(T.getCommonParams,t)}},j=n("6ef6"),E=(n("ac74"),n("9029"),n("ab01")),S=n.n(E),_=(n("4ddc"),0),O=8;function A(t){return F(M(N(t),t.length*O))}function M(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),r=1732584193,o=-271733879,a=-1732584194,c=271733878,i=-1009589776,u=0;u<t.length;u+=16){for(var s=r,f=o,m=a,l=c,d=i,p=0;p<80;p++){n[p]=p<16?t[u+p]:B(n[p-3]^n[p-8]^n[p-14]^n[p-16],1);var h=q(q(B(r,5),z(p,o,a,c)),q(q(i,n[p]),D(p)));i=c,c=a,a=B(o,30),o=r,r=h}r=q(r,s),o=q(o,f),a=q(a,m),c=q(c,l),i=q(i,d)}return Array(r,o,a,c,i)}function z(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function D(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function q(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function B(t,e){return t<<e|t>>>32-e}function N(t){for(var e=Array(),n=(1<<O)-1,r=0;r<t.length*O;r+=O)e[r>>5]|=(t.charCodeAt(r/O)&n)<<24-r%32;return e}function F(t){for(var e=_?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(t[r>>2]>>8*(3-r%4)+4&15)+e.charAt(t[r>>2]>>8*(3-r%4)&15);return n}var L=n("0427"),Y={setCookie:function(t,e,n,r){r=r?";domain="+r:"";var o=n,a=new Date;return a.setTime(a.getTime()+24*o*60*60*1e3),document.cookie=t+"="+encodeURIComponent(e)+";expires="+a.toGMTString()+";path=/"+r,!0},getCookie:function(t){for(var e=document.cookie,n=e.split("; "),r=0;r<n.length;r++){var o=n[r].split("=");if(t==o[0])return o[1]}return""},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=getCookie("Yo4teW_gid"),n=this.getCookie("cache_time")||1;if(n<=0)var r=Math.floor((new Date).getTime()/1e3);else{r=Math.floor((new Date).getTime()/1e3)+window.fwtimes;this.setCookie("cache_time",window.fwtimes,1,window.cookieHostname)}var a=[],c={},i="",u="",s="",f={pf:2,qwertyuiop:r,Yo4teW_gid:e},m=S()({},f,t);o()(m).forEach(function(t,e,n){a.push(t)}),a=a.sort(),a.forEach(function(t,e,n){c[a[e]]=m[a[e]]}),o()(c).forEach(function(t,e,n){i+=t+"="+c[t]}),u=i.replace(/[^0-9a-zA-Z]/g,""),u=u.toUpperCase();for(var l=0;l<u.length;l++)"A"!=u[l]&&"B"!=u[l]&&"C"!=u[l]&&(s+=u[l]);i=A(s);var d=S()({},t,{asdfghjkl:i},{qwertyuiop:r},{pf:2});return L.stringify(d)}};a["a"].use(j["g"]);var $={index:{},loading:!0},G={index:function(t,e){t.index=e.data}},H={index:function(t,e){var n=t.commit;$.loading=!0;var r=Y.getParams();P.index(r).then(function(t){var e=t.data;0==e.err_code&&(n({type:"index",data:e.data}),$.loading=!1)}).catch(function(t){$.loading=!1,Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})}},J={},U={state:$,mutations:G,actions:H,getters:J};a["a"].use(j["g"]);var W={cartCount:"",loginCheck:!1,phpParams:{}},I={cartCount:function(t,e){t.cartCount=0==e.data?"":e.data},loginCheck:function(t,e){0==e.data.err_code?t.loginCheck=!0:t.loginCheck=!1},phpParams:function(t,e){t.phpParams=e.data.data}},R={cartCount:function(t,e){var n=t.commit;P.cartCount().then(function(t){var e=t.data;0==e.err_code&&n({type:"cartCount",data:e.data})}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})},loginCheck:function(t,e){var n=t.commit;P.loginCheck().then(function(t){var e=t.data;n({type:"loginCheck",data:e})}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})},customsrService:function(t,e){t.commit;var n={pf:window.lxpf,searchModel:""};P.customsrService(n).then(function(t){console.log(t.data)}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})},getCommonParams:function(t,e){var n=t.commit,r=Y.getParams();P.getCommonParams(r).then(function(t){var e=t.data;n({type:"phpParams",data:e})}).catch(function(t){Object(j["g"])({message:"网络出现问题,请重试",duration:1500})})}},Z={},K={state:W,mutations:I,actions:R,getters:Z};a["a"].use(C["a"]);var Q=new C["a"].Store({modules:{home:U,common:K}}),V=function(t){var e=new Date;e.setTime(1e3*t);var n=e.getFullYear(),r=e.getMonth()+1;r=r<10?"0"+r:r;var o=e.getDate();o=o<10?"0"+o:o;var a=e.getHours();a=a<10?"0"+a:a;var c=e.getMinutes(),i=e.getSeconds();return c=c<10?"0"+c:c,i=i<10?"0"+i:i,n+"-"+r+"-"+o+" "},X={dateTimeFormate:V},tt={bind:function(t,e){t.addEventListener("click",function(){document.body.scrollTop=0,document.documentElement.scrollTop=0,document.querySelector(".container-wrap").scrollTop=0},!1)}},et={install:function(t){t.directive("backTop",tt)}};n("e1a5"),n("bfd9");o()(X).forEach(function(t){return a["a"].filter(t,X[t])}),a["a"].use(et),a["a"].prototype.$http=p.a,p.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",p.a.defaults.withCredentials=!0,a["a"].config.productionTip=!1,new a["a"]({router:w,store:Q,render:function(t){return t(l)}}).$mount("#app")},bfd9:function(t,e,n){}});
//# sourceMappingURL=app.f40318d0.js.map
\ 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