首页添加广告

This commit is contained in:
2023-08-03 11:51:28 +08:00
parent aad027d9ee
commit d27c9c4d5e
2 changed files with 31 additions and 0 deletions
@@ -99,6 +99,27 @@
@media(max-device-width:320px){
.searchBoxIndex{top:13.5rem;}
}
.advert {
position: fixed;
top: 30%;
left: 40%;
right: 0;
height: 320px;
width: 580px;
z-index: 10000;
}
.left-ad {
position: absolute;
bottom: 0;
left: 0;
width: 580px;
height: 300px;
background: url("${staticUrl}/images/fangjia/v5/adv.png");
background-size: 100% 100%;
}
.advert a{ float: right;margin-right: 10px;cursor: pointer;font-weight: bold;}
</style>
</head>
@@ -108,6 +129,10 @@
<#include "/header/v5/_header.ftl"/>
<div class="advert">
<a id="close">关闭</a>
<div class="left-ad"></div>
</div>
<div class="bannerIndex">
<div class="imgBoxIndex">
@@ -556,7 +581,13 @@ $.config = {router: false}
<script type="text/javascript" src="//developer.baidu.com/map/jsdemo/demo/convertor.js"></script>
<script src="${staticUrl}/js/fangjia/v5/city.js?v=${version}"></script>
<script>
$("#close").click(function(){
$(".advert").addClass("dn")
})
$(".left-ad").click(function(){
window.open('https://jinshuju.net/f/hBkMVo','_blank');
})
/* banner轮播 */
$(".imgBoxIndex > div").hide();
$(".imgBoxIndex > div").eq(0).show();
Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB