diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index c8d32ac..e0dbd2d 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -411,7 +411,5 @@ display: flex; justify-content: space-between; height: 880px; - margin: 30px 0; - padding: 0 40px; background: #F4F4F4; } \ No newline at end of file diff --git a/src/views/digitalResource.vue b/src/views/digitalResource.vue index bcff5ea..53db31d 100644 --- a/src/views/digitalResource.vue +++ b/src/views/digitalResource.vue @@ -2,8 +2,8 @@
-
-
+
+
{{ item.title }} @@ -43,7 +43,7 @@ export default { } }, created() { - this.rankingList = data.srcList + this.rankingList = data.srcList1 }, mounted() { }, @@ -55,5 +55,50 @@ export default { +@import "~@/assets/styles/index.scss"; +.img-module { + padding: 40px; + height: 100%; + width: 100%; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + align-content: space-between; + .main-item { + // height: 387px; + // margin-bottom: 40px; + // padding: 0 40px; + // overflow: hidden; + position: relative; + img { + width: 100%; + height: 100%; + border-radius: 31px 31px 31px 31px; + } + .title { + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + font-family: "HuXiaoBoNanShenTi"; + font-size: 80px; + color: #333; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 3; + line-clamp: 3; + -webkit-box-orient: vertical; + } + } + .item-big { + width: 1000px; + height: 390px; + } + .item-small { + width: 800px; + height: 310px; + } +} + diff --git a/src/views/digitalResourceJson.json b/src/views/digitalResourceJson.json index 07f6f62..bd9fd92 100644 --- a/src/views/digitalResourceJson.json +++ b/src/views/digitalResourceJson.json @@ -107,6 +107,24 @@ "bgImg":"http://192.168.99.84:8080/numresurces/getImgFromByte.do?nrsId=4028e3d48354830301835a16da710000" } ], + "srcList1":[ + { + "title":"图书馆公开课", + "bgImg":"https://qiniu.aiyxlib.com/bg.png" + }, + { + "title":"武汉微刊", + "bgImg":"https://qiniu.aiyxlib.com/bg.png" + }, + { + "title":"在线书城", + "bgImg":"https://qiniu.aiyxlib.com/bg.png" + }, + { + "title":"武汉云阅读", + "bgImg":"https://qiniu.aiyxlib.com/bg.png" + } + ], "authors":[ { "name":"钱钟书", diff --git a/src/views/libraryIntroduction.vue b/src/views/libraryIntroduction.vue index 2e0df82..e0a1ee5 100644 --- a/src/views/libraryIntroduction.vue +++ b/src/views/libraryIntroduction.vue @@ -1,6 +1,6 @@