Commit 6155b6ac authored by CZ1004's avatar CZ1004

【优化】修复部分bug

parent 470c2abd
......@@ -294,6 +294,7 @@ class HomePhotosDetailViewController : BaseViewController {
self.collectionView.reloadData()
}
self.addTrashView()
self.setDefaultPage()
}
self.present(vc, animated: true)
}
......
......@@ -277,6 +277,7 @@ class HomeVideoDetailController :BaseViewController {
self.collectionView.reloadData()
}
self.addTrashView()
self.setDefaultPage()
}
self.present(vc, animated: true)
}
......
......@@ -604,7 +604,12 @@ class PhotoRemoveViewController: BaseViewController {
removedView.removeFromSuperview()
// 当划到最后一张的时候就不再滑动了
if currentIndex == dataModel.count{
let tempIndex = dataModel.count - 1
// 表示滑动结束了
if currentIndex == tempIndex {
DispatchQueue.main.async {
self.navigationController?.popViewController(animated: true)
}
return
}
......
......@@ -66,7 +66,6 @@ class TrashSubView: UIView {
make.left.equalToSuperview().offset(16)
make.top.equalToSuperview().offset(28)
make.height.equalTo(22)
make.width.equalTo(30)
}
self.tipLabel.snp.makeConstraints { make in
make.top.equalToSuperview().offset(17)
......
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