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
63d48d0b
Commit
63d48d0b
authored
Nov 12, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cffp): 游客首页改为零身份初始化
parent
edc5e8e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
21 deletions
+10
-21
pages/index/index.vue
+8
-21
util/interceptor.ts
+2
-0
No files found.
pages/index/index.vue
View file @
63d48d0b
...
@@ -531,28 +531,15 @@
...
@@ -531,28 +531,15 @@
]
]
uni
.
removeTabBarBadge
({
index
:
3
});
uni
.
removeTabBarBadge
({
index
:
3
});
// api.loginVerification({
// 游客没有用户身份,直接读取公共首页内容。
// "loginType": 1,
this
.
userId
=
''
;
// }).then((res) => {
uni
.
removeStorageSync
(
'isLogin'
);
// if (res['success']) {
uni
.
removeStorageSync
(
'cffp_userId'
);
// this.userId = String(res['data']['userId']);
uni
.
setStorageSync
(
'loginType'
,
'visitor'
);
// uni.setStorageSync('isLogin', '1');
// uni.setStorageSync('cffp_userId', this.userId);
// uni.setStorageSync('loginType', 'visitor');
// uni.setStorageSync('uni-token', res.data['token']);
// } else {
// uni.showToast({
// title: res['message'],
// duration: 2000,
// icon: 'none'
// })
// }
// })
this
.
courseList
();
this
.
courseList
();
this
.
getOneProduct
()
this
.
getOneProduct
()
;
this
.
initShare
();
this
.
initShare
();
this
.
queryAreaCenterInfo
()
this
.
queryAreaCenterInfo
()
;
}
}
},
},
querySystemMessage
()
{
querySystemMessage
()
{
...
@@ -738,7 +725,7 @@
...
@@ -738,7 +725,7 @@
// 获取轮播图
// 获取轮播图
queryAreaCenterInfo
()
{
queryAreaCenterInfo
()
{
api
.
queryAreaCenterInfo
({
api
.
queryAreaCenterInfo
({
//
userId: uni.getStorageSync('cffp_userId'),
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
companyType
:
`
${
companyInfo
.
companyType
}
`
companyType
:
`
${
companyInfo
.
companyType
}
`
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
...
...
util/interceptor.ts
View file @
63d48d0b
...
@@ -111,6 +111,8 @@ const whiteApiList = [`${apiURL}/authorize/obtainToken`,
...
@@ -111,6 +111,8 @@ const whiteApiList = [`${apiURL}/authorize/obtainToken`,
`
${
apiURL
}
/verificationCode`
,
`
${
apiURL
}
/verificationCode`
,
`
${
sfpUrl
}
/sfp/sfpMain/pocessTracking`
,
`
${
sfpUrl
}
/sfp/sfpMain/pocessTracking`
,
`
${
cffpURL
}
/partner/queryById`
,
`
${
cffpURL
}
/partner/queryById`
,
`
${
cffpURL
}
/course/list`
,
`
${
cffpURL
}
/areaCenter/queryAreaCenterInfo`
,
`
${
apiURL
}
/sso/ticket/consume`
,
// Casdoor 票据消费:匿名,唯一凭据是 ticket
`
${
apiURL
}
/sso/ticket/consume`
,
// Casdoor 票据消费:匿名,唯一凭据是 ticket
];
];
// ==================== token 获取 & 整页刷新 控制 ====================
// ==================== token 获取 & 整页刷新 控制 ====================
...
...
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