杨锴
2024-10-31 2004d0578480d12cd69c4d42d414ffd11828d0f1
XQMuse/Root/Home/VC/HomeItemDetailVC.swift
@@ -161,9 +161,17 @@
            }
            @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
@@ -233,7 +241,10 @@
            }
            @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() {