Commit 23f5ea36 by 梁建民

js

parent 201bd586
......@@ -15,6 +15,9 @@ switch (window.location.hostname) {
case "www.liexin.com":
urlApi = 'http://api.liexin.com/';
break;
case "m.liexin.com":
urlApi = 'http://m.liexin.com/';
break;
case "sz.ichunt.com":
urlApi = 'https://szapi.ichunt.com/';
break;
......
......@@ -11,7 +11,7 @@ import '@/assets/css/global.min.css'
//过滤器遍历
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));
Vue.config.productionTip = false;
Vue.config.productionTip = true;
new Vue({
router,
......
import Vue from 'vue'
import axios from 'axios'
import {services as Services} from '../../api/index'
import {Toast} from 'vant';
Vue.use(Toast);
const state = {
index: {}
......
......@@ -22,18 +22,17 @@
</div>
</div>
</div>
<div class="notice boxsiz">
<div class="notice boxsiz" v-if="index.lx_activity">
<span>猎芯活动</span>
<i class="lineBlock va-m"></i>
<div class="notice-contant">
<van-swipe vertical :show-indicators="false" :height="height" :autoplay="3000">
<van-swipe-item>1新用户注册专享288元大礼包</van-swipe-item>
<van-swipe-item>2新用户注册专享288元大礼包</van-swipe-item>
<van-swipe-item>3新用户注册专享288元大礼包</van-swipe-item>
<van-swipe-item>4新用户注册专享288元大礼包</van-swipe-item>
<van-swipe-item v-for="(item,index) in index.lx_activity" :key="index">
<a :href="item.url">{{item.title}}</a>
</van-swipe-item>
</van-swipe>
</div>
<a>更多</a>
<a class="more">更多</a>
</div>
<div class="tab-content boxsiz">
<ul class="boxsiz">
......@@ -57,7 +56,7 @@
<span class="t2 va-b">{{item.ad_words}}</span>
</div>
<template v-if="item.link_words">
<a class="r" :href="item.url">
<a class="r" :href="item.url+'?ptag=index-floor'+index">
<span class="va-m">{{item.link_words}}</span>
<i class="lineBlock va-m"></i>
</a>
......@@ -65,16 +64,53 @@
</div>
<ul class="boxsiz list">
<li class="boxsiz" v-for="(v,index) in item.data.tempGoods" :key="index">
<a href="javascript:;">
<img src="../../assets/images/home/pic-1.png" alt="">
<div class="text">
<p class="t1">{{v.goods_name}}</p>
<p class="t2">
<span class="l">{{v.price_ac}}</span>
<span class="r">抢购</span>
</p>
<p class="t3">{{v.price}}</p>
</div>
<a :href="'/item/'+v.goods_id+'.html'">
<!--限时限量-->
<template v-if="v.ac_type == 1">
<img :src="v.default_img" :alt="v.supplier_name">
<div class="text">
<p class="t1">{{v.goods_name}}</p>
<p class="t2">
<span class="l">{{v.price_ac}}</span>
<span class="r">抢购</span>
</p>
<p class="t3">{{v.price}}</p>
</div>
</template>
<!--活动价-->
<template v-else-if="v.ac_type == 2">
<img :src="v.default_img" :alt="v.supplier_name">
<div class="text">
<p class="t1">{{v.goods_name}}</p>
<p class="t2">
<span class="l">{{v.price_ac}}</span>
<span class="r">抢购</span>
</p>
<p class="t3">{{v.price}}</p>
</div>
</template>
<!--会员价-->
<template v-else-if="v.ac_type == 3">
<img :src="v.default_img" :alt="v.supplier_name">
<div class="text">
<p class="t1">{{v.goods_name}}</p>
<p class="t2">
<span class="l">{{v.price_ac}}</span>
<span class="r">优惠</span>
</p>
<p class="t3">{{v.price}}</p>
</div>
</template>
<!--原价-->
<template v-else>
<img :src="v.default_img" :alt="v.supplier_name">
<div class="text">
<p class="t1">{{v.goods_name}}</p>
<p class="t2">
<span class="l">{{v.price_ac}}</span>
</p>
</div>
</template>
</a>
</li>
</ul>
......@@ -166,7 +202,7 @@
</template>
</template>
<!--资讯中心-->
<div class="news boxsiz">
<div class="news boxsiz" v-if="index.footer_new_article">
<div class="tit boxsiz">
<div class="l">
<i class="lineBlock va-b"></i>
......@@ -383,15 +419,17 @@
font-size: 14px;
overflow: hidden;
.van-swipe-item {
font-size: 14px !important;
color: #2e2e2e !important;
line-height: 33px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
a {
font-size: 14px !important;
color: #2e2e2e !important;
}
}
}
a {
a.more {
padding-left: 0.28rem;
font-size: 13px;
color: #999999;
......
<!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=/favicon.ico><link rel=stylesheet href=/static/iconfont.css><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=/static/flexible.min.js charset=utf-8></script><link href=/css/chunk-738481bd.a278fd5a.css rel=prefetch><link href=/js/chunk-738481bd.0aa7259d.js rel=prefetch><link href=/css/app.49eecd25.css rel=preload as=style><link href=/css/chunk-vendors.ec7d33f1.css rel=preload as=style><link href=/js/app.6f6d4d1c.js rel=preload as=script><link href=/js/chunk-vendors.46886506.js rel=preload as=script><link href=/css/chunk-vendors.ec7d33f1.css rel=stylesheet><link href=/css/app.49eecd25.css rel=stylesheet></head><body><noscript><strong>网站出现了一点小问题,正在修复中.......</strong></noscript><div id=app></div><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=//static.h5.com/favicon.ico><link rel=stylesheet href=//static.h5.com/static/iconfont.css><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=//static.h5.com/static/flexible.min.js charset=utf-8></script><link href=//static.h5.com/../../h5/view/css/chunk-b3993bd2.ba391bba.css rel=prefetch><link href=//static.h5.com/../../h5/view/js/chunk-b3993bd2.346abcaa.js rel=prefetch><link href=//static.h5.com/../../h5/view/css/app.997a773d.css rel=preload as=style><link href=//static.h5.com/../../h5/view/css/chunk-vendors.521d5c8e.css rel=preload as=style><link href=//static.h5.com/../../h5/view/js/app.84d682f2.js rel=preload as=script><link href=//static.h5.com/../../h5/view/js/chunk-vendors.ff9b9463.js rel=preload as=script><link href=//static.h5.com/../../h5/view/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//static.h5.com/../../h5/view/css/app.997a773d.css rel=stylesheet></head><body><noscript><strong>网站出现了一点小问题,正在修复中.......</strong></noscript><div id=app></div><script>//百度统计
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
......@@ -144,4 +144,4 @@
user_rank: '0'
});
sensors.quick('autoTrack');
}</script><script src=/js/chunk-vendors.46886506.js></script><script src=/js/app.6f6d4d1c.js></script></body></html>
\ No newline at end of file
}</script><script src=//static.h5.com/../../h5/view/js/chunk-vendors.ff9b9463.js></script><script src=//static.h5.com/../../h5/view/js/app.84d682f2.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],p=0,l=[];p<i.length;p++)a=i[p],o[a]&&l.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);f&&f(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-738481bd":"0aa7259d"}[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-738481bd":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-738481bd":"a278fd5a"}[t]+".css",o=u.p+r,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=c[i],p=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(p===r||p===o))return e()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){s=l[i],p=s.getAttribute("data-href");if(p===r||p===o)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.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],f.parentNode.removeChild(f),n(c)},f.href=o;var d=document.getElementsByTagName("head")[0];d.appendChild(f)}).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,p=document.createElement("script");p.charset="utf-8",p.timeout=120,u.nc&&p.setAttribute("nonce",u.nc),p.src=i(t),s=function(e){p.onerror=p.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:p})},12e4);p.onerror=p.onload=s,document.head.appendChild(p)}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="/",u.oe=function(t){throw console.error(t),t};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],p=s.push.bind(s);s.push=e,s=s.slice();for(var l=0;l<s.length;l++)e(s[l]);var f=p;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("e862"),a=n.n(r),o=(n("3c1b"),n("bc97"),n("c912"),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,p=n("25c1"),l=Object(p["a"])(s,c,i,!1,null,null,null);l.options.__file="App.vue";var f=l.exports,d=(n("d85c"),n("081a")),h=function(t){return n.e("chunk-738481bd").then(function(){var e=[n("9553")];t.apply(null,e)}.bind(this)).catch(n.oe)};o["a"].use(d["a"]);var m=[{path:"/home",component:h,meta:{title:"猎芯网"}},{path:"/",redirect:"/home"},{path:"*",redirect:"/"}];m.forEach(function(t){t.path=t.path||"/"+(t.name||"")});var v=new d["a"]({routes:m});v.beforeEach(function(t,e,n){var r=t.meta&&t.meta.title;r&&(document.title=r),n()});var g,b=n("52c1"),w=n("7f43"),y=n.n(w);switch(window.location.hostname){case"www.ichunt.com":g="https://api.ichunt.com/";break;case"www.liexin.com":g="http://api.liexin.com/";break;case"sz.ichunt.com":g="https://szapi.ichunt.com/";break;case"t.ichunt.com":g="https://api.ichunt.com/";break;default:g="/api/"}var P=g,k={getPointPrize:P+"point/getPointPrize",cartCount:P+"cart/count"},x={getPointPrize:function(t){return y.a.get(k.getPointPrize,{params:{data:t}})},cartCount:function(t){return y.a.get(k.cartCount,{params:{data:t}})}},C={appindex:{}},j={appIndex:function(t,e){}},E={appIndex:function(t,e){t.commit}},O={},_={state:C,mutations:j,actions:E,getters:O},T=n("02a4");o["a"].use(T["d"]);var S={cartCount:""},z={cartCount:function(t,e){t.cartCount=0==e.data?"":e.data}},M={cartCount:function(t,e){var n=t.commit;x.cartCount().then(function(t){var e=t.data;0==e.err_code&&n({type:"cartCount",data:e.data})}).catch(function(t){Object(T["d"])({message:"网络出现问题,请重试",duration:1500})})}},A={},N={state:S,mutations:z,actions:M,getters:A};o["a"].use(b["a"]);var B=new b["a"].Store({modules:{home:_,common:N}}),q=(n("af3c"),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+" "}),D={dateTimeFormate:q};n("093c"),n("bfd9");a()(D).forEach(function(t){return o["a"].filter(t,D[t])}),o["a"].config.productionTip=!1,new o["a"]({router:v,store:B,render:function(t){return t(f)}}).$mount("#app")},bfd9:function(t,e,n){}});
//# sourceMappingURL=app.6f6d4d1c.js.map
\ No newline at end of file
(function(t){function e(e){for(var r,a,i=e[0],u=e[1],s=e[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);f&&f(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+"../../h5/view/js/"+({}[t]||t)+"."+{"chunk-b3993bd2":"346abcaa"}[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-b3993bd2":1};a[t]?e.push(a[t]):0!==a[t]&&n[t]&&e.push(a[t]=new Promise(function(e,n){for(var r="../../h5/view/css/"+({}[t]||t)+"."+{"chunk-b3993bd2":"ba391bba"}[t]+".css",o=u.p+r,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=c[i],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===r||d===o))return e()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){s=l[i],d=s.getAttribute("data-href");if(d===r||d===o)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.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],f.parentNode.removeChild(f),n(c)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)}).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,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=i(t),s=function(e){d.onerror=d.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:d})},12e4);d.onerror=d.onload=s,document.head.appendChild(d)}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="//static.h5.com/",u.oe=function(t){throw console.error(t),t};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],d=s.push.bind(s);s.push=e,s=s.slice();for(var l=0;l<s.length;l++)e(s[l]);var f=d;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,d=n("25c1"),l=Object(d["a"])(s,c,i,!1,null,null,null);l.options.__file="App.vue";var f=l.exports,p=(n("0a16"),n("081a")),h=function(t){return n.e("chunk-b3993bd2").then(function(){var e=[n("9553")];t.apply(null,e)}.bind(this)).catch(n.oe)};o["a"].use(p["a"]);var m=[{path:"/home",component:h,meta:{title:"猎芯网"}},{path:"/",redirect:"/home"},{path:"*",redirect:"/"}];m.forEach(function(t){t.path=t.path||"/"+(t.name||"")});var v=new p["a"]({routes:m});v.beforeEach(function(t,e,n){var r=t.meta&&t.meta.title;r&&(document.title=r),n()});var b,g=n("52c1"),w=n("7f43"),y=n.n(w);switch(window.location.hostname){case"www.ichunt.com":b="https://api.ichunt.com/";break;case"www.liexin.com":b="http://api.liexin.com/";break;case"m.liexin.com":b="http://m.liexin.com/";break;case"sz.ichunt.com":b="https://szapi.ichunt.com/";break;case"t.ichunt.com":b="https://api.ichunt.com/";break;default:b="/api/"}var x=b,k={index:x+"index",cartCount:x+"cart/count"},C={index:function(t){return y.a.get(k.index,{params:{data:t}})},cartCount:function(t){return y.a.get(k.cartCount,{params:{data:t}})}},j=n("6ef6");o["a"].use(j["d"]);var O={index:{}},_={index:function(t,e){t.index=e.data}},E={index:function(t,e){var n=t.commit;C.index().then(function(t){var e=t.data;0==e.err_code&&n({type:"index",data:e.data})}).catch(function(t){Object(j["d"])({message:"网络出现问题,请重试",duration:1500})})}},T={},P={state:O,mutations:_,actions:E,getters:T};o["a"].use(j["d"]);var S={cartCount:""},M={cartCount:function(t,e){t.cartCount=0==e.data?"":e.data}},A={cartCount:function(t,e){var n=t.commit;C.cartCount().then(function(t){var e=t.data;0==e.err_code&&n({type:"cartCount",data:e.data})}).catch(function(t){Object(j["d"])({message:"网络出现问题,请重试",duration:1500})})}},N={},B={state:S,mutations:M,actions:A,getters:N};o["a"].use(g["a"]);var q=new g["a"].Store({modules:{home:P,common:B}}),z=(n("4ddc"),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+" "}),D={dateTimeFormate:z};n("e1a5"),n("bfd9");a()(D).forEach(function(t){return o["a"].filter(t,D[t])}),o["a"].config.productionTip=!0,new o["a"]({router:v,store:q,render:function(t){return t(f)}}).$mount("#app")},bfd9:function(t,e,n){}});
//# sourceMappingURL=app.84d682f2.js.map
\ No newline at end of file
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b3993bd2"],{"0218":function(s,t,a){"use strict";var i=a("8b2f"),e=a.n(i);e.a},"266c":function(s,t,a){s.exports=a.p+"../../h5/view/img/logo.77238714.png"},"3d12":function(s,t,a){s.exports=a.p+"../../h5/view/img/banner.712c55b3.png"},"6cf3":function(s,t,a){},"8a9e":function(s,t,a){"use strict";var i=a("6cf3"),e=a.n(i);e.a},"8b2f":function(s,t,a){},9553:function(s,t,a){"use strict";a.r(t);var i=function(){var s=this,t=s.$createElement,i=s._self._c||t;return i("section",{staticClass:"main-interface boxsiz"},[i("div",{staticClass:"container-wrap boxsiz"},[i("van-pull-refresh",{on:{refresh:s.onRefresh},model:{value:s.isLoading,callback:function(t){s.isLoading=t},expression:"isLoading"}},[i("div",{staticClass:"head boxsiz"},[i("div",{staticClass:"banner boxsiz"},[i("Slide",{attrs:{slidedata:s.index.rollbanner}})],1),i("div",{staticClass:"login-wrap"},[i("a",{staticClass:"btn",staticStyle:{display:"none"},attrs:{href:"/v3/login?ptag=index-topnav"}},[s._v("登录")]),i("a",{staticClass:"person-btn",attrs:{href:"/v3/user?ptag=index-topnav"}},[i("i")])]),i("div",{staticClass:"search boxsiz"},[i("div",{staticClass:"search-wrap boxsiz"},[i("div",{staticClass:"pic"},[i("img",{staticClass:"logo",attrs:{src:a("266c"),alt:""}})]),i("div",{staticClass:"inp boxsiz"},[i("i"),i("input",{staticClass:"boxsiz",attrs:{type:"text",placeholder:"请输入元器件型号、参数"}})])])])]),s.index.lx_activity?i("div",{staticClass:"notice boxsiz"},[i("span",[s._v("猎芯活动")]),i("i",{staticClass:"lineBlock va-m"}),i("div",{staticClass:"notice-contant"},[i("van-swipe",{attrs:{vertical:"","show-indicators":!1,height:s.height,autoplay:3e3}},s._l(s.index.lx_activity,function(t,a){return i("van-swipe-item",{key:a},[i("a",{attrs:{href:t.url}},[s._v(s._s(t.title))])])}),1)],1),i("a",{staticClass:"more"},[s._v("更多")])]):s._e(),i("div",{staticClass:"tab-content boxsiz"},[i("ul",{staticClass:"boxsiz"},s._l(s.index.business_entry,function(t,a){return i("li",[i("a",{attrs:{href:t.url,target:t.window_open>0?"_blank":"_self"}},[i("img",{attrs:{src:t.images,alt:""}}),i("p",[s._v(s._s(t.title))])])])}),0)]),i("div",{staticClass:"content boxsiz"},[s._l(s.index.template,function(t,a){return["temp2"==t.class?[i("div",{staticClass:"selfshop boxsiz"},[i("div",{staticClass:"tit boxsiz"},[i("div",{staticClass:"l"},[i("i",{staticClass:"lineBlock va-b"}),i("span",{staticClass:"t1 va-b"},[s._v(s._s(t.tem_name))]),i("span",{staticClass:"t2 va-b"},[s._v(s._s(t.ad_words))])]),t.link_words?[i("a",{staticClass:"r",attrs:{href:t.url+"?ptag=index-floor"+a}},[i("span",{staticClass:"va-m"},[s._v(s._s(t.link_words))]),i("i",{staticClass:"lineBlock va-m"})])]:s._e()],2),i("ul",{staticClass:"boxsiz list"},s._l(t.data.tempGoods,function(t,a){return i("li",{key:a,staticClass:"boxsiz"},[i("a",{attrs:{href:"/item/"+t.goods_id+".html"}},[1==t.ac_type?[i("img",{attrs:{src:t.default_img,alt:t.supplier_name}}),i("div",{staticClass:"text"},[i("p",{staticClass:"t1"},[s._v(s._s(t.goods_name))]),i("p",{staticClass:"t2"},[i("span",{staticClass:"l"},[s._v(s._s(t.price_ac))]),i("span",{staticClass:"r"},[s._v("抢购")])]),i("p",{staticClass:"t3"},[s._v(s._s(t.price))])])]:2==t.ac_type?[i("img",{attrs:{src:t.default_img,alt:t.supplier_name}}),i("div",{staticClass:"text"},[i("p",{staticClass:"t1"},[s._v(s._s(t.goods_name))]),i("p",{staticClass:"t2"},[i("span",{staticClass:"l"},[s._v(s._s(t.price_ac))]),i("span",{staticClass:"r"},[s._v("抢购")])]),i("p",{staticClass:"t3"},[s._v(s._s(t.price))])])]:3==t.ac_type?[i("img",{attrs:{src:t.default_img,alt:t.supplier_name}}),i("div",{staticClass:"text"},[i("p",{staticClass:"t1"},[s._v(s._s(t.goods_name))]),i("p",{staticClass:"t2"},[i("span",{staticClass:"l"},[s._v(s._s(t.price_ac))]),i("span",{staticClass:"r"},[s._v("优惠")])]),i("p",{staticClass:"t3"},[s._v(s._s(t.price))])])]:[i("img",{attrs:{src:t.default_img,alt:t.supplier_name}}),i("div",{staticClass:"text"},[i("p",{staticClass:"t1"},[s._v(s._s(t.goods_name))]),i("p",{staticClass:"t2"},[i("span",{staticClass:"l"},[s._v(s._s(t.price_ac))])])])]],2)])}),0)])]:"temp1"==t.class?[i("div",{staticClass:"lxshop boxsiz"},[i("div",{staticClass:"tit boxsiz"},[i("div",{staticClass:"l"},[i("i",{staticClass:"lineBlock va-b"}),i("span",{staticClass:"t1 va-b"},[s._v(s._s(t.tem_name))]),i("span",{staticClass:"t2 va-b"},[s._v(s._s(t.ad_words))])]),t.link_words?[i("a",{staticClass:"r",attrs:{href:t.url}},[i("span",{staticClass:"va-m"},[s._v(s._s(t.link_words))]),i("i",{staticClass:"lineBlock va-m"})])]:s._e()],2),i("ul",{staticClass:"boxsiz list"},s._l(t.data.brandImages,function(s,t){return i("li",{key:t,staticClass:"boxsiz"},[i("a",{staticClass:"boxsiz",attrs:{href:s.url}},[i("div",{staticClass:"pic"},[i("img",{attrs:{src:s.images,alt:s.title}})])])])}),0)])]:"temp3"==t.class?[i("div",{staticClass:"jfshop boxsiz"},[i("div",{staticClass:"tit boxsiz"},[i("div",{staticClass:"l"},[i("i",{staticClass:"lineBlock va-b"}),i("span",{staticClass:"t1 va-b"},[s._v(s._s(t.tem_name))]),i("span",{staticClass:"t2 va-b"},[s._v(s._s(t.ad_words))])]),t.link_words?[i("a",{staticClass:"r",attrs:{href:t.url}},[i("span",{staticClass:"va-m"},[s._v(s._s(t.link_words))]),i("i",{staticClass:"lineBlock va-m"})])]:s._e()],2),i("ul",{staticClass:"list boxsiz"},s._l(t.data.pointGoods,function(t,a){return i("li",{key:a,staticClass:"boxsiz"},[i("a",{staticClass:"boxsiz"},[i("div",{staticClass:"pic"},[i("img",{attrs:{src:t.prize_img_url,alt:t.prize_name}})]),i("p",{staticClass:"t1"},[s._v(s._s(t.prize_name))]),i("p",{staticClass:"t2"},[i("i",{staticClass:"va-m lineBlock"}),i("em",[s._v(s._s(t.prize_point))])])])])}),0)])]:"temp4"==t.class?[i("div",{staticClass:"pcb boxsiz"},[i("div",{staticClass:"tit boxsiz"},[i("div",{staticClass:"l"},[i("i",{staticClass:"lineBlock va-b"}),i("span",{staticClass:"t1 va-b"},[s._v(s._s(t.tem_name))]),i("span",{staticClass:"t2 va-b"},[s._v(s._s(t.ad_words))])]),t.link_words?[i("a",{staticClass:"r",attrs:{href:t.url}},[i("span",{staticClass:"va-m"},[s._v(s._s(t.link_words))]),i("i",{staticClass:"lineBlock va-m"})])]:s._e()],2),i("ul",{staticClass:"list boxsiz"},s._l(t.data.tempImages,function(s,t){return i("li",{key:t,staticClass:"boxsiz"},[i("a",{staticClass:"boxsiz",attrs:{href:"v.url"}},[i("img",{attrs:{src:s.images,alt:s.title}})])])}),0)])]:s._e()]}),s.index.footer_new_article?i("div",{staticClass:"news boxsiz"},[i("div",{staticClass:"tit boxsiz"},[i("div",{staticClass:"l"},[i("i",{staticClass:"lineBlock va-b"}),i("span",{staticClass:"t1 va-b"},[s._v("资讯中心")])]),i("a",{staticClass:"r"},[i("span",{staticClass:"va-m"},[s._v("更多")]),i("i",{staticClass:"lineBlock va-m"})])]),i("ul",{staticClass:"list boxsiz"},s._l(s.index.footer_new_article,function(t){return i("li",{key:t.art_id,staticClass:"boxsiz"},[i("a",{staticClass:"boxsiz",attrs:{href:"/article/"+t.art_id+".html?ptag="+s.ptag+"-dynamic"}},[i("div",{staticClass:"pic"},[i("img",{attrs:{src:t.litpic}})]),i("div",{staticClass:"text"},[i("p",{staticClass:"t1"},[s._v(s._s(t.title_seo))]),i("div",{staticClass:"t2"},[i("span",[s._v("来源:"+s._s(t.writer))]),i("div",[i("i",{staticClass:"ico lineBlock va-m"}),i("em",{staticClass:"va-m"},[s._v("\n "+s._s(parseInt(t.click)+parseInt(t.start_review))+"\n ")])])])])])])}),0)]):s._e()],2)])],1),i("Navigator")],1)},e=[],l=(a("9f07"),a("0964"),a("1cc5")),c=a("52c1"),n=a("6ef6"),r=function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",{staticClass:"navigator"},[a("ul",{staticClass:"boxsiz"},[s._m(0),s._m(1),s._m(2),a("li",[a("a",{attrs:{href:"/v3/joincart?ptag=index-bottomnav"}},[a("i",{staticClass:"iconfont icon-gouwuche1"}),a("p",[s._v("购物车")]),a("span",{staticClass:"cart boxsiz"},[s._v(s._s(s.cartCount>99?"99+":s.cartCount))])])]),s._m(3)])])},o=[function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("li",{staticClass:"curr"},[a("a",{attrs:{href:"/v3?ptag=index-bottomnav"}},[a("i",{staticClass:"iconfont icon-shouye"}),a("p",[s._v("首页")])])])},function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("li",[a("a",{attrs:{href:"/v3/lxshop?ptag=index-bottomnav"}},[a("i",{staticClass:"iconfont icon-ziying"}),a("p",[s._v("自营商城")])])])},function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("li",[a("a",{attrs:{href:"/v3/xianhuo?ptag=index-bottomnav"}},[a("i",{staticClass:"iconfont icon-lianying"}),a("p",[s._v("联营商城")])])])},function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("li",[a("a",{attrs:{href:"/v3/user?ptag=index-bottomnav"}},[a("i",{staticClass:"iconfont icon-huiyuanzhongxin1"}),a("p",[s._v("会员中心")])])])}],_={name:"navigator",computed:Object(c["b"])({cartCount:function(s){return s.common.cartCount}}),created:function(){}},v=_,p=a("25c1"),d=Object(p["a"])(v,r,o,!1,null,null,null);d.options.__file="Navigator.vue";var C=d.exports,u=function(){var s=this,t=s.$createElement,i=s._self._c||t;return i("van-swipe",{attrs:{autoplay:3e6,"indicator-color":"#ffffff",loop:!1}},[s.slidedata?s._l(s.slidedata,function(s,t){return i("van-swipe-item",{key:t},[i("img",{staticClass:"slide-pic",attrs:{src:s.images}})])}):[i("van-swipe-item",[i("img",{staticClass:"slide-pic",attrs:{src:a("3d12")}})])]],2)},m=[];l["a"].use(n["b"]).use(n["c"]);var f={name:"slide",props:{slidedata:Array}},b=f,x=(a("0218"),Object(p["a"])(b,u,m,!1,null,null,null));x.options.__file="Slide.vue";var g=x.exports;l["a"].use(n["a"]);var h={name:"index",computed:Object(c["b"])({index:function(s){return s.home.index}}),data:function(){return{ptag:"index",isLoading:!1,height:33}},created:function(){this.$store.dispatch({type:"index"})},methods:{onRefresh:function(){var s=this;setTimeout(function(){s.isLoading=!1},500)}},components:{Navigator:C,Slide:g}},z=h,w=(a("8a9e"),Object(p["a"])(z,i,e,!1,null,"2858528a",null));w.options.__file="Index.vue";t["default"]=w.exports}}]);
//# sourceMappingURL=chunk-b3993bd2.346abcaa.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.
This diff could not be displayed because it is too large.
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '//static.h5.com/' : '/',
outputDir: 'view',
assetsDir: '../../h5/view',
devServer: {
proxy: {
'/api': {
......
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