Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
b2959e58
Commit
b2959e58
authored
Nov 22, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加beta环境
parent
050cc754
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
1 deletions
+38
-1
config/index.js
+2
-0
config/xhyx_beta.env.js
+33
-0
package.json
+1
-0
src/App.vue
+1
-0
src/utils/xhyxShop.js
+1
-1
No files found.
config/index.js
View file @
b2959e58
...
@@ -37,6 +37,7 @@ module.exports = {
...
@@ -37,6 +37,7 @@ module.exports = {
development
:
require
(
'./dev.env'
),
development
:
require
(
'./dev.env'
),
production
:
require
(
'./prod.env'
),
production
:
require
(
'./prod.env'
),
xhyx_uat
:
require
(
'./xhyx_uat.env'
),
xhyx_uat
:
require
(
'./xhyx_uat.env'
),
xhyx_beta
:
require
(
'./xhyx_beta.env'
),
xhyx_prod
:
require
(
'./xhyx_prod.env'
),
xhyx_prod
:
require
(
'./xhyx_prod.env'
),
wly_prod
:
require
(
'./wly_prod.env'
),
wly_prod
:
require
(
'./wly_prod.env'
),
ylkj_uat
:
require
(
'./ylkj_uat.env'
),
ylkj_uat
:
require
(
'./ylkj_uat.env'
),
...
@@ -68,6 +69,7 @@ module.exports = {
...
@@ -68,6 +69,7 @@ module.exports = {
development
:
require
(
'./dev.env'
),
development
:
require
(
'./dev.env'
),
production
:
require
(
'./prod.env'
),
production
:
require
(
'./prod.env'
),
xhyx_uat
:
require
(
'./xhyx_uat.env'
),
xhyx_uat
:
require
(
'./xhyx_uat.env'
),
xhyx_beta
:
require
(
'./xhyx_beta.env'
),
xhyx_prod
:
require
(
'./xhyx_prod.env'
),
xhyx_prod
:
require
(
'./xhyx_prod.env'
),
ylkj_uat
:
require
(
'./ylkj_uat.env'
),
ylkj_uat
:
require
(
'./ylkj_uat.env'
),
}
}
...
...
config/xhyx_beta.env.js
0 → 100644
View file @
b2959e58
/*
* @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"',
})
package.json
View file @
b2959e58
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
"scripts"
:
{
"scripts"
:
{
"dev:wx"
:
"cross-env NODE_ENV=development node build/dev-server.js wx"
,
"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_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: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"
,
"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"
,
"pro:wx"
:
"cross-env NODE_ENV=production node build/dev-server.js wx"
,
...
...
src/App.vue
View file @
b2959e58
...
@@ -36,6 +36,7 @@ export default {
...
@@ -36,6 +36,7 @@ export default {
// production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
// production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
// production: { "mixid":"CYNZ", "shopid": 1609 }, // 晨语女装
// production: { "mixid":"CYNZ", "shopid": 1609 }, // 晨语女装
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_beta
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_prod
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_prod
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
wly_prod
:
{
"mixid"
:
"WLYSWT"
,
"shopid"
:
2
},
wly_prod
:
{
"mixid"
:
"WLYSWT"
,
"shopid"
:
2
},
ylkj_uat
:
{
"mixid"
:
"YLKJ"
,
"shopid"
:
8
}
ylkj_uat
:
{
"mixid"
:
"YLKJ"
,
"shopid"
:
8
}
...
...
src/utils/xhyxShop.js
View file @
b2959e58
...
@@ -16,7 +16,7 @@ function trackLogin(phoneNumber) {
...
@@ -16,7 +16,7 @@ function trackLogin(phoneNumber) {
export
default
{
export
default
{
init
(
mpApp
)
{
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
])
{
if
(
!
mpApp
[
TRACK_NAME
])
{
// 配置初始化参数
// 配置初始化参数
compass
.
init
({
compass
.
init
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment