Rebuild order list UI to strictly match Android OrderView and DepositOrderCard.
Add OrderTokens and shared order components, restore filter bar pills, list loading states, and role-specific card layouts with deposit badge mapping tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
30
suixinkan/UI/Orders/Views/DepositOrderStatusBadgeView.swift
Normal file
30
suixinkan/UI/Orders/Views/DepositOrderStatusBadgeView.swift
Normal file
@ -0,0 +1,30 @@
|
||||
//
|
||||
// DepositOrderStatusBadgeView.swift
|
||||
// suixinkan
|
||||
//
|
||||
|
||||
import SnapKit
|
||||
import UIKit
|
||||
|
||||
/// 店铺订单状态标签,对齐 Android `DepositOrderCard` badge(12sp)。
|
||||
final class DepositOrderStatusBadgeView: UIView {
|
||||
|
||||
private let badge = AppStatusBadge()
|
||||
|
||||
override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
addSubview(badge)
|
||||
badge.snp.makeConstraints { make in
|
||||
make.edges.equalToSuperview()
|
||||
}
|
||||
}
|
||||
|
||||
@available(*, unavailable)
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
func apply(status: Int, text: String) {
|
||||
badge.applyDepositOrderStatus(status, text: text)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user