HomeApe.js 1.2 KB
//*
// 首页模块
// */

import Loger from "../Loger";
import Ape from "./Ape";
import xdysdk from "libs/xdysdk";
import DrawTool from "./DrawTool";
import LaserPen from "./LaserPen";
import $ from "jquery";
import ClassDataProxy from "proxy/ClassDataProxy";

let loger = Loger.getLoger('PC-HomeApe');
class HomeApe extends Ape {
    constructor() {
        super();
        this.classDateList = {};//课堂的所有数据
        this.addEvent();
        this.init();
    }

    init() {
        //判断列表在右侧时取消边距
        this._judgeListPlace();

        $('#defaultBtn').on('click',this._lanclassBtnHandler.bind(this));
    }

    addEvent() {

    }
    _judgeListPlace(){
        let i;
        let curriculumList = document.getElementsByClassName('curriculumList');
        for(i=0;i<curriculumList.length;i++){
            if((i%4) == 3){
                $(curriculumList[i]).addClass('classifyListR');
            }
        }
    }
    _lanclassBtnHandler(evt){
        $(evt.target).addClass('active').siblings().removeClass('active');
        $('#slideshow').show();
        $('#defaultBox').show();
        $('#classifyListBox').hide();
    }

}
export default new HomeApe;