From 9a3f41cf5f20c3f1d55d5baacb39ef6c19c2e3b9 Mon Sep 17 00:00:00 2001 From: dong_bo0602 <358256383@qq.com> Date: Sun, 7 Jun 2020 16:25:03 +0800 Subject: [PATCH] 0607 --- src/pages/ArtTrain/ArtTrain.vue | 83 ++++- src/pages/ArtTrain/components/Banner.vue | 2 +- src/pages/ArtTrain/components/Character.vue | 33 +- src/pages/ArtTrain/components/Health.vue | 27 +- src/pages/ArtTrain/components/Photography.vue | 27 +- src/pages/ArtTrain/components/Recommend.vue | 18 +- src/pages/ArtTrainList/ArtTrainList.vue | 306 ++++++++++++++++++ src/pages/Exhibition/Exhibition.vue | 136 +++++--- src/router/index.js | 10 + 9 files changed, 534 insertions(+), 108 deletions(-) create mode 100644 src/pages/ArtTrainList/ArtTrainList.vue diff --git a/src/pages/ArtTrain/ArtTrain.vue b/src/pages/ArtTrain/ArtTrain.vue index 3ac0e45..fa87421 100644 --- a/src/pages/ArtTrain/ArtTrain.vue +++ b/src/pages/ArtTrain/ArtTrain.vue @@ -39,28 +39,83 @@ export default { return { classList: [], recommend: [], - character: {}, - health: {}, - photography: {} + character: [], + health: [], + photography: [], + page: { + page: 1, + rows: 8, + totalPage: 1, + newsDirectoriesId: '', + newsDirectoriesParentId: 'd9d8c7ea-32e0-43ed-ad17-7c99a3c389b9' + } } }, methods: { - getArtData () { + getType: function () { var self = this - axios.get('/api/artTrain.json').then(function (res) { - res = res.data - const data = res.data - console.log(data) - self.classList = data.classList - self.recommend = data.recommend - self.character = data.character - self.health = data.health - self.photography = data.photography + axios.get('http://192.168.0.104:8082/news/app/newsdirectories/listnewsdirectoriesrelease', { + params: { + directoriesParentId: 'd9d8c7ea-32e0-43ed-ad17-7c99a3c389b9' + } + }).then(function (res) { + console.log(res) + self.classList = res.data + }) + }, + getCharacter: function () { + var self = this + axios.get('http://192.168.0.104:8082/news/app/newscontent/listpagenewscontentrelease', { + params: { + page: 1, + rows: 8, + newsDirectoriesId: 'af9229f6-6e32-4594-808d-74955362427d' + } + }).then(function (res) { + for (var i = 0; i < res.data.rows.length; i++) { + res.data.rows[i].newsContentCoverList = res.data.rows[i].newsContentCoverList[0].contentCoverId + } + self.recommend = res.data.rows + self.character = res.data.rows + }) + }, + getHealth: function () { + var self = this + axios.get('http://192.168.0.104:8082/news/app/newscontent/listpagenewscontentrelease', { + params: { + page: 1, + rows: 8, + newsDirectoriesId: 'ef97b165-ce82-47e4-8e3b-98ead4f6c1cc' + } + }).then(function (res) { + for (var i = 0; i < res.data.rows.length; i++) { + res.data.rows[i].newsContentCoverList = res.data.rows[i].newsContentCoverList[0].contentCoverId + } + self.health = res.data.rows + }) + }, + getPhotography: function () { + var self = this + axios.get('http://192.168.0.104:8082/news/app/newscontent/listpagenewscontentrelease', { + params: { + page: 1, + rows: 8, + newsDirectoriesId: '3b6f83b5-bcb4-4545-98d3-64e8cf596157' + } + }).then(function (res) { + for (var i = 0; i < res.data.rows.length; i++) { + res.data.rows[i].newsContentCoverList = res.data.rows[i].newsContentCoverList[0].contentCoverId + } + self.photography = res.data.rows + console.log(self.photography) }) } }, mounted () { - this.getArtData() + this.getType() + this.getCharacter() + this.getHealth() + this.getPhotography() } } diff --git a/src/pages/ArtTrain/components/Banner.vue b/src/pages/ArtTrain/components/Banner.vue index b80f713..a608257 100644 --- a/src/pages/ArtTrain/components/Banner.vue +++ b/src/pages/ArtTrain/components/Banner.vue @@ -2,7 +2,7 @@
diff --git a/src/pages/ArtTrain/components/Character.vue b/src/pages/ArtTrain/components/Character.vue index 4f4fd0f..a037198 100644 --- a/src/pages/ArtTrain/components/Character.vue +++ b/src/pages/ArtTrain/components/Character.vue @@ -1,35 +1,31 @@{{character.characterText}}
+蒙古文化是由蒙古民族创造的一种游牧文化。从13世纪开始蒙古人在成吉思汗的旗帜下再度统一草原部落,建立了疆域横跨欧亚的蒙古帝国,用国家形式重新整合各种社会力量,从而把部落与民族文化全面提高到了达到封建国家水准的“文明的进步状态”。成吉思汗的继承者们入主中原,建立了元朝。在历史的进程中元朝虽然消亡,但是从此形成的蒙古族却成为草原的主体民族,成为文化的承载者。
{{health.healthText}}
+养生指保养、调养、颐养生命。即以调阴阳、和气血、保精神为原则,运用调神、导引吐纳、四时调摄、食养、药养、节欲、辟谷等多种方法,以期达到健康、长寿的目的。本、戏曲剧本在内。一般多取其广义的概念。戏剧人物的逼真性、戏剧冲突的尖锐性、戏剧场面的集中性、台词的口语化和动作性构成了戏剧文学的四大审美特征。
{{photography.photographyText}}
+影视摄影从运动、色彩、光线,两极镜头等摄影造型元素入手,论述如何认识,运用它们去构造丰富的视觉造型语言。进而进行影视摄影创作。运动,是影视摄影最重要的造型元素,“是银幕造型的第一艺术特点”,也是影视摄影的生命。
讲师:{{list.newsContentAuthor}}
+作者:{{list.newsContentAuthor}}