| | |
| | | @IBOutlet weak var label_sign: UILabel! |
| | | @IBOutlet weak var tap_sign: TapBtn! |
| | | |
| | | @IBOutlet weak var view_task1: UIView! |
| | | @IBOutlet weak var label_task1: UILabel! |
| | | @IBOutlet weak var view_task1_cricle: UIView! |
| | | |
| | | @IBOutlet weak var view_task2: UIView! |
| | | @IBOutlet weak var label_task2: UILabel! |
| | | @IBOutlet weak var view_task2_cricle: UIView! |
| | | |
| | | |
| | | private var clouse:((TreeTeskListSwipe)->Void)? |
| | | private var signClouse:(()->Void)? |
| | | private var disposeBag = DisposeBag() |
| | |
| | | view_sign.backgroundColor = .gray.withAlphaComponent(0.2) |
| | | label_sign.textColor = .white |
| | | view_sign_cricle.jq_borderColor = .gray.withAlphaComponent(0.2) |
| | | }else{ |
| | | tap_sign.isUserInteractionEnabled = true |
| | | label_sign.text = "打卡签到" |
| | | view_sign.backgroundColor = .white |
| | | label_sign.textColor = UIColor(hexString: "#4E4E4E") |
| | | } |
| | | // else{ |
| | | // tap_sign.isUserInteractionEnabled = true |
| | | // label_sign.text = "打卡签到" |
| | | // view_sign.backgroundColor = .white |
| | | // label_sign.textColor = UIColor(hexString: "#4E4E4E") |
| | | // } |
| | | |
| | | if model.taskOne == .yes{ |
| | | view_task1.backgroundColor = .gray.withAlphaComponent(0.2) |
| | | label_task1.textColor = .white |
| | | view_task1_cricle.jq_borderColor = .gray.withAlphaComponent(0.2) |
| | | } |
| | | |
| | | if model.taskTwo == .yes{ |
| | | view_task2.backgroundColor = .gray.withAlphaComponent(0.2) |
| | | label_task2.textColor = .white |
| | | view_task2_cricle.jq_borderColor = .gray.withAlphaComponent(0.2) |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | |
| | | |
| | | } |
| | | |
| | | @IBAction func toMuse(_ sender: TapBtn) { |
| | | @IBAction func toMuse1(_ sender: TapBtn) { |
| | | guard treeInfoModel?.taskOne == .no else {return} |
| | | JQ_currentViewController().tabBarController?.selectedIndex = 0 |
| | | } |
| | | |
| | | @IBAction func toMuse2(_ sender: TapBtn) { |
| | | guard treeInfoModel?.taskTwo == .no else {return} |
| | | JQ_currentViewController().tabBarController?.selectedIndex = 0 |
| | | } |
| | | |
| | | } |