From 154b9e376a354aff9509d25cacccdae8cd6c35e8 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Mon, 16 Apr 2018 17:28:05 +0800 Subject: [PATCH] aa --- fangija-zsyf/yfindex.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index a56b511..b5103c9 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -1571,7 +1571,7 @@ $("#region").click(function(e){ }) })*/ -$("body").delegate(".icon-light-red", "click", function () { +$("body").delegate(".vote01 .icon-light-grey", "click", function () { var id = $(this).attr("data-val"); var voteFavorCount = parseInt($("#voteFavorCount_"+id).text().split("  ")[0].replace("票",""))+1; var voteNoFavorCount = parseInt($("#voteNoFavorCount_"+id).text().split("  ")[0].replace("票","")); @@ -1584,7 +1584,7 @@ $("body").delegate(".icon-light-red", "click", function () { doVote(id,0); }); -$("body").delegate(".icon-light-grey", "click", function () { +$("body").delegate(".vote02 .icon-light-grey", "click", function () { var id = $(this).attr("data-val"); var voteFavorCount = parseInt($("#voteFavorCount_"+id).text().split("  ")[0].replace("票","")); var voteNoFavorCount = parseInt($("#voteNoFavorCount_"+id).text().split("  ")[0].replace("票",""))+1; @@ -1846,7 +1846,7 @@ function addItems(number, lastIndex) { html += '
'+dataObj[i].title+ '
'+ - ''+dataObj[i].voteFavorText+''+ + ''+dataObj[i].voteFavorText+''+ '
'+ '
'+dataObj[i].voteNoFavorText+''+ '
V.S
'; @@ -2630,11 +2630,11 @@ function openDistWindow(city, region, name){ });*/ /* 投票 */ -$(".vote01 .icon-light-grey").on("click", function(){ +$("body").delegate(".vote01 .icon-light-grey", "click", function () { $(".vote01 .icon-light-grey").addClass("icon-light-red"); $(".vote02 .icon-light-grey").removeClass("icon-light-blue"); }); -$(".vote02 .icon-light-grey").on("click", function(){ +$("body").delegate(".vote02 .icon-light-grey", "click", function () { $(".vote01 .icon-light-grey").removeClass("icon-light-red"); $(".vote02 .icon-light-grey").addClass("icon-light-blue"); });