From cd3c54f830bf77d4fbfd32ca6ac87c0f5f877d8e Mon Sep 17 00:00:00 2001
From: gaojuan
Date: Tue, 8 May 2018 18:24:06 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E6=96=87=E5=AD=97=E5=B9=BF=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/component/baseInfoComponent.js | 22 ++++++++++++++++++-
fangija-zsyf/views/district/detail.html | 3 ++-
2 files changed, 23 insertions(+), 2 deletions(-)
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 + "
-
购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为587-717万。
查看详情
+
+