页面调整
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user