mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
修改首页展示样式
This commit is contained in:
BIN
src/assets/images/course/courseBackground.png
Normal file
BIN
src/assets/images/course/courseBackground.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 166 KiB |
BIN
src/assets/images/course/courseTag.png
Normal file
BIN
src/assets/images/course/courseTag.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/course/courseTitle.png
Normal file
BIN
src/assets/images/course/courseTitle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
@@ -163,8 +163,10 @@
|
|||||||
<!-- 精品课模块 -->
|
<!-- 精品课模块 -->
|
||||||
<div class="xcontent2-main">
|
<div class="xcontent2-main">
|
||||||
<div class="modules-title xindex-main">
|
<div class="modules-title xindex-main">
|
||||||
<span class="modules-text" style="color: #3D86F4;">精品课</span>
|
<!-- <span class="modules-text" style="color: #3D86F4;">精品课</span> -->
|
||||||
<span class="quyer-tag">
|
<span class="quyer-tag">
|
||||||
|
<!-- <img src="../assets/images/tutoring1.pn" alt=""> -->
|
||||||
|
<img class="modules-text" style="height: 24px;" src="../assets/images/course/courseTitle.png" alt="">
|
||||||
</span>
|
</span>
|
||||||
<span class="more">
|
<span class="more">
|
||||||
<router-link to="/quailtyCourse">查看更多>></router-link>
|
<router-link to="/quailtyCourse">查看更多>></router-link>
|
||||||
@@ -172,13 +174,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-for="(course, eIndex) in exquisiteList"
|
v-for="(course, eIndex) in exquisiteList"
|
||||||
:key="'cc' + eIndex"
|
:key="'cc' + eIndex"
|
||||||
class="xindex-course"
|
class="xindex-course courseBg"
|
||||||
style="position: relative;margin-top: 30px;"
|
style="position: relative;margin-top: 20px;"
|
||||||
>
|
>
|
||||||
<div style="position: absolute; right: 25px; bottom: 72px">
|
<div style="position: absolute; right: 25px; bottom: 72px">
|
||||||
<interactBar
|
<interactBar
|
||||||
@@ -197,9 +198,10 @@
|
|||||||
<a @click="toCourseDetail(course)">
|
<a @click="toCourseDetail(course)">
|
||||||
<div class="xindex-course-image">
|
<div class="xindex-course-image">
|
||||||
<course-image :course="course"></course-image>
|
<course-image :course="course"></course-image>
|
||||||
<span v-if="course.type == 20 || 10" class="course-type"
|
<!-- <span v-if="course.type == 20 || 10" class="course-type"
|
||||||
>录播课</span
|
>录播课</span
|
||||||
>
|
> -->
|
||||||
|
<img v-if="course.type == 20 || 10" src="../assets/images/course/courseTag.png" class="course-type" style="background: none;" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style="width: 80%"
|
style="width: 80%"
|
||||||
@@ -229,10 +231,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--内容块-->
|
<!--内容块-->
|
||||||
<div class="modules-title xindex-main">
|
<div class="modules-title xindex-main">
|
||||||
<span class="modules-text">推荐课程</span>
|
<span class="modules-text">推荐课程</span>
|
||||||
@@ -1561,12 +1560,12 @@ export default {
|
|||||||
},
|
},
|
||||||
//精品课展示
|
//精品课展示
|
||||||
getEsqusiteList(){
|
getEsqusiteList(){
|
||||||
let params = {
|
let course = {
|
||||||
aid: this.userInfo.aid,
|
aid: this.userInfo.aid,
|
||||||
}
|
}
|
||||||
apiIndex.qualitylist(params).then((res) => {
|
apiIndex.qualitylist(course).then((res) => {
|
||||||
console.log(res,'jinpinsjfhhfjash--------------------------');
|
console.log(res,'jinpinsjfhhfjash--------------------------');
|
||||||
this.qusisityList.list = res.result;
|
this.qusisityList.list = res.data.result;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getCourseData(pageIndex) {
|
getCourseData(pageIndex) {
|
||||||
@@ -2758,6 +2757,7 @@ export default {
|
|||||||
// padding-bottom: 10px;
|
// padding-bottom: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
.course-author-left {
|
.course-author-left {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -3106,4 +3106,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.courseBg{
|
||||||
|
background: url("../assets/images/course/courseBackground.png") no-repeat;
|
||||||
|
background-size: cover; /* 或 use 'contain' */
|
||||||
|
background-position: center;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user