fix
无故事王国
2024-06-13 5c9191f42013d24360a3ef9e7ddd701c5a1a6209
DolphinEnglishLearnStudent/Other/UIView/StudyHandleView.swift
@@ -28,11 +28,6 @@
                        super.awakeFromNib()
                        btn_state.alpha = 0
                        view_choose.alpha = 0
//                        voicePlayer.playEnd {[weak self] in
//                                    guard let weakSelf = self else { return }
//                                    weakSelf.resetView()
//                        }
            }
            func chooseClouse(callback:@escaping (UIButton)->Void){
@@ -53,7 +48,7 @@
            func resetView(){
                        switch listenType {
                                    case .lesson1,.lesson5:
                                    case .lesson1,.lesson5,.game1:
                                                UIView.animate(withDuration: 0.25) {
                                                            self.btn_state.setImage(UIImage(named: "icon_play"), for: .normal)
                                                            self.btn_voice.alpha = 1
@@ -77,7 +72,7 @@
                        voicePlayer.playerAt(url: v)
                        playAtClouse?(self.tag)
                        switch listenType {
                                    case .lesson1,.lesson5:
                                    case .lesson1,.lesson5,.game1:
                                                UIView.animate(withDuration: 0.25) {
                                                            self.btn_state.setImage(UIImage(named: "icon_playing"), for: .normal)
                                                            self.btn_voice.alpha = 0