| | |
| | | @IBOutlet weak var label_distance: UILabel! |
| | | @IBOutlet weak var btn_exchange: QMUIButton! |
| | | |
| | | |
| | | private var clouse:((Bool)->Void)! |
| | | private var storeType:StoreType! |
| | | |
| | | enum StoreType{ |
| | | case normal |
| | | case worldCup |
| | | } |
| | | |
| | | override func awakeFromNib() { |
| | | super.awakeFromNib() |
| | |
| | | } |
| | | } |
| | | |
| | | static func show(_ activityModel:ActivityDetailStoreModel,clouse:@escaping (Bool)->Void){ |
| | | static func show(_ activityModel:ActivityDetailStoreModel,type:StoresInfoView.StoreType = .normal,clouse:@escaping (Bool)->Void){ |
| | | let storesView = StoresInfoView.jq_loadNibView() |
| | | storesView.frame = sceneDelegate?.window?.frame ?? .zero |
| | | storesView.label_topTitle.text = "请确认预约门店" |
| | | |
| | | if type == .normal{ |
| | | storesView.label_topTitle.text = "请确认预约门店" |
| | | storesView.btn_exchange.setTitle("更换门店", for: .normal) |
| | | }else{ |
| | | storesView.label_topTitle.text = "请确认参与赛点" |
| | | storesView.btn_exchange.setTitle("更换赛点", for: .normal) |
| | | } |
| | | |
| | | |
| | | storesView.img_logo.sd_setImage(with: URL(string: activityModel.storeCoverDrawing)) |
| | | storesView.label_title.text = activityModel.name |
| | | storesView.label_address.text = activityModel.address |