Commit b2959e58 by 李嘉林

加beta环境

parent 050cc754
......@@ -37,6 +37,7 @@ module.exports = {
development: require('./dev.env'),
production: require('./prod.env'),
xhyx_uat: require('./xhyx_uat.env'),
xhyx_beta: require('./xhyx_beta.env'),
xhyx_prod: require('./xhyx_prod.env'),
wly_prod: require('./wly_prod.env'),
ylkj_uat: require('./ylkj_uat.env'),
......@@ -68,6 +69,7 @@ module.exports = {
development: require('./dev.env'),
production: require('./prod.env'),
xhyx_uat: require('./xhyx_uat.env'),
xhyx_beta: require('./xhyx_beta.env'),
xhyx_prod: require('./xhyx_prod.env'),
ylkj_uat: require('./ylkj_uat.env'),
}
......
/*
* @Author: your name
* @Date: 2020-10-21 09:46:59
* @LastEditTime: 2020-10-22 14:09:41
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \mayi-mp-shop\config\dev.env.js
*/
var merge = require('webpack-merge')
var prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {//zjgyl
SHOP_MIXID:"'xhyxshop'",
NODE_ENV: '"xhyx_beta"',
// BASE_URL:"'https://shop.mayi888.com'",
// BASE_URL:"'http://192.168.1.146:3005'",
// BASE_URL:"'http://172.16.1.18:3000'",
BASE_URL:"'https://beta-m.xinhuabest.com'",
ADMIN_URL:"'http://beta.admin.xinhuabest.com'",
GUIDE_URL:"'https://beta.guide.xinhuabest.com'",
// BASE_URL:"'http://192.168.137.1:3004'",
OLSHOP_URL:'"https://beta-m.xinhuabest.com/innerApi/shopApiService"',
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN: '"https://beta-xhyx.obs.cidc-rp-12.joint.cmecloud.cn"',
POSTHOG_KEY: '"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"',
POSTHOG_HOST: '"https://posthog.mayi118.com"',
AREA_JSON: '"https://beta-xhyx.obs.cidc-rp-12.joint.cmecloud.cn/public/json/f7746156-6329-4130-b724-eda06215ddea.json"',
MANALYTICS_HOST: '"https://beta-m.xinhuabest.com/log/xinhua.gif"',
// IMG_DOMAIN: '"http://cdn.mayi888.com"',
})
......@@ -8,6 +8,7 @@
"scripts": {
"dev:wx": "cross-env NODE_ENV=development node build/dev-server.js wx",
"dev:xhyx_uat": "cross-env NODE_ENV=xhyx_uat node build/dev-server.js wx",
"dev:xhyx_beta": "cross-env NODE_ENV=xhyx_beta node build/dev-server.js wx",
"dev:ylkj_uat": "cross-env NODE_ENV=ylkj_uat node build/dev-server.js wx",
"dev:production": "cross-env NODE_ENV=production node build/dev-server.js wx",
"pro:wx": "cross-env NODE_ENV=production node build/dev-server.js wx",
......
......@@ -36,6 +36,7 @@ export default {
// production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
// production: { "mixid":"CYNZ", "shopid": 1609 }, // 晨语女装
xhyx_uat: { "mixid":"xhyxshop", "shopid": 1 },
xhyx_beta: { "mixid":"xhyxshop", "shopid": 1 },
xhyx_prod: { "mixid":"xhyxshop", "shopid": 1 },
wly_prod: { "mixid":"WLYSWT", "shopid": 2 },
ylkj_uat: { "mixid":"YLKJ", "shopid": 8 }
......
......@@ -16,7 +16,7 @@ function trackLogin(phoneNumber) {
export default {
init(mpApp) {
if (!['xhyx_uat', 'xhyx_prod'].includes(process.env.NODE_ENV)) return;
if (!['xhyx_uat', 'xhyx_beta', 'xhyx_prod'].includes(process.env.NODE_ENV)) return;
if (!mpApp[TRACK_NAME]) {
// 配置初始化参数
compass.init({
......
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