无故事王国
2024-03-13 919d1d6bb0ec4043ec25b58a492618239ca37529
WanPai/Root/Search/VC/SearchVC.swift
@@ -18,6 +18,7 @@
            @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]()
@@ -68,10 +69,17 @@
                                                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()
@@ -82,6 +90,12 @@
                        }.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)
@@ -148,7 +162,7 @@
                                                let vc = ActivitySignupListVC()
                                                push(vc: vc)
                                                case "我的运动营":
                                                self.tabBarController?.selectedIndex = 1
                                                push(vc: SignUpCourseVC())
                                                case "人员管理":
                                                let vc = StudentsManagerListVC()
                                                push(vc: vc)