diff --git a/src/assets/images/about/6.png b/src/assets/images/about/6.png index 3c8389b..4638750 100644 Binary files a/src/assets/images/about/6.png and b/src/assets/images/about/6.png differ diff --git a/src/assets/images/about/7.png b/src/assets/images/about/7.png index 2034a43..bd87c1d 100644 Binary files a/src/assets/images/about/7.png and b/src/assets/images/about/7.png differ diff --git a/src/assets/images/about/8.png b/src/assets/images/about/8.png index 9d7376a..1a5363d 100644 Binary files a/src/assets/images/about/8.png and b/src/assets/images/about/8.png differ diff --git a/src/libs/util.js b/src/libs/util.js index eb20a02..c529715 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -166,7 +166,8 @@ const util = { // 去掉html里的标签及空格 removeTag(list, prop = 'mainBody') { list.map(e => { - e.mainBody = e[prop].replace(/(<[^>]+>)|(( )+)/g , '') + // 有摘要取摘要,没有摘要就去掉正文里的标签空格 + e.mainBody = e.summary || e[prop].replace(/(<[^>]+>)|(( )+)/g , '') }) return list }, diff --git a/src/mixins/article/index.js b/src/mixins/article/index.js index 64e1263..906be4d 100644 --- a/src/mixins/article/index.js +++ b/src/mixins/article/index.js @@ -25,7 +25,7 @@ export default { (this.$route.query.siteId || this.site) : to.siteSelection if (ids[1]) { // 文章 - href = '/article?id=' + ids[1] + href = '/article?articleId=' + ids[1] } else { // 栏目 const columnIds = ids[0].split(',') href = '/column?id=' + columnIds[columnIds.length - 1] diff --git a/src/pages/article/editor.css b/src/pages/article/editor.css index 0c4cb80..ebe0613 100644 --- a/src/pages/article/editor.css +++ b/src/pages/article/editor.css @@ -46,6 +46,7 @@ } .tiny-wrap .quote { padding: 15px; + margin-bottom: 10px; font-size: 16px; font-style: italic; border: 1px solid #e3e3e3; @@ -63,4 +64,8 @@ font-size: 14px; color: #8d8d8d; text-align: center; +} +.tiny-wrap .block .pic { + width: 300px; + height: 190px; } \ No newline at end of file diff --git a/src/pages/column/index.vue b/src/pages/column/index.vue index d904352..0b6aa2e 100644 --- a/src/pages/column/index.vue +++ b/src/pages/column/index.vue @@ -278,7 +278,7 @@ export default { }, // 左边栏目 getLeftColumn() { - this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}`).then(({ data }) => { + this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}&isSort=1`).then(({ data }) => { const fromColumn = this.$route.query.column // 有column标识的,说明是通过点击左侧导航跳转过来的,这种情况只查询该栏目下的文章 const { typeId } = this.info this.sameStyle = 1 diff --git a/src/pages/edu/index.vue b/src/pages/edu/index.vue index 6346f8f..4d10a27 100644 --- a/src/pages/edu/index.vue +++ b/src/pages/edu/index.vue @@ -103,17 +103,18 @@ export default { } } .pic { - width: 47%; - height: 730px; + width: 662px; + height: 753px; } .texts { position: absolute; top: 120px; - left: 610px; + left: 44%; width: 60%; - height: 440px; + height: 455px; padding: 60px 30px 30px 100px; background-color: #fff; + overflow: hidden; transition: .3s; &:hover { transform: scale(1.05); @@ -139,8 +140,10 @@ export default { .pic { width: 45%; } - .texts { - width: 50%; + li:nth-child(odd) { + .texts { + width: 50%; + } } } } diff --git a/src/pages/news/index.vue b/src/pages/news/index.vue index 07803fa..1cd2698 100644 --- a/src/pages/news/index.vue +++ b/src/pages/news/index.vue @@ -121,7 +121,11 @@
- Address: {{ item.onlineLocation }} + Onlone: {{ item.onlineLocation }} +
++ + Address: {{ item.offlineLocation }}
@@ -518,7 +522,7 @@ export default { display: flex; } .left { - width: 688px; + width: 718px; margin-right: 20px; background-color: #fff; cursor: pointer; @@ -556,7 +560,7 @@ export default { } } .card-list { - width: 784px; + width: 754px; li { display: flex; padding: 24px; @@ -573,7 +577,7 @@ export default { } .pic { width: 188px; - height: 130px; + height: 145px; margin-right: 28px; } h6 { diff --git a/src/pages/publish/index.vue b/src/pages/publish/index.vue index 19c6f63..78cd74e 100644 --- a/src/pages/publish/index.vue +++ b/src/pages/publish/index.vue @@ -14,7 +14,7 @@