Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
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
Chao Sun
CFFP-HB
Commits
22e6be98
Commit
22e6be98
authored
Nov 10, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(统一身份): index/我的页适配 sso 登录态,游客降级排除票据通道
parent
c9e4a6ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
pages/index/index.vue
+1
-1
pages/personalCenter/personalCenter.vue
+6
-3
No files found.
pages/index/index.vue
View file @
22e6be98
...
@@ -493,7 +493,7 @@
...
@@ -493,7 +493,7 @@
return
return
}
}
let
loginType
=
uni
.
getStorageSync
(
'loginType'
)
let
loginType
=
uni
.
getStorageSync
(
'loginType'
)
if
(
loginType
==
'codelogin'
){
if
(
loginType
==
'codelogin'
||
loginType
==
'sso'
){
this
.
querySystemMessage
()
this
.
querySystemMessage
()
this
.
queryInfo
()
this
.
queryInfo
()
this
.
courseList
()
this
.
courseList
()
...
...
pages/personalCenter/personalCenter.vue
View file @
22e6be98
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
<view
class=
"headerInfo"
>
<view
class=
"headerInfo"
>
<view
class=
"headerTop"
>
<view
class=
"headerTop"
>
<view
class=
""
style=
"margin-right: 15rpx;"
>
<view
class=
""
style=
"margin-right: 15rpx;"
>
<view
class=
"myName"
v-if=
"loginType == 'codelogin'"
>
<!-- sso(Casdoor 票据会话)与 codelogin 同为已登录态,共用名称/描述展示 -->
<view
class=
"myName"
v-if=
"loginType == 'codelogin' || loginType == 'sso'"
>
{{
showMyName
||
'点头像完善信息'
}}
{{
showMyName
||
'点头像完善信息'
}}
<text
v-if=
"customerBasicInfo.partnerType"
<text
v-if=
"customerBasicInfo.partnerType"
class=
"typePartner"
>
{{
customerBasicInfo
.
partnerType
}}
</text>
class=
"typePartner"
>
{{
customerBasicInfo
.
partnerType
}}
</text>
...
@@ -19,7 +20,7 @@
...
@@ -19,7 +20,7 @@
<view
class=
"myName"
v-if=
"loginType == 'visitor'"
>
游客
</view>
<view
class=
"myName"
v-if=
"loginType == 'visitor'"
>
游客
</view>
</view>
</view>
<!-- &&customerBasicInfo.parentName 我的上级:
{{
customerBasicInfo
.
parentName
}}
-->
<!-- &&customerBasicInfo.parentName 我的上级:
{{
customerBasicInfo
.
parentName
}}
-->
<view
class=
"desBox"
v-if=
"loginType == 'codelogin'"
>
<view
class=
"desBox"
v-if=
"loginType == 'codelogin'
|| loginType == 'sso'
"
>
<!-- 上级的显示 -->
<!-- 上级的显示 -->
<text
class=
"desTxt"
<text
class=
"desTxt"
v-if=
"customerBasicInfo.parentRealName&&customerBasicInfo.parentNickName"
>
我的上级:
{{
customerBasicInfo
.
parentRealName
}}
(
{{
customerBasicInfo
.
parentNickName
}}
)
</text>
v-if=
"customerBasicInfo.parentRealName&&customerBasicInfo.parentNickName"
>
我的上级:
{{
customerBasicInfo
.
parentRealName
}}
(
{{
customerBasicInfo
.
parentNickName
}}
)
</text>
...
@@ -427,7 +428,9 @@
...
@@ -427,7 +428,9 @@
}
else
{
}
else
{
this
.
loginornot
=
true
;
this
.
loginornot
=
true
;
}
}
if
(
this
.
loginType
==
'codelogin'
)
{
// sso 会话与 codelogin 同样拉取用户数据:queryInfo 无参、服务端读
// CffpUserThreadLocal,过滤器 Casdoor 分支已写入同一 ThreadLocal
if
(
this
.
loginType
==
'codelogin'
||
this
.
loginType
==
'sso'
)
{
this
.
querySystemMessage
()
this
.
querySystemMessage
()
this
.
queryInfo
();
this
.
queryInfo
();
this
.
courseList
()
this
.
courseList
()
...
...
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