Commit d819ff74 authored by Alex朱枝文's avatar Alex朱枝文

续签文书loading状态优化

parent ddaef8f6
......@@ -26,6 +26,8 @@ class YHResignDocumentDetailViewController: YHBaseViewController {
private var datas: [[RowType]] = []
private lazy var viewModel = YHResignDocumentViewModel()
// 进签字再出来就要显示loading
private var isNeedShowLoading: Bool = true
private let docId: Int
private var name: String
......@@ -66,7 +68,9 @@ class YHResignDocumentDetailViewController: YHBaseViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
requestData(isNeedLoading: true)
let needLoading = isNeedShowLoading
isNeedShowLoading = false
requestData(isNeedLoading: needLoading)
}
}
......@@ -236,6 +240,7 @@ extension YHResignDocumentDetailViewController {
}
return
}
self.isNeedShowLoading = true
let url = signatureModel.url
// 跳签字
let vc = YHSignatureWebViewController()
......
......@@ -36,7 +36,8 @@ class YHResignDocumentManagementVC: YHBaseViewController {
}()
private lazy var viewModel = YHResignDocumentViewModel()
// 进签字再出来就要显示loading
private var isNeedShowLoading: Bool = true
private let orderId: Int
private var id: Int = 0
......@@ -57,7 +58,9 @@ class YHResignDocumentManagementVC: YHBaseViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
requestData(isNeedLoading: true)
let needLoading = isNeedShowLoading
isNeedShowLoading = false
requestData(isNeedLoading: needLoading)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment