|
@@ -5,7 +5,7 @@
|
|
|
// Created by ak on 2021/6/2.
|
|
|
// 首界面
|
|
|
|
|
|
-import BFFramework
|
|
|
+
|
|
|
import BFUIKit
|
|
|
|
|
|
class MVHomeController: MVBaseController {
|
|
@@ -32,7 +32,7 @@ class MVHomeController: MVBaseController {
|
|
|
stuckPointBtn.setImage(UIImage(named: "add"), for: .normal)
|
|
|
stuckPointBtn.adjustsImageWhenHighlighted = false
|
|
|
stuckPointBtn.tag = 2000
|
|
|
- stuckPointBtn.backgroundColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
+ stuckPointBtn.backgroundColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
|
|
|
stuckPointBtn.addCorner(corner: 30)
|
|
|
return stuckPointBtn
|
|
|
}()
|
|
@@ -98,7 +98,7 @@ class MVHomeController: MVBaseController {
|
|
|
emptyRemindView.remindSubLab.text = "请检查网络后重试"
|
|
|
emptyRemindView.remindSubLab.isHidden = false
|
|
|
emptyRemindView.refreshBtn.isHidden = false
|
|
|
- emptyRemindView.refreshBtn.backgroundColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
+ emptyRemindView.refreshBtn.backgroundColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
|
|
|
emptyRemindView.refreshBtn.setTitle("重试", for: .normal)
|
|
|
|
|
|
|
|
@@ -325,11 +325,11 @@ class MVHomeController: MVBaseController {
|
|
|
@objc func btnClick(sender: UIButton) {
|
|
|
switch sender.tag {
|
|
|
case 1000: // 个人中心
|
|
|
- PQEventTrackViewModel.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_shanyinApp_clickButton_mineTab, pageSource: .sp_shanyinApp_main, extParams: nil, remindmsg: "")
|
|
|
+ BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_shanyinApp_clickButton_mineTab, pageSource: .sp_shanyinApp_main, extParams: nil, remindmsg: "")
|
|
|
|
|
|
jumpToDetailVc(type: 1)
|
|
|
case 2000: // 系统相册
|
|
|
- PQEventTrackViewModel.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_shanyinApp_clickButton_syncedUpMusic, pageSource: .sp_shanyinApp_main, extParams: nil, remindmsg: "")
|
|
|
+ BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_shanyinApp_clickButton_syncedUpMusic, pageSource: .sp_shanyinApp_main, extParams: nil, remindmsg: "")
|
|
|
|
|
|
jumpToDetailVc(type: 3)
|
|
|
case 3000: // 设置
|
|
@@ -351,7 +351,7 @@ class MVHomeController: MVBaseController {
|
|
|
if !isNetConnected() {
|
|
|
|
|
|
|
|
|
- BFUploadRemindView.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: BFConfig.shared.styleColor.rawValue)) { sender, _ in
|
|
|
if sender.tag == 2 {
|
|
|
openAppSetting()
|
|
|
}
|
|
@@ -434,7 +434,7 @@ class MVHomeController: MVBaseController {
|
|
|
isCreateVideo = true
|
|
|
let videoListModel = mAllVideos[indexPath.row]
|
|
|
|
|
|
- PQEventTrackViewModel.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_shanyinApp_clickButton_syncedUpMusicRecreate, pageSource: .sp_shanyinApp_main, extParams: ["videoId":videoListModel.videoId], remindmsg: "")
|
|
|
+ BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_shanyinApp_clickButton_syncedUpMusicRecreate, pageSource: .sp_shanyinApp_main, extParams: ["videoId":videoListModel.videoId], remindmsg: "")
|
|
|
|
|
|
jumpToDetailVc(type: 2, videoData: videoListModel)
|
|
|
} else {
|
|
@@ -479,7 +479,7 @@ extension MVHomeController {
|
|
|
let videoInfo = self.mAllVideos[page]
|
|
|
videoInfo.playProgress = 0
|
|
|
|
|
|
- PQEventTrackViewModel.baseReportUpload(businessType: .bt_buttonView, objectType: .ot_shanyinApp_viewButton_syncedUpMusicRecreate, pageSource: .sp_shanyinApp_main, extParams: ["videoId":videoInfo.videoId], remindmsg: "")
|
|
|
+ BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonView, objectType: .ot_shanyinApp_viewButton_syncedUpMusicRecreate, pageSource: .sp_shanyinApp_main, extParams: ["videoId":videoInfo.videoId], remindmsg: "")
|
|
|
|
|
|
let hotVideoIndex = self.mVideos.firstIndex(where: { (items) -> Bool in
|
|
|
items.categoryName == videoInfo.categoryName
|
|
@@ -642,12 +642,12 @@ extension MVHomeController: MVBannerDataSource, MVBannerDelegate {
|
|
|
|
|
|
func reportUpload(isFriend: Bool, openId _: String, shareId: String, videoData: PQVideoListModel?) {
|
|
|
// 分享上报
|
|
|
- PQEventTrackViewModel.videoRelationReportUpload(reportLogType: .reportLogType_Action, videoData: videoData, pageSource: nil, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, objectType: nil, extParams: nil, shareId: shareId, videoIds: nil, playId: PQSingletoVideoPlayer.shared.playId)
|
|
|
+ BFEventTrackAdaptor.videoRelationReportUpload(reportLogType: .reportLogType_Action, videoData: videoData, pageSource: nil, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, objectType: nil, extParams: nil, shareId: shareId, videoIds: nil, playId: PQSingletoVideoPlayer.shared.playId)
|
|
|
if isFriend {
|
|
|
- PQEventTrackViewModel.shareReportUpload(videoId: videoData?.uniqueId ?? "0", pageSource: videoData!.pageSource, recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO, flowPool:nil, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, targetUid: videoData?.userInfo?.uid, shareId: shareId)
|
|
|
- PQEventTrackViewModel.shareReportUpload(screenType: 3, videoId: videoData?.uniqueId ?? "0", pageSource: videoData!.pageSource, recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO, flowPool:nil, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, targetUid: videoData?.userInfo?.uid, shareId: shareId)
|
|
|
+ BFEventTrackAdaptor.shareReportUpload(videoId: videoData?.uniqueId ?? "0", pageSource: videoData!.pageSource, recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO, flowPool:nil, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, targetUid: videoData?.userInfo?.uid, shareId: shareId)
|
|
|
+ BFEventTrackAdaptor.shareReportUpload(screenType: 3, videoId: videoData?.uniqueId ?? "0", pageSource: videoData!.pageSource, recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO, flowPool:nil, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, targetUid: videoData?.userInfo?.uid, shareId: shareId)
|
|
|
} else {
|
|
|
- PQEventTrackViewModel.shareReportUpload(screenType: 2, videoId: videoData?.uniqueId ?? "0", pageSource: videoData!.pageSource, recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO, flowPool:nil, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, targetUid: videoData?.userInfo?.uid, shareId: shareId)
|
|
|
+ BFEventTrackAdaptor.shareReportUpload(screenType: 2, videoId: videoData?.uniqueId ?? "0", pageSource: videoData!.pageSource, recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO, flowPool:nil, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: isFriend ? .bt_videoShareFriend : .bt_videoShareH5, targetUid: videoData?.userInfo?.uid, shareId: shareId)
|
|
|
}
|
|
|
}
|
|
|
// MARK: - GXBannerDelegate
|