| | |
| | | |
| | | let PlantGuideQuit_Noti = Notification.Name.init(rawValue: "PlantGuideQuit_Noti") |
| | | |
| | | let backgroundVoiceUrl = "https://xqgwzh.obs.cn-south-1.myhuaweicloud.com/question/backgroundQuestion.wav" |
| | | |
| | | class PlanGuideVC: BaseVC { |
| | | |
| | | @IBOutlet weak var view_gradient: UIView! |
| | |
| | | override func viewWillAppear(_ animated: Bool) { |
| | | super.viewWillAppear(animated) |
| | | player.play() |
| | | bgplayer.play() |
| | | } |
| | | |
| | | override func viewDidDisappear(_ animated: Bool) { |
| | | super.viewDidDisappear(animated) |
| | | player.pause() |
| | | // bgplayer.pause() |
| | | } |
| | | |
| | | override func setUI() { |
| | |
| | | let vc = PlanGuide_1_VC() |
| | | self?.jq_push(vc: vc) |
| | | case .toSeting: |
| | | self?.dismiss(animated: true) { |
| | | // self?.dismiss(animated: true) { |
| | | let vc = BackgroundVoiceVC() |
| | | vc.hidesBottomBarWhenPushed = true |
| | | JQ_currentNavigationController().pushViewController(vc) |
| | | } |
| | | // } |
| | | } |
| | | } |
| | | } |