|
@@ -6,6 +6,7 @@
|
|
|
// 首界面
|
|
|
|
|
|
import BFFramework
|
|
|
+
|
|
|
class MVHomeController: MVBaseController {
|
|
|
var jumpType: Int = 1 // 跳转类型 type: 1-我的作品 2-再创作 3-卡点视频
|
|
|
var jumpVideoData: PQVideoListModel?
|
|
@@ -80,9 +81,10 @@ class MVHomeController: MVBaseController {
|
|
|
collectionView.delaysContentTouches = false
|
|
|
return collectionView
|
|
|
}()
|
|
|
+
|
|
|
//网络错误提示
|
|
|
- lazy var emptyRemindView: PQEmptyRemindView = {
|
|
|
- let emptyRemindView = PQEmptyRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
+ lazy var emptyRemindView: BFEmptyRemindView = {
|
|
|
+ let emptyRemindView = BFEmptyRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
emptyRemindView.fullRefreshBloc = { [weak self] _, _ in
|
|
|
self?.getData()
|
|
|
|
|
@@ -169,11 +171,11 @@ class MVHomeController: MVBaseController {
|
|
|
|
|
|
func getData() {
|
|
|
|
|
|
- PQLoadingHUB.shared.showHUB(superView:view)
|
|
|
+ BFLoadingHUB.shared.showHUB(superView:view)
|
|
|
MVHomeViewModel.getHomeHotVideos { [weak self] hotVideos, msg in
|
|
|
if(msg == nil){
|
|
|
BFLog(1, message: "hotVideos count is :\(hotVideos.count)")
|
|
|
- PQLoadingHUB.shared.dismissHUB(superView:(self?.view)!)
|
|
|
+ BFLoadingHUB.shared.dismissHUB(superView:(self?.view)!)
|
|
|
self?.showNetworkError(isHidden: true)
|
|
|
self?.refreshData(hotVideos: hotVideos)
|
|
|
}else{
|
|
@@ -272,7 +274,7 @@ class MVHomeController: MVBaseController {
|
|
|
protocalView.tag = cProtocalViewTag
|
|
|
protocalView.remindBlock = { [weak self] sender, webUrl in
|
|
|
if sender == nil, webUrl != nil {
|
|
|
- let detail = PQBaseWebViewController()
|
|
|
+ let detail = BFBaseWebViewController()
|
|
|
detail.baseUrl = webUrl
|
|
|
self?.navigationController?.pushViewController(detail, animated: true)
|
|
|
}
|
|
@@ -348,7 +350,7 @@ class MVHomeController: MVBaseController {
|
|
|
if !isNetConnected() {
|
|
|
|
|
|
|
|
|
- PQUploadRemindView.showUploadRemindView(title:"似乎已断开与互联网的连接", summary: "", canMoreOpration:true,confirmTitle: "重新连接",cancelTitle:"取消", confirmColor:UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)) { sender, _ in
|
|
|
+ BFUploadRemindView.showUploadRemindView(title:"似乎已断开与互联网的连接", summary: "", canMoreOpration:true,confirmTitle: "重新连接",cancelTitle:"取消", confirmColor:UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)) { sender, _ in
|
|
|
if sender.tag == 2 {
|
|
|
openAppSetting()
|
|
|
}
|
|
@@ -388,7 +390,7 @@ class MVHomeController: MVBaseController {
|
|
|
}
|
|
|
}
|
|
|
remindView.remindBlock = { [weak self] _, webUrl in
|
|
|
- let detail = PQBaseWebViewController()
|
|
|
+ let detail = BFBaseWebViewController()
|
|
|
detail.baseUrl = webUrl
|
|
|
self?.navigationController?.pushViewController(detail, animated: true)
|
|
|
}
|