| | |
| | | @IBOutlet weak var img_vipMedal: UIImageView! |
| | | @IBOutlet weak var label_wpCoin: UILabel! |
| | | @IBOutlet weak var label_coin: UILabel! |
| | | @IBOutlet weak var btn_becomeVIP: UIButton! |
| | | var benefitHomeModel:BenefitHomeModel? |
| | | private var models = [StartClouseExploreModel]() |
| | | |
| | |
| | | self?.benefitHomeModel = model |
| | | self?.user_avarImg.sd_setImage(with: URL(string: model.userHeadImg)) |
| | | self?.label_userName.text = model.userName.isEmpty ? "未命名":model.userName |
| | | self?.label_vip.text = model.isMember |
| | | |
| | | if model.isMember != "年度会员"{ |
| | | self?.label_vip.text = "成为会员" |
| | | }else{ |
| | | self?.label_vip.text = model.isMember |
| | | } |
| | | |
| | | self?.label_wpCoin.text = model.wpCoin.currencyNotPrefix() |
| | | self?.label_coin.text = "\(model.userIntegral)" |
| | | |
| | | self?.img_vipMedal.isHidden = model.isMember != "年度会员" |
| | | self?.btn_becomeVIP.isEnabled = model.isMember != "年度会员" |
| | | if model.referee == 1{ |
| | | self?.items.append("裁判入口") |
| | | self?.func_collectionView.reloadData() |
| | |
| | | }.disposed(by: disposeBag) |
| | | } |
| | | |
| | | |
| | | @IBAction func becomeVIPAction(_ sender: Any) { |
| | | let vc = JoinMemberIntroduceVC() |
| | | push(vc: vc) |
| | | } |
| | | |
| | | @IBAction func customerAction(_ sender: Any) { |
| | | let vc = CustomerListVC() |
| | | push(vc: vc) |
| | |
| | | let vc = ActivitySignupListVC() |
| | | push(vc: vc) |
| | | case "我的运动营": |
| | | self.tabBarController?.selectedIndex = 1 |
| | | push(vc: SignUpCourseVC()) |
| | | case "人员管理": |
| | | let vc = StudentsManagerListVC() |
| | | push(vc: vc) |