From a66b4724a6d63d39500d32b7b14f19dec26b5901 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854> Date: Wed, 10 May 2023 16:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=A7=86=E9=A2=91=E6=96=87?= =?UTF-8?q?=E4=BB=B6=20=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/views/cms/home.vue | 61 +++++++++++++-------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/cms/home.vue b/ant-design-vue-jeecg/src/views/cms/home.vue index 61e20cf..1d6ed03 100644 --- a/ant-design-vue-jeecg/src/views/cms/home.vue +++ b/ant-design-vue-jeecg/src/views/cms/home.vue @@ -3,12 +3,12 @@
- - + +
-
{{obj.name}}
+
{{ obj.name }}
MORE
@@ -20,7 +20,7 @@ @click="goToDetail(item)" >
{{ item.title }}
-
{{ item.publishTime === undefined ? "" :item.publishTime.substr(0,10)}}
+
{{ item.publishTime === undefined ? "" : item.publishTime.substr(0, 10) }}
@@ -29,17 +29,17 @@

课程体系

全面落实立德树人根本任务,CDIO工程教育理念

- +

专业目标

全面落实立德树人根本任务,CDIO工程教育理念

- +

毕业要求

适应产业与社会变革的国际化应用型人才应具备的能力

- + @@ -51,7 +51,7 @@ import {getAction} from "../../api/manage"; export default { name: "home", - components: { Header, Footer }, + components: {Header, Footer}, data() { return { trendsList: [ @@ -71,20 +71,20 @@ export default { date: "2023.01.11", }, ], - obj:{}, - url:{ - list:"/cms/front/getColumnList", - detail:"/cms/front/getArticleListByColumn" + obj: {}, + url: { + list: "/cms/front/getColumnList", + detail: "/cms/front/getArticleListByColumn" } }; }, mounted() { getAction(this.url.list).then((res) => { - this.obj =res.result[0] - getAction(this.url.detail,{columnId:this.obj.id}).then((res) => { - this.trendsList = res.result.records - } - ) + this.obj = res.result[0] + getAction(this.url.detail, {columnId: this.obj.id}).then((res) => { + this.trendsList = res.result.records + } + ) } ), this.playBySeconds(6)//从第六秒开始 @@ -92,9 +92,9 @@ export default { methods: { //设置播放点,续播 - playBySeconds (num) { - if (num && document.getElementById ('videoPlayer')) { - let myVideo = document.getElementById ('videoPlayer'); + playBySeconds(num) { + if (num && document.getElementById('videoPlayer')) { + let myVideo = document.getElementById('videoPlayer'); myVideo.currentTime = num; } }, @@ -117,24 +117,29 @@ export default {