fix(drone-dock): 适配小程序收款码图片展示与重试
This commit is contained in:
@@ -6,11 +6,11 @@ final class DroneDockPaymentViewModel {
|
||||
private(set) var context: DroneDockHomeContext
|
||||
/// 服务端当前可售套餐。
|
||||
private(set) var projects: [DroneDockProject] = []
|
||||
/// 当前已确认报价的付款链接;改价、换套餐或失败时立即清除。
|
||||
/// 当前已确认报价的小程序收款码;改价、换套餐或失败时立即清除。
|
||||
private(set) var payCode: DroneDockPayCode?
|
||||
/// 是否正在加载套餐列表。
|
||||
private(set) var isLoadingProjects = false
|
||||
/// 是否正在向后端生成付款链接。
|
||||
/// 是否正在向后端生成小程序收款码。
|
||||
private(set) var isGenerating = false
|
||||
/// 套餐读取错误,与成功的空列表分开表达。
|
||||
private(set) var projectError: String?
|
||||
@@ -38,7 +38,7 @@ final class DroneDockPaymentViewModel {
|
||||
self.currentContext = currentContext
|
||||
}
|
||||
|
||||
/// 加载可售套餐;切换登录、景区或门店时清除之前的套餐和付款链接。
|
||||
/// 加载可售套餐;切换登录、景区或门店时清除之前的套餐和小程序收款码。
|
||||
func loadProjects() async {
|
||||
let scope = scopeGeneration
|
||||
let requested = await currentContext()
|
||||
|
||||
Reference in New Issue
Block a user