Commit d7cca550 authored by 刘俊宏's avatar 刘俊宏

完成分销订单管理列表

parent eb4ccd97
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/>
<capability name="Named colors" minToolsVersion="9.0"/> <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="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
...@@ -95,13 +96,13 @@ ...@@ -95,13 +96,13 @@
</label> </label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KO3-dv-aSL"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KO3-dv-aSL">
<rect key="frame" x="15" y="43.5" width="315" height="30"/> <rect key="frame" x="15" y="43.5" width="315" height="30"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="30" id="MiX-0n-brC"/> <constraint firstAttribute="height" constant="30" id="MiX-0n-brC"/>
</constraints> </constraints>
</view> </view>
</subviews> </subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints> <constraints>
<constraint firstItem="aXp-oN-Cl6" firstAttribute="leading" secondItem="J1p-oh-7KC" secondAttribute="trailing" constant="10" id="2ki-px-UcJ"/> <constraint firstItem="aXp-oN-Cl6" firstAttribute="leading" secondItem="J1p-oh-7KC" secondAttribute="trailing" constant="10" id="2ki-px-UcJ"/>
<constraint firstItem="Fv7-Qm-wPF" firstAttribute="centerY" secondItem="J1p-oh-7KC" secondAttribute="centerY" id="3db-dH-3ub"/> <constraint firstItem="Fv7-Qm-wPF" firstAttribute="centerY" secondItem="J1p-oh-7KC" secondAttribute="centerY" id="3db-dH-3ub"/>
...@@ -122,7 +123,7 @@ ...@@ -122,7 +123,7 @@
</view> </view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZEQ-bR-jNZ"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZEQ-bR-jNZ">
<rect key="frame" x="0.0" y="48.5" width="345" height="0.0"/> <rect key="frame" x="0.0" y="48.5" width="345" height="0.0"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view> </view>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="预售" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ekx-rs-uaM"> <label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="预售" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ekx-rs-uaM">
<rect key="frame" x="67" y="15" width="32" height="18"/> <rect key="frame" x="67" y="15" width="32" height="18"/>
...@@ -167,7 +168,7 @@ ...@@ -167,7 +168,7 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</label> </label>
</subviews> </subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints> <constraints>
<constraint firstItem="ZEQ-bR-jNZ" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" id="3H6-Mf-efn"/> <constraint firstItem="ZEQ-bR-jNZ" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" id="3H6-Mf-efn"/>
<constraint firstItem="HVh-eU-WcT" firstAttribute="top" secondItem="xNb-6a-mWT" secondAttribute="top" constant="15" id="3vl-Na-tUS"/> <constraint firstItem="HVh-eU-WcT" firstAttribute="top" secondItem="xNb-6a-mWT" secondAttribute="top" constant="15" id="3vl-Na-tUS"/>
...@@ -207,8 +208,8 @@ ...@@ -207,8 +208,8 @@
<constraint firstItem="xNb-6a-mWT" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="hMZ-Hc-nFG"/> <constraint firstItem="xNb-6a-mWT" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="hMZ-Hc-nFG"/>
</constraints> </constraints>
</tableViewCellContentView> </tableViewCellContentView>
<color key="backgroundColor" name="app底色"/>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/> <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<color key="backgroundColor" name="app底色"/>
<connections> <connections>
<outlet property="btnBgView" destination="KO3-dv-aSL" id="FKG-4d-9rD"/> <outlet property="btnBgView" destination="KO3-dv-aSL" id="FKG-4d-9rD"/>
<outlet property="countLbl" destination="J1p-oh-7KC" id="brI-AH-qUH"/> <outlet property="countLbl" destination="J1p-oh-7KC" id="brI-AH-qUH"/>
...@@ -248,5 +249,8 @@ ...@@ -248,5 +249,8 @@
<namedColor name="蓝色字体颜色"> <namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources> </resources>
</document> </document>
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
import UIKit import UIKit
protocol TimeShowDownViewDeleagte { protocol TimeShowDownViewDeleagte {
func TimeShowDownViewSelectMoreDate(beginDate:Date?,endginDate:Date?)
func TimeShowDownViewRemoveForSup() func TimeShowDownViewRemoveForSup()
} }
...@@ -17,11 +19,13 @@ class TimeShowDownView: UIView,TimeSelectViewDelgate { ...@@ -17,11 +19,13 @@ class TimeShowDownView: UIView,TimeSelectViewDelgate {
var delegate:TimeShowDownViewDeleagte? var delegate:TimeShowDownViewDeleagte?
@IBAction func resetAction(_ sender: UIButton) { @IBAction func resetAction(_ sender: UIButton) {
delegate?.TimeShowDownViewSelectMoreDate(beginDate: nil, endginDate: nil)
self.delegate?.TimeShowDownViewRemoveForSup() self.delegate?.TimeShowDownViewRemoveForSup()
self.removeFromSuperview() self.removeFromSuperview()
} }
@IBAction func sureAction(_ sender: UIButton) { @IBAction func sureAction(_ sender: UIButton) {
delegate?.TimeShowDownViewSelectMoreDate(beginDate: BeginDate, endginDate: EndDate)
self.delegate?.TimeShowDownViewRemoveForSup() self.delegate?.TimeShowDownViewRemoveForSup()
self.removeFromSuperview() self.removeFromSuperview()
} }
...@@ -47,6 +51,15 @@ class TimeShowDownView: UIView,TimeSelectViewDelgate { ...@@ -47,6 +51,15 @@ class TimeShowDownView: UIView,TimeSelectViewDelgate {
@IBOutlet weak var timeBgView: UIView! @IBOutlet weak var timeBgView: UIView!
weak var CalendarV:TimeSelectView? weak var CalendarV:TimeSelectView?
func setOld(){
if BeginDate != nil {
CalendarV?.setOldDate(beginD: BeginDate, endD: EndDate)
let timeInterval:TimeInterval = BeginDate.timeIntervalSince1970
let timeIntervalEnd:TimeInterval = EndDate.timeIntervalSince1970
startTimeBtn.setTitle(dayByDouble(sender: timeInterval), for: .normal)
endTimeBtn.setTitle(dayByDouble(sender: timeIntervalEnd), for: .normal)
}
}
func addTimeView() { func addTimeView() {
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<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" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" 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="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" 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" name="app底色"/> <color key="backgroundColor" name="app底色"/>
</tableView> </tableView>
......
//
// RetailManageFooterView.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/11/11.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
protocol RetailManageFooterViewDelagte {
func tapRetailManageFooterBtnAction(sender:Int)
}
class RetailManageFooterView: UIView {
var delgate : RetailManageFooterViewDelagte?
var contentView:UIView!
@IBAction func ActionByBtn(_ sender: UIButton) {
delgate?.tapRetailManageFooterBtnAction(sender: sender.tag)
}
@IBOutlet weak var actionBtn: UIButton!
@IBOutlet weak var moneyLbl: UILabel!
@IBOutlet weak var contentBgView: UIView!
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
contentBgView.layer.cornerRadius = 10;
contentBgView.layer.maskedCorners = [CACornerMask.layerMinXMaxYCorner,CACornerMask.layerMaxXMaxYCorner]
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
contentBgView.layer.cornerRadius = 10;
contentBgView.layer.maskedCorners = [CACornerMask.layerMinXMaxYCorner,CACornerMask.layerMaxXMaxYCorner]
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="RetailManageFooterView" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="actionBtn" destination="2A1-E3-ezo" id="F6k-yP-6HB"/>
<outlet property="contentBgView" destination="Q67-Wj-Dca" id="RdH-6q-rFn"/>
<outlet property="moneyLbl" destination="DU0-hj-Wex" id="Nip-lf-4Bw"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="414" height="331"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Q67-Wj-Dca">
<rect key="frame" x="15" y="0.0" width="384" height="331"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GLe-RE-bAi">
<rect key="frame" x="0.0" y="0.0" width="384" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="erF-fm-M52"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12500.00(佣金200元)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DU0-hj-Wex">
<rect key="frame" x="233" y="16" width="136" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="#F57575"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="金额:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HNd-Yn-970">
<rect key="frame" x="191" y="16" width="39" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2A1-E3-ezo">
<rect key="frame" x="239" y="55" width="130" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="6ws-mc-JjN"/>
<constraint firstAttribute="width" constant="130" id="BMa-bg-Ae0"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="标记为已人工结算">
<color key="titleColor" name="蓝色字体颜色"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="蓝色字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="ActionByBtn:" destination="-1" eventType="touchUpInside" id="POP-nq-Wgz"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="DU0-hj-Wex" firstAttribute="top" secondItem="GLe-RE-bAi" secondAttribute="bottom" constant="15" id="0gO-0r-VeR"/>
<constraint firstItem="2A1-E3-ezo" firstAttribute="top" secondItem="DU0-hj-Wex" secondAttribute="bottom" constant="20" id="Bqo-tB-1xp"/>
<constraint firstAttribute="trailing" secondItem="DU0-hj-Wex" secondAttribute="trailing" constant="15" id="Cjx-4U-FjT"/>
<constraint firstItem="DU0-hj-Wex" firstAttribute="leading" secondItem="HNd-Yn-970" secondAttribute="trailing" constant="3" id="JSX-0W-vob"/>
<constraint firstAttribute="trailing" secondItem="2A1-E3-ezo" secondAttribute="trailing" constant="15" id="OUl-f1-Kia"/>
<constraint firstItem="GLe-RE-bAi" firstAttribute="leading" secondItem="Q67-Wj-Dca" secondAttribute="leading" id="OhS-no-0na"/>
<constraint firstItem="HNd-Yn-970" firstAttribute="centerY" secondItem="DU0-hj-Wex" secondAttribute="centerY" id="PNC-3e-hKG"/>
<constraint firstAttribute="trailing" secondItem="GLe-RE-bAi" secondAttribute="trailing" id="Qzt-Gm-10E"/>
<constraint firstItem="GLe-RE-bAi" firstAttribute="top" secondItem="Q67-Wj-Dca" secondAttribute="top" id="hBz-yR-jeg"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Q67-Wj-Dca" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="6Q1-me-COg"/>
<constraint firstAttribute="bottom" secondItem="Q67-Wj-Dca" secondAttribute="bottom" id="8wc-Zu-dJe"/>
<constraint firstItem="Q67-Wj-Dca" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="bCe-0K-uDJ"/>
<constraint firstAttribute="trailing" secondItem="Q67-Wj-Dca" secondAttribute="trailing" constant="15" id="uzL-xJ-Gle"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-19" y="89"/>
</view>
</objects>
<resources>
<namedColor name="#F57575">
<color red="0.96100002527236938" green="0.45899999141693115" blue="0.45899999141693115" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// RetailManageHeaderView.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/11/11.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class RetailManageHeaderView: UIView {
var contentView:UIView!
@IBOutlet weak var comLeft: NSLayoutConstraint!
@IBOutlet weak var contentBgView: UIView!
@IBOutlet weak var snNumLbl: UILabel!
@IBOutlet weak var comTypeLbl: UILabel!
@IBOutlet weak var payTypeLbl: UILabel!
@IBOutlet weak var nameLbl: UILabel!
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
contentBgView.layer.cornerRadius = 10;
contentBgView.layer.maskedCorners = [CACornerMask.layerMinXMinYCorner,CACornerMask.layerMaxXMinYCorner]
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
contentBgView.layer.cornerRadius = 10;
contentBgView.layer.maskedCorners = [CACornerMask.layerMinXMinYCorner,CACornerMask.layerMaxXMinYCorner]
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
//
// RetailManageViewCell.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/11/11.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class RetailManageViewCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
selectionStyle = .none
}
@IBOutlet weak var numLbl: UILabel!
@IBOutlet weak var dotImgV: UIImageView!
@IBOutlet weak var goodsLbl: UILabel!
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="228" id="KGk-i7-Jjw" customClass="RetailManageViewCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="331" height="228"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="331" height="228"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UDV-hj-QDc">
<rect key="frame" x="15" y="0.0" width="301" height="228"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dotLine" translatesAutoresizingMaskIntoConstraints="NO" id="7Tt-vd-rRF">
<rect key="frame" x="15" y="227" width="286" height="1"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="jLb-Fe-NA5"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zL3-WS-mto">
<rect key="frame" x="15" y="104.5" width="26" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rz0-eV-8Mh">
<rect key="frame" x="274" y="104.5" width="12" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="rz0-eV-8Mh" secondAttribute="trailing" constant="15" id="2s4-Eh-yaY"/>
<constraint firstAttribute="trailing" secondItem="7Tt-vd-rRF" secondAttribute="trailing" id="MH4-9F-Lhw"/>
<constraint firstAttribute="bottom" secondItem="7Tt-vd-rRF" secondAttribute="bottom" id="Pxe-Il-Xwa"/>
<constraint firstItem="rz0-eV-8Mh" firstAttribute="centerY" secondItem="UDV-hj-QDc" secondAttribute="centerY" id="Q1f-U0-WcG"/>
<constraint firstItem="zL3-WS-mto" firstAttribute="leading" secondItem="UDV-hj-QDc" secondAttribute="leading" constant="15" id="QPN-Gg-hpV"/>
<constraint firstItem="zL3-WS-mto" firstAttribute="centerY" secondItem="UDV-hj-QDc" secondAttribute="centerY" id="dLO-Q8-hMy"/>
<constraint firstItem="7Tt-vd-rRF" firstAttribute="leading" secondItem="UDV-hj-QDc" secondAttribute="leading" constant="15" id="hcL-ig-85r"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="zL3-WS-mto" secondAttribute="trailing" constant="60" id="sZb-jU-gGU"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="UDV-hj-QDc" secondAttribute="trailing" constant="15" id="Rhr-cP-ade"/>
<constraint firstItem="UDV-hj-QDc" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Xbd-Np-H0m"/>
<constraint firstAttribute="bottom" secondItem="UDV-hj-QDc" secondAttribute="bottom" id="cXA-U6-TPY"/>
<constraint firstItem="UDV-hj-QDc" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="vXJ-Ur-sxC"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="dotImgV" destination="7Tt-vd-rRF" id="pjf-F7-9Kw"/>
<outlet property="goodsLbl" destination="zL3-WS-mto" id="wYK-Xt-SgC"/>
<outlet property="numLbl" destination="rz0-eV-8Mh" id="emd-H7-AOF"/>
</connections>
<point key="canvasLocation" x="73.188405797101453" y="184.15178571428569"/>
</tableViewCell>
</objects>
<resources>
<image name="dotLine" width="330" height="0.5"/>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
...@@ -656,7 +656,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -656,7 +656,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return return
case 140: //分销订单管理 case 140: //分销订单管理
HUD.flash(.label("敬请期待"),delay: 1.2) let vc = RetailManageViewController()
self.navigationController?.pushViewController(vc, animated: true)
return return
case 142: //供应商商品管理 case 142: //供应商商品管理
HUD.flash(.label("敬请期待"),delay: 1.2) HUD.flash(.label("敬请期待"),delay: 1.2)
......
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