购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为587-717万。
查看详情
diff --git a/fangija-zsyf/views/component/baseInfoComponent.js b/fangija-zsyf/views/component/baseInfoComponent.js index c83766b..d2f2ca9 100644 --- a/fangija-zsyf/views/component/baseInfoComponent.js +++ b/fangija-zsyf/views/component/baseInfoComponent.js @@ -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> // onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"#if> ><#if advertisement.content??>${advertisement.content!}#if>
// #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 + ""); + $("#adBox").click(function(){ + clicked('../../views/webview_embed.html', true,false,{},{url:vo.link}) + }) + } + } + }).catch(function (error) { + console.log(error); + }); + +} + diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 65f9576..04cd1c6 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -64,7 +64,8 @@购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为587-717万。
查看详情