Commit 090ca5eb authored by 刘俊宏's avatar 刘俊宏

分销订单管理cell待完善

parent 0c3b6adc
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,HeaderSelectViewDelegate ,SelectContentViewDelegate,TimeShowDownViewDeleagte{ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,HeaderSelectViewDelegate ,SelectContentViewDelegate,TimeShowDownViewDeleagte,UITableViewDelegate,UITableViewDataSource{
@IBOutlet weak var listView: UITableView! @IBOutlet weak var listView: UITableView!
...@@ -24,6 +24,10 @@ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchB ...@@ -24,6 +24,10 @@ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchB
//searchbar //searchbar
initSearchBar() initSearchBar()
initHeaderSelectView() initHeaderSelectView()
listView.register(UINib(nibName: "TitleContentCell", bundle: nil), forCellReuseIdentifier: "TitleContentCell")
listView.separatorStyle = .none
listView.delegate = self
listView.dataSource = self
} }
//MARK:--initSearchBar //MARK:--initSearchBar
...@@ -192,5 +196,18 @@ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchB ...@@ -192,5 +196,18 @@ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchB
@objc func loadData(){ @objc func loadData(){
} }
func numberOfSections(in tableView: UITableView) -> Int {
return 3
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 2
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleContentCell") as! TitleContentCell
return cell
}
} }
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/> <capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
...@@ -36,9 +37,9 @@ ...@@ -36,9 +37,9 @@
<constraint firstAttribute="height" constant="45" id="6Ma-LE-6Vg"/> <constraint firstAttribute="height" constant="45" id="6Ma-LE-6Vg"/>
</constraints> </constraints>
</view> </view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="rD1-9Z-Grg"> <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="rD1-9Z-Grg">
<rect key="frame" x="0.0" y="134" width="414" height="762"/> <rect key="frame" x="0.0" y="134" width="414" height="762"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/> <color key="backgroundColor" name="app底色"/>
</tableView> </tableView>
</subviews> </subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
...@@ -59,6 +60,9 @@ ...@@ -59,6 +60,9 @@
</view> </view>
</objects> </objects>
<resources> <resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor"> <systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor> </systemColor>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment