Quellcode durchsuchen

订单支付 -- 订单列表

Chris vor 6 Jahren
Ursprung
Commit
6c9acbe0f9

+ 12 - 0
RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj

@@ -248,6 +248,9 @@
 		BD20F1D32283D0ED00677D8E /* ShoppingCartPaySuccessCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD20F1D22283D0ED00677D8E /* ShoppingCartPaySuccessCell.swift */; };
 		BD20F1D52283D15500677D8E /* ShoppingCartPayFailureCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD20F1D42283D15500677D8E /* ShoppingCartPayFailureCell.swift */; };
 		BD20F1D82283D2AA00677D8E /* ShoppingCartModule.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BD20F1D72283D2AA00677D8E /* ShoppingCartModule.xcassets */; };
+		BD7AB83622841A8B0030646A /* ShoppingCartPayOrderItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD7AB83522841A8B0030646A /* ShoppingCartPayOrderItemCell.swift */; };
+		BD7AB838228420310030646A /* ShoppingCartPayOrderHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD7AB837228420310030646A /* ShoppingCartPayOrderHeader.swift */; };
+		BD7AB83A2284288D0030646A /* ShoppingCartPayOrderFooter.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD7AB8392284288D0030646A /* ShoppingCartPayOrderFooter.swift */; };
 		BDD4FB1222840597006FE833 /* ShoppingCartPayOrderController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDD4FB1122840597006FE833 /* ShoppingCartPayOrderController.swift */; };
 		BDD4FB1422840954006FE833 /* ShoppingCartOrderPayView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDD4FB1322840954006FE833 /* ShoppingCartOrderPayView.swift */; };
 		BDD4FB1722840DD3006FE833 /* OrderPayAcountView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDD4FB1622840DD3006FE833 /* OrderPayAcountView.swift */; };
