Commit bde6f420 by 梁建民

bug

parent 5e223244
......@@ -86,10 +86,10 @@ 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 .customer-service { 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 .customer-service .icon-kefu { color: #fff; font-size: 25px; }
.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-xiangshang1 { color: #fff; font-size: 20px; }
.slide-bar .backtop .icon-xiangshang1 { color: #fff; font-size: 28px; }
.kefu .t0 { text-align: center; height: 100px; line-height: 100px; }
.kefu .t0 .icon-kefu { font-size: 60px; color: #1080d0; }
......
......@@ -131,7 +131,7 @@ $imgUrl: '../images/';
right: 0;
bottom: 23%;
z-index: 3000;
.kefu {
.customer-service {
width: 1.053rem;
height: 1.053rem;
border-radius: 4px;
......@@ -141,7 +141,7 @@ $imgUrl: '../images/';
justify-content: center;
.icon-kefu {
color: #fff;
font-size: 20px;
font-size: 25px;
}
}
.backtop {
......@@ -155,7 +155,7 @@ $imgUrl: '../images/';
justify-content: center;
.icon-xiangshang1 {
color: #fff;
font-size: 20px;
font-size: 28px;
}
}
}
......@@ -185,10 +185,10 @@ $imgUrl: '../images/';
border: none;
}
}
.t2{
.t2 {
padding: 0 10%;
margin-bottom: 20px;
a{
a {
border-color: #e5e5e5;
color: #1080d0;
border: 1px solid #1080d0;
......@@ -198,7 +198,7 @@ $imgUrl: '../images/';
height: 33px;
line-height: 33px;
font-size: 13px;
.icon-qq{
.icon-qq {
font-size: 13px;
margin-right: 10px;
}
......
......@@ -59,8 +59,13 @@ const actions = {
});
},
customsrService({commit}, payload) {
Services.customsrService().then(function (res) {
console.log()
var params = {
pf: window.lxpf,
searchModel: ''
}
Services.customsrService(params).then(function (res) {
console.log(res.data)
}).catch(function (err) {
Toast({
message: '网络出现问题,请重试',
......
......@@ -8,13 +8,13 @@
</a>
</li>
<li>
<a href="/v3/lxshop?ptag=index-bottomnav">
<a href="/v3/xianhuo?ptag=index-bottomnav">
<i class="iconfont icon-ziying"></i>
<p>自营商城</p>
</a>
</li>
<li>
<a href="/v3/xianhuo?ptag=index-bottomnav">
<a href="/v3/lxshop?ptag=index-bottomnav">
<i class="iconfont icon-lianying"></i>
<p>联营商城</p>
</a>
......
<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-xiangshang1"></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="phpParams.kfqq_xk" 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>
<section>
<div class="slide-bar">
<div class="customer-service" @click="recordFn">
<i class="iconfont icon-kefu"></i>
</div>
<div class="backtop" v-backTop v-if="show">
<i class="iconfont icon-xiangshang1"></i>
</div>
</div>
</div>
<!--客服弹出框-->
<van-dialog v-model="flag" :showConfirmButton="showButton" :showCancelButton="showButton" :closeOnClickOverlay="closeOnClickOverlay">
<div class="van-dialog__message">
<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" @click="customsrService" :href="phpParams.kfqq_xk" 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>
</van-dialog>
</section>
</template>
<script>
......@@ -37,7 +42,9 @@
data() {
return {
flag: false,
show: false
show: false,
showButton: false,
closeOnClickOverlay: true
}
},
computed: mapState({
......@@ -55,6 +62,11 @@
type: 'index'
})
},
customsrService() {
this.$store.dispatch({
type: 'customsrService'
})
},
scrollFn() {
var obj = document.querySelector('.container-wrap'), self = this;
obj.onscroll = function () {
......@@ -66,16 +78,15 @@
}
}
},
handle() {
var html = this.$refs.kefu.innerHTML;
Dialog.alert({
message: html,
showConfirmButton: false,
showCancelButton: false,
closeOnClickOverlay: true
}).then(() => {
});
recordFn() {
this.flag = true;
try {
sensors.track('RNavClick', {
right_nav_click: "h5-客服"
});
} catch (e) {
}
}
}
}
......
<template>
<van-swipe :autoplay="3000000" indicator-color="#ffffff" :loop="false">
<van-swipe :autoplay="3000" indicator-color="#ffffff" :loop="false">
<template v-if="slidedata">
<van-swipe-item v-for="(item, index) in slidedata" :key="index">
<a :href="item.url+'?ptag=index-banner-'+(index * 1 +1)" :target="item.window_open > 0 ?'_blank':'_self'">
<img :src="item.images" class="slide-pic">
<a @click="recordFn(index * 1 +1,item.url)" :href="item.url+'?ptag=index-banner-'+(index * 1 +1)" :target="item.window_open > 0 ?'_blank':'_self'">
<img :src="item.images" class="slide-pic">
</a>
</van-swipe-item>
</template>
......@@ -17,13 +17,27 @@
<script>
import Vue from 'vue';
import {Swipe, SwipeItem} from 'vant';
import {Swipe, SwipeItem, Lazyload} from 'vant';
Vue.use(Swipe).use(SwipeItem);
Vue.use(Swipe).use(SwipeItem).use(Lazyload);
export default {
name: 'slide',
props: {
slidedata: Array
},
methods: {
recordFn(index, url) {
try {
sensors.track('bannerClick', {
page_type: 'h5-index',
banner_location: 'h5-banner',
banner_sort: Number(index),
url: url
});
} catch (e) {
}
}
}
}
</script>
......
......@@ -11,7 +11,7 @@
<a href="/v3/user?ptag=index-topnav" class="person-btn"><i></i></a>
</template>
<template v-else>
<a href="/v3/login?ptag=index-topnav" class="btn">登录</a>
<a @click="recordFn('login')" href="/v3/login?ptag=index-topnav" class="btn">登录</a>
</template>
</div>
<div class="search boxsiz">
......@@ -71,7 +71,7 @@
<a :href="'/item/'+v.goods_id+'.html?ptag='+ptag+'-floor'+(count * 1 +1)" class="boxsiz" :target="v.window_open > 0 ? '_blank':'_self'">
<!--限时限量-->
<template v-if="v.ac_type == 1">
<img :src="v.default_img" :alt="v.supplier_name" onerror="this.src='static/images/ziyin.png'">
<img v-lazy="v.default_img" :alt="v.supplier_name">
<div class="text boxsiz">
<p class="t1 boxsiz">{{v.goods_name}}</p>
<p class="t2">
......@@ -83,7 +83,7 @@
</template>
<!--活动价-->
<template v-else-if="v.ac_type == 2">
<img :src="v.default_img" :alt="v.supplier_name" onerror="this.src='static/images/ziyin.png'">
<img v-lazy="v.default_img" :alt="v.supplier_name">
<div class="text boxsiz">
<p class="t1 boxsiz">{{v.goods_name}}</p>
<p class="t2">
......@@ -95,7 +95,7 @@
</template>
<!--会员价-->
<template v-else-if="v.ac_type == 3">
<img :src="v.default_img" :alt="v.supplier_name" onerror="this.src='static/images/ziyin.png'">
<img v-lazy="v.default_img" :alt="v.supplier_name">
<div class="text boxsiz">
<p class="t1 boxsiz">{{v.goods_name}}</p>
<p class="t2">
......@@ -107,7 +107,7 @@
</template>
<!--原价-->
<template v-else>
<img :src="v.default_img" :alt="v.supplier_name" onerror="this.src='static/images/ziyin.png'">
<img v-lazy="v.default_img" :alt="v.supplier_name">
<div class="text boxsiz">
<p class="t1 boxsiz">{{v.goods_name}}</p>
<p class="t2">
......@@ -140,7 +140,7 @@
<li class="boxsiz" v-for="(v,index) in item.data.brandImages" :key="index">
<a :href="v.url+'?ptag='+ptag+'-floor'+(count * 1 +1)" :target="v.window_open > 0 ? '_blank':'_self'">
<div class="pic">
<img :src="v.images" :alt="v.title">
<img :alt="v.title" v-lazy="v.images">
</div>
</a>
</li>
......@@ -167,7 +167,7 @@
<li class="boxsiz" v-for="(v,index) in item.data.pointGoods" :key="index">
<a class="boxsiz" :href="'/v3/pointmall'+'?ptag='+ptag+'-floor'+(count * 1 +1)" :target="v.window_open > 0 ? '_blank':'_self'">
<div class="pic">
<img :src="v.prize_img_url" :alt="v.prize_name">
<img v-lazy="v.prize_img_url" :alt="v.prize_name">
</div>
<p class="t1">{{v.prize_name}}</p>
<p class="t2">
......@@ -198,7 +198,7 @@
<ul class="list boxsiz">
<li class="boxsiz" v-for="(v,index) in item.data.tempImages" :key="index">
<a class="boxsiz" :href="v.url+'?ptag='+ptag+'-floor'+(count * 1 +1)" :target="v.window_open > 0 ? '_blank':'_self'">
<img :src="v.images" :alt="v.title">
<img v-lazy="v.images" :alt="v.title">
</a>
</li>
</ul>
......@@ -221,7 +221,7 @@
<li class="boxsiz" v-for="item in index.footer_new_article" :key="item.art_id">
<a class="boxsiz" :href="'/article/'+item.art_id+'.html?ptag='+ptag+'-dynamic'">
<div class="pic">
<img :src="item.litpic" title="猎芯网" onerror="this.src='static/images/news.png'">
<img v-lazy="item.litpic" title="猎芯网" alt="猎芯网">
</div>
<div class="text">
<p class="t1">{{item.title_seo}}</p>
......@@ -252,13 +252,12 @@
import Vue from 'vue';
import {mapState} from 'vuex'
import {PullRefresh, Loading} from 'vant';
import {PullRefresh, Loading, Lazyload} from 'vant';
import Navigator from '@/views/common/Navigator.vue';
import Slide from '@/views/common/Slide.vue';
import SideBar from '@/views/common/SideBar.vue';
Vue.use(PullRefresh);
Vue.use(Loading);
Vue.use(PullRefresh).use(Loading).use(Lazyload);
export default {
name: 'index',
......@@ -293,7 +292,27 @@
this.isLoading = false;
}, 1000);
},
recordFn(type) {
if (type == 'login') {
try {
sensors.track('TopNavClick', {
top_nav_click: "h5-登录"
});
} catch (e) {
}
} else if (type == 'search') {
try {
sensors.track('TopNavClick', {
top_nav_click: "h5-搜索"
});
} catch (e) {
}
}
},
jump() {
this.recordFn('search');
window.location.href = '/v3/search/search_index.html?ptag=index-topnav';
}
},
......@@ -501,7 +520,7 @@
.l {
i {
position: relative;
top: 2px;
top: 1px;
width: 3px;
height: 15px;
background: url("../../assets/images/home/arrow-2.png") no-repeat center;
......@@ -511,11 +530,13 @@
.t1 {
font-size: 17px;
color: #2e2e2e;
line-height: 9px;
}
.t2 {
font-size: 13px;
color: #adacac;
margin-left: 0.213rem;
line-height: 9px;
}
}
.r {
......
<!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-18d9ba44.7d7c7ecd.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-18d9ba44.b9bf8649.js rel=prefetch><link href=//szh5static.ichunt.com/css/app.463ccca8.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.c72c9031.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.463ccca8.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-b1441922.27f3b675.css rel=prefetch><link href=//szh5static.ichunt.com/js/chunk-b1441922.8fccd6de.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.399c9d6d.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.c9d5e282.js></script><script src=//szh5static.ichunt.com/js/app.c72c9031.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.399c9d6d.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-18d9ba44":"b9bf8649"}[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-18d9ba44":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-18d9ba44":"7d7c7ecd"}[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-18d9ba44").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 k,w,y=n("52c1");switch(window.location.hostname){case"www.ichunt.com":k="https://api.ichunt.com/";break;case"m.ichunt.com":w="https://m.ichunt.com/v3",k="https://api.ichunt.com/";break;case"sz.ichunt.com":k="https://szapi.ichunt.com/";break;case"szm.ichunt.com":k="https://szapi.ichunt.com/",w="https://szm.ichunt.com/v3/";break;case"t.ichunt.com":k="https://api.ichunt.com/";break;case"tm.ichunt.com":w="https://tm.ichunt.com/v3",k="https://api.ichunt.com/";break;case"www.liexin.com":k="http://api.liexin.com/";break;case"m.liexin.com":w="http://m.liexin.com/v3/",k="http://api.liexin.com/";break;default:k="/api/"}var C=w,x=k,T={index:C+"index",loginCheck:x+"login/check",cartCount:x+"cart/count",customsrService:x+"public/customsrservice",getCommonParams:C+"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),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,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<<_)-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 m=0;m<i.length;m++)"A"!=i[m]&&"B"!=i[m]&&"C"!=i[m]&&(u+=i[m]);c=A(u);var l=S()({},t,{asdfghjkl:c},{qwertyuiop:e},{pf:2});return L.stringify(l)}};o["a"].use(j["f"]);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["f"])({message:"网络出现问题,请重试",duration:1500})})}},U={},W={state:$,mutations:G,actions:J,getters:U};o["a"].use(j["f"]);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["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=Y.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})})}},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=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:b,store:Q,render:function(t){return t(l)}}).$mount("#app")},bfd9:function(t,e,n){}});
//# sourceMappingURL=app.c72c9031.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