|
|
@@ -12,9 +12,17 @@ var bootstrap = function ($, learun) { |
|
|
|
function (data) { |
|
|
|
// 数据处理 |
|
|
|
var html = ''; |
|
|
|
var allList = data.weekList[0].list; |
|
|
|
var allList = data.weekList?data.weekList[0].list:[]; |
|
|
|
var weekLists = []; |
|
|
|
$.each(allList) |
|
|
|
for (var i = 1; i < 11; i++) { |
|
|
|
(function (arg) { |
|
|
|
let obj = { |
|
|
|
time: i, |
|
|
|
list: allList.filter(e => e.lessonTime == i), |
|
|
|
} |
|
|
|
weekLists.push(obj) |
|
|
|
})(i); //调用时参数 |
|
|
|
} |
|
|
|
for (var i = 1; i < 11; i++) { |
|
|
|
(function (arg) { |
|
|
|
var args = arg - 1; |
|
|
|