图表图片

This commit is contained in:
2018-05-18 18:06:14 +08:00
parent a0a64f9af6
commit 30d53b1f3f
6 changed files with 38 additions and 8 deletions
+29 -2
View File
@@ -117,7 +117,8 @@ function clickLineChart(type){
}
/* 图表切换 */
function lineChart() {
/*function lineChart() {
mode = "kLine"
$(".icon-chart01a").hide();
$(".icon-chart01").show();
@@ -138,7 +139,33 @@ function kLineChart() {
$("#chart01a").show();
$("#chart01").hide();
loadLineData(city, region, name, type);
};
};*/
$("body").delegate(".icon-chart01a-no", "click", function () {
$(this).addClass("icon-chart01a");
$(this).removeClass("icon-chart01a-no");
$(this).parent().find(".icon-chart01").addClass("icon-chart01-no")
$(this).parent().find("i").removeClass("icon-chart01")
mode = "line"
var type = $("#trendDiv1 a.active").attr("t-v");
$("#chart01a").show();
$("#chart01").hide();
loadLineData(city, region, name, type);
})
$("body").delegate(".icon-chart01-no", "click", function () {
$(this).addClass("icon-chart01");
$(this).removeClass("icon-chart01-no");
$(this).parent().find(".icon-chart01a").addClass("icon-chart01a-no")
$(this).parent().find("i").removeClass("icon-chart01a")
mode = "kLine"
var type = $("#trendDiv1 a.active").attr("t-v");
$("#chart01a").hide();
$("#chart01").show();
loadKLineData(city, region, name, type);
})
function showLoadRentTrends(type) {