| | |
| | | } |
| | | } |
| | | |
| | | static func show(model:ActivityDetailStoreModel,clouse:@escaping (Bool)->Void){ |
| | | let storesView = StoresInfoView.jq_loadNibView() |
| | | storesView.frame = sceneDelegate?.window?.frame ?? .zero |
| | | storesView.label_topTitle.text = "请确认参与赛点" |
| | | storesView.img_logo.sd_setImage(with: URL(string: model.storeCoverDrawing)) |
| | | storesView.label_title.text = model.name |
| | | storesView.label_address.text = model.address |
| | | storesView.label_distance.text = String(format: "距你%.2lfkm", model.distance) |
| | | storesView.clouse = clouse |
| | | sceneDelegate?.window?.addSubview(storesView) |
| | | |
| | | UIView.animate(withDuration: 0.4) { |
| | | storesView.view_container.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) |
| | | storesView.alpha = 1 |
| | | } |
| | | } |
| | | |
| | | |
| | | @IBAction func cancelAction(_ sender: UIButton) { |
| | | close() |