Commit db7778be authored by Alex朱枝文's avatar Alex朱枝文

直播间商品列表走查问题修复

parent f41f5ff0
...@@ -158,8 +158,18 @@ class YHLiveShopView: UIView { ...@@ -158,8 +158,18 @@ class YHLiveShopView: UIView {
} }
@objc func dismiss() { @objc func dismiss() {
removeFromSuperview() // 禁用交互防止动画过程中的重复点击
closeEvent?() isUserInteractionEnabled = false
centerView.isUserInteractionEnabled = false
UIView.animate(withDuration: 0.25, delay: 0, options: .curveEaseIn) {
self.frame.origin.y = KScreenHeight
self.centerView.alpha = 0
} completion: { _ in
self.centerView.removeFromSuperview()
self.removeFromSuperview()
self.closeEvent?()
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment