From 2004d0578480d12cd69c4d42d414ffd11828d0f1 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期四, 31 十月 2024 20:18:47 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Home/VC/HomeItemDetailVC.swift |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/XQMuse/Root/Home/VC/HomeItemDetailVC.swift b/XQMuse/Root/Home/VC/HomeItemDetailVC.swift
index ca7a6ad..9428343 100644
--- a/XQMuse/Root/Home/VC/HomeItemDetailVC.swift
+++ b/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() {

--
Gitblit v1.7.1