| | |
| | | import QMUIKit |
| | | |
| | | class StoresInfoView: UIView,JQNibView{ |
| | | @IBOutlet weak var view_container: UIView! |
| | | @IBOutlet weak var label_topTitle: UILabel! |
| | | @IBOutlet weak var view_container: UIView! |
| | | @IBOutlet weak var img_logo: UIImageView! |
| | | @IBOutlet weak var label_title: UILabel! |
| | | @IBOutlet weak var label_address: UILabel! |
| | |
| | | static func show(_ detailModel:CourseDetailModel,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: detailModel.storeCoverDrawing)) |
| | | storesView.label_title.text = detailModel.name |
| | | storesView.label_address.text = detailModel.storeName |
| | | storesView.label_title.text = detailModel.storeName |
| | | storesView.label_address.text = detailModel.storeAddress |
| | | storesView.label_distance.text = String(format: "距你%.2lfkm", detailModel.distance) |
| | | storesView.clouse = clouse |
| | | sceneDelegate?.window?.addSubview(storesView) |
| | |
| | | static func show(_ activityModel:ActivityDetailModel,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: activityModel.storeCoverDrawing)) |
| | | storesView.label_title.text = activityModel.name |
| | | storesView.label_address.text = activityModel.storeName |
| | | storesView.label_title.text = activityModel.storeName |
| | | storesView.label_address.text = activityModel.storeAddress |
| | | storesView.label_distance.text = String(format: "距你%.2lfkm", activityModel.distance) |
| | | storesView.clouse = clouse |
| | | sceneDelegate?.window?.addSubview(storesView) |
| | |
| | | storesView.frame = sceneDelegate?.window?.frame ?? .zero |
| | | |
| | | storesView.img_logo.sd_setImage(with: URL(string: siteDetailModel.storeCoverDrawing)) |
| | | storesView.label_title.text = siteDetailModel.siteTypeName |
| | | storesView.label_address.text = siteDetailModel.storeName |
| | | storesView.label_title.text = siteDetailModel.storeName |
| | | storesView.label_address.text = siteDetailModel.storeAddress |
| | | storesView.label_distance.text = String(format: "距你%.2lfkm", siteDetailModel.distance) |
| | | storesView.clouse = clouse |
| | | sceneDelegate?.window?.addSubview(storesView) |