Переглянути джерело

专题也页面布局完成

南鑫林 6 роки тому
батько
коміт
e0f6c273f6

+ 1 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/Special/View/SpecialBannerView.swift

@@ -26,6 +26,7 @@ class SpecialBannerView: BaseView {
     lazy var bannerButton: UIButton = {
         let bannerButton = UIButton(type: UIButton.ButtonType.custom)
         bannerButton.setBackgroundImage(kImage(name: "logo"), for: UIControl.State.normal)
+        bannerButton.backgroundColor = UIColor.white
         bannerButton.cornerRadius = 4
         bannerButton.masksToBounds = true
         return bannerButton

+ 6 - 1
RainbowPlanet/RainbowPlanet/Modules/ShoppingMallModule/Special/View/SpecialView.swift

@@ -40,12 +40,17 @@ class SpecialView: BaseView {
         let tableView = UITableView()
         tableView.delegate = self
         tableView.dataSource = self
-//        tableView.rowHeight = 140
         tableView.showsVerticalScrollIndicator = false
         tableView.separatorColor = UIColor.clear
         tableView.backgroundColor = kf5f5f5Color
+        tableView.tableHeaderView = specialBannerView
         return tableView
     }()
+    //
+    lazy var specialBannerView: SpecialBannerView = {
+        let specialBannerView = SpecialBannerView(frame: CGRect(x: 0, y: 0, width: kScreenWidth, height: 110 * kScaleWidth))
+        return specialBannerView
+    }()
 
 }