Commit 7175e41b by 梁建民

css

parent e42758db
module.exports = { module.exports = {
presets: [ presets: [
'@vue/app' ['@vue/app', {
polyfills: [
'es6.promise',
'es6.symbol'
]
}]
] ]
} }
\ No newline at end of file
<!DOCTYPE HTML><html lang=zh-CN><head><title></title><meta name=author content=www.dolabank.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><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js charset=utf-8></script><script src=/flexible.min.js charset=utf-8></script><link href=/css/chunk-0231bb22.b5a52d30.css rel=prefetch><link href=/js/chunk-0231bb22.0f0e17e3.js rel=prefetch><link href=/css/app.939ef56f.css rel=preload as=style><link href=/css/chunk-vendors.a7e1f294.css rel=preload as=style><link href=/js/app.2a5c880f.js rel=preload as=script><link href=/js/chunk-vendors.ce83766f.js rel=preload as=script><link href=/css/chunk-vendors.a7e1f294.css rel=stylesheet><link href=/css/app.939ef56f.css rel=stylesheet></head><body><noscript><strong>网站出现了一点小问题,正在修复中.......</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ce83766f.js></script><script src=/js/app.2a5c880f.js></script></body></html> <!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>//百度统计
\ No newline at end of file var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?0c48775abb60d7d7aeb4343bca7a239b";
document.getElementsByTagName('head')[0].appendChild(hm);
})();
//腾讯统计
var host_v = window.location.host;
if (host_v == "m.ichunt.com") {
if (isMiniProgram) {
var _mtac = {};
(function () {
var mta = document.createElement("script");
mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500626053");
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mta, s);
})();
} else {
var _mtac = {"performanceMonitor": 1, "senseQuery": 1};
(function () {
var mta = document.createElement("script");
mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500482933");
mta.setAttribute("cid", "500485800");
document.getElementsByTagName('head')[0].appendChild(mta);
})();
}
}</script><script>//神策统计
var host_v = window.location.host;
var __PUBLIC__;
switch (window.location.hostname) {
case "www.ichunt.com":
__PUBLIC__ = 'https://static.ichunt.com/dist';
break;
case "www.liexin.com":
__PUBLIC__ = 'http://res.liexin.com/dist';
break;
case "sz.ichunt.com":
__PUBLIC__ = 'https://szm.ichunt.com/v3/dist';
break;
case "t.ichunt.com":
__PUBLIC__ = 'https://t.ichunt.com/v3/dist';
break;
default:
__PUBLIC__ = 'http://res.liexin.com/dist';
}
function getCookie(name) {
var strCookie = document.cookie;
var arrCookie = strCookie.split("; ");
for (var i = 0; i < arrCookie.length; i++) {
var arr = arrCookie[i].split("=");
if (name == arr[0]) {
return arr[1];
}
}
return "";
}
if (host_v == "m.ichunt.com" || host_v == "sc.ichunt.com") {
(function (para) {
var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script', x = null, y = null;
if (typeof (w['sensorsDataAnalytic201505']) !== 'undefined') {
return false;
}
w['sensorsDataAnalytic201505'] = n;
w[n] = w[n] || function (a) {
return function () {
(w[n]._q = w[n]._q || []).push([a, arguments]);
}
};
var ifs = ['track', 'quick', 'register', 'registerPage', 'registerOnce', 'trackSignup', 'trackAbtest', 'setProfile', 'setOnceProfile', 'appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify', 'login', 'logout', 'trackLink', 'clearAllRegister', 'getAppStatus'];
for (var i = 0; i < ifs.length; i++) {
w[n][ifs[i]] = w[n].call(null, ifs[i]);
}
if (!w[n]._t) {
x = d.createElement(s), y = d.getElementsByTagName(s)[0];
x.async = 1;
x.src = p;
x.setAttribute('charset', 'UTF-8');
y.parentNode.insertBefore(x, y);
w[n].para = para;
}
})({
sdk_url: __PUBLIC__ + '/res/m/js/global/sensorsdata.min.js',
heatmap_url: __PUBLIC__ + '/res/m/js/global/heatmap.min.js',
name: 'sensors',
server_url: 'http://shence.ichunt.com:8106/sa?project=production',
heatmap: {}
});
//以异步加载 SDK 为例,神策 SDK 初始化完成,此时调用设置公共属性的方法,来保证之后的事件都有这两个属性。
sensors.registerPage({
current_url: location.href,
referrer: document.referrer,
platformType: '2', //H5
is_login: (getCookie("Yo4teW_uid") ? true : false),
user_rank: '0'
});
sensors.quick('autoTrack');
} else {
(function (para) {
var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script', x = null, y = null;
if (typeof (w['sensorsDataAnalytic201505']) !== 'undefined') {
return false;
}
w['sensorsDataAnalytic201505'] = n;
w[n] = w[n] || function (a) {
return function () {
(w[n]._q = w[n]._q || []).push([a, arguments]);
}
};
var ifs = ['track', 'quick', 'register', 'registerPage', 'registerOnce', 'trackSignup', 'trackAbtest', 'setProfile', 'setOnceProfile', 'appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify', 'login', 'logout', 'trackLink', 'clearAllRegister', 'getAppStatus'];
for (var i = 0; i < ifs.length; i++) {
w[n][ifs[i]] = w[n].call(null, ifs[i]);
}
if (!w[n]._t) {
x = d.createElement(s), y = d.getElementsByTagName(s)[0];
x.async = 1;
x.src = p;
x.setAttribute('charset', 'UTF-8');
y.parentNode.insertBefore(x, y);
w[n].para = para;
}
})({
sdk_url: __PUBLIC__ + '/res/m/js/global/sensorsdata.min.js',
heatmap_url: __PUBLIC__ + '__PUBLIC__/res/m/js/global/heatmap.min.js',
name: 'sensors',
server_url: 'http://shence.ichunt.com:8106/sa',
heatmap: {}
});
//以异步加载 SDK 为例,神策 SDK 初始化完成,此时调用设置公共属性的方法,来保证之后的事件都有这两个属性。
sensors.registerPage({
current_url: location.href,
referrer: document.referrer,
platformType: '2', //H5
is_login: (getCookie("Yo4teW_uid") ? true : false),
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
(function(e){function t(t){for(var r,o,u=t[0],c=t[1],s=t[2],l=0,p=[];l<u.length;l++)o=u[l],a[o]&&p.push(a[o][0]),a[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);f&&f(t);while(p.length)p.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,o=1;o<n.length;o++){var u=n[o];0!==a[u]&&(r=!1)}r&&(i.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},o={app:0},a={app:0},i=[];function u(e){return c.p+"js/"+({}[e]||e)+"."+{"chunk-0231bb22":"0f0e17e3"}[e]+".js"}function c(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,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={"chunk-0231bb22":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise(function(t,n){for(var r="css/"+({}[e]||e)+"."+{"chunk-0231bb22":"b5a52d30"}[e]+".css",a=c.p+r,i=document.getElementsByTagName("link"),u=0;u<i.length;u++){var s=i[u],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===r||l===a))return t()}var p=document.getElementsByTagName("style");for(u=0;u<p.length;u++){s=p[u],l=s.getAttribute("data-href");if(l===r||l===a)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var r=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.request=r,delete o[e],f.parentNode.removeChild(f),n(i)},f.href=a;var h=document.getElementsByTagName("head")[0];h.appendChild(f)}).then(function(){o[e]=0}));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise(function(t,n){r=a[e]=[t,n]});t.push(r[2]=i);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,c.nc&&l.setAttribute("nonce",c.nc),l.src=u(e),s=function(t){l.onerror=l.onload=null,clearTimeout(p);var n=a[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src,i=new Error("Loading chunk "+e+" failed.\n("+r+": "+o+")");i.type=r,i.request=o,n[1](i)}a[e]=void 0}};var p=setTimeout(function(){s({type:"timeout",target:l})},12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var p=0;p<s.length;p++)t(s[p]);var f=l;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("e862"),o=n.n(r),a=(n("3c1b"),n("175c"),n("bc97"),n("a5be"),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)},u=[],c={name:"app"},s=c,l=n("25c1"),p=Object(l["a"])(s,i,u,!1,null,null,null);p.options.__file="App.vue";var f=p.exports,h=(n("d85c"),n("081a")),d=function(e){return n.e("chunk-0231bb22").then(function(){var t=[n("9553")];e.apply(null,t)}.bind(this)).catch(n.oe)};a["a"].use(h["a"]);var m=[{path:"/home",component:d,meta:{title:"猎芯网"}},{path:"/",redirect:"/home"},{path:"*",redirect:"/"}];m.forEach(function(e){e.path=e.path||"/"+(e.name||"")});var v=new h["a"]({routes:m});v.beforeEach(function(e,t,n){var r=e.meta&&e.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="https://api.ichunt.com/"}var P=g,k={getPointPrize:P+"point/getPointPrize"},x={getPointPrize:function(e,t){return y.a.get(k.getPointPrize,{params:{data:t}})}},j={appindex:{}},E={appIndex:function(e,t){}},O={appIndex:function(e,t){e.commit;var n={pf:1,limit:1e3};x.getPointPrize(n).then(function(e){})}},T={},_={state:j,mutations:E,actions:O,getters:T};a["a"].use(b["a"]);var S=new b["a"].Store({modules:{home:_}}),z=(n("af3c"),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 o=t.getDate();o=o<10?"0"+o:o;var a=t.getHours();a=a<10?"0"+a:a;var i=t.getMinutes(),u=t.getSeconds();return i=i<10?"0"+i:i,u=u<10?"0"+u:u,n+"-"+r+"-"+o+" "}),M={dateTimeFormate:z};n("c334"),n("bfd9");o()(M).forEach(function(e){return a["a"].filter(e,M[e])}),a["a"].config.productionTip=!1,new a["a"]({router:v,store:S,render:function(e){return e(f)}}).$mount("#app")},bfd9:function(e,t,n){}});
//# sourceMappingURL=app.2a5c880f.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],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
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.
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.
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<title></title> <title></title>
<meta name="author" content="www.dolabank.com"> <meta name="author" content="www.ichunt.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <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-capable" content="yes">
...@@ -19,13 +19,167 @@ ...@@ -19,13 +19,167 @@
<meta name="description" content="猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。"> <meta name="description" content="猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。">
<meta name="keywords" content="猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,"> <meta name="keywords" content="猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="<%= BASE_URL %>static/iconfont.css">
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="text/javascript" charset="utf-8"></script> <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="text/javascript" charset="utf-8"></script>
<script src="<%= BASE_URL %>flexible.min.js" type="text/javascript" charset="utf-8"></script> <script src="<%= BASE_URL %>static/flexible.min.js" type="text/javascript" charset="utf-8"></script>
</head> </head>
<body> <body>
<noscript> <noscript>
<strong>网站出现了一点小问题,正在修复中.......</strong> <strong>网站出现了一点小问题,正在修复中.......</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<script type="text/javascript">
//百度统计
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?0c48775abb60d7d7aeb4343bca7a239b";
document.getElementsByTagName('head')[0].appendChild(hm);
})();
//腾讯统计
var host_v = window.location.host;
if (host_v == "m.ichunt.com") {
if (isMiniProgram) {
var _mtac = {};
(function () {
var mta = document.createElement("script");
mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500626053");
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mta, s);
})();
} else {
var _mtac = {"performanceMonitor": 1, "senseQuery": 1};
(function () {
var mta = document.createElement("script");
mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500482933");
mta.setAttribute("cid", "500485800");
document.getElementsByTagName('head')[0].appendChild(mta);
})();
}
}
</script>
<script type="text/javascript">
//神策统计
var host_v = window.location.host;
var __PUBLIC__;
switch (window.location.hostname) {
case "www.ichunt.com":
__PUBLIC__ = 'https://static.ichunt.com/dist';
break;
case "www.liexin.com":
__PUBLIC__ = 'http://res.liexin.com/dist';
break;
case "sz.ichunt.com":
__PUBLIC__ = 'https://szm.ichunt.com/v3/dist';
break;
case "t.ichunt.com":
__PUBLIC__ = 'https://t.ichunt.com/v3/dist';
break;
default:
__PUBLIC__ = 'http://res.liexin.com/dist';
}
function getCookie(name) {
var strCookie = document.cookie;
var arrCookie = strCookie.split("; ");
for (var i = 0; i < arrCookie.length; i++) {
var arr = arrCookie[i].split("=");
if (name == arr[0]) {
return arr[1];
}
}
return "";
}
if (host_v == "m.ichunt.com" || host_v == "sc.ichunt.com") {
(function (para) {
var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script', x = null, y = null;
if (typeof (w['sensorsDataAnalytic201505']) !== 'undefined') {
return false;
}
w['sensorsDataAnalytic201505'] = n;
w[n] = w[n] || function (a) {
return function () {
(w[n]._q = w[n]._q || []).push([a, arguments]);
}
};
var ifs = ['track', 'quick', 'register', 'registerPage', 'registerOnce', 'trackSignup', 'trackAbtest', 'setProfile', 'setOnceProfile', 'appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify', 'login', 'logout', 'trackLink', 'clearAllRegister', 'getAppStatus'];
for (var i = 0; i < ifs.length; i++) {
w[n][ifs[i]] = w[n].call(null, ifs[i]);
}
if (!w[n]._t) {
x = d.createElement(s), y = d.getElementsByTagName(s)[0];
x.async = 1;
x.src = p;
x.setAttribute('charset', 'UTF-8');
y.parentNode.insertBefore(x, y);
w[n].para = para;
}
})({
sdk_url: __PUBLIC__ + '/res/m/js/global/sensorsdata.min.js',
heatmap_url: __PUBLIC__ + '/res/m/js/global/heatmap.min.js',
name: 'sensors',
server_url: 'http://shence.ichunt.com:8106/sa?project=production',
heatmap: {}
});
//以异步加载 SDK 为例,神策 SDK 初始化完成,此时调用设置公共属性的方法,来保证之后的事件都有这两个属性。
sensors.registerPage({
current_url: location.href,
referrer: document.referrer,
platformType: '2', //H5
is_login: (getCookie("Yo4teW_uid") ? true : false),
user_rank: '0'
});
sensors.quick('autoTrack');
} else {
(function (para) {
var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script', x = null, y = null;
if (typeof (w['sensorsDataAnalytic201505']) !== 'undefined') {
return false;
}
w['sensorsDataAnalytic201505'] = n;
w[n] = w[n] || function (a) {
return function () {
(w[n]._q = w[n]._q || []).push([a, arguments]);
}
};
var ifs = ['track', 'quick', 'register', 'registerPage', 'registerOnce', 'trackSignup', 'trackAbtest', 'setProfile', 'setOnceProfile', 'appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify', 'login', 'logout', 'trackLink', 'clearAllRegister', 'getAppStatus'];
for (var i = 0; i < ifs.length; i++) {
w[n][ifs[i]] = w[n].call(null, ifs[i]);
}
if (!w[n]._t) {
x = d.createElement(s), y = d.getElementsByTagName(s)[0];
x.async = 1;
x.src = p;
x.setAttribute('charset', 'UTF-8');
y.parentNode.insertBefore(x, y);
w[n].para = para;
}
})({
sdk_url: __PUBLIC__ + '/res/m/js/global/sensorsdata.min.js',
heatmap_url: __PUBLIC__ + '__PUBLIC__/res/m/js/global/heatmap.min.js',
name: 'sensors',
server_url: 'http://shence.ichunt.com:8106/sa',
heatmap: {}
});
//以异步加载 SDK 为例,神策 SDK 初始化完成,此时调用设置公共属性的方法,来保证之后的事件都有这两个属性。
sensors.registerPage({
current_url: location.href,
referrer: document.referrer,
platformType: '2', //H5
is_login: (getCookie("Yo4teW_uid") ? true : false),
user_rank: '0'
});
sensors.quick('autoTrack');
}
</script>
</body> </body>
</html> </html>
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
...@@ -22,7 +22,7 @@ switch (window.location.hostname) { ...@@ -22,7 +22,7 @@ switch (window.location.hostname) {
urlApi = 'https://api.ichunt.com/'; urlApi = 'https://api.ichunt.com/';
break; break;
default: default:
urlApi = 'https://api.ichunt.com/'; urlApi = '/api/';
} }
export const productionUrlApi = urlApi; export const productionUrlApi = urlApi;
...@@ -31,15 +31,27 @@ export const apis = { ...@@ -31,15 +31,27 @@ export const apis = {
/** /**
* 商城数据获取 * 商城数据获取
*/ */
getPointPrize: productionUrlApi + 'point/getPointPrize' getPointPrize: productionUrlApi + 'point/getPointPrize',
/**
* 获取购物车数量
*/
cartCount: productionUrlApi + 'cart/count'
} }
export const services = { export const services = {
getPointPrize(Codekey, params) { getPointPrize(params) {
return axios.get(apis.getPointPrize, { return axios.get(apis.getPointPrize, {
params: { params: {
data: params data: params
} }
}) })
},
cartCount(params) {
return axios.get(apis.cartCount, {
params: {
data: params
}
})
} }
} }
{ {
"version": 3, "version": 3,
"mappings": "AAAA,UAOC,GANC,WAAW,EAAE,UAAU,EACvB,GAAG,EAAE,2CAA2C;EAAE,QAAQ;AAC1D,GAAG,EAAE,umUAG6D;EAAE,cAAc;AAGpF,SAAU,GACR,WAAW,EAAE,qBAAqB,EAClC,UAAU,EAAE,MAAM,EAClB,sBAAsB,EAAE,WAAW,EACnC,uBAAuB,EAAE,SAAS;;AAGpC,IAAK,GACH,wBAAwB,EAAE,IAAI,EAC9B,oBAAoB,EAAE,IAAI;;AAG5B,MAAO,GACL,OAAO,EAAE,CAAC,EACV,wBAAwB,EAAE,eAAe,EACzC,2BAA2B,EAAE,2BAA2B;;AAG1D,UAAW,GACT,WAAW,EAAE,qBAAqB,EAClC,UAAU,EAAE,MAAM,EAClB,sBAAsB,EAAE,WAAW,EACnC,uBAAuB,EAAE,SAAS;;AAGpC,iOAAkO,GAChO,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,CAAC;;AAGZ,+BAAgC,GAC9B,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,IAAI,EACZ,kBAAkB,EAAE,IAAI;;AAG1B,wDAAyD,GACvD,MAAM,EAAE,OAAO;;AAGjB,KAAM,GACJ,eAAe,EAAE,QAAQ,EACzB,cAAc,EAAE,CAAC;;AA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EAAE,sDAAsD,EAClE,eAAe,EAAE,KAAK;AAExB,4BAAO,GACL,UAAU,EAAE,sDAAsD,EAClE,eAAe,EAAE,KAAK;AAExB,uBAAE,GACA,KAAK,EAAE,OAAO",
"sources": ["base.scss","global.scss"], "sources": ["base.scss","global.scss"],
"names": [], "names": [],
"file": "global.min.css" "file": "global.min.css"
......
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
$imgUrlDev: '../img/'; $imgUrlDev: '../img/';
$imgUrl: '../images/'; $imgUrl: '../images/';
#app{ #app {
height: 100%; height: 100%;
} }
.navigator { .navigator {
order: 1; order: 1;
width: 100%; width: 100%;
...@@ -23,13 +24,37 @@ $imgUrl: '../images/'; ...@@ -23,13 +24,37 @@ $imgUrl: '../images/';
justify-content: center; justify-content: center;
align-items: center; align-items: center;
li { li {
position: relative;
@include boxFlex(); @include boxFlex();
text-align: center; text-align: center;
a {
display: block;
.cart {
position: absolute;
left: 50%;
top: -8px;
margin-left: -2px;
color: #fff;
font-size: 12px;
font-weight: 500;
text-align: center;
padding: 0 3px;
min-width: 16px;
line-height: 14px;
border: 1px solid #fff;
border-radius: 16px;
background-color: #f44;
transform: translateX(50%);
transform-origin: 100%;
}
i { i {
width: 26px; width: 26px;
height: 26px; height: 26px;
display: block; display: block;
margin: 0 auto; margin: 0 auto;
color: #d5d5d5;
font-size: 25px;
text-align: center;
} }
.ico-1 { .ico-1 {
background: url("#{$imgUrl}home/i1.png") no-repeat center center; background: url("#{$imgUrl}home/i1.png") no-repeat center center;
...@@ -56,7 +81,11 @@ $imgUrl: '../images/'; ...@@ -56,7 +81,11 @@ $imgUrl: '../images/';
font-size: 10px; font-size: 10px;
color: #adadad; color: #adadad;
} }
}
&.curr { &.curr {
i{
color: #57a1f4;
}
.ico-1 { .ico-1 {
background: url("#{$imgUrl}home/i1_s.png") no-repeat center center; background: url("#{$imgUrl}home/i1_s.png") no-repeat center center;
background-size: cover; background-size: cover;
......
import Vue from 'vue'
import axios from 'axios'
import {services as Services} from '../../api/index'
import {Toast} from 'vant';
Vue.use(Toast);
const state = {
cartCount: ''
}
const mutations = {
cartCount(state, payload) {
state.cartCount = payload.data == 0 ? '' : payload.data;
}
}
const actions = {
cartCount({commit}, payload) {
Services.cartCount().then(function (res) {
let data = res.data;
if (data.err_code == 0) {
commit({
type: 'cartCount',
data: data.data
});
}
}).catch(function (err) {
Toast({
message: '网络出现问题,请重试',
duration: 1500
});
});
}
}
const getters = {}
export default {
state,
mutations,
actions,
getters
}
...@@ -13,16 +13,6 @@ const mutations = { ...@@ -13,16 +13,6 @@ const mutations = {
const actions = { const actions = {
appIndex({commit}, payload) { appIndex({commit}, payload) {
var params = {
pf: 1,
limit: 1000
};
Services.getPointPrize(params).then(function (res) {
});
} }
} }
......
import Vue from 'vue' import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import home from './modules/home' import home from './modules/home'
import common from './modules/common'
Vue.use(Vuex) Vue.use(Vuex)
export default new Vuex.Store({ export default new Vuex.Store({
modules: { modules: {
home home,
common
} }
}) })
...@@ -2,36 +2,52 @@ ...@@ -2,36 +2,52 @@
<div class="navigator"> <div class="navigator">
<ul class="boxsiz"> <ul class="boxsiz">
<li class="curr"> <li class="curr">
<i class="ico-1"></i> <a href="/v3?ptag=index-bottomnav">
<i class="iconfont icon-shouye"></i>
<p>首页</p> <p>首页</p>
</a>
</li> </li>
<li> <li>
<i class="ico-2"></i> <a href="/v3/lxshop?ptag=index-bottomnav">
<i class="iconfont icon-ziying"></i>
<p>自营商城</p> <p>自营商城</p>
</a>
</li> </li>
<li> <li>
<i class="ico-3"></i> <a href="/v3/xianhuo?ptag=index-bottomnav">
<i class="iconfont icon-lianying"></i>
<p>联营商城</p> <p>联营商城</p>
</a>
</li> </li>
<li> <li>
<i class="ico-4"></i> <a href="/v3/joincart?ptag=index-bottomnav">
<i class="iconfont icon-gouwuche1"></i>
<p>购物车</p> <p>购物车</p>
<span class="cart boxsiz">{{cartCount>99 ?'99+': cartCount}}</span>
</a>
</li> </li>
<li> <li>
<i class="ico-5"></i> <a href="/v3/user?ptag=index-bottomnav">
<i class="iconfont icon-huiyuanzhongxin1"></i>
<p>会员中心</p> <p>会员中心</p>
</a>
</li> </li>
</ul> </ul>
</div> </div>
</template> </template>
<script> <script>
import {mapState} from 'vuex'
export default { export default {
name: 'navigator' name: 'navigator',
computed: mapState({
cartCount: state => state.common.cartCount
}),
created() {
this.$store.dispatch({
type: 'cartCount'
})
}
} }
</script> </script>
\ No newline at end of file
<style scoped lang="scss">
</style>
\ No newline at end of file
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<Slide></Slide> <Slide></Slide>
</div> </div>
<div class="login-wrap"> <div class="login-wrap">
<a href="javascript:;" class="btn" style="display: none">登录</a> <a href="/v3/login?ptag=index-topnav" class="btn" style="display: none">登录</a>
<a href="javascript" class="person-btn"><i></i></a> <a href="/v3/user?ptag=index-topnav" class="person-btn"><i></i></a>
</div> </div>
<div class="search boxsiz"> <div class="search boxsiz">
<div class="search-wrap boxsiz"> <div class="search-wrap boxsiz">
...@@ -480,9 +480,10 @@ ...@@ -480,9 +480,10 @@
Vue.use(PullRefresh); Vue.use(PullRefresh);
export default { export default {
name: 'home', name: 'index',
data() { data() {
return { return {
ptag: 'index',
isLoading: false, isLoading: false,
height: 33 height: 33
} }
...@@ -579,7 +580,7 @@ ...@@ -579,7 +580,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.pic{ .pic {
margin-left: 0.44rem; margin-left: 0.44rem;
.logo { .logo {
width: 60px; width: 60px;
...@@ -676,7 +677,7 @@ ...@@ -676,7 +677,7 @@
height: 38px; height: 38px;
} }
p { p {
margin-top: 0.387px; margin-top: 0.347rem;
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
} }
......
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