完善景区排队设置页与全局按钮配置迁移。
重构排队设置与变更日志交互,补充 Overlay 与资源,并将多页面主操作按钮统一到 UIButton Configuration,同步更新相关单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -83,9 +83,6 @@ final class StatisticsViewModelTests: XCTestCase {
|
||||
}
|
||||
|
||||
func testUpdateRangeByShortcutAllClearsTimes() async {
|
||||
let summaryJSON = """
|
||||
{"code":100000,"msg":"success","data":{"order_amount_sum":"0","order_count":0,"order_price_avg":"0","received_amount_sum":"0","refund_amount_sum":0}}
|
||||
""".data(using: .utf8)!
|
||||
let listJSON = """
|
||||
{"code":100000,"msg":"success","data":{"total":0,"data":[]}}
|
||||
""".data(using: .utf8)!
|
||||
@ -224,7 +221,7 @@ final class StatisticsViewModelTests: XCTestCase {
|
||||
formatter.calendar = Calendar(identifier: .gregorian)
|
||||
formatter.locale = Locale(identifier: "zh_CN")
|
||||
formatter.dateFormat = "yyyy/MM/dd"
|
||||
var calendar = Calendar(identifier: .gregorian)
|
||||
let calendar = Calendar(identifier: .gregorian)
|
||||
let components = calendar.dateComponents([.year, .month], from: Date())
|
||||
let firstDay = calendar.date(from: components) ?? Date()
|
||||
return formatter.string(from: firstDay)
|
||||
|
||||
Reference in New Issue
Block a user