文字广告
This commit is contained in:
@@ -113,6 +113,7 @@ Vue.component('base-info-component', {
|
||||
var house = response.data.data.houseInfo;
|
||||
if(hs && sr){
|
||||
addSubstitution(sr, hs, house);
|
||||
addAdvertisement();
|
||||
}
|
||||
if(cityPrice){
|
||||
baseInfo.cityPrice = cityPrice
|
||||
@@ -302,7 +303,26 @@ function addSubstitution(sr, hs, house){
|
||||
// <#if advertisement?? && advertisement.content?? && advertisement.content?length gt 0>
|
||||
// <a <#if advertisement.link?? && advertisement.link?length gt 0>onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"</#if> ><#if advertisement.content??>${advertisement.content!}</#if><i class="icon icon-right icon-right01"></i></a></p>
|
||||
// </#if>
|
||||
$("#suggestDiv").text(s);
|
||||
$("#suggestDiv p").text(s);
|
||||
$("#suggestDiv").show();
|
||||
}
|
||||
|
||||
function addAdvertisement(){
|
||||
axios.get("/rest/changeHouse/position", null).then(function (response) {
|
||||
var vo = response.data.data
|
||||
if(vo!=null){
|
||||
$('#adBox').show();
|
||||
//如果link有值,添加调整路径
|
||||
if(vo.link!=null && vo.link.length>0 && vo.content!=null && vo.content.length>0){
|
||||
$('#adBox').html(vo.content + "<i class='icon icon-right icon-right01'></i>");
|
||||
$("#adBox").click(function(){
|
||||
clicked('../../views/webview_embed.html', true,false,{},{url:vo.link})
|
||||
})
|
||||
}
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,8 @@
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="topBg topBg02 dn" id="suggestDiv">
|
||||
<p>购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为<em>587-717万</em>。<br><a href="">查看详情<i class="icon icon-right icon-right01"></i></a></p>
|
||||
<p></p>
|
||||
<a class="adBox" id="adBox" style="background:none;display: none;"></a>
|
||||
</div>
|
||||
|
||||
<div class="list-block media-list topList">
|
||||
|
||||
Reference in New Issue
Block a user