@@ -65,6 +85,8 @@ export default {
},
data() {
return {
+ imgurl: process.env.VUE_APP_BASE_API,
+ teachingAchievements: [],
pageContextList: [],
nav: [
// { name: '教学团队' },
@@ -75,7 +97,7 @@ export default {
}
},
- mounted() {
+ created() {
// 页面加载完毕调用
this.initPageData();
},
@@ -91,29 +113,26 @@ export default {
}
this.currentActive = value
},
+
initPageData() {
- let routeParam = {
- "categoryId": this.$route.query.id,
- "pageNum": 1,
- "pageSize": 10
- }
- getPageColumn(routeParam).then(response => {
- response.data.forEach(cloumnItem => {
- this.nav.push(cloumnItem);
+let routeParam = {
+ "categoryId": this.$route.query.id,
+ "pageNum": 1,
+ "pageSize": 10
+}
+getPageColumn(routeParam).then(response => {
+ response.data.forEach(cloumnItem => {
+ this.nav.push(cloumnItem);
- let context = "";
- cloumnItem.children.list.forEach(element => {
- context += element.contentDetail;
- });
-
- this.pageContextList.push(context);
-
- // cloumnItem.categoryName
- });
+ cloumnItem.children.list.forEach(element => {
+ this.teachingAchievements.push(element);
});
+ // cloumnItem.categoryName
+ });
+});
- },
+},
}
}
@@ -192,10 +211,12 @@ export default {
/* 禁止背景图片重复 */
position: relative;
}
-.page-box{
+
+.page-box {
width: 82%;
margin: 10px auto;
}
+
.tab-box {
width: 100%;
box-sizing: border-box;
diff --git a/ruoyi-ui/src/views/officialWebsite/practice.vue b/ruoyi-ui/src/views/officialWebsite/practice.vue
index acf16d7..4dbb461 100644
--- a/ruoyi-ui/src/views/officialWebsite/practice.vue
+++ b/ruoyi-ui/src/views/officialWebsite/practice.vue
@@ -25,9 +25,26 @@
-
+
+
+
+
+
+
+
{{ item.contentTitle }}
+
+
+
+
+
+
+
+
+