|
@@ -42,28 +42,28 @@ open class PQPhotoAlbumController: PQBaseViewController {
|
|
}()
|
|
}()
|
|
|
|
|
|
lazy public var emptyRemindView: PQEmptyRemindView = {
|
|
lazy public var emptyRemindView: PQEmptyRemindView = {
|
|
- let emptyRemindView = PQEmptyRemindView(frame: albaumCollectionView.bounds)
|
|
|
|
- emptyRemindView.isHidden = true
|
|
|
|
|
|
+ let remindView = PQEmptyRemindView(frame: albaumCollectionView.bounds)
|
|
|
|
+ remindView.isHidden = true
|
|
albaumCollectionView.addSubview(emptyRemindView)
|
|
albaumCollectionView.addSubview(emptyRemindView)
|
|
- emptyRemindView.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
|
- emptyRemindView.fullRefreshBloc = { [weak self] _, _ in
|
|
|
|
- if emptyRemindView.refreshBtn.currentTitle == "授予权限" {
|
|
|
|
|
|
+ remindView.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
|
+ remindView.fullRefreshBloc = { [weak self] _, _ in
|
|
|
|
+ if self?.emptyRemindView.refreshBtn.currentTitle == "授予权限" {
|
|
openAppSetting()
|
|
openAppSetting()
|
|
- } else if emptyRemindView.refreshBtn.currentTitle == "刷新" {
|
|
|
|
|
|
+ } else if self?.emptyRemindView.refreshBtn.currentTitle == "刷新" {
|
|
self?.albaumsData.removeAll()
|
|
self?.albaumsData.removeAll()
|
|
self?.loadPhotoData()
|
|
self?.loadPhotoData()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- emptyRemindView.remindLab.textColor = UIColor.hexColor(hexadecimal: "#999999")
|
|
|
|
- emptyRemindView.refreshBtn.setTitle("授予权限", for: .normal)
|
|
|
|
|
|
+ remindView.remindLab.textColor = UIColor.hexColor(hexadecimal: "#999999")
|
|
|
|
+ remindView.refreshBtn.setTitle("授予权限", for: .normal)
|
|
let anthorEmptyData = PQEmptyModel()
|
|
let anthorEmptyData = PQEmptyModel()
|
|
anthorEmptyData.title = "挑选相册素材"
|
|
anthorEmptyData.title = "挑选相册素材"
|
|
anthorEmptyData.summary = "要挑选相册素材,请先授予相册使用权限"
|
|
anthorEmptyData.summary = "要挑选相册素材,请先授予相册使用权限"
|
|
anthorEmptyData.emptyImage = "icon_authorError"
|
|
anthorEmptyData.emptyImage = "icon_authorError"
|
|
anthorEmptyData.isRefreshHidden = false
|
|
anthorEmptyData.isRefreshHidden = false
|
|
anthorEmptyData.refreshBgColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
anthorEmptyData.refreshBgColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
- emptyRemindView.emptyData = anthorEmptyData
|
|
|
|
- return emptyRemindView
|
|
|
|
|
|
+ remindView.emptyData = anthorEmptyData
|
|
|
|
+ return remindView
|
|
}()
|
|
}()
|
|
|
|
|
|
lazy public var albaumView: UIView = {
|
|
lazy public var albaumView: UIView = {
|