diff --git a/ruoyi-ui/src/views/officialWebsite/practice.vue b/ruoyi-ui/src/views/officialWebsite/practice.vue
index 4ecc5f7..9426237 100644
--- a/ruoyi-ui/src/views/officialWebsite/practice.vue
+++ b/ruoyi-ui/src/views/officialWebsite/practice.vue
@@ -40,35 +40,41 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.publishDate }}
+
{{ item.contentTitle }}
+
+ {{ item.summary }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.contentTitle }}
+
+ {{ item.summary }}
+
+
{{ item.publishDate }}
+
+
-
-
+
+
+
+
+
+
@@ -57,6 +103,11 @@ export default {
},
data() {
return {
+ isShowDetails:false,
+ detailsContent:"",
+ imgurl: process.env.VUE_APP_BASE_API,
+ topSwiperData: {},
+ teachingAchievements: [],
pageContextList: [],
swiperOptions: {
navigation: {
@@ -93,7 +144,7 @@ export default {
}
},
- mounted() {
+ created() {
// 页面加载完毕调用
this.initPageData();
},
@@ -102,6 +153,11 @@ export default {
},
methods: {
+ showDetails(value){
+ debugger;
+ this.isShowDetails = true;
+ this.detailsContent = value.contentDetail;
+ },
// 触发导航
getCurrentActive(value) {
if (this.currentActive == value) {
@@ -126,6 +182,18 @@ export default {
});
this.pageContextList.push(context);
+ // 虚拟专业频道
+ if (cloumnItem.id == "1818243334464999424") {
+ if (cloumnItem.children) {
+ //取首条数据作为顶部块展示
+ // this.topSwiperData = cloumnItem.children.list[0];
+ //除首条以外,用作下部块展示
+ for (let i = 0; i < cloumnItem.children.list.length; i++) {
+
+ this.teachingAchievements.push(cloumnItem.children.list[i]);
+ };
+ }
+ }
// cloumnItem.categoryName
});
@@ -149,10 +217,12 @@ export default {
width: 240px;
border-radius: 50px;
}
-.page-box{
+
+.page-box {
width: 82%;
margin: 10px auto;
}
+
/* 圆形分页按钮样式 */
::v-deep .el-pagination .el-pager li:not(.disabled) {
border-radius: 100%;
@@ -622,4 +692,6 @@ export default {
line-height: 18px;
}
+
+