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();
// 改变窗口大小时重新设置 rem
window.onresize = function() {
setRem();
};
// setRem();
// // 改变窗口大小时重新设置 rem
// window.onresize = function() {
// setRem();
// };

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

@ -152,7 +152,7 @@ export default {
}
// +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
}
}
@ -203,7 +203,7 @@ export default {
font-size: 2rem;
font-weight: 600;
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;
}
.article {

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

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

Loading…
Cancel
Save