//
|
// LogoutAccountVC.swift
|
// XQMuse
|
//
|
// Created by 无故事王国 on 2024/8/21.
|
//
|
|
import UIKit
|
import JQTools
|
|
class LogoutAccountVC: BaseVC {
|
|
@IBOutlet weak var btn_logout: UIButton!
|
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
title = "注销账号"
|
|
}
|
@IBAction func completeAction(_ sender: UIButton) {
|
Services.deleteUser().subscribe(onNext: {data in
|
CommonAlertView.show(title: "提示", content: "注销成功", cancelStr: nil, completeStr: "确定", isSingle: true) { _ in
|
sceneDelegate?.needLogin()
|
self.navigationController?.popToRootViewController(animated: false)
|
DispatchQueue.main.asyncAfter(delay: 0.5) {
|
self.navigationController?.tabBarController?.selectedIndex = 0
|
}
|
}
|
}).disposed(by: disposeBag)
|
}
|
|
@IBAction func quitAction(_ sender: UIButton) {
|
self.navigationController?.popViewController()
|
}
|
|
|
override func viewDidLayoutSubviews() {
|
super.viewDidLayoutSubviews()
|
btn_logout.jq_gradientNibColor(colorArr: [UIColor(hexStr: "#8EA47A").cgColor,UIColor(hexStr: "#AFCA98").cgColor], cornerRadius: 20)
|
}
|
}
|