| | |
| | | import UIKit |
| | | import WebKit |
| | | import JQTools |
| | | import QMUIKit |
| | | |
| | | class WelfareFreeVC: BaseVC { |
| | | |
| | | var storeWalfareModel:StoreWalfareModel? |
| | | @IBOutlet weak var webView: WKWebView! |
| | | @IBOutlet weak var btn_call: UIButton! |
| | | @IBOutlet weak var btn_call: QMUIButton! |
| | | |
| | | init(_ model:StoreWalfareModel) { |
| | | super.init(nibName: nil, bundle: nil) |
| | |
| | | } |
| | | } |
| | | |
| | | override func setUI() { |
| | | btn_call.imagePosition = .left |
| | | btn_call.spacingBetweenImageAndTitle = 13 |
| | | } |
| | | |
| | | @IBAction func callPhoneAction(_ sender: UIButton) { |
| | | if let phone = storeWalfareModel?.phone{ |
| | | UIApplication.shared.open(URL(string: "tel://\(phone)")!, options: [:], completionHandler: nil) |