正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
@@ -218,19 +218,19 @@ | @@ -218,19 +218,19 @@ | ||
218 | var list = $('.time_list'); | 218 | var list = $('.time_list'); |
219 | if (day == '' + year + check_num(mon) + check_num(days)) { | 219 | if (day == '' + year + check_num(mon) + check_num(days)) { |
220 | var time_list = []; | 220 | var time_list = []; |
221 | - var list = JSON.parse(res.data); | 221 | + var lists = JSON.parse(res.data); |
222 | for (var i = 0; i < list.find('b').length; i++) { | 222 | for (var i = 0; i < list.find('b').length; i++) { |
223 | time_list.push(list.find('b')[i].innerHTML.split('-')); | 223 | time_list.push(list.find('b')[i].innerHTML.split('-')); |
224 | } | 224 | } |
225 | for (var j = 0; j < time_list.length; j++) { | 225 | for (var j = 0; j < time_list.length; j++) { |
226 | if (parseInt(time_list[j][0]) < hour) { | 226 | if (parseInt(time_list[j][0]) < hour) { |
227 | - list[j] = "no"; | 227 | + lists[j] = "no"; |
228 | } | 228 | } |
229 | list[j].setAttribute('data-index', j); | 229 | list[j].setAttribute('data-index', j); |
230 | } | 230 | } |
231 | var tiem_list = $('.time_list'); | 231 | var tiem_list = $('.time_list'); |
232 | - for (var i = 0; i < list.length; i++) { | ||
233 | - if (list[i] == "yes") { | 232 | + for (var i = 0; i < lists.length; i++) { |
233 | + if (lists[i] == "yes") { | ||
234 | tiem_list[i].setAttribute('class', 'time_list time_bor'); | 234 | tiem_list[i].setAttribute('class', 'time_list time_bor'); |
235 | } else { | 235 | } else { |
236 | tiem_list[i].setAttribute('class', 'time_list'); | 236 | tiem_list[i].setAttribute('class', 'time_list'); |
@@ -242,10 +242,10 @@ | @@ -242,10 +242,10 @@ | ||
242 | list[i].setAttribute('data-index', i); | 242 | list[i].setAttribute('data-index', i); |
243 | list[i].setAttribute('class', 'time_list time_bor'); | 243 | list[i].setAttribute('class', 'time_list time_bor'); |
244 | } | 244 | } |
245 | - var list = JSON.parse(res.data); | 245 | + var listss = JSON.parse(res.data); |
246 | var tiem_list = $('.time_list'); | 246 | var tiem_list = $('.time_list'); |
247 | - for (var i = 0; i < list.length; i++) { | ||
248 | - if (list[i] == "yes") { | 247 | + for (var i = 0; i < listss.length; i++) { |
248 | + if (listss[i] == "yes") { | ||
249 | tiem_list[i].setAttribute('class', 'time_list time_bor'); | 249 | tiem_list[i].setAttribute('class', 'time_list time_bor'); |
250 | } else { | 250 | } else { |
251 | tiem_list[i].setAttribute('class', 'time_list'); | 251 | tiem_list[i].setAttribute('class', 'time_list'); |
-
请 注册 或 登录 后发表评论