Commit be90f6af by 李嘉林

暂存

parent 3d33ea7f
......@@ -82,6 +82,6 @@ module.exports = merge(baseWebpackConfig, {
// inject: true
// }),
new FriendlyErrorsPlugin(),
new UglifyJsPlugin({ sourceMap: true })
// new UglifyJsPlugin({ sourceMap: true })
]
})
......@@ -117,7 +117,7 @@ if (useUglifyJs) {
uglifyOptions: {
compress: {
warnings: false,
drop_console: true
drop_console: false
}
}
}))
......
......@@ -23,6 +23,9 @@ module.exports = merge(prodEnv, {//zjgyl
OLSHOP_URL:'"https://test-m-shop.mayi888.cn/innerApi/shopApiService"',
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN: '"http://test-bucket-ant.oss-cn-shanghai.aliyuncs.com"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"'
IMG_DOMAIN: '"http://test-bucket-ant.oss-cn-shanghai.aliyuncs.com"',
POSTHOG_KEY: '"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"',
POSTHOG_HOST: '"https://posthog.mayi118.com"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"',
})
......@@ -7,6 +7,8 @@ module.exports = {
ADMIN_URL:"'https://admin.mayi888.com'",
OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN: '"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com"'
IMG_DOMAIN: '"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com"',
POSTHOG_KEY: '"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"',
POSTHOG_HOST: '"https://posthog.mayi118.com"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"'
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -22,14 +22,16 @@
"build:my": "node build/build.js my"
},
"dependencies": {
"hashids": "^2.2.8",
"mayi-analytics": "^1.1.38",
"mayi-front-tools": "^1.0.1",
"mpvue": "^2.0.0",
"mpvue-wxparse": "^0.6.5",
"posthog-js": "^1.39.1",
"posthog-node": "^2.2.3",
"vuex": "^3.0.1",
"we-cropper": "^1.4.0",
"wxbarcode": "^1.0.2",
"hashids": "^2.2.8"
"wxbarcode": "^1.0.2"
},
"devDependencies": {
"babel-core": "^6.22.1",
......
<script>
// import "@/utils/posthog"
import shop from "@/api/shop";
import spokesman from "@/api/spokesman";
......@@ -11,7 +12,7 @@ export default {
let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
console.log(extConfig, "-----------extConfig");
if (JSON.stringify(extConfig) == "{}") {
extConfig = process.env.NODE_ENV == "development" ? { mixid: "antgood", shopid: 67}:{ "mixid":"qiyeCT", "shopid": 1045 };
extConfig = process.env.NODE_ENV == "development" ? { mixid: "antgood", shopid: 67}:{ "mixid":"JSrLmM", "shopid": 1135 };
}
......
import posthog from "posthog-js";
console.log("config.POSTHOG_HOST", process.env.POSTHOG_HOST);
posthog.init(process.env.POSTHOG_KEY, {
api_host: process.env.POSTHOG_HOST,
loaded: posthog => {
// 注册全局属性
posthog.register({
env: process.env.ENV_CONFIG,
project: "ant-responsive-shop"
});
console.log(posthog, "---posthog");
}
});
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 to comment