Forráskód Böngészése

发布成功页面完成

南鑫林 5 éve
szülő
commit
d1b5e49e3a

+ 3 - 3
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishSuccess/PublishSuccessController.swift

@@ -153,7 +153,7 @@ class PublishSuccessController: BaseViewController {
     }
     
     lazy var scrollView : UIScrollView = {
-        let scrollView = UIScrollView(frame: CGRect(x: 0, y: kNavBarTotalHeight, width: kScreenWidth, height: kScreenHeight-kNavBarTotalHeight-152))
+        let scrollView = UIScrollView(frame: CGRect(x: 0, y: kNavBarTotalHeight, width: kScreenWidth, height: kScreenHeight-kNavBarTotalHeight-179))
         scrollView.contentSize = CGSize(width: kScreenWidth, height: 667*kScaleWidth)
         scrollView.backgroundColor = kffffffColor
         return scrollView
@@ -247,8 +247,8 @@ class PublishSuccessController: BaseViewController {
         return scanLabel
     }()
     
-    lazy var shareCommunityContentView: ShareCommunityContentView = {
-        let shareCommunityContentView = ShareCommunityContentView(frame: CGRect(x: 0, y: kScreenHeight - 157, width: kScreenWidth, height: 157))
+    lazy var shareCommunityContentView: ShareCommunityVideoView = {
+        let shareCommunityContentView = ShareCommunityVideoView(frame: CGRect(x: 0, y: kScreenHeight - 184, width: kScreenWidth, height: 157))
         return shareCommunityContentView
     }()
     

+ 10 - 2
RainbowPlanet/RainbowPlanet/Modules/ShareModules/ShareCommunityModule/ShareCommunityVideo/ShareCommunityVideoView.swift

@@ -34,6 +34,7 @@ class ShareCommunityVideoView: BaseView {
     
     override func setupViews() {
         addSubview(titleLabel)
+        addSubview(beanLabel)
         addSubview(collectionView)
         
     }
@@ -45,8 +46,14 @@ class ShareCommunityVideoView: BaseView {
             make.left.equalTo(20)
             make.height.equalTo(20)
         }
+        beanLabel.snp.makeConstraints { (make) in
+            make.top.equalTo(titleLabel.snp.bottom).offset(10)
+            make.centerX.equalToSuperview()
+            make.height.equalTo(24)
+            make.width.equalTo(163)
+        }
         collectionView.snp.makeConstraints { (make) in
-            make.top.equalTo(titleLabel.snp.bottom).offset(18)
+            make.top.equalTo(beanLabel.snp.bottom).offset(20)
             make.height.equalTo(69)
             make.left.right.equalToSuperview()
         }
@@ -63,10 +70,11 @@ class ShareCommunityVideoView: BaseView {
     
     lazy var beanLabel: UILabel = {
         let beanLabel = UILabel()
-        beanLabel.textColor = kffffffColor
+        beanLabel.textColor = UIColor(hexString: "FFA42F")
         beanLabel.font = kMediumFont13
         beanLabel.textAlignment = .center
         beanLabel.text = "预计可获得0彩虹豆"
+        beanLabel.backgroundColor = UIColor(hexString: "FFF9F0")
         return beanLabel
     }()