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
2247906d
Commit
2247906d
authored
Aug 29, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换位置
parent
d6e3c4c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
src/pages/login/index.vue
+18
-18
No files found.
src/pages/login/index.vue
View file @
2247906d
...
...
@@ -923,6 +923,24 @@ export default {
.
then
(
res
=>
{
wx
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
let
login
=
()
=>
{
_this
.
sessionId
=
res
.
data
.
data
.
sessionId
||
''
;
_this
.
backParams
+=
`&sessionid=
${
res
.
data
.
data
.
sessionId
}
&needCertified=
${
res
.
data
.
data
.
NEED_CERTIFIED
}
`
;
_this
.
NEED_CERTIFIED
=
res
.
data
.
data
.
NEED_CERTIFIED
;
console
.
log
(
_this
.
mpApp
.
globalData
.
shopInfo
,
"------------------_this.mpApp.globalData.shopInfo"
)
if
(
_this
.
whetherOpenEnterprisesWantGoods
==
1
&&
res
.
data
.
data
.
masterAccount
&&
res
.
data
.
data
.
masterAccount
.
length
>
0
){
_this
.
selectEnterpriseAccountOpenType
=
0
;
_this
.
$refs
.
SelectEnterpriseAccount
.
open
(
res
.
data
.
data
.
masterAccount
);
}
else
{
wx
.
setStorage
({
key
:
"sessionid"
,
data
:
res
.
data
.
data
.
sessionId
});
_this
.
pushPageType
();
}
}
if
(
res
.
data
.
data
.
isCommonlyUsedLocationLogin
==
'false'
)
{
wx
.
showModal
({
content
:
`当前账号处于非常用地`
,
...
...
@@ -944,24 +962,6 @@ export default {
}
else
{
login
();
}
let
login
=
()
=>
{
_this
.
sessionId
=
res
.
data
.
data
.
sessionId
||
''
;
_this
.
backParams
+=
`&sessionid=
${
res
.
data
.
data
.
sessionId
}
&needCertified=
${
res
.
data
.
data
.
NEED_CERTIFIED
}
`
;
_this
.
NEED_CERTIFIED
=
res
.
data
.
data
.
NEED_CERTIFIED
;
console
.
log
(
_this
.
mpApp
.
globalData
.
shopInfo
,
"------------------_this.mpApp.globalData.shopInfo"
)
if
(
_this
.
whetherOpenEnterprisesWantGoods
==
1
&&
res
.
data
.
data
.
masterAccount
&&
res
.
data
.
data
.
masterAccount
.
length
>
0
){
_this
.
selectEnterpriseAccountOpenType
=
0
;
_this
.
$refs
.
SelectEnterpriseAccount
.
open
(
res
.
data
.
data
.
masterAccount
);
}
else
{
wx
.
setStorage
({
key
:
"sessionid"
,
data
:
res
.
data
.
data
.
sessionId
});
_this
.
pushPageType
();
}
}
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
})
}
...
...
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