|
@@ -78,6 +78,9 @@ class MVHomeController: MVBaseController {
|
|
|
var mAllVideos: Array = Array<PQVideoListModel>.init()
|
|
|
|
|
|
var lastBnnerSelectIndex: IndexPath = IndexPath()
|
|
|
+
|
|
|
+ //是否点击的再创作
|
|
|
+ var isCreateVideo:Bool = false
|
|
|
|
|
|
deinit {
|
|
|
PQNotification.removeObserver(self)
|
|
@@ -85,7 +88,14 @@ class MVHomeController: MVBaseController {
|
|
|
//登录成功后自动跳转到系统相册
|
|
|
@objc func loginSuccesss() {
|
|
|
|
|
|
- navigationController?.pushViewController(PQStuckPointMaterialController(), animated: true)
|
|
|
+ if(isCreateVideo){
|
|
|
+ isCreateVideo = false
|
|
|
+ createVideo(indexPath: lastBnnerSelectIndex)
|
|
|
+ }else{
|
|
|
+ navigationController?.pushViewController(PQStuckPointMaterialController(), animated: true)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
override func viewWillDisappear(_ animated: Bool) {
|
|
@@ -298,6 +308,7 @@ extension MVHomeController: MVBannerDataSource, MVBannerDelegate {
|
|
|
cell.videoData = mAllVideos[indexPath.row]
|
|
|
cell.reCreateBtnClicHandle = { [weak self] _, _ in
|
|
|
BFLog(message: "点击了创同款")
|
|
|
+ self?.isCreateVideo = true
|
|
|
self?.createVideo(indexPath: indexPath)
|
|
|
}
|
|
|
|