import common from '../../utils/util'; import main from '../../utils/main'; const app = getApp(); Page({ data: { List: [], IsSelectGrade: false, TestSelectGrade:0, }, onLoad: function (options) { var that = this; that.setData({ Containnerheight: main.getWindowHeight(), }); main.getHanzi(function (arr) { if (!arr) { wx.removeStorageSync("HanziUpdateTime"); wx.removeStorageSync("HanziAll"); main.getHanzi(function(arr){}); } }); }, onShow:function(){ this.getTestReportList(); }, showSelectGrade: function () { var that = this; that.setData({ IsSelectGrade: true, }); }, closeSelectGrade: function () { var that = this; that.setData({ IsSelectGrade: false, }); }, goto: function (e) { var url = e.currentTarget.dataset.url; wx.navigateTo({ url: url, }); }, getTestReportList: function () { var that = this; that.setData({ GradeArr: [ { Name: "一年级", Name2: "语文一年级", Select: "Select", List: [ { ID: 1, Type: "Shizi", Name: "语文识字", Name2: "上学期", Finish: 0, Total: 12, Image: "../images/examine_subject_a001.png" }, { ID: 2, Type: "Shizi", Name: "语文识字", Name2: "下学期", Finish: 0, Total: 14, Image: "../images/examine_subject_a002.png" }, ] }, { Name: "二年级", Name2: "语文二年级", Select: "", List: [ { ID: 3, Type: "Shizi", Name: "语文识字", Name2: "上学期", Finish: 0, Total: 16, Image: "../images/examine_subject_a003.png" }, { ID: 4, Type: "Shizi", Name: "语文识字", Name2: "下学期", Finish: 0, Total: 16, Image: "../images/examine_subject_a004.png" }, ] }, { Name: "三年级", Name2: "语文三年级", Select: "", List: [ { ID: 5, Type: "Shizi", Name: "语文识字", Name2: "上学期", Finish: 0, Total: 16, Image: "../images/examine_subject_a005.png" }, { ID: 6, Type: "Shizi", Name: "语文识字", Name2: "下学期", Finish: 0, Total: 16, Image: "../images/examine_subject_a006.png" }, ] }, { Name: "四年级", Name2: "语文四年级", Select: "", List: [ { ID: 7, Type: "Shizi", Name: "语文识字", Name2: "上学期", Finish: 0, Total: 16, Image: "../images/examine_subject_a007.png" }, ] }, // { // Name: "五年级", // Name2: "语文五年级", // Select: "", // List: [ // { // ID: 9, // Type: "Shizi", // Name: "语文识字", // Name2: "上学期", // Finish: 0, // Total: 16, // Image: "../images/examine_subject_a005.png" // }, // ] // }, // { // Name: "六年级", // Name2: "语文六年级", // Select: "", // List: [ // { // ID: 11, // Type: "Shizi", // Name: "语文识字", // Name2: "上学期", // Finish: 0, // Total: 16, // Image: "../images/examine_subject_a005.png" // }, // ] // }, // { // Name: "英语常用词", // Name2: "英语常用词", // Select: "", // List: [ // { // ID: 13, // Type: "Word", // Name: "常用词1", // Name2: "词汇1~220", // Finish: 0, // Total: 22, // Image: "../images/examine_subject_b001.png" // }, // { // ID: 14, // Type: "Word", // Name: "常用词2", // Name2: "词汇221~500", // Finish: 0, // Total: 28, // Image: "../images/examine_subject_b002.png" // }, // { // ID: 15, // Type: "Word", // Name: "常用词3", // Name2: "词汇500~1000", // Finish: 0, // Total: 25, // Image: "../images/examine_subject_b003.png" // }, // ] // }, ], }) var userid = app.globalData.userInfo.UserID; main.getData('GetTestReportList?UserID=' + userid, function (data) { if (data) { var dataTemp=[]; for (var i = 0; i < data.length; i++) { for(var j=0;j