bug fixed

This commit is contained in:
ddisfriend
2025-12-29 11:59:19 +08:00
parent 599077de2d
commit 18e0c52fe6
2 changed files with 9 additions and 9 deletions

View File

@@ -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)

View File

@@ -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)