| | |
| | | return pageMenu |
| | | }() |
| | | |
| | | private lazy var leftBtn:QMUIButton = { |
| | | let btn = QMUIButton(type: .custom) |
| | | btn.setTitle("添加学员", for: .normal) |
| | | btn.titleLabel?.font = UIFont.systemFont(ofSize: 16) |
| | | btn.setTitleColor(.white, for: .normal) |
| | | btn.setImage(UIImage(named: "btn_add_shadow"), for: .normal) |
| | | btn.imagePosition = .left |
| | | btn.spacingBetweenImageAndTitle = 0 |
| | | btn.imageEdgeInsets = UIEdgeInsets(top: 2, left: 0, bottom: 0, right: 0) |
| | | btn.addTarget(self, action: #selector(addStudentAction), for: .touchUpInside) |
| | | return btn |
| | | }() |
| | | // private lazy var leftBtn:QMUIButton = { |
| | | // let btn = QMUIButton(type: .custom) |
| | | // btn.setTitle("添加学员", for: .normal) |
| | | // btn.titleLabel?.font = UIFont.systemFont(ofSize: 16) |
| | | // btn.setTitleColor(.white, for: .normal) |
| | | // btn.setImage(UIImage(named: "btn_add_shadow"), for: .normal) |
| | | // btn.imagePosition = .left |
| | | // btn.spacingBetweenImageAndTitle = 0 |
| | | // btn.imageEdgeInsets = UIEdgeInsets(top: 2, left: 0, bottom: 0, right: 0) |
| | | // btn.addTarget(self, action: #selector(addStudentAction), for: .touchUpInside) |
| | | // return btn |
| | | // }() |
| | | |
| | | lazy var pageViewController:FFPageViewController = { |
| | | let pageVC = FFPageViewController() |
| | |
| | | |
| | | override func setUI() { |
| | | cons_menuHeight.constant = 0 |
| | | scrollView.contentInset = UIEdgeInsets( top: JQ_ScreenW * 0.6794 - JQ_NavBarHeight, left: 0, bottom: 0, right: 0) |
| | | scrollView.contentInset = UIEdgeInsets( top: 265 - JQ_NavBarHeight, left: 0, bottom: 0, right: 0) |
| | | scrollView.delegate = self |
| | | scrollView.bringSubviewToFront(img_header) |
| | | |
| | |
| | | exerciseCollectionView.tag = 1001 |
| | | exerciseCollectionView.register(UINib(nibName: "StudentVideoCCell", bundle: nil), forCellWithReuseIdentifier: "_StudentVideoCCell") |
| | | |
| | | navigationItem.leftBarButtonItem = UIBarButtonItem(customView: leftBtn) |
| | | // navigationItem.leftBarButtonItem = UIBarButtonItem(customView: leftBtn) |
| | | |
| | | } |
| | | |
| | |
| | | CourseUnAssignView.show(startClouseHomeModel?.courseList ?? [], num: unDispatchNum ?? 0) |
| | | } |
| | | |
| | | @objc func addStudentAction() { |
| | | let vc = AddStudentVC(type: .course) |
| | | push(vc: vc) |
| | | } |
| | | @IBAction func addStudentAction(_ sender: QMUIButton) { |
| | | let vc = AddStudentVC(type: .course) |
| | | push(vc: vc) |
| | | } |
| | | |
| | | @IBAction func exchangeAction(_ sender: UIButton) { |
| | | let vc = StudentExchangeVC() |
| | |
| | | return .darkContent |
| | | } |
| | | |
| | | func scrollViewDidScroll(_ scrollView: UIScrollView) { |
| | | let offsetX = min(1,max(0,-(scrollView.contentOffset.y / 177.0))) |
| | | leftBtn.alpha = offsetX |
| | | } |
| | | // func scrollViewDidScroll(_ scrollView: UIScrollView) { |
| | | // let offsetX = min(1,max(0,-(scrollView.contentOffset.y / 177.0))) |
| | | // leftBtn.alpha = offsetX |
| | | // } |
| | | |
| | | @objc func localDetailAction(btn:UIButton){ |
| | | let index = btn.tag - 10 |