无故事王国
2023-10-13 941347efd4ed52a048aaf26b909508dd0c49d7ae
WanPai/Root/Home/VC/HomeVC.swift
@@ -73,7 +73,7 @@
        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(){
@@ -89,26 +89,6 @@
               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
@@ -267,8 +247,9 @@
               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()