Explorar el Código

富文本修复bug

南鑫林 hace 5 años
padre
commit
f5c570a969

+ 5 - 5
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityRecommendDetail/View/HTMLCell/CommunityRecommendDetailHTMLTableViewCell.swift

@@ -114,7 +114,7 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
             make.height.equalTo(10)
         }
         locationButton.snp.makeConstraints { (make) in
-            make.left.equalTo(-14)
+            make.left.equalTo(14)
             make.top.equalTo(collectionView.snp.bottom).offset(15)
             make.height.equalTo(15)
         }
@@ -326,7 +326,7 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
             var titleSpecHeight : CGFloat = 0
             var locationSpecHeight : CGFloat = 0
             
-            if communityPostDetailModel?.title == nil && communityPostDetailModel?.title == "" {
+            if communityPostDetailModel?.title == nil || communityPostDetailModel?.title == "" {
                 titleHeight = 0
                 titleSpecHeight = 0
             }else {
@@ -334,7 +334,7 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
                 titleSpecHeight = 10
             }
             
-            if communityPostDetailModel?.location == nil && communityPostDetailModel?.location == "" {
+            if communityPostDetailModel?.location == nil || communityPostDetailModel?.location == "" {
                 locationHeight = 0.0
                 locationSpecHeight = 20
             }else {
@@ -344,9 +344,9 @@ class CommunityRecommendDetailHTMLTableViewCell: UITableViewCell {
             
             let subViewHeight = titleHeight + 44.0 + 16 +  (webViewCellHeight ?? 0) + collectionViewheight + locationHeight
             
-            let specHeight  =  titleSpecHeight + 10 + 5 + 20 + locationSpecHeight + 15
+            let specHeight  =  titleSpecHeight + 10 + 5 + 20 + locationSpecHeight
             
-            heightModel?.height = CGFloat(subViewHeight) + specHeight - 30
+            heightModel?.height = CGFloat(subViewHeight) + specHeight
         }
     }
 

+ 2 - 2
RainbowPlanet/RainbowPlanet/Service/SwiftMoyaService/SwiftMoyaServiceManger/SwiftMoyaNetWorkManager/ApiMacro.swift

@@ -5,8 +5,8 @@ let kBetaSever = false
 let kProductSever = false
 
 /// H5Service
-let kH5PersonalService = true
-let kH5DevelopSever = false
+let kH5PersonalService = false
+let kH5DevelopSever = true
 let kH5BetaSever = false
 let kH5ProductSever = false