XQMuse/Root/Course/CourseVC.swift | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
XQMuse/Root/Home/HomeVC.swift | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
XQMuse/Root/Home/VC/BackgroundVoiceVC.swift | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
XQMuse/Root/Me/MeVC.swift | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
XQMuse/Root/Pavilion/PavilionVC.swift | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
XQMuse/Root/Course/CourseVC.swift
@@ -50,6 +50,13 @@ return pageVC }() override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) if let meVC = (navigationController?.tabBarController?.viewControllers?.last as? BaseNav)?.viewControllers.first as? MeVC{ meVC.needLaunch = true } } override func viewDidLoad() { super.viewDidLoad() XQMuse/Root/Home/HomeVC.swift
@@ -79,6 +79,10 @@ if AudioPlayer.getSharedInstance().scenePlayer?.timeControlStatus == .paused && UserDefaultSettingViewModel.getSetting()?.bgm != nil{ AudioPlayer.getSharedInstance().playSceneAt(UserDefaultSettingViewModel.getSetting()!.bgm!.audioFile) } if let meVC = (navigationController?.tabBarController?.viewControllers?.last as? BaseNav)?.viewControllers.first as? MeVC{ meVC.needLaunch = true } } override func viewDidLoad() { XQMuse/Root/Home/VC/BackgroundVoiceVC.swift
@@ -136,9 +136,16 @@ needPopRoot = true NotificationCenter.default.post(name: SetBGMSuccess_Noti, object: items[index.row]) // DispatchQueue.main.asyncAfter(delay: 0.6) { // self.navigationController?.popViewController() // } if !(UserViewModel.getLoginInfo()?.accessToken.isEmpty ?? true){ DispatchQueue.main.asyncAfter(delay: 0.6) { NotificationCenter.default.post(name: PlantGuideQuit_Noti, object: self.items[index.row]) } }else{ DispatchQueue.main.asyncAfter(delay: 0.6) { self.navigationController?.popViewController() } } } } XQMuse/Root/Me/MeVC.swift
@@ -36,6 +36,8 @@ @IBOutlet weak var label_vipInfo: UILabel! @IBOutlet weak var label_totalDay: UILabel! var needLaunch:Bool = true override func viewDidLoad() { super.viewDidLoad() @@ -47,6 +49,16 @@ queryNotice() } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) if (UserViewModel.getLoginInfo()?.accessToken.isEmpty ?? true) && needLaunch{ let loginNav = LoginNav(rootViewController: LoginVC()) loginNav.modalPresentationStyle = .fullScreen JQ_currentViewController().present(loginNav, animated: true) needLaunch = false } } override func setUI() { super.setUI() view.backgroundColor = UIColor(hexString: "#fafafa") XQMuse/Root/Pavilion/PavilionVC.swift
@@ -26,6 +26,13 @@ private var viewModel = PavilionViewModel() private var locationTool = JQ_LocationTool.instance() override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) if let meVC = (navigationController?.tabBarController?.viewControllers?.last as? BaseNav)?.viewControllers.first as? MeVC{ meVC.needLaunch = true } } override func viewDidLoad() { super.viewDidLoad()