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
c28e9979
Commit
c28e9979
authored
Nov 08, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pages报错
parent
a4e61618
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
44 deletions
+43
-44
components/courselist/courselist.vue
+5
-1
pages.json
+0
-39
pages/index/index.vue
+38
-4
No files found.
components/courselist/courselist.vue
View file @
c28e9979
...
@@ -27,7 +27,9 @@
...
@@ -27,7 +27,9 @@
<
script
>
<
script
>
import
api
from
"../../api/api"
;
import
api
from
"../../api/api"
;
export
default
{
export
default
{
props
:[
'tagIds'
],
data
(){
data
(){
return
{
return
{
cffpCourseInfos
:[]
cffpCourseInfos
:[]
...
@@ -37,7 +39,8 @@
...
@@ -37,7 +39,8 @@
components
:{
components
:{
},
},
onLoad
(){
onLoad
(){
this
.
courseList
()
console
.
log
(
this
.
tagIds
)
this
.
courseList
();
},
},
methods
:{
methods
:{
goDetail
(
item
){
goDetail
(
item
){
...
@@ -46,6 +49,7 @@
...
@@ -46,6 +49,7 @@
});
});
},
},
courseList
(){
courseList
(){
debugger
;
api
.
courseList
().
then
(
res
=>
{
api
.
courseList
().
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
...
...
pages.json
View file @
c28e9979
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
,{
,{
"path"
:
"pages/shareFriend/shareFriend"
,
"path"
:
"pages/shareFriend/shareFriend"
,
...
@@ -74,45 +73,7 @@
...
@@ -74,45 +73,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
<<<<<<<
HEAD
],
],
=======
,{
"path"
:
"pages/inviteJoin/inviteJoin"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"pages/invitationRegister/invitationRegister"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"pages/myCertify/myCertify"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"pages/certifyDetail/certifyDetail"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
],
>>>>>>>
3
ef
1480
d
0
dbd
758
ecf
9
ffea
4
c
0641
ecf
16
c
57490
"tabBar"
:
{
"tabBar"
:
{
"color"
:
"#7A7E83"
,
//
tab
上的文字默认颜色
"color"
:
"#7A7E83"
,
//
tab
上的文字默认颜色
"selectedColor"
:
"#7A7E83"
,
//
tab
上的文字选中时的颜色
"selectedColor"
:
"#7A7E83"
,
//
tab
上的文字选中时的颜色
...
...
pages/index/index.vue
View file @
c28e9979
...
@@ -43,8 +43,12 @@
...
@@ -43,8 +43,12 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
""
>
<view
class=
"course_content"
>
<courselist></courselist>
<view
class=
"tag"
>
<h4>
精品课程
</h4>
<view
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
</view>
<courselist
:tagIds=
"tagIds"
></courselist>
</view>
</view>
</view>
</view>
...
@@ -85,10 +89,11 @@
...
@@ -85,10 +89,11 @@
interval
:
2000
,
interval
:
2000
,
duration
:
500
,
duration
:
500
,
announcementInfo
:
null
,
announcementInfo
:
null
,
messageUnreadCount
:
null
messageUnreadCount
:
null
,
tagIds
:
123
}
}
},
},
com
m
ents
:{
com
pon
ents
:{
courselist
courselist
},
},
onLoad
()
{
onLoad
()
{
...
@@ -149,6 +154,11 @@
...
@@ -149,6 +154,11 @@
this
.
messageUnreadCount
=
null
;
this
.
messageUnreadCount
=
null
;
}
}
})
})
},
goToCourselist
(){
uni
.
navigateTo
({
url
:
'../../components/courselist/courselist'
})
}
}
},
},
onShow
()
{
onShow
()
{
...
@@ -242,6 +252,7 @@
...
@@ -242,6 +252,7 @@
margin-bottom
:
20
rpx
;
margin-bottom
:
20
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
background
:
#fff
;
background
:
#fff
;
position
:
relative
;
.featureContent{
.featureContent{
padding-top
:
10px
;
padding-top
:
10px
;
.nav_wrapper{
.nav_wrapper{
...
@@ -267,6 +278,29 @@
...
@@ -267,6 +278,29 @@
}
}
}
}
}
}
.course_content
{
background
:
#fff
;
position
:
relative
;
.tag{
padding
:
20
rpx
;
display
:
flex
;
justify-content
:
space-between
;
h4{
margin-left
:
20
rpx
;
}
}
.tag
:before
{
position
:
absolute
;
left
:
20
rpx
;
top
:
20
rpx
;
display
:
inline-block
;
content
:
''
;
width
:
2px
;
height
:
16px
;
background-color
:
#5F83FF
;
border-radius
:
2px
;
}
}
}
}
.description
{
.description
{
padding
:
40
rpx
;
padding
:
40
rpx
;
...
...
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