提交 00bea2a5 编写于 作者: guangjun.yang's avatar guangjun.yang

广告位显示问题

上级 98068f4f
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
<!-- <div v-if="index+1 < projectComponent.length" class="line-component"></div> --> <!-- <div v-if="index+1 < projectComponent.length" class="line-component"></div> -->
</div> </div>
<!-- <NoMoreContent v-if="detailNum > 9" /> --> <!-- <NoMoreContent v-if="detailNum > 9" /> -->
<NoMoreContent /> <!-- <NoMoreContent />
<div v-if="detailNum <= 9" class="no-more-bottom"></div> <div v-if="detailNum <= 9" class="no-more-bottom"></div> -->
<van-dialog <van-dialog
v-model="dialogState" v-model="dialogState"
title="标题" title="标题"
......
<template> <template>
<div class="common-adert-wrapper"> <div class="common-adert-wrapper">
<img @click="jumpPage" :src="showInfo.imageUrl" alt=""> <img :class="{'margin-top-20': needPadTop}" v-if="showInfo.imageUrl" @click="jumpPage" :src="showInfo.imageUrl" alt="">
</div> </div>
</template> </template>
<script> <script>
...@@ -23,6 +23,10 @@ export default { ...@@ -23,6 +23,10 @@ export default {
position: { position: {
type: String | Number, type: String | Number,
default: 0 default: 0
},
needPadTop: {
type: Boolean,
default: false
} }
}, },
watch: { watch: {
...@@ -71,5 +75,8 @@ export default { ...@@ -71,5 +75,8 @@ export default {
width: 100%; width: 100%;
height: px2rem(60px); height: px2rem(60px);
} }
.margin-top-20 {
margin-top: px2rem(20px);
}
} }
</style> </style>
...@@ -94,10 +94,16 @@ ...@@ -94,10 +94,16 @@
/> />
</div> </div>
</div> </div>
<CommonAdertImg <CommonAdertImg
needPadTop
:advertInfoList="advertInfoList" :advertInfoList="advertInfoList"
position="1" position="1"
/> />
<NoMoreContent />
<div v-if="detailNum <= 9" class="no-more-bottom"></div>
</div> </div>
<!-- 弹框 --> <!-- 弹框 -->
<CommonDialog <CommonDialog
...@@ -149,6 +155,7 @@ import TeacterIntro from "@/components/cme/teacter-intro"; ...@@ -149,6 +155,7 @@ import TeacterIntro from "@/components/cme/teacter-intro";
import CommonDialog from "@/components/cme/common-dialog"; import CommonDialog from "@/components/cme/common-dialog";
import ExjumperDialog from "@/components/cme/exjumper-dialog"; import ExjumperDialog from "@/components/cme/exjumper-dialog";
import ExjumperButton from "@/components/cme/exjumper-button"; import ExjumperButton from "@/components/cme/exjumper-button";
import NoMoreContent from "@/components/business/no-more-content";
import { getWebPageUrl, gotoPage } from "@/utils/index"; import { getWebPageUrl, gotoPage } from "@/utils/index";
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
...@@ -270,7 +277,8 @@ export default { ...@@ -270,7 +277,8 @@ export default {
ExjumperButton, ExjumperButton,
ExjumperDialog, ExjumperDialog,
CardPopup, CardPopup,
CommonAdertImg CommonAdertImg,
NoMoreContent
}, },
computed: { computed: {
...@@ -339,7 +347,7 @@ export default { ...@@ -339,7 +347,7 @@ export default {
}; };
this.GET(`portal/jump/${this.projectId}/1`, param).then(res => { this.GET(`portal/jump/${this.projectId}/1`, param).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
this.advertInfoList = res.data || []; this.advertInfoList = res.data && res.data.list || [];
console.log('advertInfoList', this.advertInfoList); console.log('advertInfoList', this.advertInfoList);
} }
}); });
...@@ -989,4 +997,9 @@ export default { ...@@ -989,4 +997,9 @@ export default {
} }
} }
} }
.no-more-bottom {
position: relative;
width: 100%;
height: px2rem(40px);
}
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册