| | |
| | | } |
| | | |
| | | @IBAction func timeAction(_ sender: UIButton) { |
| | | CountdownChooseListView.show {[weak self] times in |
| | | CountdownChooseListView.show {[weak self] status in |
| | | guard let weakSelf = self else { return } |
| | | weakSelf.audioPlayer.setTimer(times: times * 60) |
| | | |
| | | switch status { |
| | | case .close: |
| | | weakSelf.audioPlayer.stopTimer() |
| | | case .choose(let times): |
| | | weakSelf.audioPlayer.setTimer(times: times * 60) |
| | | } |
| | | |
| | | |
| | | |
| | | // if times <= 0{ |
| | | // weakSelf.timer = nil |
| | |
| | | } |
| | | |
| | | @objc func shareAction(){ |
| | | ShareView.show(URL(string:"xqzhihui.com/meditation")!) |
| | | guard let m = model else {return} |
| | | |
| | | let string = String(format: "%@%@?id=%ld", ShareUrl,"/healDetail/healDetail",m.id) |
| | | ShareView.show(URL(string:string)!,title: m.meditationTitle,desc: m.detailDescription) |
| | | } |
| | | |
| | | override func viewDidLayoutSubviews() { |