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
1eae4255
Commit
1eae4255
authored
Apr 25, 2025
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轮播图在缓存中没有时重新获取
parent
ae4881ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
pages/courselist/courselist.vue
+21
-7
No files found.
pages/courselist/courselist.vue
View file @
1eae4255
...
...
@@ -24,6 +24,7 @@
import
tabBar
from
'../../components/tabBar/tabBar.vue'
;
import
carousel
from
'@/components/carousel/carousel.vue'
;
import
search
from
'@/components/search/search.vue'
;
import
{
companyInfo
}
from
"@/environments/environment"
;
export
default
{
props
:[
'tagIds'
],
data
(){
...
...
@@ -58,12 +59,6 @@
api
.
courseList
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
]){
this
.
cffpCourseInfos
=
res
[
'data'
][
'data'
];
// }else{
// uni.showToast({
// title: res['message'],
// duration: 2000,
// icon: 'none'
// })
}
})
},
...
...
@@ -77,10 +72,29 @@
getCourseList
(
res
){
this
.
queryName
=
res
;
this
.
courseList
()
}
},
queryAreaCenterInfo
()
{
api
.
queryAreaCenterInfo
({
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
companyType
:
`
${
companyInfo
.
companyType
}
`
}).
then
((
res
)
=>
{
if
(
res
[
'success'
])
{
uni
.
setStorageSync
(
'fileUploadItemCFFPList'
,
res
[
'data'
][
'fileUploadItemCFFPList'
])
const
cffp_userInfo
=
{
name
:
res
[
'data'
][
'userReName'
],
mobile
:
res
[
'data'
][
'mobile'
]
}
uni
.
setStorageSync
(
'cffp_userInfo'
,
JSON
.
stringify
(
cffp_userInfo
));
this
.
fileUploadItemCFFPList
=
uni
.
getStorageSync
(
'fileUploadItemCFFPList'
);
}
})
},
},
mounted
()
{
this
.
fileUploadItemCFFPList
=
uni
.
getStorageSync
(
'fileUploadItemCFFPList'
);
if
(
!
this
.
fileUploadItemCFFPList
){
this
.
queryAreaCenterInfo
();
}
this
.
courseList
();
},
onHide
()
{
...
...
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