| | |
| | | collectionView.dataSource = self |
| | | collectionView.backgroundColor = .white |
| | | collectionView.register(UINib(nibName: "HomeCCell", bundle: nil), forCellWithReuseIdentifier: "_HomeCCell") |
| | | collectionView.jq_setEmptyView("无数据", image: UIImage(named: "icon_LOGO")?.jq_imageWithTintColor(color: .gray), foregroundColor: .gray, clouse: nil) |
| | | // collectionView.jq_setEmptyView("无数据", image: UIImage(named: "icon_LOGO")?.jq_imageWithTintColor(color: .gray), foregroundColor: .gray, clouse: nil) |
| | | } |
| | | |
| | | private func getStoreInfo(){ |
| | |
| | | UserDefaults.standard.set(m.toJSONString(), forKey: "CurrentStore") |
| | | UserDefaults.standard.synchronize() |
| | | self?.getStoreItemList() |
| | | |
| | | |
| | | // if let storeStr = UserDefaults.standard.object(forKey: "CurrentStore") as? String{ |
| | | // if let deserModel = HomeStoreModel.deserialize(from: storeStr){ |
| | | // self?.label_store.text = deserModel.name.isEmpty ? "门店获取失败":deserModel.name |
| | | // self?.storeModel = deserModel |
| | | // self?.storeId = deserModel.storeId |
| | | // if deserModel.isVip == 0{text.append("\n加入我们 成为会员")} |
| | | // self?.label_vipInfo.text = text |
| | | // } |
| | | // }else{ |
| | | // self?.label_store.text = m.name.isEmpty ? "门店获取失败":m.name |
| | | // UserDefaults.standard.set(m.toJSONString(), forKey: "CurrentStore") |
| | | // UserDefaults.standard.synchronize() |
| | | // self?.storeModel = m |
| | | // self?.storeId = m.storeId |
| | | // if m.isVip == 0{text.append("\n加入我们 成为会员")} |
| | | // self?.label_vipInfo.text = text |
| | | // } |
| | | // self?.getStoreItemList() |
| | | } |
| | | } |
| | | }) { [weak self] error in |
| | |
| | | vc.title = "线上课得积分" |
| | | push(vc: vc) |
| | | case .ticket: |
| | | let vc = WelfareWeeklyListVC() |
| | | let vc = CoinStoreCenterVC(selectStore: simpleModel) |
| | | push(vc: vc) |
| | | |
| | | case .wisdomCourt: |
| | | guard storeId != 0 else {alert(msg: "请先选择门店");return} |
| | | let vc = GamesVC() |