Commit 3f29748c by 梁建民

js

parent a68d13d9
......@@ -159,15 +159,24 @@
case "www.ichunt.com":
__PUBLIC__ = '//static.ichunt.com/dist';
break;
case "www.liexin.com":
__PUBLIC__ = '//res.liexin.com/dist';
case "m.ichunt.com":
__PUBLIC__ = '//static.ichunt.com/dist';
break;
case "sz.ichunt.com":
__PUBLIC__ = '//szm.ichunt.com/v3/dist';
__PUBLIC__ = '/v3/dist';
break;
case "szm.ichunt.com":
__PUBLIC__ = '/v3/dist';
break;
case "t.ichunt.com":
__PUBLIC__ = '//t.ichunt.com/v3/dist';
break;
case "tm.ichunt.com":
__PUBLIC__ = '//t.ichunt.com/v3/dist';
break;
case "www.liexin.com":
__PUBLIC__ = '/dist';
break;
default:
__PUBLIC__ = '//res.liexin.com/dist';
}
......
This diff could not be displayed because it is too large.
......@@ -4,7 +4,7 @@ import axios from 'axios'
* www.ichunt.com 正式环境
* sz.ichunt.com 测试环境
* t.ichunt.com 预发布环境
* www.liexin.com 本地回家
* www.liexin.com 本地环境
* urlApi api环境
* url 3.0环境
*/
......@@ -14,12 +14,9 @@ switch (window.location.hostname) {
case "www.ichunt.com":
urlApi = 'https://api.ichunt.com/';
break;
case "www.liexin.com":
urlApi = 'http://api.liexin.com/';
break;
case "m.liexin.com":
url = 'http://m.liexin.com/v3/';
urlApi = 'http://api.liexin.com/';
case "m.ichunt.com":
url = 'https://m.ichunt.com/v3';
urlApi = 'https://api.ichunt.com/';
break;
case "sz.ichunt.com":
urlApi = 'https://szapi.ichunt.com/';
......@@ -31,6 +28,17 @@ switch (window.location.hostname) {
case "t.ichunt.com":
urlApi = 'https://api.ichunt.com/';
break;
case "tm.ichunt.com":
url = 'https://tm.ichunt.com/v3';
urlApi = 'https://api.ichunt.com/';
break;
case "www.liexin.com":
urlApi = 'http://api.liexin.com/';
break;
case "m.liexin.com":
url = 'http://m.liexin.com/v3/';
urlApi = 'http://api.liexin.com/';
break;
default:
urlApi = '/api/';
}
......@@ -50,8 +58,15 @@ export const apis = {
/**
* 获取购物车数量
*/
cartCount: productionUrlApi + 'cart/count'
cartCount: productionUrlApi + 'cart/count',
/**
* 客服统计处理
*/
customsrService: productionUrlApi + 'public/customsrservice',
/**
* 获取php变量
*/
getCommonParams: productionUrl + 'getcommonparams'
}
export const services = {
......@@ -71,5 +86,15 @@ export const services = {
data: params
}
})
},
customsrService(params) {
return axios.get(apis.customsrService, {
params: {
data: params
}
})
},
getCommonParams(params) {
return axios.post(apis.getCommonParams, params)
}
}
......@@ -85,4 +85,18 @@ body { overflow-x: hidden; }
.loading-background { background: transparent; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; flex-direction: column; z-index: 99; }
.slide-bar { position: fixed; right: 0; bottom: 23%; z-index: 3000; }
.slide-bar .kefu { width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; }
.slide-bar .kefu .icon-kefu { color: #fff; font-size: 20px; }
.slide-bar .backtop { margin-top: 16px; width: 1.053rem; height: 1.053rem; border-radius: 4px; background: rgba(78, 142, 238, 0.8); display: flex; align-items: center; justify-content: center; }
.slide-bar .backtop .icon-xiangshang { color: #fff; font-size: 20px; }
.kefu .t0 { text-align: center; height: 100px; line-height: 100px; }
.kefu .t0 .icon-kefu { font-size: 60px; color: #1080d0; }
.kefu .t1 { padding: 0 10%; margin-bottom: 20px; }
.kefu .t1 a { display: block; height: .6rem; line-height: .6rem; font-size: .24rem; background: #1080d0; color: #fff; text-decoration: none; text-align: center; border: none; }
.kefu .t2 { padding: 0 10%; margin-bottom: 20px; }
.kefu .t2 a { border-color: #e5e5e5; color: #1080d0; border: 1px solid #1080d0; text-decoration: none; text-align: center; display: block; height: .6rem; line-height: .6rem; font-size: .24rem; }
.kefu .t2 a .icon-qq { font-size: .24rem; margin-right: 10px; }
/*# sourceMappingURL=global.min.css.map */
{
"version": 3,
"mappings": "AAAA,UAOC,GANC,WAAW,EAAE,UAAU,EACvB,GAAG,E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W,EAAE,KAAK;AAClB,oBAAW,GACT,SAAS,EAAE,IAAI,EACf,KAAK,EAAE,OAAO;AAGlB,SAAI,GACF,OAAO,EAAE,KAAK,EACd,aAAa,EAAE,IAAI;AACnB,WAAE,GACA,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK,EAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,OAAO,EACnB,KAAK,EAAE,IAAI,EACX,eAAe,EAAE,IAAI,EACrB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,IAAI;AAGhB,SAAG,GACD,OAAO,EAAE,KAAK,EACd,aAAa,EAAE,IAAI;AACnB,WAAC,GACC,YAAY,EAAE,OAAO,EACrB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,iBAAiB,EACzB,eAAe,EAAE,IAAI,EACrB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK,EAClB,SAAS,EAAE,MAAM;AACjB,oBAAQ,GACN,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,IAAI",
"sources": ["base.scss","global.scss"],
"names": [],
"file": "global.min.css"
......
......@@ -83,7 +83,7 @@ $imgUrl: '../images/';
}
}
&.curr {
i{
i {
color: #57a1f4;
}
.ico-1 {
......@@ -114,16 +114,94 @@ $imgUrl: '../images/';
}
}
.loading-background{
.loading-background {
background: transparent;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
flex-direction: column;
z-index: 99;
}
.slide-bar {
position: fixed;
right: 0;
bottom: 23%;
z-index: 3000;
.kefu {
width: 1.053rem;
height: 1.053rem;
border-radius: 4px;
background: rgba(78, 142, 238, 0.8);
display: flex;
align-items: center;
justify-content: center;
.icon-kefu {
color: #fff;
font-size: 20px;
}
}
.backtop {
margin-top: 16px;
width: 1.053rem;
height: 1.053rem;
border-radius: 4px;
background: rgba(78, 142, 238, 0.8);
display: flex;
align-items: center;
justify-content: center;
.icon-xiangshang {
color: #fff;
font-size: 20px;
}
}
}
.kefu {
.t0 {
text-align: center;
height: 100px;
line-height: 100px;
.icon-kefu {
font-size: 60px;
color: #1080d0;
}
}
.t1 {
padding: 0 10%;
margin-bottom: 20px;
a {
display: block;
height: .6rem;
line-height: .6rem;
font-size: .24rem;
background: #1080d0;
color: #fff;
text-decoration: none;
text-align: center;
border: none;
}
}
.t2{
padding: 0 10%;
margin-bottom: 20px;
a{
border-color: #e5e5e5;
color: #1080d0;
border: 1px solid #1080d0;
text-decoration: none;
text-align: center;
display: block;
height: .6rem;
line-height: .6rem;
font-size: .24rem;
.icon-qq{
font-size: .24rem;
margin-right: 10px;
}
}
}
}
\ No newline at end of file
export default {
bind(el, binding) {
el.addEventListener('click', function () {
function fn() {
let scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
let speed = scrollTop / 12;
requestAnimationFrame(function () {
if (scrollTop > 0) {
document.documentElement.scrollTop = scrollTop - speed;
document.body.scrollTop = scrollTop - speed;
fn();
}
})
}
fn();
}, false);
}
bind(el, binding) {
el.addEventListener('click', function () {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
document.querySelector('.container-wrap').scrollTop = 0;
}, false);
}
}
\ No newline at end of file
......@@ -4,6 +4,7 @@ import axios from 'axios'
import {router} from './router';
import store from './store/store'
import filters from './filters'
import directive from './directive'
//css全局加载
import 'vant/lib/index.css';
......@@ -12,6 +13,9 @@ import '@/assets/css/global.min.css'
//过滤器遍历
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));
//自定义指令
Vue.use(directive);
//设置请求头
Vue.prototype.$http = axios;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
......
import Vue from 'vue'
import axios from 'axios'
import {services as Services} from '../../api/index'
import {Toast} from 'vant';
import Util from "../../util";
Vue.use(Toast);
const state = {
cartCount: '',
loginCheck: false
loginCheck: false,
phpParams: {}
}
const mutations = {
......@@ -20,6 +21,9 @@ const mutations = {
} else {
state.loginCheck = false;
}
},
phpParams(state, payload) {
state.phpParams = payload.data.data;
}
}
......@@ -53,6 +57,31 @@ const actions = {
duration: 1500
});
});
},
customsrService({commit}, payload) {
Services.customsrService().then(function (res) {
console.log()
}).catch(function (err) {
Toast({
message: '网络出现问题,请重试',
duration: 1500
});
});
},
getCommonParams({commit}, payload) {
var params = Util.getParams();
Services.getCommonParams(params).then(function (res) {
let data = res.data;
commit({
type: 'phpParams',
data: data
});
}).catch(function (err) {
Toast({
message: '网络出现问题,请重试',
duration: 1500
});
});
}
}
......
import Vue from 'vue'
import axios from 'axios'
import {services as Services} from '../../api/index'
import {Toast} from 'vant';
import Util from '../../util/index';
......
......@@ -52,6 +52,10 @@
this.$store.dispatch({
type: 'loginCheck'
})
this.$store.dispatch({
type: 'getCommonParams'
})
}
}
</script>
\ No newline at end of file
<template>
<div class="slide-bar">
<div class="kefu" @click="handle()">
<i class="iconfont icon-kefu"></i>
</div>
<div class="backtop" v-backTop v-if="show">
<i class="iconfont icon-xiangshang"></i>
</div>
<div v-show="flag" ref="kefu">
<div class="kefu">
<p class="t0">
<i class="iconfont icon-kefu"></i>
</p>
<p class="t1">
<a href="tel:0755-88914841" class="but-blue">国内服务电话:0755-88914841</a>
</p>
<p class="t2">
<a target="_blank" href="javascript:void(0)" data-href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDE1ODQzMl80ODY0NDVfODAwMTU4NDMyXzJf" data-ptag="right-layer" class="but-white kefuio kefuioxk">
<i class="icon iconfont icon-qq"></i>客服QQ
</a>
</p>
</div>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import {Dialog} from 'vant';
Vue.use(Dialog);
export default {
name: 'sidebar',
data() {
return {
flag: false,
show: false
}
},
mounted() {
this.scrollFn();
},
methods: {
scrollFn() {
var obj = document.querySelector('.container-wrap'), self = this;
obj.onscroll = function () {
var t = document.querySelector('.container-wrap').scrollTop;
if (t >= 300) {
self.show = true;
} else {
self.show = false;
}
}
},
handle() {
var html = this.$refs.kefu.innerHTML;
Dialog.alert({
message: html,
showConfirmButton: false,
showCancelButton: false,
closeOnClickOverlay: true
}).then(() => {
});
}
}
}
</script>
<!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 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-75ed14f9.ea168c55.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-75ed14f9.10939638.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.6e397361.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.2cf72547.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.71fc0b73.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.6e397361.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 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-253cfdce.a6751e5c.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-253cfdce.8984366b.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.58a95c3e.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.41c6cda1.js rel=preload as=script><link href=//szh5static.ichunt.com/js/chunk-vendors.c9d5e282.js rel=preload as=script><link href=//szh5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//szh5static.ichunt.com/css/app.58a95c3e.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();
......@@ -122,15 +122,24 @@
case "www.ichunt.com":
__PUBLIC__ = '//static.ichunt.com/dist';
break;
case "www.liexin.com":
__PUBLIC__ = '//res.liexin.com/dist';
case "m.ichunt.com":
__PUBLIC__ = '//static.ichunt.com/dist';
break;
case "sz.ichunt.com":
__PUBLIC__ = '//szm.ichunt.com/v3/dist';
__PUBLIC__ = '/v3/dist';
break;
case "szm.ichunt.com":
__PUBLIC__ = '/v3/dist';
break;
case "t.ichunt.com":
__PUBLIC__ = '//t.ichunt.com/v3/dist';
break;
case "tm.ichunt.com":
__PUBLIC__ = '//t.ichunt.com/v3/dist';
break;
case "www.liexin.com":
__PUBLIC__ = '/dist';
break;
default:
__PUBLIC__ = '//res.liexin.com/dist';
}
......@@ -215,4 +224,4 @@
user_rank: '0'
});
sensors.quick('autoTrack');
}</script><script src=//szh5static.ichunt.com/js/chunk-vendors.71fc0b73.js></script><script src=//szh5static.ichunt.com/js/app.2cf72547.js></script></body></html>
\ No newline at end of file
}</script><script src=//szh5static.ichunt.com/js/chunk-vendors.c9d5e282.js></script><script src=//szh5static.ichunt.com/js/app.41c6cda1.js></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var r,a,c=t[0],u=t[1],s=t[2],f=0,l=[];f<c.length;f++)a=c[f],o[a]&&l.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);d&&d(t);while(l.length)l.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var c=n[a];0!==o[c]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},o={app:0},i=[];function c(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-75ed14f9":"10939638"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"chunk-75ed14f9":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise(function(t,n){for(var r="css/"+({}[e]||e)+"."+{"chunk-75ed14f9":"ea168c55"}[e]+".css",o=u.p+r,i=document.getElementsByTagName("link"),c=0;c<i.length;c++){var s=i[c],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===o))return t()}var l=document.getElementsByTagName("style");for(c=0;c<l.length;c++){s=l[c],f=s.getAttribute("data-href");if(f===r||f===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var r=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.request=r,delete a[e],d.parentNode.removeChild(d),n(i)},d.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(d)}).then(function(){a[e]=0}));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise(function(t,n){r=o[e]=[t,n]});t.push(r[2]=i);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=c(e),s=function(t){f.onerror=f.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src,i=new Error("Loading chunk "+e+" failed.\n("+r+": "+a+")");i.type=r,i.request=a,n[1](i)}o[e]=void 0}};var l=setTimeout(function(){s({type:"timeout",target:f})},12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="//szh5static.ichunt.com/",u.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var d=f;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"56d7":function(e,t,n){"use strict";n.r(t);var r=n("0ec6"),a=n.n(r),o=(n("c764"),n("9f07"),n("0964"),n("1cc5")),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("keep-alive",{attrs:{exclude:""}},[n("router-view",{staticClass:"router-view"})],1)],1)},c=[],u={name:"app"},s=u,f=n("25c1"),l=Object(f["a"])(s,i,c,!1,null,null,null);l.options.__file="App.vue";var d=l.exports,h=n("7f43"),p=n.n(h),m=(n("0a16"),n("081a")),g=function(e){return n.e("chunk-75ed14f9").then(function(){var t=[n("9553")];e.apply(null,t)}.bind(this)).catch(n.oe)};o["a"].use(m["a"]);var v=[{path:"/home",component:g,meta:{title:"猎芯网"}},{path:"/",redirect:"/home"},{path:"*",redirect:"/"}];v.forEach(function(e){e.path=e.path||"/"+(e.name||"")});var w=new m["a"]({routes:v});w.beforeEach(function(e,t,n){var r=e.meta&&e.meta.title;r&&(document.title=r),n()});var k,y,b=n("52c1");switch(window.location.hostname){case"www.ichunt.com":k="https://api.ichunt.com/";break;case"www.liexin.com":k="http://api.liexin.com/";break;case"m.liexin.com":y="http://m.liexin.com/v3/",k="http://api.liexin.com/";break;case"sz.ichunt.com":k="https://szapi.ichunt.com/";break;case"szm.ichunt.com":k="https://szapi.ichunt.com/",y="https://szm.ichunt.com/v3/";break;case"t.ichunt.com":k="https://api.ichunt.com/";break;default:k="/api/"}var C=y,x=k,T={index:C+"index",loginCheck:x+"login/check",cartCount:x+"cart/count"},j={index:function(e){return p.a.post(T.index,e)},loginCheck:function(e){return p.a.get(T.loginCheck,{params:{data:e}})},cartCount:function(e){return p.a.get(T.cartCount,{params:{data:e}})}},E=n("6ef6"),_=(n("ac74"),n("9029"),n("ab01")),A=n.n(_),O=(n("4ddc"),0),P=8;function S(e){return F(M(N(e),e.length*P))}function M(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n=Array(80),r=1732584193,a=-271733879,o=-1732584194,i=271733878,c=-1009589776,u=0;u<e.length;u+=16){for(var s=r,f=a,l=o,d=i,h=c,p=0;p<80;p++){n[p]=p<16?e[u+p]:q(n[p-3]^n[p-8]^n[p-14]^n[p-16],1);var m=B(B(q(r,5),z(p,a,o,i)),B(B(c,n[p]),D(p)));c=i,i=o,o=q(a,30),a=r,r=m}r=B(r,s),a=B(a,f),o=B(o,l),i=B(i,d),c=B(c,h)}return Array(r,a,o,i,c)}function z(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function D(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function B(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function q(e,t){return e<<t|e>>>32-t}function N(e){for(var t=Array(),n=(1<<P)-1,r=0;r<e.length*P;r+=P)t[r>>5]|=(e.charCodeAt(r/P)&n)<<24-r%32;return t}function F(e){for(var t=O?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*e.length;r++)n+=t.charAt(e[r>>2]>>8*(3-r%4)+4&15)+t.charAt(e[r>>2]>>8*(3-r%4)&15);return n}var Y=function(e){var t=new Date;t.setTime(1e3*e);var n=t.getFullYear(),r=t.getMonth()+1;r=r<10?"0"+r:r;var a=t.getDate();a=a<10?"0"+a:a;var o=t.getHours();o=o<10?"0"+o:o;var i=t.getMinutes(),c=t.getSeconds();return i=i<10?"0"+i:i,c=c<10?"0"+c:c,n+"-"+r+"-"+a+" "},$={dateTimeFormate:Y},G=n("0427"),J={setCookie:function(e,t,n,r){r=r?";domain="+r:"";var a=n,o=new Date;return o.setTime(o.getTime()+24*a*60*60*1e3),document.cookie=e+"="+encodeURIComponent(t)+";expires="+o.toGMTString()+";path=/"+r,!0},getCookie:function(e){for(var t=document.cookie,n=t.split("; "),r=0;r<n.length;r++){var a=n[r].split("=");if(e==a[0])return a[1]}return""},delCookie:function(e){var t=new Date;t.setTime(t.getTime()-1);var n=this.getCookie(e);null!=n&&(document.cookie=e+"="+n+";expires="+t.toGMTString())},getParams:function(e){var t=window.fwtime-Math.floor((new Date).getTime()/1e3),n=Math.floor((new Date).getTime()/1e3)+t,r=getCookie("Yo4teW_gid"),o=[],i={},c="",u="",s="",f={pf:2,qwertyuiop:n,Yo4teW_gid:r},l=A()({},f,e);a()(l).forEach(function(e,t,n){o.push(e)}),o=o.sort(),o.forEach(function(e,t,n){i[o[t]]=l[o[t]]}),a()(i).forEach(function(e,t,n){c+=e+"="+i[e]}),u=c.replace(/[^0-9a-zA-Z]/g,""),u=u.toUpperCase();for(var d=0;d<u.length;d++)"A"!=u[d]&&"B"!=u[d]&&"C"!=u[d]&&(s+=u[d]);c=S(s);var h=A()({},e,{asdfghjkl:c},{qwertyuiop:n},{pf:2});return G.stringify(h)}};o["a"].use(E["e"]);var L={index:{},loading:!0},U={index:function(e,t){e.index=t.data}},W={index:function(e,t){var n=e.commit,r=J.getParams();L.loading=!0,j.index(r).then(function(e){var t=e.data;0==t.err_code&&(n({type:"index",data:t.data}),L.loading=!1)}).catch(function(e){L.loading=!1,Object(E["e"])({message:"网络出现问题,请重试",duration:1500})})}},H={},I={state:L,mutations:U,actions:W,getters:H};o["a"].use(E["e"]);var R={cartCount:"",loginCheck:!1},Z={cartCount:function(e,t){e.cartCount=0==t.data?"":t.data},loginCheck:function(e,t){0==t.data.err_code?e.loginCheck=!0:e.loginCheck=!1}},K={cartCount:function(e,t){var n=e.commit;j.cartCount().then(function(e){var t=e.data;0==t.err_code&&n({type:"cartCount",data:t.data})}).catch(function(e){Object(E["e"])({message:"网络出现问题,请重试",duration:1500})})},loginCheck:function(e,t){var n=e.commit;j.loginCheck().then(function(e){var t=e.data;n({type:"loginCheck",data:t})}).catch(function(e){Object(E["e"])({message:"网络出现问题,请重试",duration:1500})})}},Q={},V={state:R,mutations:Z,actions:K,getters:Q};o["a"].use(b["a"]);var X=new b["a"].Store({modules:{home:I,common:V}});n("e1a5"),n("bfd9");a()($).forEach(function(e){return o["a"].filter(e,$[e])}),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:X,render:function(e){return e(d)}}).$mount("#app")},bfd9:function(e,t,n){}});
//# sourceMappingURL=app.2cf72547.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-253cfdce":"8984366b"}[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-253cfdce":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-253cfdce":"a6751e5c"}[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 p=document.getElementsByTagName("head")[0];p.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,p=n("7f43"),d=n.n(p),h=(n("0a16"),n("081a")),g=function(t){return n.e("chunk-253cfdce").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 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,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,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,o,a,c)),q(q(i,n[d]),D(d)));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,p)}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<<_)-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=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+" "},Y={dateTimeFormate:L},$=n("0427"),G={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=window.fwtime-Math.floor((new Date).getTime()/1e3),n=Math.floor((new Date).getTime()/1e3)+e,r=getCookie("Yo4teW_gid"),a=[],c={},i="",u="",s="",f={pf:2,qwertyuiop:n,Yo4teW_gid:r},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 p=S()({},t,{asdfghjkl:i},{qwertyuiop:n},{pf:2});return $.stringify(p)}};a["a"].use(j["f"]);var J={index:{},loading:!0},U={index:function(t,e){t.index=e.data}},W={index:function(t,e){var n=t.commit,r=G.getParams();J.loading=!0,P.index(r).then(function(t){var e=t.data;0==e.err_code&&(n({type:"index",data:e.data}),J.loading=!1)}).catch(function(t){J.loading=!1,Object(j["f"])({message:"网络出现问题,请重试",duration:1500})})}},H={},I={state:J,mutations:U,actions:W,getters:H};a["a"].use(j["f"]);var R={cartCount:"",loginCheck:!1,phpParams:{}},Z={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}},K={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["f"])({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["f"])({message:"网络出现问题,请重试",duration:1500})})},customsrService:function(t,e){t.commit;P.customsrService().then(function(t){console.log()}).catch(function(t){Object(j["f"])({message:"网络出现问题,请重试",duration:1500})})},getCommonParams:function(t,e){var n=t.commit,r=G.getParams();P.getCommonParams(r).then(function(t){var e=t.data;n({type:"phpParams",data:e})}).catch(function(t){Object(j["f"])({message:"网络出现问题,请重试",duration:1500})})}},Q={},V={state:R,mutations:Z,actions:K,getters:Q};a["a"].use(y["a"]);var X=new y["a"].Store({modules:{home:I,common: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()(Y).forEach(function(t){return a["a"].filter(t,Y[t])}),a["a"].use(et),a["a"].prototype.$http=d.a,d.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",d.a.defaults.withCredentials=!0,a["a"].config.productionTip=!1,new a["a"]({router:b,store:X,render:function(t){return t(l)}}).$mount("#app")},bfd9:function(t,e,n){}});
//# sourceMappingURL=app.41c6cda1.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.
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