宽窄优行-由【嘉易行】项目成品而来
无故事王国
2023-05-25 dc1998fc1ac124f6b9a0e434ccf91103dd936409
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
//  PublishSellCarSuccessVC.swift
//  OKProject
//
//  Created by 无故事王国 on 2022/5/10.
//  Copyright © 2022 yangwang. All rights reserved.
//
 
import UIKit
 
enum PublishType {
    case rent
    case sell
    case jobDel
}
 
class PublishSellCarSuccessVC: YYViewController {
    private var type:PublishType!
    @IBOutlet weak var contentL: UILabel!
 
    override func viewDidLoad() {
        super.viewDidLoad()
 
        if type == .sell{
            navigationItem.title = "卖车信息发布"
        }else if type == .rent{
            navigationItem.title = "租车信息发布"
        }else if type == .jobDel{
            navigationItem.title = "招聘详情"
            contentL.text = "数据已被删除!"
        }
 
        yy_popBlock = {[weak self] () in
            guard let weakSelf = self else { return }
            weakSelf.yy_popToRoot()
        }
    }
 
    required init(type:PublishType) {
        super.init(nibName: nil, bundle: nil)
        self.type = type
    }
 
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}