Commit 97621a5a by 梁建民

Merge branch 'Development'

parents 2e0c2c8d 14367469
......@@ -4,8 +4,9 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"dev": "vue-cli-service build --watch",
"build": "vue-cli-service build",
"dev": "vue-cli-service build --watch"
"test": "vue-cli-service build --mode test"
},
"dependencies": {
"axios": "^0.18.0",
......@@ -21,6 +22,8 @@
"node-sass": "^4.9.0",
"qs": "^6.6.0",
"sass-loader": "^7.0.1",
"vconsole": "^3.2.2",
"vconsole-webpack-plugin": "^1.4.2",
"vue-template-compiler": "^2.5.21"
},
"postcss": {
......
......@@ -20,10 +20,6 @@
<meta name="keywords" content="猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="stylesheet" href="/v3/dist/res/m/css/font/iconfont.css">
<!--
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
-->
<script type="text/javascript" src="get_time.php"></script>
<script type="text/javascript">
var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差
......@@ -34,7 +30,7 @@
</head>
<body>
<noscript>
<strong>网站出现了一点小问题,正在修复中.......</strong>
<strong>网站出现了一点小问题,正在紧急修复中.......</strong>
</noscript>
<div id="app"></div>
<script type="text/javascript">
......
......@@ -8,6 +8,14 @@ import directive from './directive'
import md5 from 'js-md5'
import {services as Services} from './api/index'
import Util from './util/index'
import Vconsole from 'vconsole'
//本地环境开启提示信息
Vue.config.productionTip = false;
const env = process.env.NODE_ENV;
if (env == 'test' || env == 'development') {
let vConsole = new Vconsole()
}
//css全局加载
import 'vant/lib/index.css';
......@@ -24,9 +32,6 @@ Vue.prototype.$http = axios;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.withCredentials = true;
//本地环境开启提示信息
Vue.config.productionTip = false;
//本地初始化uid
var Yo4teW_gid = Util.getCookie('Yo4teW_gid');
if (Yo4teW_gid == null) {
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
<!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=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/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=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-25d47f48.3c469a98.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-25d47f48.9064b7e2.js rel=prefetch><link href=//h5static.ichunt.com/css/app.adc8e432.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.81eba75f.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.9ec4e864.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.521d5c8e.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.adc8e432.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.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 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="/v3/dist/res/m/css/font/iconfont.css">
<script type="text/javascript" src="get_time.php"></script>
<script type="text/javascript">
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" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/shence.min.js" type="text/javascript" charset="utf-8"></script>
<link href="//szh5static.ichunt.com/0.js" rel="prefetch"><link href="//szh5static.ichunt.com/app.js" rel="preload" as="script"></head>
<body>
<noscript>
<strong>网站出现了一点小问题,正在紧急修复中.......</strong>
</noscript>
<div id="app"></div>
<script type="text/javascript">
function SetCookie(name, value, time, domain) {
domain = domain ? ";domain=" + domain : "";
var Days = time;
var exp = new Date();
......@@ -114,7 +150,12 @@
document.getElementsByTagName('head')[0].appendChild(mta);
})();
}
}</script><script>//神策统计
}
</script>
<script type="text/javascript">
//神策统计
var host_v = window.location.host;
var __PUBLIC__;
......@@ -224,4 +265,7 @@
user_rank: '0'
});
sensors.quick('autoTrack');
}</script><script src=//h5static.ichunt.com/js/chunk-vendors.9ec4e864.js></script><script src=//h5static.ichunt.com/js/app.81eba75f.js></script></body></html>
\ No newline at end of file
}
</script>
<script type="text/javascript" src="//szh5static.ichunt.com/app.js"></script></body>
</html>
This diff could not be displayed because it is too large.
/**
* 配置文件
*/
const env = process.env.NODE_ENV;
const vConsolePlugin = require('vconsole-webpack-plugin');
var NODE_ENV;
switch (env) {
case 'production':
NODE_ENV = '//h5static.ichunt.com';
break;
case 'test':
NODE_ENV = '//szh5static.ichunt.com';
break;
case 'development':
NODE_ENV = '//szh5static.ichunt.com';
break;
default:
NODE_ENV = '/';
}
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '//h5static.ichunt.com/' : '//h5static.ichunt.com/',
publicPath: NODE_ENV,
outputDir: 'view',
productionSourceMap: false,
configureWebpack: config => {
let pluginsDev = [
//移动端模拟开发者工具
new vConsolePlugin({
filter: [],
enable: true
})
];
if (process.env.NODE_ENV === 'production') {
}
},
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