Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
f7a4b995
Commit
f7a4b995
authored
Jan 08, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0b9c444b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
13 deletions
+23
-13
courseinfo.vue
src/pages/course/courseinfo.vue
+23
-13
No files found.
src/pages/course/courseinfo.vue
View file @
f7a4b995
...
@@ -60,25 +60,26 @@
...
@@ -60,25 +60,26 @@
.checkedLi
i
{
.checkedLi
i
{
color
:
#3B90FF
!important
;
color
:
#3B90FF
!important
;
}
}
.course-menu-box
{
.course-menu-box
{
overflow-x
:
hidden
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
overflow-y
:
auto
;
max-height
:
100%
;
max-height
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
#fff
;
background
:
#fff
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"row items-stretch full-height"
>
<div
class=
"row items-stretch full-height"
>
<div
style=
"box-shadow: 2px 0 10px 0 rgba(237,238,240,0.50);font-family:perfectFont;"
<div
style=
"box-shadow: 2px 0 10px 0 rgba(237,238,240,0.50);font-family:perfectFont;"
class=
"text-subtitle2 courseInfo_Bg"
>
class=
"text-subtitle2 courseInfo_Bg"
>
<div
class=
"full-width course-menu-box q-pt-md"
>
<div
class=
"full-width course-menu-box q-pt-md"
>
<q-list
style=
"width:180px;overflow:hidden"
>
<q-list
style=
"width:180px;overflow:hidden"
>
<div
class=
"classD1"
>
<div
class=
"classD1"
>
<img
style=
"width:100%;height:100%;"
alt=
""
>
<img
style=
"width:100%;height:100%;"
alt=
""
:src=
"courseInfo.CoverImg"
/
>
</div>
</div>
<div
class=
"text_Degree"
>
0-N3直通车
</div>
<div
class=
"text_Degree"
>
{{
courseInfo
.
CourseName
}}
</div>
<div
class=
"nav-content"
>
<div
class=
"nav-content"
>
<ul>
<ul>
<li
:class=
"
{'checkedLi':commonIndex==1}" @click="gotoPage('question',1)">
<li
:class=
"
{'checkedLi':commonIndex==1}" @click="gotoPage('question',1)">
...
@@ -104,13 +105,11 @@
...
@@ -104,13 +105,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
mapGetters
queryCourseInfo
,
}
from
'
vu
ex'
}
from
'
../../api/course/ind
ex'
export
default
{
export
default
{
name
:
'courseinfo'
,
name
:
'courseinfo'
,
components
:
{
components
:
{},
},
data
()
{
data
()
{
return
{
return
{
currentPath
:
"/course/courseinfo"
,
currentPath
:
"/course/courseinfo"
,
...
@@ -129,7 +128,8 @@
...
@@ -129,7 +128,8 @@
opacity
:
0.5
opacity
:
0.5
},
},
CourseId
:
0
,
CourseId
:
0
,
commonIndex
:
1
,
//选中
commonIndex
:
1
,
//选中
courseInfo
:
{},
//课程信息
}
}
},
},
watch
:
{
watch
:
{
...
@@ -142,15 +142,24 @@
...
@@ -142,15 +142,24 @@
if
(
this
.
$route
.
query
)
{
if
(
this
.
$route
.
query
)
{
this
.
CourseId
=
this
.
$route
.
query
.
CourseId
this
.
CourseId
=
this
.
$route
.
query
.
CourseId
}
}
this
.
getCourseInfo
();
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
gotoPage
(
routename
,
type
)
{
//获取课程信息
this
.
commonIndex
=
type
;
getCourseInfo
()
{
queryCourseInfo
({
CourseId
:
this
.
CourseId
}).
then
(
res
=>
{
this
.
courseInfo
=
res
.
Data
;
})
},
//页面跳转
gotoPage
(
routename
,
type
)
{
this
.
commonIndex
=
type
;
var
tempStr
=
'/course/'
+
routename
+
'?CourseId='
+
this
.
CourseId
;
var
tempStr
=
'/course/'
+
routename
+
'?CourseId='
+
this
.
CourseId
;
console
.
log
(
"tempStr"
,
tempStr
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
tempStr
path
:
tempStr
});
});
...
@@ -211,6 +220,7 @@
...
@@ -211,6 +220,7 @@
box-shadow
:
inset
0
0
5px
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
inset
0
0
5px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#bbb
;
background
:
#bbb
;
}
}
@keyframes
shouqidonghua
{
@keyframes
shouqidonghua
{
from
{
from
{
width
:
180px
;
width
:
180px
;
...
...
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