Commit 55fdf79a by 梁建民

js

parent bde6f420
(function(t){function e(e){for(var r,a,i=e[0],u=e[1],s=e[2],f=0,l=[];f<i.length;f++)a=i[f],o[a]&&l.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);m&&m(e);while(l.length)l.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-b1441922":"8fccd6de"}[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-b1441922":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-b1441922":"27f3b675"}[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 l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){s=l[i],f=s.getAttribute("data-href");if(f===r||f===o)return e()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=e,m.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],m.parentNode.removeChild(m),n(c)},m.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(m)}).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(l);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 l=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 l=0;l<s.length;l++)e(s[l]);var m=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"),l=Object(f["a"])(s,c,i,!1,null,null,null);l.options.__file="App.vue";var m=l.exports,p=n("7f43"),d=n.n(p),h=(n("0a16"),n("081a")),g=function(t){return n.e("chunk-b1441922").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 b=new h["a"]({routes:v});b.beforeEach(function(t,e,n){var r=t.meta&&t.meta.title;r&&(document.title=r),n()});var w,k,y=n("52c1");switch(window.location.hostname){case"www.ichunt.com":w="https://api.ichunt.com/";break;case"m.ichunt.com":k="https://m.ichunt.com/v3",w="https://api.ichunt.com/";break;case"sz.ichunt.com":w="https://szapi.ichunt.com/";break;case"szm.ichunt.com":w="https://szapi.ichunt.com/",k="https://szm.ichunt.com/v3/";break;case"t.ichunt.com":w="https://api.ichunt.com/";break;case"tm.ichunt.com":k="https://tm.ichunt.com/v3",w="https://api.ichunt.com/";break;case"www.liexin.com":w="http://api.liexin.com/";break;case"m.liexin.com":k="http://m.liexin.com/v3/",w="http://api.liexin.com/";break;default:w="/api/"}var C=k,x=w,T={index:C+"index",loginCheck:x+"login/check",cartCount:x+"cart/count",customsrService:x+"public/customsrservice",getCommonParams:C+"getcommonparams"},P={index:function(t){return d.a.post(T.index,t)},loginCheck:function(t){return d.a.get(T.loginCheck,{params:{data:t}})},cartCount:function(t){return d.a.get(T.cartCount,{params:{data:t}})},customsrService:function(t){return d.a.get(T.customsrService,{params:{data:t}})},getCommonParams:function(t){return d.a.post(T.getCommonParams,t)}},j=n("6ef6"),E=(n("ac74"),n("9029"),n("ab01")),S=n.n(E),O=(n("4ddc"),0),_=8;function A(t){return F(M(N(t),t.length*_))}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,l=o,m=c,p=i,d=0;d<80;d++){n[d]=d<16?t[u+d]:B(n[d-3]^n[d-8]^n[d-14]^n[d-16],1);var h=q(q(B(r,5),z(d,a,o,c)),q(q(i,n[d]),D(d)));i=c,c=o,o=B(a,30),a=r,r=h}r=q(r,s),a=q(a,f),o=q(o,l),c=q(c,m),i=q(i,p)}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<<_)-1,r=0;r<t.length*_;r+=_)e[r>>5]|=(t.charCodeAt(r/_)&n)<<24-r%32;return e}function F(t){for(var e=O?"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""},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=Math.floor((new Date).getTime()/1e3)+window.fwtimes,n=getCookie("Yo4teW_gid"),r=[],o={},c="",i="",u="",s={pf:2,qwertyuiop:e,Yo4teW_gid:n},f=S()({},s,t);a()(f).forEach(function(t,e,n){r.push(t)}),r=r.sort(),r.forEach(function(t,e,n){o[r[e]]=f[r[e]]}),a()(o).forEach(function(t,e,n){c+=t+"="+o[t]}),i=c.replace(/[^0-9a-zA-Z]/g,""),i=i.toUpperCase();for(var l=0;l<i.length;l++)"A"!=i[l]&&"B"!=i[l]&&"C"!=i[l]&&(u+=i[l]);c=A(u);var m=S()({},t,{asdfghjkl:c},{qwertyuiop:e},{pf:2});return L.stringify(m)}};o["a"].use(j["g"]);var $={index:{},loading:!0},G={index:function(t,e){t.index=e.data}},J={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})})}},U={},W={state:$,mutations:G,actions:J,getters:U};o["a"].use(j["g"]);var H={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:H,mutations:I,actions:R,getters:Z};o["a"].use(y["a"]);var Q=new y["a"].Store({modules:{home:W,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=d.a,d.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",d.a.defaults.withCredentials=!0,o["a"].config.productionTip=!1,new o["a"]({router:b,store:Q,render:function(t){return t(m)}}).$mount("#app")},bfd9:function(t,e,n){}});
//# sourceMappingURL=app.399c9d6d.js.map
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
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