Commit a808a112 authored by David黄金龙's avatar David黄金龙

1、光线图片替换

2、判断首页弹窗的时间
parent d7f5de07
......@@ -133,7 +133,6 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
//MARK: - 内部函数
extension YHHomeHoldViewPageViewController {
//获取原则批、正式批的弹窗状态
func getAlertStatus() {
......@@ -149,26 +148,16 @@ extension YHHomeHoldViewPageViewController {
}
if let nav = self.navigationController {
let rrr = nav.viewControllers.contains { $0.isKind(of: YHHomeHoldViewPageViewController.self) }
if rrr {
var targetVc : UIViewController?
for(_,value) in nav.viewControllers.enumerated() {
if value.isKind(of: YHHomeHoldViewPageViewController.self) {
targetVc = value
break
}
}
if targetVc != nil {
} else {
printLog("不在首页了。。。进行后面的逻辑")
return
}
if let vc = UIApplication.shared.keyWindow?.rootViewController as? YHTabBarViewController {
if vc.selectedIndex == 0 {
print("dddd")
} else {
return
}
}
if model.type == 1 {
//正式弹窗
self.princleVM.postAlertStatus(15) { success, error in
......
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