| | |
| | | binding.successMessage.text = message |
| | | } |
| | | |
| | | CardOperationType.ReturnCard -> { |
| | | CardOperationType.SUPPLEMENT -> { |
| | | // 设置标题 |
| | | binding.titleBar.setCenterText("返还成功") |
| | | |
| | |
| | | binding.successMessage.text = message |
| | | } |
| | | |
| | | CardOperationType.ReplaceCard -> { |
| | | // 设置标题 |
| | | binding.titleBar.setCenterText("补卡成功") |
| | | |
| | | // 设置成功信息 |
| | | binding.successTitle.text = "补卡成功" |
| | | |
| | | // 设置详细信息 |
| | | val message = if (cardNumber.isNullOrBlank()) { |
| | | "补卡操作已成功完成\n新卡已写入数据,可正常使用" |
| | | } else { |
| | | "补卡操作已成功完成\n卡号:$cardNumber\n新卡已写入数据,可正常使用" |
| | | } |
| | | binding.successMessage.text = message |
| | | } |
| | | |
| | | CardOperationType.Recharge -> { |
| | | binding.titleBar.setCenterText("写卡成功") |
| | | binding.successTitle.text = "写卡成功" |