123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- $(function() {
- function getGradeName (gradeid) {
- let gradename = "";
- if (gradeid == 1) {
- gradename = "一年级";
- } else if (gradeid == 2) {
- gradename = "二年级";
- } else if (gradeid == 3) {
- gradename = "三年级";
- } else if (gradeid == 4) {
- gradename = "四年级";
- } else if (gradeid == 5) {
- gradename = "五年级";
- } else if (gradeid == 6) {
- gradename = "六年级";
- } else if (gradeid == 7) {
- gradename = "七年级";
- } else if (gradeid == 8) {
- gradename = "八年级";
- } else if (gradeid == 9) {
- gradename = "九年级";
- } else if (gradeid == 10) {
- gradename = "高一";
- } else if (gradeid == 11) {
- gradename = "高二";
- } else if (gradeid == 12) {
- gradename = "高三";
- }
- return gradename;
- };
- // 考试类型 10期末20期中30月考40周考
- var examTypeInfo = [
- {
- label: "期末",
- value: 10
- },
- {
- label: "期中",
- value: 20
- },
- {
- label: "月考",
- value: 30
- },
- {
- label: "周考",
- value: 40
- }
- ];
- function getExamTypeName (type) {
- let info = examTypeInfo.filter((v) => v.value === type);
- if (info.length > 0) {
- return info[0].label;
- }
- return "";
- };
- // outerHeight(true) 高度为 height+margin+padding+border
- var parameter = $(".preface_html_root").data("page-params");
- console.log("preface:parameter", JSON.parse(parameter));
- $(".gradename").text(4);
- $(".examtype").text(4);
- $(".classnum").text(4);
- $(".subjectnum").text(4);
- $(".allscore").text(4);
-
- });
|