|
@@ -245,7 +245,6 @@ class TSPTPInputVC: TSBaseVC {
|
|
var promptTextViewH:CGFloat = 84.0
|
|
var promptTextViewH:CGFloat = 84.0
|
|
lazy var promptTextView:UIView = {
|
|
lazy var promptTextView:UIView = {
|
|
let promptTextView = UIView()
|
|
let promptTextView = UIView()
|
|
- //promptTextView.backgroundColor = "#333333".uiColor
|
|
|
|
promptTextView.clipsToBounds = true
|
|
promptTextView.clipsToBounds = true
|
|
let bgView = UIView()
|
|
let bgView = UIView()
|
|
bgView.backgroundColor = "#333333".uiColor
|
|
bgView.backgroundColor = "#333333".uiColor
|
|
@@ -324,22 +323,23 @@ class TSPTPInputVC: TSBaseVC {
|
|
}()
|
|
}()
|
|
override func createView() {
|
|
override func createView() {
|
|
|
|
|
|
- let tapGesture = UITapGestureRecognizer(target: self, action: #selector(clickView))
|
|
|
|
- tapGesture.cancelsTouchesInView = false
|
|
|
|
- view.addGestureRecognizer(tapGesture)
|
|
|
|
-
|
|
|
|
navBarContentView.addSubview(navBarView)
|
|
navBarContentView.addSubview(navBarView)
|
|
navBarView.snp.makeConstraints { make in
|
|
navBarView.snp.makeConstraints { make in
|
|
make.edges.equalToSuperview()
|
|
make.edges.equalToSuperview()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
contentView.addSubview(collectionComponent.collectionView)
|
|
contentView.addSubview(collectionComponent.collectionView)
|
|
collectionComponent.collectionView.snp.makeConstraints { make in
|
|
collectionComponent.collectionView.snp.makeConstraints { make in
|
|
make.edges.equalToSuperview()
|
|
make.edges.equalToSuperview()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ let tapGesture = UITapGestureRecognizer(target: self, action: #selector(clickView))
|
|
|
|
+ tapGesture.cancelsTouchesInView = false // 确保不影响其他点击事件
|
|
|
|
+ collectionComponent.collectionView.addGestureRecognizer(tapGesture)
|
|
|
|
+
|
|
|
|
+
|
|
collectionComponent.clear()
|
|
collectionComponent.clear()
|
|
collectionComponent.reloadView(with:viewModel.colDataArray)
|
|
collectionComponent.reloadView(with:viewModel.colDataArray)
|
|
|
|
|
|
@@ -386,7 +386,7 @@ extension TSPTPInputVC {
|
|
if cusStackView.viewH > 0{
|
|
if cusStackView.viewH > 0{
|
|
return cusStackView.viewH
|
|
return cusStackView.viewH
|
|
}
|
|
}
|
|
- return 551+bannerH+bannerY
|
|
|
|
|
|
+ return 551+bannerH+bannerY//+promptTextViewH
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -410,7 +410,13 @@ extension TSPTPInputVC {
|
|
func setUpCusStackView(){
|
|
func setUpCusStackView(){
|
|
|
|
|
|
collectionComponent.collectionView.addSubview(cusStackView)
|
|
collectionComponent.collectionView.addSubview(cusStackView)
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+// cusStackView.addSubviewToStack(promptTextView)
|
|
|
|
+// promptTextView.snp.makeConstraints { make in
|
|
|
|
+// make.height.equalTo(promptTextViewH)
|
|
|
|
+// make.width.equalTo(k_ScreenWidth)
|
|
|
|
+// }
|
|
|
|
+
|
|
cusStackView.addSubviewToStack(entranceView)
|
|
cusStackView.addSubviewToStack(entranceView)
|
|
entranceView.snp.makeConstraints { make in
|
|
entranceView.snp.makeConstraints { make in
|
|
make.height.equalTo(bannerH+bannerY)
|
|
make.height.equalTo(bannerH+bannerY)
|
|
@@ -429,9 +435,9 @@ extension TSPTPInputVC {
|
|
guard let self = self else { return }
|
|
guard let self = self else { return }
|
|
presentModalHintVC()
|
|
presentModalHintVC()
|
|
}
|
|
}
|
|
- uploadPhotoTitleView.addSubview(hintBtn)
|
|
|
|
|
|
+ uploadPhotoTitleView.contentView.addSubview(hintBtn)
|
|
hintBtn.snp.makeConstraints { make in
|
|
hintBtn.snp.makeConstraints { make in
|
|
- make.centerY.equalToSuperview()
|
|
|
|
|
|
+ make.centerY.equalToSuperview().offset(uploadPhotoTitleView.centerYOffset)
|
|
make.trailing.equalTo(-16)
|
|
make.trailing.equalTo(-16)
|
|
make.width.height.equalTo(16)
|
|
make.width.height.equalTo(16)
|
|
}
|
|
}
|
|
@@ -455,11 +461,7 @@ extension TSPTPInputVC {
|
|
make.width.equalTo(k_ScreenWidth)
|
|
make.width.equalTo(k_ScreenWidth)
|
|
}
|
|
}
|
|
|
|
|
|
-// cusStackView.addSubviewToStack(promptTextView)
|
|
|
|
-// promptTextView.snp.makeConstraints { make in
|
|
|
|
-// make.height.equalTo(promptTextViewH)
|
|
|
|
-// make.width.equalTo(k_ScreenWidth)
|
|
|
|
-// }
|
|
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|