bug fixed
This commit is contained in:
@@ -137,7 +137,7 @@ private extension IdentityAlertView {
|
||||
}
|
||||
|
||||
// 立即确认按钮
|
||||
confirmButton.setTitle(isLast ? "放弃" : "立即确认", for: .normal)
|
||||
confirmButton.setTitle("立即确认", for: .normal)
|
||||
confirmButton.setTitleColor(.white, for: .normal)
|
||||
confirmButton.titleLabel?.font = .boldSystemFont(ofSize: 16)
|
||||
confirmButton.backgroundColor = UIColor(red: 0xFF/255, green: 0x6B/255, blue: 0x50/255, alpha: 1)
|
||||
@@ -153,7 +153,7 @@ private extension IdentityAlertView {
|
||||
}
|
||||
|
||||
// 稍后提醒按钮
|
||||
laterButton.setTitle("稍后提醒", for: .normal)
|
||||
laterButton.setTitle(isLast ? "放弃" : "稍后提醒", for: .normal)
|
||||
laterButton.setTitleColor(UIColor(red: 0x99/255, green: 0x99/255, blue: 0x99/255, alpha: 1), for: .normal)
|
||||
laterButton.titleLabel?.font = .systemFont(ofSize: 14)
|
||||
laterButton.addTarget(self, action: #selector(handleLater), for: .touchUpInside)
|
||||
|
||||
@@ -197,20 +197,20 @@ extension RescueController {
|
||||
let entryName = "IdentityAlert"
|
||||
let entryView = IdentityAlertView(times: response?.data?.count ?? 0,totalTimes: 3, isLast: isLast)
|
||||
entryView.onLater = {
|
||||
Entry.default.dismiss(name: entryName)
|
||||
}
|
||||
entryView.onConfirm = {
|
||||
Entry.default.dismiss(name: entryName,completion: {
|
||||
if isLast {
|
||||
RQ.giveUp(prameters: GiveUpParameters(supplierId: UserData.default.supplierId))
|
||||
.subscribe(onSuccess: { _ in
|
||||
})
|
||||
.disposed(by: self.disposeBag)
|
||||
}else{
|
||||
}
|
||||
})
|
||||
}
|
||||
entryView.onConfirm = {
|
||||
Entry.default.dismiss(name: entryName,completion: {
|
||||
if let supplierId = UserData.default.supplierId {
|
||||
WEBTOOL.open(name: .managerPeople, appending: "&supplierId=\(supplierId)")
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
Entry.default.showIdentityAlert(view: entryView, name: entryName)
|
||||
|
||||
Reference in New Issue
Block a user