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
95a7298a
Commit
95a7298a
authored
Mar 07, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
白名单
parent
48d77ffe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/App.vue
+2
-2
src/main.js
+4
-1
No files found.
src/App.vue
View file @
95a7298a
...
...
@@ -20,7 +20,7 @@ export default {
// development: { mixid: "iLntd3", "shopid": 3814}, //道可测试2
// development: { mixid: "ssa", "shopid": 2342}, //五粮液uat
development
:
{
mixid
:
"antgood"
,
"shopid"
:
67
},
production
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1095
},
// 小工蚁新零售
//
production: { "mixid":"xhyxshop", "shopid": 1095 }, // 小工蚁新零售
// production: { "mixid":"AntTechnology", "shopid": 1095 }, // 小工蚁新零售
// production: { "mixid":"qiyeCT", "shopid": 1045 }, // 道可
// production: { "mixid":"SWQ", "shopid": 1641 }, // 麦贝思
...
...
@@ -32,7 +32,7 @@ export default {
// production: { "mixid":"RON", "shopid": 1503 }, // 荣恩
// production: { "mixid":"ant", "shopid": 6 }, // 小工蚁
// production: { "mixid":"MetaSense", "shopid": 1237 }, // 册为
//
production: { "mixid":"5BkDRR", "shopid": 1316 }, // lost in echo订货
production
:
{
"mixid"
:
"5BkDRR"
,
"shopid"
:
1316
},
// lost in echo订货
// production: { "mixid":"CYNZ", "shopid": 1609 }, // 晨语女装
xhyx_uat
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
xhyx_prod
:
{
"mixid"
:
"xhyxshop"
,
"shopid"
:
1
},
...
...
src/main.js
View file @
95a7298a
...
...
@@ -218,7 +218,10 @@ wx.onAppRoute(res => {
let
whetherToForceLogin
=
mpApp
.
globalData
.
shopInfo
&&
mpApp
.
globalData
.
shopInfo
.
whetherToForceLogin
||
0
log
.
info
(
"wx.onAppRoute"
,
res
,
mpApp
.
globalData
.
shopInfo
,
whetherToForceLogin
,
wx
.
getStorageSync
(
'sessionid'
),
res
.
path
!=
"pages/login/main"
);
console
.
log
(
res
,
mpApp
.
globalData
.
shopInfo
,
whetherToForceLogin
,
wx
.
getStorageSync
(
'sessionid'
),
res
.
path
!=
"pages/login/main"
,
'---------wx.onAppRoute'
)
if
(
whetherToForceLogin
==
1
&&
!
wx
.
getStorageSync
(
'sessionid'
)
&&
res
.
path
!=
"pages/login/main"
)
{
let
notLoginPage
=
[
'enterpriseCustomerRegistration'
];
let
notLoginPageFlag
=
notLoginPage
.
some
(
item
=>
res
.
query
.
backpath
&&
res
.
query
.
backpath
.
includes
(
item
));
console
.
log
(
'notLoginPageFlag'
,
notLoginPageFlag
);
if
(
whetherToForceLogin
==
1
&&
!
wx
.
getStorageSync
(
'sessionid'
)
&&
res
.
path
!=
"pages/login/main"
&&
!
notLoginPageFlag
)
{
let
backUrl
=
`/pages/home/main`
;
const
url
=
`/pages/login/main?back=
${
encodeURIComponent
(
backUrl
...
...
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