Commit 7805e038 authored by David黄金龙's avatar David黄金龙

几处 代码优化

parent 2099003a
......@@ -124,12 +124,19 @@ class YHOfficialApprovalResultVC: YHBaseViewController {
self.indicatorView.indicatorItems = self.dataArr.count
bannerView.reloadData()
self.indicatorView.curIndicatorIndex = 0
bannerView.selectItem(at: 0, animated: false)
let aa: ASAttributedString = .init("左滑查看其他获批信,当前 ", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor(hex: 0xffffff, alpha: 0.6)))
let bb: ASAttributedString = .init("1/\(self.dataArr.count)", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor(hex: 0xffffff, alpha: 1.0)))
tipsLabel.attributed.text = aa + bb
if dataArr.count > 0 {
bannerView.reloadData()
bannerView.selectItem(at: 0, animated: false)
let aa: ASAttributedString = .init("左滑查看其他获批信,当前 ", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor(hex: 0xffffff, alpha: 0.6)))
let bb: ASAttributedString = .init("1/\(self.dataArr.count)", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor(hex: 0xffffff, alpha: 1.0)))
tipsLabel.attributed.text = aa + bb
tipsLabel.isHidden = false
} else {
tipsLabel.isHidden = true
}
}
}
......@@ -154,10 +161,11 @@ class YHOfficialApprovalResultVC: YHBaseViewController {
super.viewDidLoad()
setupUI()
getApprovalLetter()
getAlertStatus()
if !showGuildViewFlag {
getAlertStatus()
}
getOfficalGuildCheckStatus()
}
......@@ -225,7 +233,6 @@ private extension YHOfficialApprovalResultVC {
return
}
// model.type = 1 //for test hjl
if model.type == 1 {
let now = Date()
let timestamp = now.timeIntervalSince1970
......
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