页面调整
This commit is contained in:
+23
-2
@@ -53,6 +53,7 @@ import com.fangjia.service.datastore.HouseService;
|
||||
import com.fangjia.service.datastore.RegionStatService;
|
||||
import com.fangjia.service.datastore.bean.HousePicEnum;
|
||||
import com.fangjia.service.datastore.bean.HouseQueryBean;
|
||||
import com.fangjia.service.datastore.EvaluationService;
|
||||
import com.fangjia.service.district.DistrictStatService;
|
||||
import com.fangjia.service.district.TradeStatService;
|
||||
import com.fangjia.service.fsh.DistrictNewPriceService;
|
||||
@@ -77,6 +78,7 @@ public class TrendController {
|
||||
private TradeStatService tradeStatService;
|
||||
private DistrictNewPriceService districtNewPriceService;
|
||||
private DistrictSellStatService districtSellStatService;
|
||||
private EvaluationService evaluationService;
|
||||
private static int QUARTER_WEEK = 13;
|
||||
private final static Logger LOGGER = LoggerFactory.getLogger(TrendController.class);
|
||||
|
||||
@@ -124,6 +126,23 @@ public class TrendController {
|
||||
}
|
||||
return model;
|
||||
}
|
||||
/**
|
||||
* 房产评估次数
|
||||
*
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
public Object trendReportCountAction(TrendModel model,HttpServletRequest request) {
|
||||
|
||||
JsonModel ret = new JsonModel();
|
||||
|
||||
Map<String, Object> data = new HashMap<String, Object>();
|
||||
data.put("evalCount", evaluationService.getTotalCount());
|
||||
|
||||
ret.setJsonModel(data);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* 走势图
|
||||
@@ -1260,7 +1279,9 @@ public class TrendController {
|
||||
DistrictSellStatService districtSellStatService) {
|
||||
this.districtSellStatService = districtSellStatService;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setEvaluationService(EvaluationService evaluationService) {
|
||||
this.evaluationService = evaluationService;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
|
||||
|
||||
<div class="selectCity cityChoice_spread mobile01 dn" id="chooseCity" style="display: none;">
|
||||
<div class="selectCity cityChoice_spread mobile01" id="chooseCity" style="display: none;">
|
||||
<div id="allCityDiv">
|
||||
<div class="c_top">
|
||||
<div class="icon01"></div>
|
||||
|
||||
@@ -112,13 +112,13 @@
|
||||
<div class="index_bg04">
|
||||
<div class="herder"><p><span class="text_56">应用</span>场景</p></div>
|
||||
<div class="index-box5">
|
||||
<div class="index-box8-left">
|
||||
<div class="up-div-left"><p class="text_50_orange">客户分层</p><p class="icon02"></p></div>
|
||||
<div class="down-div-left"><p class="text_50_orange">信用卡促销/促活</p><p class="icon02"></p></div>
|
||||
<div class="index-box5-left">
|
||||
<div class="up-div-left"><p class="text_30_orange">客户分层</p><p class="icon02"></p></div>
|
||||
<div class="down-div-left"><p class="text_30_orange">信用卡促销/促活</p><p class="icon02"></p></div>
|
||||
</div>
|
||||
<div class="index-box8-right">
|
||||
<div class="up-div-right"><p class="icon03"></p><p class="text_50_orange">智能营销</p></div>
|
||||
<div class="down-div-right"><p class="icon03"></p><p class="text_50_orange">线下促销</p></div>
|
||||
<div class="index-box5-right">
|
||||
<div class="up-div-right"><p class="icon03"></p><p class="text_30_orange">智能营销</p></div>
|
||||
<div class="down-div-right"><p class="icon03"></p><p class="text_30_orange">线下促销</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<link href="${staticUrl}/style/fangjia/v6/common.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/main.css?v=${version}" rel="stylesheet">
|
||||
|
||||
<link href="${staticUrl}/style/fangjia/v6/_city_select.css?v=${version}" rel="stylesheet">
|
||||
<link href="${staticUrl}/style/fangjia/v6/trend.css?v=${version}" rel="stylesheet">
|
||||
<script src="${staticUrl}/js/fangjia/v5/jquery-1.7.2.min.js?v=${version}"></script>
|
||||
<script>
|
||||
@@ -99,11 +99,8 @@
|
||||
<div class="bannerIndex01">
|
||||
<div>
|
||||
<p><label>全国房价在线查询</label></p>
|
||||
<div class="btnGroup" align="left">
|
||||
<center><a id="a1" class="link_btn link01_btn text20" data_id="1006" cat="solution" style="line-height: 68px;">立即查询</a></center>
|
||||
</div>
|
||||
<div class="btnGroup" align="right">
|
||||
<center><a id="a2" class="link_btn link01_btn text20" data_id="1006" cat="solution" style="line-height: 68px;">在线咨询</a></center>
|
||||
<div class="btnGroup" >
|
||||
<div class="link_btn1 link01_btn text20" data_id="1006" cat="solution">立即查询</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -111,8 +108,8 @@
|
||||
</div>
|
||||
<div class="index_bg01">
|
||||
|
||||
<div class="index-box01"><p>房价网自2006年起记录全国房产租售交易</p></div>
|
||||
<div class="index-box01" style="height: 100px;"><div><p><label>2,625,998,590</label> 套数</p></div><div class="icon_01"></div></div>
|
||||
<div class="index-box01"><p>房价网自2006年起累计在线估值次数</p></div>
|
||||
<div class="index-box01"><div class="evalCount_div"><p><label id="evalCount"></label><i> 次</i></p></div><div class="icon_01 dn"></div></div>
|
||||
<div class="index-box01"><p>房产数据覆盖全国367个城市地区、80万楼盘、8000万房号库、70万楼盘字段、5000万POI数据。</p></div>
|
||||
|
||||
</div>
|
||||
@@ -130,27 +127,11 @@
|
||||
<input type="hidden" name="region" id="region"/>
|
||||
<div class="input_address"><input type="text" id="_index_keyword" name="keyword" value="${keyword!''}" autocomplete="off" maxlength="25" placeholder="请输入地址或小区名称"></div>
|
||||
<div class="searchBtn"><div id="searchBtn">查看</div></div>
|
||||
<!-- <button type="submit"><a class="search_btn">查看</a></button>-->
|
||||
</div>
|
||||
<div class="text01"><p>* 个人用户每日免费查询三次</p></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<#-- <div class="search_bg">-->
|
||||
<#-- <form action="${_currentCityUrl}/zoushi" method="GET" id="_index_form">-->
|
||||
<#-- <div class="cityChoice open-about01">-->
|
||||
<#-- <div><input type="hidden" name="cityName" id="city" value="<#if cityName??>${cityName!}</#if>"/></div>-->
|
||||
<#-- <div class="selectedCity"><input id="selectedCity" type="text" value="<#if cityName??>${cityName!}<#else>上海</#if>" placeholder="请选择您所在的城市" readonly></div>-->
|
||||
<#-- <#include "/header/v5/_city_select.ftl" />-->
|
||||
<#-- </div>-->
|
||||
<#-- <input type="hidden" name="__s" value="1"/>-->
|
||||
<#-- <input type="hidden" name="region" id="region"/>-->
|
||||
<#-- <div class="input_address"><input type="text" id="_index_keyword" name="keyword" value="${keyword!''}" autocomplete="off" maxlength="25" placeholder="请输入地址或小区名称"></div>-->
|
||||
<#-- <div class="search_btn"><button class="search_btn" id="searchBtn">查看</button></div>-->
|
||||
<#-- <!-- <button type="submit"><a class="search_btn">查看</a></button>–>-->
|
||||
<#-- </form>-->
|
||||
<#-- </div>-->
|
||||
|
||||
|
||||
<div class="main">
|
||||
<div class="trend trend01">
|
||||
@@ -176,18 +157,6 @@
|
||||
</#if>
|
||||
</#if>
|
||||
</div>
|
||||
<!--<div class="adBoxApp04 mobile01">
|
||||
<a href="${wwwUrl}/app/index"></a>
|
||||
</div>
|
||||
<div class="adBoxApp04 mobile02">
|
||||
<a href="${wwwUrl}/app/index"></a>
|
||||
</div>-->
|
||||
<!--<div class="adBoxLoan mobile01">
|
||||
<a onclick="applyLoan()"><img src="${imgUrl}/images/fangjia/v5/adBoxLoan_btn.png"></a>
|
||||
</div>
|
||||
<div class="adBoxLoan mobile02">
|
||||
<a onclick="applyLoan()"><img src="${imgUrl}/images/fangjia/v5/adBoxLoan_btn01.png"></a>
|
||||
</div>-->
|
||||
</div>
|
||||
<div class="trend trend02" id="ts">
|
||||
<div class="trend_title">价格走势
|
||||
@@ -389,90 +358,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<#-- <!--涨幅排行榜–>-->
|
||||
<#-- <#if upTop5?? && upTop5?size gt 0>-->
|
||||
<#-- <div class="trend trend03">-->
|
||||
<#-- <div class="trend_title">Top10 涨幅排名</div>-->
|
||||
<#-- <div class="trend_content">-->
|
||||
<#-- <div class="table">-->
|
||||
<#-- <table class="inline">-->
|
||||
<#-- <thead>-->
|
||||
<#-- <tr class="bg">-->
|
||||
<#-- <th class="th01">排名</th>-->
|
||||
<#-- <th>小区名称</th>-->
|
||||
<#-- <th>上月价格</th>-->
|
||||
<#-- <th>本月价格</th>-->
|
||||
<#-- <th>涨跌幅</th>-->
|
||||
<#-- <th>历史高价</th>-->
|
||||
<#-- <th>单位</th>-->
|
||||
<#-- <th>更新频率</th>-->
|
||||
<#-- <th>数据范围</th>-->
|
||||
<#-- </tr>-->
|
||||
<#-- </thead>-->
|
||||
<#-- <tbody>-->
|
||||
<#-- <#list upTop5! as upTop>-->
|
||||
<#-- <tr class="<#if (upTop_index+1)%2==0>bg</#if>">-->
|
||||
<#-- <td class="td01">${upTop_index + 1}</td>-->
|
||||
<#-- <td class="td02"><a href="<@d_url schema="${citySchema}" uri="/zoushi" ><@d_param name="districtName" value="${upTop.districtName!''}" /><@d_param name="region" value="${upTop.region!''}" /></@d_url>">${upTop.districtName!}</a></td>-->
|
||||
<#-- <td>${upTop.lastAvgPrice!}</td>-->
|
||||
<#-- <td>${upTop.avgPrice!}</td>-->
|
||||
<#-- <td class="up"><i>↑</i>${(upTop.weekendMarkup/100)?string('#.##')}%</td>-->
|
||||
<#-- <td>${upTop.maxPrice!}</td>-->
|
||||
<#-- <td>元/㎡</td>-->
|
||||
<#-- <td>周度</td>-->
|
||||
<#-- <td>${upTop.startDate!}-${.now?string('yyyy')}</td>-->
|
||||
<#-- </tr>-->
|
||||
<#-- </#list>-->
|
||||
<#-- </tbody>-->
|
||||
<#-- </table>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#-- </#if>-->
|
||||
<#-- -->
|
||||
<#-- <!--跌幅排行榜–>-->
|
||||
<#-- <#if downTop5?? && downTop5?size gt 0>-->
|
||||
<#-- <div class="trend trend03" style="border-bottom:none;">-->
|
||||
<#-- <div class="trend_title">Top10 跌幅排名</div>-->
|
||||
<#-- <div class="trend_content">-->
|
||||
<#-- <div class="table">-->
|
||||
<#-- <table class="inline">-->
|
||||
<#-- <thead>-->
|
||||
<#-- <tr class="bg">-->
|
||||
<#-- <th class="th01">排名</th>-->
|
||||
<#-- <th>小区名称</th>-->
|
||||
<#-- <th>上月价格</th>-->
|
||||
<#-- <th>本月价格</th>-->
|
||||
<#-- <th>涨跌幅</th>-->
|
||||
<#-- <th>历史高价</th>-->
|
||||
<#-- <th>单位</th>-->
|
||||
<#-- <th>更新频率</th>-->
|
||||
<#-- <th>数据范围</th>-->
|
||||
<#-- </tr>-->
|
||||
<#-- </thead>-->
|
||||
<#-- <tbody>-->
|
||||
<#-- <#list downTop5! as downTop>-->
|
||||
<#-- <tr class="<#if (downTop_index+1)%2==0>bg</#if>">-->
|
||||
<#-- <td class="td01">${downTop_index + 1}</td>-->
|
||||
<#-- <td class="td02"><a href="<@d_url schema="${citySchema}" uri="/zoushi" ><@d_param name="districtName" value="${downTop.districtName!''}" /><@d_param name="region" value="${downTop.region!''}" /></@d_url>">${downTop.districtName!}</a></td>-->
|
||||
<#-- <td>${downTop.lastAvgPrice!}</td>-->
|
||||
<#-- <td>${downTop.avgPrice!}</td>-->
|
||||
<#-- <td class="down"><i>↓</i>${(downTop.weekendMarkup/100)?string('#.##')}%</td>-->
|
||||
<#-- <td>${downTop.maxPrice!}</td>-->
|
||||
<#-- <td>元/㎡</td>-->
|
||||
<#-- <td>周度</td>-->
|
||||
<#-- <td>${downTop.startDate!}-${.now?string('yyyy')}</td>-->
|
||||
<#-- </tr>-->
|
||||
<#-- </#list>-->
|
||||
<#-- -->
|
||||
<#-- </tbody>-->
|
||||
<#-- </table>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#-- </div>-->
|
||||
<#-- </#if>-->
|
||||
</div>
|
||||
|
||||
|
||||
@@ -490,6 +375,92 @@
|
||||
|
||||
<script>
|
||||
|
||||
/* 数字滚动动画 */
|
||||
function numScroll(start, maxNum) {
|
||||
const that = this;
|
||||
start = start.replaceAll(",","")
|
||||
var startNum = Number(start);
|
||||
maxNum = Number(maxNum);
|
||||
let animateFrame; // 清除 requestAnimationFrame 请求动画帧
|
||||
// 数字动画
|
||||
function digitalAnimation() {
|
||||
startNum += 1; // 速度的计算可以为小数 。数字越大,滚动越快
|
||||
if (startNum >= maxNum) {
|
||||
startNum = maxNum;
|
||||
cancelAnimationFrame(animateFrame);
|
||||
} else {
|
||||
animateFrame = requestAnimationFrame(digitalAnimation); // 请求动画帧(一个浏览器的宏任务)
|
||||
}
|
||||
$("#evalCount").text(toThousands(startNum));
|
||||
}
|
||||
|
||||
digitalAnimation(); // 数字动画
|
||||
}
|
||||
|
||||
var interval = setInterval(function(){
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
async: false,
|
||||
url: Constants.cityUrl + '/trend/trendReportCount',
|
||||
dataType: 'json',
|
||||
timeout: 100000,
|
||||
success: function(model) {
|
||||
var startNum = document.getElementById("evalCount").innerHTML;
|
||||
if (startNum == ''){
|
||||
$("#evalCount").text(toThousands(model.evalCount));
|
||||
}else{
|
||||
numScroll(startNum,model.evalCount);
|
||||
}
|
||||
},
|
||||
error : function() {
|
||||
}
|
||||
});
|
||||
}, 5000);
|
||||
|
||||
|
||||
|
||||
function SetCookie(name, value) {
|
||||
var key = '';
|
||||
var Days = 2;
|
||||
var exp = new Date();
|
||||
var domain = "";
|
||||
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
|
||||
if (key == null || key == "") {
|
||||
document.cookie = name + "=" + encodeURI(value) + ";expires=" + exp.toGMTString() + ";path=/;domain=" + domain + ";";
|
||||
}else {
|
||||
var nameValue = GetCookie(name);
|
||||
if (nameValue == "") {
|
||||
document.cookie = name + "=" + key + "=" + encodeURI(value) + ";expires=" + exp.toGMTString() + ";path=/;domain=" + domain + ";";
|
||||
}else {
|
||||
var keyValue = getCookie(name, key);
|
||||
if (keyValue != "") {
|
||||
nameValue = nameValue.replace(key + "=" + keyValue, key + "=" + encodeURI(value));
|
||||
document.cookie = name + "=" + nameValue + ";expires=" + exp.toGMTString() + ";path=/;domain=" + domain + ";";
|
||||
}else {
|
||||
document.cookie = name + "=" + nameValue + "&" + key + "=" + encodeURI(value) + ";expires=" + exp.toGMTString() + ";path=/;" + domain + ";";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function GetCookie(name) {
|
||||
var nameValue = "";
|
||||
var key = "";
|
||||
var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
|
||||
if (arr = document.cookie.match(reg)) {
|
||||
nameValue = decodeURI(arr[2]);
|
||||
}if (key != null && key != "") {
|
||||
reg = new RegExp("(^| |&)" + key + "=([^(;|&|=)]*)(&|$)");
|
||||
if (arr = nameValue.match(reg)) {
|
||||
return decodeURI(arr[2]);
|
||||
} else{
|
||||
return "";
|
||||
}
|
||||
}else {
|
||||
return nameValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const now = new Date();
|
||||
const year = now.getFullYear(); // 年
|
||||
const month = now.getMonth() + 1; // 月
|
||||
@@ -519,119 +490,108 @@
|
||||
});
|
||||
})
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<script src="${staticUrl}/js/fangjia/v5/light7.js?v=${version}"></script>
|
||||
<script src="${staticUrl}/js/fangjia/v5/cn.js?v=${version}"></script>
|
||||
<script src="${staticUrl}/js/fangjia/v5/light7.js?v=${version}"></script>
|
||||
<script src="${staticUrl}/js/fangjia/v5/cn.js?v=${version}"></script>
|
||||
|
||||
<script>
|
||||
<script>
|
||||
|
||||
$(".popup-about01 .cityGPS").on("click", function () {
|
||||
$("#selectedCity,#city").val($(this).find("p").text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$("body").delegate(".popup-about01 a","click", function(){
|
||||
$("#selectedCity,#city").val($(this).text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$(".popup-about01-mobile .cityGPS").on("click", function () {
|
||||
$("#selectedCity,#city").val($(this).find("p").text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$("body").delegate(".popup-about01-mobile a","click", function(){
|
||||
$("#selectedCity,#city").val($(this).text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$(".popup-about01 .icon-left").on("click", function () {
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$(".popup-about01 .cityGPS").on("click", function () {
|
||||
$("#selectedCity,#city").val($(this).find("p").text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$("body").delegate(".popup-about01 a","click", function(){
|
||||
$("#selectedCity,#city").val($(this).text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$(".popup-about01-mobile .cityGPS").on("click", function () {
|
||||
$("#selectedCity,#city").val($(this).find("p").text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$("body").delegate(".popup-about01-mobile a","click", function(){
|
||||
$("#selectedCity,#city").val($(this).text());
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
$(".popup-about01 .icon-left").on("click", function () {
|
||||
$(".adBoxApp01").show();
|
||||
});
|
||||
|
||||
/* 定位城市 */
|
||||
$("body").on("click", ".letter a", function () {
|
||||
var s = $(this).html();
|
||||
$(".content").scrollTop(0);
|
||||
$(".content").scrollTop($("#" + s + "1").offset().top - 66);
|
||||
});
|
||||
$(".content-block01").scroll(function () {
|
||||
$(".content-block01 .letter").css("position","absolute");
|
||||
$(".content-block01 .letter").css("top", 116 - $("#cityContainer").position().top);
|
||||
});
|
||||
/* 定位城市 */
|
||||
$("body").on("click", ".letter a", function () {
|
||||
var s = $(this).html();
|
||||
$(".content").scrollTop(0);
|
||||
$(".content").scrollTop($("#" + s + "1").offset().top - 66);
|
||||
});
|
||||
$(".content-block01").scroll(function () {
|
||||
$(".content-block01 .letter").css("position","absolute");
|
||||
$(".content-block01 .letter").css("top", 116 - $("#cityContainer").position().top);
|
||||
});
|
||||
|
||||
|
||||
|
||||
var chart ;
|
||||
var down_pic_temp = 0;
|
||||
$(document).ready(function(){
|
||||
//走势图
|
||||
<#if districtStatBo?? || regionStatBo??>
|
||||
<#if type??>
|
||||
<#if type == '4' || type == 'quarter'>
|
||||
var url = Constants.cityUrl + '/trend/quarterData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
<#elseif type == '3' || type == 'half'>
|
||||
var url = Constants.cityUrl + '/trend/halfData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
<#elseif type == '1' || type == 'year2'>
|
||||
var url = Constants.cityUrl + '/trend/year2Data?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
var chart ;
|
||||
var down_pic_temp = 0;
|
||||
$(document).ready(function(){
|
||||
//走势图
|
||||
<#if districtStatBo?? || regionStatBo??>
|
||||
<#if type??>
|
||||
<#if type == '4' || type == 'quarter'>
|
||||
var url = Constants.cityUrl + '/trend/quarterData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
<#elseif type == '3' || type == 'half'>
|
||||
var url = Constants.cityUrl + '/trend/halfData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
<#elseif type == '1' || type == 'year2'>
|
||||
var url = Constants.cityUrl + '/trend/year2Data?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
<#else>
|
||||
var url = Constants.cityUrl + '/trend/yearData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
</#if>
|
||||
naver();
|
||||
<#else>
|
||||
var url = Constants.cityUrl + '/trend/yearData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
var url = Constants.cityUrl + '/trend/quarterData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
</#if>
|
||||
naver();
|
||||
<#else>
|
||||
var url = Constants.cityUrl + '/trend/quarterData?defaultCityName=${cityName}&districtName=${districtName!}®ion=${region!}&block=${block!}&keyword=${keyword!}';
|
||||
$.getJSON(encodeURI(url), function(data) {
|
||||
createChart('container', data, false);
|
||||
});
|
||||
|
||||
|
||||
//下载 打印
|
||||
exportButton();
|
||||
$("#exportButton").click(function(){
|
||||
chart.exportChart()
|
||||
});
|
||||
$("#printButton").click(function(){
|
||||
chart.print()
|
||||
});
|
||||
</#if>
|
||||
$.getJSON(encodeURI(url), function(data) {
|
||||
createChart('container', data, false);
|
||||
});
|
||||
|
||||
|
||||
//下载 打印
|
||||
exportButton();
|
||||
$("#exportButton").click(function(){
|
||||
chart.exportChart()
|
||||
});
|
||||
$("#printButton").click(function(){
|
||||
chart.print()
|
||||
});
|
||||
</#if>
|
||||
|
||||
|
||||
souAutoComplete({id: '_index_keyword', autoCompleteUrl: Constants.cityUrl + '/autoComplete/suggest?cat=district',submitOnSelect: true, selectHide: false, trigOnFocus : true,showDesc: true});
|
||||
//设置锚点
|
||||
function naver(){
|
||||
var obj = document.getElementById("ts");
|
||||
var oPos = obj.offsetTop;
|
||||
return window.scrollTo(0, oPos+80);
|
||||
//document.getElementById("ts").scrollIntoView();
|
||||
}
|
||||
})
|
||||
|
||||
/*$("#_index_form").submit(function (e) {
|
||||
if ($.trim($("#_index_keyword").val()) == '') {
|
||||
e.preventDefault();
|
||||
$("#_index_keyword").focus()
|
||||
return false
|
||||
}
|
||||
var acUrl = $("#_index_keyword").attr("action");
|
||||
|
||||
$("#_index_form").attr("action", acUrl.substring(0, acUrl.length-6)+"trend/trend");
|
||||
$("#_index_form").submit();
|
||||
})*/
|
||||
|
||||
$("#searchBtn").click(function(){
|
||||
submit();
|
||||
});
|
||||
function submit(){
|
||||
var keyword = $("#_index_keyword").val()
|
||||
var city = $("#city").val()
|
||||
var acUrl = $("#_index_form").attr("action");
|
||||
if(city && keyword){
|
||||
$("#_index_form").submit();
|
||||
}
|
||||
}
|
||||
|
||||
souAutoComplete({id: '_index_keyword', autoCompleteUrl: Constants.cityUrl + '/autoComplete/suggest?cat=district',submitOnSelect: true, selectHide: false, trigOnFocus : true,showDesc: true});
|
||||
//设置锚点
|
||||
function naver(){
|
||||
var obj = document.getElementById("ts");
|
||||
var oPos = obj.offsetTop;
|
||||
return window.scrollTo(0, oPos+80);
|
||||
//document.getElementById("ts").scrollIntoView();
|
||||
}
|
||||
})
|
||||
|
||||
$("#searchBtn").click(function(){
|
||||
submit();
|
||||
});
|
||||
function submit(){
|
||||
var keyword = $("#_index_keyword").val()
|
||||
var city = $("#city").val()
|
||||
var acUrl = $("#_index_form").attr("action");
|
||||
if(city && keyword){
|
||||
$("#_index_form").submit();
|
||||
}
|
||||
}
|
||||
|
||||
function toThousands(num) {
|
||||
return (num || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -3,23 +3,23 @@
|
||||
|
||||
/* 选择城市 */
|
||||
|
||||
.selectCity{min-width: 1370px;min-height: 450px;background-color: #fff;border-style: solid;border-color: #f87924;border-width: thin;z-index: 1;position: absolute;}
|
||||
.selectCity{width: 1000px;height: 450px;background-color: #fff;border-style: solid;border-color: #f87924;border-width: thin;z-index: 1;position: absolute;}
|
||||
|
||||
.c_top{ display: flex;width: 1300px;height: 84px;background-color: #E1ECF5;margin-top: 50px;margin-bottom: 50px;margin-left: 35px;}
|
||||
.hot{width:1370px;height: 200px;display: flex;justify-content: center;align-items: center;margin-top: -57px;margin-left: 35px;}
|
||||
.c_top{ display: flex;width: 900px;height: 50px;background-color: #E1ECF5;margin-top: 50px;margin-bottom: 50px;margin-left: 35px;}
|
||||
.hot{width:890px;height: 50px;display: flex;justify-content: center;align-items: center;margin-left: 35px;}
|
||||
.hot a{width:120px;height:40px;font-size: 30px;font-weight:400;color:#393939;line-height: 40px;text-align:center;}
|
||||
.hot a:hover{color:#f08300;}
|
||||
|
||||
.icon01{width: 6px;height: 200px;background: url(../../../images/fangjia/v6/4-1-6.png);background-size: 6px 84px;background-repeat: no-repeat;background-position: center;margin-left: -35px;margin-top: -57px;}
|
||||
.icon01{width: 10px;height: 50px;background: url(../../../images/fangjia/v6/4-1-6.png);background-size: 6px 84px;background-repeat: no-repeat;background-position: center;margin-left: -35px;}
|
||||
|
||||
.line{width: 1300px;height: 40px;background: url(../../../images/fangjia/v6/4-1-10.png);background-size: 1300px 5px;background-repeat: no-repeat;background-position: center;}
|
||||
.line{width: 900px;height: 40px;background: url(../../../images/fangjia/v6/4-1-10.png);background-size: 1300px 5px;background-repeat: no-repeat;background-position: center;}
|
||||
|
||||
.TabList{overflow:hidden;_height:100%;}
|
||||
.TabList{width: 900px;overflow: hidden;margin: auto;}
|
||||
.TabList .titleBar .on{border-width:1px 1px medium;border-color:#f08300;margin-top:-1px;cursor:pointer;}
|
||||
.titleBar{overflow:hidden;height:25px;line-height:25px;}
|
||||
.titleBar li{width: 60px;height: 24px;text-align: center;border-bottom: 1px solid #5F5F5F;font-size: 30px;padding-bottom: 20px;cursor: pointer;}
|
||||
|
||||
.wzhi{position:absolute;width: 1370px;display: flex;justify-content: center;}
|
||||
.wzhi{position:absolute;width: 900px;display: flex;justify-content: center;}
|
||||
.wzhi .on{color:#f08300;}
|
||||
.TabList .tab_content div{display:none;padding:30px 10px;overflow:hidden;_height:100%;}
|
||||
.TabList .tab_content div.on{display:block;}
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
/* 财力评级 */
|
||||
|
||||
body{position:relative;}
|
||||
.imgBoxIndex{width:100%;height:720px;position:relative;}
|
||||
.bannerIndex01{height:720px;background:url(../../../images/fangjia/v6/2-3-1.png);background-size: 100% 100%;}
|
||||
.imgBoxIndex > div{width: 100%;height:720px;position:absolute;}
|
||||
.imgBoxIndex{width:100%;height:768px;position:relative;}
|
||||
.bannerIndex01{height:768px;background:url(../../../images/fangjia/v6/2-3-1.png);background-size: 100% 100%;}
|
||||
.imgBoxIndex > div{width: 100%;height:768px;position:absolute;}
|
||||
.imgBoxIndex > div > div{margin-top:120px;text-align: center;}
|
||||
.imgBoxIndex > div > div p{margin:20px 0;}
|
||||
.imgBoxIndex > div > div p label{width: 912px;height: 73px;color: #ff5e04;font-size: 75px;font-weight: 400;text-align: center;}
|
||||
@@ -15,7 +15,8 @@ body{position:relative;}
|
||||
.imgBoxIndex > div > div > div a#a1{position: relative;width: 158px;height: 36px;margin-right: 40px;font-size: 20px;line-height: 36px;}
|
||||
.imgBoxIndex > div > div > div a#a2{position: relative;color: #fff;background-color: #F97624;width: 186px;height: 68px;font-size: 24px;line-height: 68px;}
|
||||
|
||||
.index_bg01{height: 500px;margin-top: 50px;}
|
||||
.index_bg01{height: 550px;margin-top: 70px;background: url(../../../images/fangjia/v6/index_bg_grey.png);background-size: 100% 100%;}
|
||||
.index_bg01 .herder{padding-top: 20px;}
|
||||
.index_bg02{height: 760px;}
|
||||
.index_bg03{background: url(../../../images/fangjia/v6/2-3-4.png); background-size: 100% 100%;margin-top: 80px;height: 854px;}
|
||||
.index_bg04{height: 600px;}
|
||||
@@ -32,7 +33,7 @@ body{position:relative;}
|
||||
.text_28_orange{color: #F37923;font-size: 28px;font-weight: bold;width: 84px;text-align: left;}
|
||||
.text_20_black{color: #353d47;font-size: 20px;font-weight: bold;line-height: 42px;}
|
||||
.text_20_white{color: #fff;font-size: 20px;font-weight: bold;line-height: 42px;}
|
||||
.text_50_orange{color: #F37923;font-size: 50px;}
|
||||
.text_30_orange{color: #F37923;font-size: 30px;}
|
||||
|
||||
.index-box01 label{color: #353d47;font-size: 28px;font-weight: 700;}
|
||||
.index-box01 span{color: #F97624;font-size: 28px;font-weight: 700;}
|
||||
@@ -46,7 +47,7 @@ body{position:relative;}
|
||||
|
||||
.icon04{background: url(../../../images/fangjia/v6/2-1-2.png); background-size: 40px 22px; background-repeat: no-repeat; width: 40px; background-position: center; height: 22px; margin-left: 18px; margin-right: 18px; display: inline-block;}
|
||||
|
||||
.index-box01{background: url(../../../images/fangjia/v6/small_box_bg_white.png); background-size: 100% 100%; background-repeat: no-repeat;background-position: center;width: 372px;height: 294px;}
|
||||
.index-box01{background: url(../../../images/fangjia/v6/small_box_bg_white.png); background-size: 100% 100%; background-repeat: no-repeat;background-position: center;width: 372px;height: 294px;margin-left: 20px;}
|
||||
.index-box01-1 {width: 330px;height: 30px;text-align: center;margin-top: 40px;}
|
||||
.index-box01-2{width: 330px;height: 100px;text-align: center;margin: 70px auto;line-height: 40px;letter-spacing: 1px;}
|
||||
|
||||
@@ -64,14 +65,15 @@ body{position:relative;}
|
||||
.index_bg3_bg01 > div label{font-size: 32px;color: #e6782d;font-weight: 400;line-height: 48px;letter-spacing: 1px;}
|
||||
.index_bg3_bg01 > div p{font-size: 20px;color: #353d47;font-weight: 400;line-height: 28px;letter-spacing: 1px;}
|
||||
|
||||
.index-box5{display:flex;background: url(../../../images/fangjia/v6/2-3-5.png);background-repeat: no-repeat; background-size: 800px 374px;background-position: center;width:1920px;height: 500px;}
|
||||
.index-box5-left{text-align: left;width: 960px;height:374px;}
|
||||
.index-box5-right{text-align: right;width: 960px;height:374px;}
|
||||
.index-box5{display:flex;background: url(../../../images/fangjia/v6/2-3-5.png);background-repeat: no-repeat;
|
||||
background-size: 700px 350px;background-position: center;width:1400px;height: 500px;margin: auto;}
|
||||
.index-box5-left{text-align: left;width: 600px;height:400px;}
|
||||
.index-box5-right{text-align: right;width: 600px;height:400px;}
|
||||
|
||||
.icon02{background:url(../../../images/fangjia/v6/2-3-7.png);background-size: 22px 22px;width: 22px;height: 22px;margin-top: 20px;margin-left: 20px;}
|
||||
.icon03{background:url(../../../images/fangjia/v6/2-3-8.png);background-size: 22px 22px;width: 22px;height: 22px;margin-top: 20px;margin-right: 20px;}
|
||||
.icon02{background: url(../../../images/fangjia/v6/2-3-7.png);background-size: 22px 22px;background-repeat: no-repeat;background-position: center;width: 70px;height: 50px;}
|
||||
.icon03{background:url(../../../images/fangjia/v6/2-3-8.png);background-size: 22px 22px;background-repeat: no-repeat;background-position: center;width: 70px;height: 50px;}
|
||||
|
||||
.up-div-left{display: flex;text-align: left;width: 490px;margin-left: 470px;margin-top: 130px;}
|
||||
.down-div-left{display: flex;text-align: left;width: 650px;margin-left: 310px;margin-top: 150px;}
|
||||
.up-div-right{display: flex;text-align: right;width: 260px;margin-left: 250px;margin-top: 130px;}
|
||||
.down-div-right{display: flex;text-align: right;width: 260px;margin-left: 250px;margin-top: 150px;}
|
||||
.up-div-left{display: flex;text-align: left;width: 500px;margin-left: 290px;margin-top: 140px;}
|
||||
.down-div-left{display: flex;text-align: left;width: 500px;margin-left: 200px;margin-top: 150px;}
|
||||
.up-div-right{display: flex;text-align: right;width: 300px;margin-left: 320px;margin-top: 140px;}
|
||||
.down-div-right{display: flex;text-align: right;width: 300px;margin-left: 320px;margin-top: 150px;}
|
||||
|
||||
@@ -7,29 +7,31 @@ body{position:relative;}
|
||||
|
||||
.imgBoxIndex01{height:720px;position:relative;}
|
||||
.bannerIndex01{height:720px;background:url(../../../images/fangjia/v6/4-1-1.png);background-size: 100% 100%;}
|
||||
.imgBoxIndex01 > div{height:720px;position:absolute;top:0;}
|
||||
.imgBoxIndex01 > div > div{width:auto;margin-top:120px;margin-left: 970px;text-align: left;}
|
||||
.imgBoxIndex01 > div > div p{width:760px;margin:20px 0;}
|
||||
.imgBoxIndex01 > div{width: 100%;height:720px;position:absolute;top:0;}
|
||||
.imgBoxIndex01 > div > div{width:760px;margin-top:120px;margin-left: 970px;text-align: left;}
|
||||
.imgBoxIndex01 > div > div p{width:760px;margin:20px 0;text-align: center;}
|
||||
.imgBoxIndex01 > div > div p label{color: #ff5e04;font-size: 75px;font-weight: 400;letter-spacing: 2px;}
|
||||
|
||||
.imgBoxIndex01 > div > div > div a#a1{position: absolute;right: 730px;width: 186px;height: 68px;}
|
||||
.imgBoxIndex01 > div > div > div a#a2{position: absolute;color: #fff;background-color: #F97624;right: 500px;width: 186px;height: 68px;}
|
||||
|
||||
.index_bg01{margin-top: 130px;height: 350px;}
|
||||
.index_bg01{margin-top: 100px;height: 300px;}
|
||||
|
||||
.index-box01{display: flex;width: 1400px;margin: auto;text-align: center;justify-content: center;align-items: center;margin-top: 50px;}
|
||||
.index-box01 p{display:flex;font-size: 27px;font-weight: 400;color: #393939;line-height: 15px;}
|
||||
.index-box01 label{display: inline-flex;width: 600px;height: 120px;font-size: 108px;font-weight: 700;color: #f87924;line-height: 120px;}
|
||||
.index-box01 .evalCount_div{width: 650px;height: 120px;}
|
||||
.index-box01 .evalCount_div i{display: inline-flex;align-items: end;width: 50px;font-size: 27px;font-weight: 400;color: #393939;padding-bottom: 23px;}
|
||||
|
||||
.index-box01{display: flex;height: 27px;text-align: center;justify-content: center;align-items: center;margin-top: 50px;}
|
||||
.index-box01 p{font-size: 27px;font-weight: 400;color: #393939;line-height: 15px;}
|
||||
.index-box01 label{font-size: 107px;font-weight: 700;color: #f87924;line-height: 107px;}
|
||||
|
||||
.icon_01{width: 25px;height: 80px;background: url(../../../images/fangjia/v6/4-1-5.png);background-size: 25px 25px;background-repeat: no-repeat;background-position: bottom;margin-left: 12px;}
|
||||
|
||||
.searchBox01{height: 550px;background: url(../../../images/fangjia/v6/4-1-2.png);background-size: 100% 350px;background-repeat: no-repeat;background-position: center;}
|
||||
.search01{width:1200px;height: 85px;margin: auto;padding-top: 200px;}
|
||||
.searchBox01{height: 450px;background: url(../../../images/fangjia/v6/4-1-2.png);background-size: 100% 350px;background-repeat: no-repeat;background-position: center;}
|
||||
.search01{width:1200px;height: 85px;margin: auto;padding-top: 150px;}
|
||||
.search_bg01{display: flex;justify-content:center;width:1200px;height:85px;margin:auto;background: url(../../../images/fangjia/v6/4-1-8.png);background-size: 1154px 85px;background-repeat: no-repeat;background-position: center;}
|
||||
|
||||
.selectedCity {width: 214px;height: 40px;display: flex;}
|
||||
.selectedCity input{width: 100px;height: 40px;font-family: "Microsoft YaHei","微软雅黑",arial\0/;line-height: 40px;text-align: center;cursor: pointer;font-size: 20px;font-weight: 400;color: #393939;}
|
||||
.icon02{width: 20px;height: 85px;margin: auto;background: url(../../../images/fangjia/v6/4-1-4.png);background-size: 20px 10px;background-repeat: no-repeat;background-position: left;}
|
||||
.selectedCity {width: 200px;height: 85px;display: flex;}
|
||||
.selectedCity input{width: 150px;height: 85px;font-family: "Microsoft YaHei","微软雅黑",arial\0/;line-height: 40px;text-align: center;cursor: pointer;font-size: 20px;font-weight: 400;color: #393939;outline: none;border: 0;}
|
||||
.icon02{width: 20px;height: 85px;background: url(../../../images/fangjia/v6/4-1-4.png);background-size: 20px 10px;background-repeat: no-repeat;background-position: left;}
|
||||
|
||||
input::-webkit-input-placeholder {
|
||||
/* 修改字体颜色 */
|
||||
|
||||
Reference in New Issue
Block a user