@@ -533,6 +536,9 @@
 		BD20F1D22283D0ED00677D8E /* ShoppingCartPaySuccessCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartPaySuccessCell.swift; sourceTree = "<group>"; };
 		BD20F1D42283D15500677D8E /* ShoppingCartPayFailureCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartPayFailureCell.swift; sourceTree = "<group>"; };
 		BD20F1D72283D2AA00677D8E /* ShoppingCartModule.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = ShoppingCartModule.xcassets; sourceTree = "<group>"; };
+		BD7AB83522841A8B0030646A /* ShoppingCartPayOrderItemCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartPayOrderItemCell.swift; sourceTree = "<group>"; };
+		BD7AB837228420310030646A /* ShoppingCartPayOrderHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartPayOrderHeader.swift; sourceTree = "<group>"; };
+		BD7AB8392284288D0030646A /* ShoppingCartPayOrderFooter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartPayOrderFooter.swift; sourceTree = "<group>"; };
 		BD9052C044FD3AE4E62D3929 /* Pods-RainbowPlanet.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RainbowPlanet.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet.debug.xcconfig"; sourceTree = "<group>"; };
 		BDD4FB1122840597006FE833 /* ShoppingCartPayOrderController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartPayOrderController.swift; sourceTree = "<group>"; };
 		BDD4FB1322840954006FE833 /* ShoppingCartOrderPayView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShoppingCartOrderPayView.swift; sourceTree = "<group>"; };
@@ -2149,6 +2155,9 @@
 		BDD4FB1522840A69006FE833 /* ShoppingCartOrderPay */ = {
 			isa = PBXGroup;
 			children = (
+				BD7AB837228420310030646A /* ShoppingCartPayOrderHeader.swift */,
+				BD7AB8392284288D0030646A /* ShoppingCartPayOrderFooter.swift */,
+				BD7AB83522841A8B0030646A /* ShoppingCartPayOrderItemCell.swift */,
 			);
 			path = ShoppingCartOrderPay;
 			sourceTree = "<group>";
@@ -2487,6 +2496,7 @@
 				A77F2CA02231FE45001BD3F6 /* BaseWebViewController.swift in Sources */,
 				BD20F1D52283D15500677D8E /* ShoppingCartPayFailureCell.swift in Sources */,
 				A72A72C022321DE000B21995 /* Extension+UIView.swift in Sources */,
+				BD7AB83A2284288D0030646A /* ShoppingCartPayOrderFooter.swift in Sources */,
 				A72A72C522321DE000B21995 /* WKWebViewConfig.swift in Sources */,
 				A72A72BB22321DE000B21995 /* Extension+UILabel.swift in Sources */,
 				A77F2C9E2231FDDC001BD3F6 /* BaseViewController.swift in Sources */,
@@ -2533,6 +2543,7 @@
 				A7CC75332271ABB0003C4F38 /* AddressManagerViewController.swift in Sources */,
 				A7CC750D227157DA003C4F38 /* MessageDetailesView.swift in Sources */,
 				A7B4E72B2281752B0012914A /* ShoppingMallBarChartTableViewCell.swift in Sources */,
+				BD7AB83622841A8B0030646A /* ShoppingCartPayOrderItemCell.swift in Sources */,
 				A71AA519227219D7008FF1A5 /* EditExpressAddressViewController.swift in Sources */,
 				BD20F1CD2283C51300677D8E /* ShoppingCartFinishPayController.swift in Sources */,
 				A729B5B022671310004AE098 /* MobileLoginView.swift in Sources */,
@@ -2682,6 +2693,7 @@
 				BD20F1CF2283CE2300677D8E /* ShoppingCartFinishPayView.swift in Sources */,
 				A7A98E4322804851005306E9 /* ShoppingMallSepcialFlowLayout.swift in Sources */,
 				A79057062276EA3D0037F823 /* OpenCityListModel.swift in Sources */,
+				BD7AB838228420310030646A /* ShoppingCartPayOrderHeader.swift in Sources */,
 				A7824B002271F0DD00ABA381 /* EditSelfMentionContactsViewController.swift in Sources */,
 				A7CC751F227190C5003C4F38 /* AccountSecurityViewController.swift in Sources */,
 				A7284440224DFACD00F82F30 /* InfoModel.swift in Sources */,

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/OrderPayAcountView.swift

@@ -59,7 +59,7 @@ class OrderPayAcountView: BaseView {
     
     private lazy var priceLabel: UILabel = {
         let priceLabel = UILabel()
-        priceLabel.text = "¥0.00"
+        priceLabel.text = "¥324"
         priceLabel.textColor = kFE352BColor
         priceLabel.font = kScaleBoldFont18
         return priceLabel

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartList/ShoppingCartListNoneItemCell.swift

@@ -4,7 +4,7 @@
 //
 //  Created by Christopher on 2019/5/9.
 //  Copyright © 2019 RainbowPlanet. All rights reserved.
-//  购物车无商品の缺省Cell
+//  购物车--无商品の缺省Cell
 
 import UIKit
 import RxSwift

+ 7 - 7
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartList/ShoppingCartListTableViewCell.swift

@@ -4,7 +4,7 @@
 //
 //  Created by Christopher on 2019/5/8.
 //  Copyright © 2019 RainbowPlanet. All rights reserved.
-//  购物车商品列表Cell
+//  购物车--商品列表Cell
 
 import UIKit
 
@@ -75,7 +75,7 @@ class ShoppingCartListTableViewCell: UITableViewCell {
         iconImagView.snp.makeConstraints { (make) in
             make.left.equalToSuperview().offset(40)
             make.centerY.equalToSuperview()
-            make.width.height.equalTo(92 * kScaleWidth)
+            make.width.height.equalTo(92)
         }
         titleLabel.snp.makeConstraints { (make) in
             make.left.equalTo(iconImagView.snp_right).offset(10)
@@ -140,7 +140,7 @@ class ShoppingCartListTableViewCell: UITableViewCell {
         let titleLabel = UILabel()
         titleLabel.text = "妈妈冬装外套棉袄短款"
         titleLabel.textColor = k333333Color
-        titleLabel.font = kScaleBoldFont14
+        titleLabel.font = kBoldFont14
         titleLabel.textAlignment = .left
         titleLabel.numberOfLines = 1
         return titleLabel
@@ -150,7 +150,7 @@ class ShoppingCartListTableViewCell: UITableViewCell {
         let deliveryTime = UILabel()
         deliveryTime.text = "预计配送时间:次日达"
         deliveryTime.textColor = k666666Color
-        deliveryTime.font = kScaleRegularFont12
+        deliveryTime.font = kRegularFont12
         deliveryTime.textAlignment = .left
         return deliveryTime
     }()
@@ -159,7 +159,7 @@ class ShoppingCartListTableViewCell: UITableViewCell {
         let sellScaleLabel = UILabel()
         sellScaleLabel.text = "规格:3个装"
         sellScaleLabel.textColor = k999999Color
-        sellScaleLabel.font = kScaleRegularFont12
+        sellScaleLabel.font = kRegularFont12
         return sellScaleLabel
     }()
 
@@ -167,7 +167,7 @@ class ShoppingCartListTableViewCell: UITableViewCell {
         let sellNumberLabel = UILabel()
         sellNumberLabel.text = "x1"
         sellNumberLabel.textColor = k999999Color
-        sellNumberLabel.font = kScaleRegularFont12
+        sellNumberLabel.font = kRegularFont12
         return sellNumberLabel
     }()
 
@@ -175,7 +175,7 @@ class ShoppingCartListTableViewCell: UITableViewCell {
         let sellPriceLabel = UILabel()
         sellPriceLabel.text = "¥11.8"
         sellPriceLabel.textColor = kfe352bColor
-        sellPriceLabel.font = kScaleBoldFont15
+        sellPriceLabel.font = kBoldFont15
         sellPriceLabel.textAlignment = .left
         return sellPriceLabel
     }()

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartList/ShoppingCartListTableViewHeader.swift

@@ -4,7 +4,7 @@
 //
 //  Created by Christopher on 2019/5/8.
 //  Copyright © 2019 RainbowPlanet. All rights reserved.
-//  购物车商品列表Header
+//  购物车--商品列表Header
 
 import UIKit
 import RxSwift

+ 107 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartOrderPay/ShoppingCartPayOrderFooter.swift

@@ -0,0 +1,107 @@
+//
+//  ShoppingCartPayOrderFooter.swift
+//  RainbowPlanet
+//
+//  Created by Christopher on 2019/5/9.
+//  Copyright © 2019 RainbowPlanet. All rights reserved.
+//  订单支付--商品列表Footer
+
+import UIKit
+import RxSwift
+import RxCocoa
+
+class ShoppingCartPayOrderFooter: BaseView {
+    
+    override var frame: CGRect {
+        get {
+            return super.frame
+        }
+        set {
+            var frame = newValue
+            frame.origin.x += 14 * kScaleWidth
+            frame.size.width -= 14 * kScaleWidth * 2
+            super.frame = frame
+        }
+    }
+    
+    override func setupViews() {
+        self.backgroundColor = kffffffColor
+        addSubview(msgLabel)
+        addSubview(msgTextField)
+        addSubview(priceLabel)
+        addSubview(numberLabel)
+    }
+    
+    override func setupLayouts() {
+        msgLabel.snp.makeConstraints { (make) in
+            make.left.top.equalToSuperview().offset(14)
+            make.width.equalTo(56)
+            make.height.equalTo(20)
+        }
+        
+        msgTextField.snp.makeConstraints { (make) in
+            make.centerY.equalTo(msgLabel)
+            make.left.equalTo(msgLabel.snp_right).offset(11)
+            make.right.equalTo(-14)
+            make.height.equalTo(28)
+        }
+        
+        priceLabel.snp.makeConstraints { (make) in
+            make.top.equalTo(msgTextField.snp_bottom).offset(20)
+            make.right.equalTo(msgTextField)
+            make.height.equalTo(20)
+        }
+        
+        numberLabel.snp.makeConstraints { (make) in
+            make.right.equalTo(priceLabel.snp_left)
+            make.centerY.equalTo(priceLabel)
+            make.height.equalTo(priceLabel)
+        }
+    }
+    
+    private lazy var msgLabel: UILabel = {
+        let msgLabel = UILabel()
+        msgLabel.text = "买家留言"
+        msgLabel.textColor = k333333Color
+        msgLabel.font = kRegularFont14
+        msgLabel.textAlignment = .left
+        return msgLabel
+    }()
+    
+    private lazy var msgTextField : UITextField = {
+        let msgTextField = UITextField()
+        msgTextField.placeholder = "单行输入"
+        msgTextField.borderStyle = .roundedRect
+        msgTextField.textColor = k666666Color
+        msgTextField.font = kRegularFont12
+        msgTextField.clearButtonMode = .whileEditing
+        msgTextField.sizeToFit()
+        msgTextField.tintColor = kFFA42FColor
+        
+        msgTextField.rx.text.changed.subscribe(onNext: { [weak self] (text) in
+//            self?.msgTextField.text = String(text?.prefix(11) ?? "") as String
+//            self?.phoneNumber = self?.msgTextField.text ?? ""
+//            self?.observableString()
+        }).disposed(by: disposeBag)
+        return msgTextField
+    }()
+    
+    private lazy var priceLabel: UILabel = {
+        let priceLabel = UILabel()
+        priceLabel.text = "合计"
+        priceLabel.textColor = k999999Color
+        priceLabel.font = kRegularFont14
+        priceLabel.textAlignment = .right
+        return priceLabel
+    }()
+    
+    private lazy var numberLabel: UILabel = {
+        let numberLabel = UILabel()
+        numberLabel.text = "共x件商品,"
+        numberLabel.textColor = k999999Color
+        numberLabel.font = kRegularFont14
+        numberLabel.textAlignment = .right
+        return numberLabel
+    }()
+    
+}

+ 68 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartOrderPay/ShoppingCartPayOrderHeader.swift

@@ -0,0 +1,68 @@
+//
+//  ShoppingCartPayOrderHeader.swift
+//  RainbowPlanet
+//
+//  Created by Christopher on 2019/5/9.
+//  Copyright © 2019 RainbowPlanet. All rights reserved.
+//  订单支付--商品列表Header
+
+import UIKit
+import RxSwift
+import RxCocoa
+
+class ShoppingCartPayOrderHeader: BaseView {
+    
+    override var frame: CGRect {
+        get {
+            return super.frame
+        }
+        set {
+            var frame = newValue
+            frame.origin.x += 14 * kScaleWidth
+            frame.size.width -= 14 * kScaleWidth * 2
+            super.frame = frame
+        }
+    }
+    
+    override func setupViews() {
+        self.backgroundColor = kffffffColor
+        addSubview(separateView)
+        addSubview(titleButton)
+    }
+    
+    override func setupLayouts() {
+        separateView.snp.makeConstraints { (make) in
+            make.left.top.right.equalToSuperview()
+            make.height.equalTo(10)
+        }
+        
+        titleButton.snp.makeConstraints { (make) in
+            make.left.equalToSuperview().offset(10)
+            make.centerY.equalToSuperview()
+        }
+    }
+    
+    private lazy var separateView: UIView = {
+        let separateView = UIView()
+        separateView.backgroundColor = kf7f8faColor
+        return separateView
+    }()
+    
+    private lazy var titleButton: UIButton = {
+        let titleButton = UIButton(type: UIButton.ButtonType.custom)
+        titleButton.setTitle("彩虹星球专营", for: UIControl.State.normal)
+        titleButton.setTitleColor(k333333Color, for: UIControl.State.normal)
+        titleButton.setTitleColor(k666666Color, for: UIControl.State.selected)
+        titleButton.titleLabel?.font = kScaleRegularFont14
+        titleButton.rx.tap.subscribe(onNext: { [weak self] (data) in
+            
+            //            if let loginBlock = self?.loginBlock {
+            //                loginBlock((self?.phoneNumber)!,(self?.password)!)
+            //            }
+            print("点击了当前店铺Header")
+            
+        }).disposed(by: disposeBag)
+        return titleButton
+    }()
+    
+}

+ 149 - 0
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartOrderPay/ShoppingCartPayOrderItemCell.swift

@@ -0,0 +1,149 @@
+//
+//  ShoppingCartPayOrderItemCell.swift
+//  RainbowPlanet
+//
+//  Created by Christopher on 2019/5/9.
+//  Copyright © 2019 RainbowPlanet. All rights reserved.
+//  订单支付--商品列表Cell
+
+import UIKit
+
+class ShoppingCartPayOrderItemCell: UITableViewCell {
+    
+    override var frame: CGRect {
+        get {
+            return super.frame
+        }
+        set {
+            var frame = newValue
+            frame.origin.x += 14 * kScaleWidth
+            frame.size.width -= 14 * kScaleWidth * 2
+            super.frame = frame
+        }
+    }
+    
+    class func cellWith(tableView:UITableView,indexPath:IndexPath) -> ShoppingCartPayOrderItemCell {
+        let ID = "ShoppingCartPayOrderItemCell"
+        tableView.register(ShoppingCartPayOrderItemCell.self, forCellReuseIdentifier: ID)
+        let cell : ShoppingCartPayOrderItemCell = tableView.dequeueReusableCell(withIdentifier: ID, for: indexPath) as! ShoppingCartPayOrderItemCell
+        cell.indexPath = indexPath
+        return cell
+    }
+    
+    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
+        super.init(style: style, reuseIdentifier: reuseIdentifier)
+        setupViews()
+        setupLayouts()
+    }
+    
+    required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+    
+    var indexPath: IndexPath? {
+        didSet {
+            
+        }
+    }
+    
+    //MRAK: - 设置View
+    private func setupViews() {
+        self.selectionStyle = .none
+        //        cornerRadius = 4
+        //        masksToBounds = true
+        
+        addSubview(iconImagView)
+        addSubview(titleLabel)
+        addSubview(deliveryTime)
+        addSubview(sellScaleLabel)
+        addSubview(sellNumberLabel)
+        addSubview(sellPriceLabel)
+        
+    }
+    
+    private func setupLayouts() {
+        iconImagView.snp.makeConstraints { (make) in
+            make.top.left.equalToSuperview().offset(14)
+            make.width.height.equalTo(92)
+            make.bottom.equalToSuperview().offset(-14)
+        }
+        titleLabel.snp.makeConstraints { (make) in
+            make.left.equalTo(iconImagView.snp_right).offset(10)
+            make.top.equalTo(14)
+            make.right.equalTo(-26)
+            make.height.equalTo(20)
+        }
+        deliveryTime.snp.makeConstraints { (make) in
+            make.top.equalTo(titleLabel.snp.bottom).offset(8)
+            make.right.left.equalTo(titleLabel)
+            make.height.equalTo(17)
+        }
+        sellScaleLabel.snp.makeConstraints { (make) in
+            make.top.equalTo(deliveryTime.snp.bottom).offset(8)
+            make.left.right.equalTo(deliveryTime)
+            make.height.equalTo(17)
+        }
+        sellNumberLabel.snp.makeConstraints { (make) in
+            make.top.equalTo(sellScaleLabel.snp.bottom).offset(4)
+            make.left.equalTo(sellScaleLabel)
+            make.height.equalTo(17)
+        }
+        sellPriceLabel.snp.remakeConstraints { (make) in
+            make.right.equalTo(-14)
+            make.height.equalTo(20)
+            make.centerY.equalTo(sellNumberLabel)
+        }
+        
+    }
+    
+    private lazy var iconImagView: UIImageView = {
+        let iconImagView = UIImageView()
+        iconImagView.image = kImage(name: "pic_preload")
+        return iconImagView
+    }()
+    
+    private lazy var titleLabel: UILabel = {
+        let titleLabel = UILabel()
+        titleLabel.text = "妈妈冬装外套棉袄短款"
+        titleLabel.textColor = k333333Color
+        titleLabel.font = kBoldFont14
+        titleLabel.textAlignment = .left
+        titleLabel.numberOfLines = 1
+        return titleLabel
+    }()
+    
+    private lazy var deliveryTime: UILabel = {
+        let deliveryTime = UILabel()
+        deliveryTime.text = "预计配送时间:次日达"
+        deliveryTime.textColor = k666666Color
+        deliveryTime.font = kRegularFont12
+        deliveryTime.textAlignment = .left
+        return deliveryTime
+    }()
+    
+    private lazy var sellScaleLabel: UILabel = {
+        let sellScaleLabel = UILabel()
+        sellScaleLabel.text = "规格:3个装"
+        sellScaleLabel.textColor = k999999Color
+        sellScaleLabel.font = kRegularFont12
+        return sellScaleLabel
+    }()
+    
+    private lazy var sellNumberLabel: UILabel = {
+        let sellNumberLabel = UILabel()
+        sellNumberLabel.text = "x1"
+        sellNumberLabel.textColor = k999999Color
+        sellNumberLabel.font = kRegularFont12
+        return sellNumberLabel
+    }()
+    
+    private lazy var sellPriceLabel: UILabel = {
+        let sellPriceLabel = UILabel()
+        sellPriceLabel.text = "¥258"
+        sellPriceLabel.textColor = k333333Color
+        sellPriceLabel.font = kRegularFont14
+        sellPriceLabel.textAlignment = .left
+        return sellPriceLabel
+    }()
+    
+}

+ 30 - 18
RainbowPlanet/RainbowPlanet/Modules/ShoppingCartModule/ShoppingCart/View/ShoppingCartOrderPayView.swift

@@ -53,33 +53,26 @@ class ShoppingCartOrderPayView: BaseView {
 
 extension ShoppingCartOrderPayView : UITableViewDelegate, UITableViewDataSource {
     func numberOfSections(in tableView: UITableView) -> Int {
-        return 2
+        return 3
     }
     
     func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-        switch section {
-        case 0:
+        if section == 0 {
             return 1
-        case 1:
+        } else {
             return 2
-        default:
-            return 1
         }
     }
     
     func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-        switch indexPath.section {
-        case 0:
+        if indexPath.section == 0 {
             let cell = ShoppingCartListNoneItemCell.cellWith(tableView: tableView, indexPath: indexPath)
             return cell
-        case 1:
-            let cell = ShoppingCartListTableViewCell.cellWith(tableView: tableView, indexPath: indexPath)
-            return cell
             
-        default:
-            return UITableViewCell()
+        } else {
+            let cell = ShoppingCartPayOrderItemCell.cellWith(tableView: tableView, indexPath: indexPath)
+            return cell
         }
-        
     }
     
     func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
@@ -87,18 +80,37 @@ extension ShoppingCartOrderPayView : UITableViewDelegate, UITableViewDataSource
     }
     
     func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
-        return 10
+        if section == 0 {
+            return 10
+        } else {
+            return 48
+        }
     }
     
     func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
-        return nil
+        if section == 0 {
+            return nil
+        } else {
+            let headerView = ShoppingCartPayOrderHeader(frame: CGRect(x: 0, y: 0, width: kScreenWidth, height: 48))
+            return headerView
+        }
     }
     
     func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
-        return 0.000001
+        if section == 0 {
+            return 0.000001
+        } else {
+            return 88
+        }
     }
+    
     func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
-        return nil
+        if section == 0 {
+            return nil
+        } else {
+            let footerView = ShoppingCartPayOrderFooter(frame: CGRect(x: 0, y: 0, width: kScreenWidth, height: 88))
+            return footerView
+        }
     }
     
 }