Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
4aad1a62
Commit
4aad1a62
authored
Apr 03, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化自动登录
parent
9f1a5668
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+12
-13
api.js
plugin/api.js
+6
-3
No files found.
pages/jiuzhai/jz_LineDetail.vue
View file @
4aad1a62
...
...
@@ -1357,18 +1357,6 @@
}
this
.
U
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
b2bUser
=
uni
.
getStorageSync
(
"b2b_user"
);
this
.
customer
=
this
.
b2bUser
this
.
getDetails
();
let
basedata
=
uni
.
getStorageSync
(
"basedata"
);
//判断后台是否开启自动授权
if
(
basedata
&&
basedata
.
mall
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
.
is_show_auth
==
1
)
{
this
.
is_show_auth
=
1
;
}
let
that
=
this
;
uni
.
getSystemInfo
({
success
(
res
)
{
...
...
@@ -1381,9 +1369,20 @@
}
,
}
);
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
getSale
()
}
,
onShow
(){
this
.
U
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
b2bUser
=
uni
.
getStorageSync
(
"b2b_user"
);
this
.
customer
=
this
.
b2bUser
this
.
getDetails
();
this
.
getSale
()
let
basedata
=
uni
.
getStorageSync
(
"basedata"
);
//判断后台是否开启自动授权
if
(
basedata
&&
basedata
.
mall
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
&&
basedata
.
mall
.
setting
.
is_show_auth
==
1
)
{
this
.
is_show_auth
=
1
;
}
if
(
!
this
.
U
)
{
this
.
U
=
{
nickName
:
"未登录"
,
...
...
plugin/api.js
View file @
4aad1a62
...
...
@@ -128,11 +128,14 @@ export default {
curPage
.
onShow
()
// curPage.onReady()
}
else
{
console
.
log
(
uni
.
getStorageSync
(
"LoginState"
),
'---log'
)
if
(
uni
.
getStorageSync
(
"LoginState"
))
return
uni
.
setStorageSync
(
"LoginState"
,
true
)
setTimeout
(()
=>
{
uni
.
redirectTo
({
url
:
'/pages/index/index'
})
},
1000
)
}
}
else
if
(
res
.
data
.
resultCode
!=
1
)
{
if
(
!
failed
)
{
...
...
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