| | |
| | | private func getStoreInfo(){ |
| | | Services.homeInfo().subscribe(onNext: {[weak self] data in |
| | | if let m = data.data{ |
| | | self?.storeModel = m |
| | | var text = "欢迎来到 快乐运动俱乐部" |
| | | if m.storeId != 0{ |
| | | self?.label_store.text = m.name.isEmpty ? "门店获取失败":m.name |
| | |
| | | |
| | | |
| | | @IBAction func chooseStoresAction(_ sender: TapBtn) { |
| | | StoresChooseView.show { [weak self] storeId,storeName in |
| | | StoresChooseView.show(defaultM: storeModel) { [weak self] province,city,store in |
| | | guard let weakSelf = self else { return } |
| | | weakSelf.storeId = storeId |
| | | weakSelf.label_store.text = storeName |
| | | weakSelf.storeModel = HomeStoreModel(isVip: 0, storeId: storeId, name: storeName, lon: 0, lat: 0) |
| | | weakSelf.storeId = store.id |
| | | weakSelf.label_store.text = store.name |
| | | weakSelf.storeModel = HomeStoreModel(isVip: weakSelf.storeModel!.isVip, storeId: store.id, name: store.name, lon: 0, lat: 0, province: province.name, provinceCode: province.code, city: city.name, cityCode: city.code) |
| | | weakSelf.items.removeAll() |
| | | weakSelf.getStoreItemList() |
| | | |