yujialong 8 months ago
parent 69b51cb86c
commit 9283face64
  1. 10
      src/libs/resize/index.js
  2. 3
      src/mixins/article/index.js
  3. 4
      src/pages/article/index.vue
  4. 8
      src/pages/column/index.vue
  5. 8
      src/pages/index/list/index.vue

@ -12,8 +12,8 @@ function setRem() {
} }
// 初始化 // 初始化
setRem(); // setRem();
// 改变窗口大小时重新设置 rem // // 改变窗口大小时重新设置 rem
window.onresize = function() { // window.onresize = function() {
setRem(); // setRem();
}; // };

@ -30,7 +30,8 @@ export default {
(this.site) : (this.site) :
to.siteSelection to.siteSelection
if (ids[1]) { // 文章 if (ids[1]) { // 文章
href = '/article?articleId=' + ids[1] const columnIds = ids[0].split(',')
href = `/article?articleId=${ids[1]}&id=${columnIds[columnIds.length - 1]}`
} else { // 栏目 } else { // 栏目
const columnIds = ids[0].split(',') const columnIds = ids[0].split(',')
href = '/column?id=' + columnIds[columnIds.length - 1] href = '/column?id=' + columnIds[columnIds.length - 1]

@ -152,7 +152,7 @@ export default {
} }
// +1 // +1
this.$post(this.api.articlePreview, Util.rsa(this.id)).then(res => { }).catch(err => { }) this.$post(`${this.api.articlePreview}?contentId=${this.id}`).then(res => { }).catch(err => { })
this.loaded = true this.loaded = true
} }
} }
@ -203,7 +203,7 @@ export default {
font-size: 2rem; font-size: 2rem;
font-weight: 600; font-weight: 600;
color: #fff; color: #fff;
background: url(../../assets/images/intro-bg.png) center center no-repeat; background: url(../../assets/images/intro-bg.png) center center/cover no-repeat;
object-fit: cover; object-fit: cover;
} }
.article { .article {

@ -137,7 +137,7 @@
<template v-if="articles.length && !loading"> <template v-if="articles.length && !loading">
<!-- 列表样式选的是列表详情则直接显示最新一篇文章的详情 --> <!-- 列表样式选的是列表详情则直接显示最新一篇文章的详情 -->
<div v-if="info.listStyleId === 73" <div v-if="info.listStyleId === 77"
class="detail"> class="detail">
<template v-if="article.articleTemplate != 72"> <template v-if="article.articleTemplate != 72">
@ -436,8 +436,8 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <template v-if="info.listStyleId !== 73 && info.listStyleId !== 74"> --> <!-- <template v-if="info.listStyleId !== 77 && info.listStyleId !== 74"> -->
<template v-if="info.listStyleId !== 73 && info.listStyleId !== 74"> <template v-if="info.listStyleId !== 77 && info.listStyleId !== 74">
<!-- 选择了列表样式不用显示右侧部分 --> <!-- 选择了列表样式不用显示右侧部分 -->
<div class="right"> <div class="right">
<p class="l-title">{{ $t('column.hot') }}</p> <p class="l-title">{{ $t('column.hot') }}</p>
@ -501,7 +501,7 @@ export default {
sameStyle: 1, sameStyle: 1,
allColumnId: [], allColumnId: [],
showNav: false, showNav: false,
showNavIds: [10, 11, 12, 16, 55, 68, 73, 74], // id showNavIds: [10, 11, 12, 16, 55, 68, 77, 74], // id
isFilter: false, isFilter: false,
page: 1, page: 1,
pageSize: 10, pageSize: 10,

@ -904,9 +904,6 @@ export default {
@media (max-width: 1200px) { @media (max-width: 1200px) {
.wrap { .wrap {
.carousel { .carousel {
.text-wrap {
left: 40px;
}
.qrcode-wrap { .qrcode-wrap {
margin-right: 20px; margin-right: 20px;
} }
@ -970,7 +967,10 @@ export default {
} }
@media (max-width: 640px) { @media (max-width: 640px) {
.wrap { .wrap {
.carousel { /deep/.carousel {
.el-carousel__container {
height: 240px !important;
}
.text-wrap { .text-wrap {
left: 20px; left: 20px;
} }

Loading…
Cancel
Save