Authored by 王水玲

星潮教室

... ... @@ -19,7 +19,7 @@ function intimacyData(data) {
var $ul = $('.fan-charts-cont'),
$myIntimacy = $('.my-intimacy'),
$increased = $('.increased'),
signDay = data.signDay,
signDay = data.signDay.split(','),
html = '',
style = '',
nowDate = new Date(),
... ... @@ -27,12 +27,14 @@ function intimacyData(data) {
nowMonth = nowDate.getMonth(),
nowDaysNub = calendar.calculateMonthDays(nowMonth, nowYear);
var i;
var i, j;
if (signDay.length > 0) {
for (i = 0; i < nowDaysNub; i++) {
if (signDay.indexOf(i + 1) > -1) {
$('.now-days').eq(i).addClass('signItem');
for (j = 0; j< signDay.length; j++) {
if (i === parseInt(signDay[j])) {
$('.now-days').eq(i - 1).addClass('signItem');
}
}
}
}
... ...