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
70bf67e2
Commit
70bf67e2
authored
Nov 08, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页获取课程列表
parent
c28e9979
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
components/courselist/courselist.vue
+3
-2
pages/index/index.vue
+1
-2
util/interceptor.ts
+1
-1
No files found.
components/courselist/courselist.vue
View file @
70bf67e2
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
components
:{
components
:{
},
},
onLoad
(){
onLoad
(){
console
.
log
(
this
.
tagIds
)
this
.
courseList
();
this
.
courseList
();
},
},
methods
:{
methods
:{
...
@@ -49,7 +48,6 @@
...
@@ -49,7 +48,6 @@
});
});
},
},
courseList
(){
courseList
(){
debugger
;
api
.
courseList
().
then
(
res
=>
{
api
.
courseList
().
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
...
@@ -63,6 +61,9 @@
...
@@ -63,6 +61,9 @@
}
}
})
})
}
}
},
mounted
()
{
this
.
courseList
();
}
}
}
}
</
script
>
</
script
>
...
...
pages/index/index.vue
View file @
70bf67e2
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<h4>
精品课程
</h4>
<h4>
精品课程
</h4>
<view
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
<view
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
</view>
</view>
<courselist
:tagIds=
"
tagIds
"
></courselist>
<courselist
:tagIds=
"
[1111]
"
></courselist>
</view>
</view>
</view>
</view>
...
@@ -109,7 +109,6 @@
...
@@ -109,7 +109,6 @@
})
})
},
},
queryAreaCenterInfo
(){
queryAreaCenterInfo
(){
console
.
log
(
uni
.
getStorageInfoSync
(
'cffp_userId'
))
api
.
queryAreaCenterInfo
({
userId
:
1
}).
then
((
res
)
=>
{
api
.
queryAreaCenterInfo
({
userId
:
1
}).
then
((
res
)
=>
{
if
(
res
[
'commonResult'
][
'success'
]){
if
(
res
[
'commonResult'
][
'success'
]){
this
.
cffpUserInfo
=
res
;
this
.
cffpUserInfo
=
res
;
...
...
util/interceptor.ts
View file @
70bf67e2
...
@@ -10,7 +10,7 @@ export const interceptor = () => {
...
@@ -10,7 +10,7 @@ export const interceptor = () => {
// 请求拦截器
// 请求拦截器
invoke
(
args
)
{
invoke
(
args
)
{
console
.
log
(
'请求拦截器'
,
args
);
//
console.log('请求拦截器',args);
// 加载loading
// 加载loading
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中...'
title
:
'加载中...'
...
...
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