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
c5e0db75
Commit
c5e0db75
authored
Apr 16, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取微信地址json
parent
9c3426fe
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
config/dev.env.js
+2
-1
config/prod.env.js
+2
-1
config/xhyx_uat.env.js
+2
-1
src/App.vue
+3
-3
src/utils/tool.js
+1
-1
No files found.
config/dev.env.js
View file @
c5e0db75
...
@@ -25,7 +25,8 @@ module.exports = merge(prodEnv, {//zjgyl
...
@@ -25,7 +25,8 @@ module.exports = merge(prodEnv, {//zjgyl
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN
:
'"http://test-bucket-ant.oss-cn-shanghai.aliyuncs.com"'
,
IMG_DOMAIN
:
'"http://test-bucket-ant.oss-cn-shanghai.aliyuncs.com"'
,
POSTHOG_KEY
:
'"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"'
,
POSTHOG_KEY
:
'"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"'
,
POSTHOG_HOST
:
'"https://posthog.mayi118.com"'
POSTHOG_HOST
:
'"https://posthog.mayi118.com"'
,
AREA_JSON
:
'"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/static/js/app.area.json"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"',
// IMG_DOMAIN: '"http://cdn.mayi888.com"',
})
})
config/prod.env.js
View file @
c5e0db75
...
@@ -9,6 +9,7 @@ module.exports = {
...
@@ -9,6 +9,7 @@ module.exports = {
OLSHOP_URL
:
'"https://shop.mayi888.com/innerApi/shopApiService"'
,
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_KEY
:
'"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"'
,
POSTHOG_HOST
:
'"https://posthog.mayi118.com"'
POSTHOG_HOST
:
'"https://posthog.mayi118.com"'
,
AREA_JSON
:
'"https://mayi-newshop.oss-cn-shanghai.aliyuncs.com/static/js/app.area.json"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"'
}
}
config/xhyx_uat.env.js
View file @
c5e0db75
...
@@ -25,7 +25,8 @@ module.exports = merge(prodEnv, {//zjgyl
...
@@ -25,7 +25,8 @@ module.exports = merge(prodEnv, {//zjgyl
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN
:
'"http://new-xhyx-uat.oss-cn-zhangjiakou.aliyuncs.com"'
,
IMG_DOMAIN
:
'"http://new-xhyx-uat.oss-cn-zhangjiakou.aliyuncs.com"'
,
POSTHOG_KEY
:
'"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"'
,
POSTHOG_KEY
:
'"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"'
,
POSTHOG_HOST
:
'"https://posthog.mayi118.com"'
POSTHOG_HOST
:
'"https://posthog.mayi118.com"'
,
AREA_JSON
:
'"https://new-xhyx-uat.oss-cn-zhangjiakou.aliyuncs.com/public/json/f7746156-6329-4130-b724-eda06215ddea.json"'
// IMG_DOMAIN: '"http://cdn.mayi888.com"',
// IMG_DOMAIN: '"http://cdn.mayi888.com"',
})
})
src/App.vue
View file @
c5e0db75
...
@@ -16,12 +16,12 @@ export default {
...
@@ -16,12 +16,12 @@ export default {
if
(
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
if
(
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
let
shopItem
=
{
let
shopItem
=
{
development
:
{
mixid
:
"antgood"
,
"shopid"
:
67
},
development
:
{
mixid
:
"antgood"
,
"shopid"
:
67
},
//
production: { "mixid":"qiyeCT", "shopid": 1045 }, // 道可
production
:
{
"mixid"
:
"qiyeCT"
,
"shopid"
:
1045
},
// 道可
// production: { "mixid":"5I5Dyk", "shopid": 1306 }, // 星期八
// production: { "mixid":"5I5Dyk", "shopid": 1306 }, // 星期八
// production: { "mixid":"RON", "shopid": 1503 }, // 荣恩
// production: { "mixid":"RON", "shopid": 1503 }, // 荣恩
production
:
{
"mixid"
:
"ant"
,
"shopid"
:
6
},
// 小工蚁
//
production: { "mixid":"ant", "shopid": 6 }, // 小工蚁
// production: { "mixid":"MetaSense", "shopid": 1237 }, // 册为
// production: { "mixid":"MetaSense", "shopid": 1237 }, // 册为
production
:
{
"mixid"
:
"5BkDRR"
,
"shopid"
:
1316
},
// lost in echo订货
//
production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_prod
:
{
"mixid"
:
"antgood"
,
"shopid"
:
67
},
xhyx_prod
:
{
"mixid"
:
"antgood"
,
"shopid"
:
67
},
}
}
...
...
src/utils/tool.js
View file @
c5e0db75
...
@@ -4,7 +4,7 @@ const appArea = () => {
...
@@ -4,7 +4,7 @@ const appArea = () => {
console
.
log
(
"---appArea"
);
console
.
log
(
"---appArea"
);
return
new
Promise
(
async
(
response
,
reject
)
=>
{
return
new
Promise
(
async
(
response
,
reject
)
=>
{
await
wx
.
request
({
await
wx
.
request
({
url
:
`https://cdn.mayi888.com/static/js/app.area.json`
,
url
:
process
.
env
.
AREA_JSON
,
success
:
res
=>
{
success
:
res
=>
{
obj
=
res
.
data
;
obj
=
res
.
data
;
response
(
obj
);
response
(
obj
);
...
...
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