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

完成货拉拉运单详情UI页面

parent ece28070
......@@ -537,6 +537,13 @@
F96A585124790E300070A057 /* TFHppleElement.m in Sources */ = {isa = PBXBuildFile; fileRef = F96A584E24790E300070A057 /* TFHppleElement.m */; };
F96A585224790E300070A057 /* XPathQuery.m in Sources */ = {isa = PBXBuildFile; fileRef = F96A584F24790E300070A057 /* XPathQuery.m */; };
F96A5856247BBFFF0070A057 /* AddGuiGeCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F96A5855247BBFFF0070A057 /* AddGuiGeCell.xib */; };
F96E489F24CA7930000AB8D4 /* WaybillDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96E489D24CA7930000AB8D4 /* WaybillDetailViewController.swift */; };
F96E48A024CA7930000AB8D4 /* WaybillDetailViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F96E489E24CA7930000AB8D4 /* WaybillDetailViewController.xib */; };
F96E48A324CA79D4000AB8D4 /* WayBillAddressItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96E48A124CA79D4000AB8D4 /* WayBillAddressItemCell.swift */; };
F96E48A424CA79D4000AB8D4 /* WayBillAddressItemCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F96E48A224CA79D4000AB8D4 /* WayBillAddressItemCell.xib */; };
F96E48A724CA90DC000AB8D4 /* DriverItemTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96E48A524CA90DC000AB8D4 /* DriverItemTableViewCell.swift */; };
F96E48A824CA90DC000AB8D4 /* DriverItemTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F96E48A624CA90DC000AB8D4 /* DriverItemTableViewCell.xib */; };
F96E48AA24CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F96E48A924CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib */; };
F96E9D59246656A700B5B94A /* HGImageCompleteButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96E9D54246656A700B5B94A /* HGImageCompleteButton.swift */; };
F96E9D5A246656A700B5B94A /* HGImageCollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96E9D55246656A700B5B94A /* HGImageCollectionViewController.swift */; };
F96E9D5B246656A700B5B94A /* HGImageCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96E9D56246656A700B5B94A /* HGImageCollectionViewCell.swift */; };
......@@ -563,6 +570,7 @@
F9DDBE922457BFEC00A32CB2 /* HUDEXT.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9DDBE912457BFEC00A32CB2 /* HUDEXT.swift */; };
F9DDBE962457D3EC00A32CB2 /* WebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9DDBE942457D3EC00A32CB2 /* WebViewController.swift */; };
F9DDBE972457D3EC00A32CB2 /* WebViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F9DDBE952457D3EC00A32CB2 /* WebViewController.xib */; };
F9F2866724CA95FD00959142 /* TitleTimeHeaderFooterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9F2866624CA95FD00959142 /* TitleTimeHeaderFooterView.swift */; };
F9FF1E45247D1F670026FCE3 /* StringFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9FF1E44247D1F670026FCE3 /* StringFile.swift */; };
F9FF7BA124760DA9006E305E /* LogisticsCompanyModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9FF7BA024760DA9006E305E /* LogisticsCompanyModel.swift */; };
/* End PBXBuildFile section */
......@@ -1181,6 +1189,13 @@
F96A584E24790E300070A057 /* TFHppleElement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TFHppleElement.m; sourceTree = "<group>"; };
F96A584F24790E300070A057 /* XPathQuery.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XPathQuery.m; sourceTree = "<group>"; };
F96A5855247BBFFF0070A057 /* AddGuiGeCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AddGuiGeCell.xib; sourceTree = "<group>"; };
F96E489D24CA7930000AB8D4 /* WaybillDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WaybillDetailViewController.swift; sourceTree = "<group>"; };
F96E489E24CA7930000AB8D4 /* WaybillDetailViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WaybillDetailViewController.xib; sourceTree = "<group>"; };
F96E48A124CA79D4000AB8D4 /* WayBillAddressItemCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WayBillAddressItemCell.swift; sourceTree = "<group>"; };
F96E48A224CA79D4000AB8D4 /* WayBillAddressItemCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WayBillAddressItemCell.xib; sourceTree = "<group>"; };
F96E48A524CA90DC000AB8D4 /* DriverItemTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DriverItemTableViewCell.swift; sourceTree = "<group>"; };
F96E48A624CA90DC000AB8D4 /* DriverItemTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DriverItemTableViewCell.xib; sourceTree = "<group>"; };
F96E48A924CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TitleTimeHeaderFooterView.xib; sourceTree = "<group>"; };
F96E9D54246656A700B5B94A /* HGImageCompleteButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HGImageCompleteButton.swift; sourceTree = "<group>"; };
F96E9D55246656A700B5B94A /* HGImageCollectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HGImageCollectionViewController.swift; sourceTree = "<group>"; };
F96E9D56246656A700B5B94A /* HGImageCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HGImageCollectionViewCell.swift; sourceTree = "<group>"; };
......@@ -1207,6 +1222,7 @@
F9DDBE912457BFEC00A32CB2 /* HUDEXT.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HUDEXT.swift; sourceTree = "<group>"; };
F9DDBE942457D3EC00A32CB2 /* WebViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewController.swift; sourceTree = "<group>"; };
F9DDBE952457D3EC00A32CB2 /* WebViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WebViewController.xib; sourceTree = "<group>"; };
F9F2866624CA95FD00959142 /* TitleTimeHeaderFooterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleTimeHeaderFooterView.swift; sourceTree = "<group>"; };
F9FF1E44247D1F670026FCE3 /* StringFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringFile.swift; sourceTree = "<group>"; };
F9FF7BA024760DA9006E305E /* LogisticsCompanyModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LogisticsCompanyModel.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
......@@ -2869,6 +2885,7 @@
F9A4AB6A24C9220C00094BD1 /* 货拉拉 */ = {
isa = PBXGroup;
children = (
F9A4F25124C9926700D1DD13 /* 运单详情 */,
F9A4F24C24C9687300D1DD13 /* 额外需求 */,
F9A4AB7024C9337600094BD1 /* 下单联系人信息 */,
F9A4AB6B24C9278200094BD1 /* 费用明细 */,
......@@ -2903,6 +2920,29 @@
path = "额外需求";
sourceTree = "<group>";
};
F9A4F25124C9926700D1DD13 /* 运单详情 */ = {
isa = PBXGroup;
children = (
F9A4F25224C9927600D1DD13 /* cell */,
F96E489D24CA7930000AB8D4 /* WaybillDetailViewController.swift */,
F96E489E24CA7930000AB8D4 /* WaybillDetailViewController.xib */,
);
path = "运单详情";
sourceTree = "<group>";
};
F9A4F25224C9927600D1DD13 /* cell */ = {
isa = PBXGroup;
children = (
F96E48A124CA79D4000AB8D4 /* WayBillAddressItemCell.swift */,
F96E48A224CA79D4000AB8D4 /* WayBillAddressItemCell.xib */,
F96E48A524CA90DC000AB8D4 /* DriverItemTableViewCell.swift */,
F96E48A624CA90DC000AB8D4 /* DriverItemTableViewCell.xib */,
F9F2866624CA95FD00959142 /* TitleTimeHeaderFooterView.swift */,
F96E48A924CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib */,
);
path = cell;
sourceTree = "<group>";
};
F9DDBE932457D3CB00A32CB2 /* Web */ = {
isa = PBXGroup;
children = (
......@@ -3033,6 +3073,7 @@
E042F731245272FF00CDFA12 /* XiaYunDanViewController.xib in Resources */,
F9023F63244999F500DD5A63 /* WarehoseMangementCell.xib in Resources */,
E051EBD824A1F0ED00892DA9 /* CGDCell.xib in Resources */,
F96E48A024CA7930000AB8D4 /* WaybillDetailViewController.xib in Resources */,
E0BE8A84245A76AF00E80134 /* XiaDanCGDiZhiCell.xib in Resources */,
E0516F832448086700E373CE /* MsgCenterCell.xib in Resources */,
E0228BB1246FDA9A005812FA /* TitleAndLblCell.xib in Resources */,
......@@ -3057,6 +3098,7 @@
F9A4F25024C9689600D1DD13 /* OtherDemandViewController.xib in Resources */,
E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */,
E06524EE2458008900CA22E2 /* RuKuViewController.xib in Resources */,
F96E48A824CA90DC000AB8D4 /* DriverItemTableViewCell.xib in Resources */,
E06524F624580BB600CA22E2 /* BaoZhiQiCell.xib in Resources */,
E0D197C7244845FD002B080C /* PersonCenterViewController.xib in Resources */,
F93E320B2473D83D00524DFC /* GeliAlertTextFiled.xib in Resources */,
......@@ -3104,6 +3146,7 @@
E06524FA24581A7900CA22E2 /* ChuKuCell.xib in Resources */,
E0CC848824823EC1009B1FE9 /* CRKCell.xib in Resources */,
E0337EF62464FCFC00952EF4 /* GYSListViewController.xib in Resources */,
F96E48AA24CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib in Resources */,
E0706EF524B40BE800D8251C /* TitleAndTfYuanCell.xib in Resources */,
E0337EF22464F69000952EF4 /* YingFuZKListViewController.xib in Resources */,
E002465324A8697B00049DBC /* TitleAndTFBtnCell.xib in Resources */,
......@@ -3149,6 +3192,7 @@
E0A409CD2464026B00CFF109 /* SecondCell.xib in Resources */,
F95A9EEA24558B8800867849 /* ShowAlGoodsViewController.xib in Resources */,
E030DF3C248651A5002764D3 /* NewRKVc.xib in Resources */,
F96E48A424CA79D4000AB8D4 /* WayBillAddressItemCell.xib in Resources */,
F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */,
E0D4166524483058008DCAB4 /* ChangePassViewController.xib in Resources */,
F95A9ED9245520E500867849 /* OrderListVC.xib in Resources */,
......@@ -3393,6 +3437,7 @@
F94A315724628AC600FEC38E /* WorkItemCollectionViewCell.swift in Sources */,
F950FDA52451453A00C40530 /* ShopInfoModel.swift in Sources */,
F96A585024790E300070A057 /* TFHpple.m in Sources */,
F9F2866724CA95FD00959142 /* TitleTimeHeaderFooterView.swift in Sources */,
F924B39024971BCB00A913CD /* CustomerInterface.swift in Sources */,
E0516F822448086700E373CE /* MsgCenterCell.swift in Sources */,
F95A9ED524551DF900867849 /* UIView+constraints.swift in Sources */,
......@@ -3434,6 +3479,7 @@
E0A2E81A24552E3C00D6DB34 /* XinZengPinPaiViewController.swift in Sources */,
F956D5A8246A2D9C003FF510 /* LMNSpecialLine.m in Sources */,
E0B530882472917F00FFCC15 /* ShopWarehouseDetailModel.swift in Sources */,
F96E48A324CA79D4000AB8D4 /* WayBillAddressItemCell.swift in Sources */,
E0273DDD24551D4500B3FCAE /* OnlyLabelCell.swift in Sources */,
F950FDD724518B9500C40530 /* FSCalendarCollectionView.m in Sources */,
E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */,
......@@ -3464,6 +3510,7 @@
E00CBA0124820CF000701D9D /* CRKSumCell.swift in Sources */,
E0D197CA24484D90002B080C /* PersonCenterCell.swift in Sources */,
E0337EF52464FCFC00952EF4 /* GYSListViewController.swift in Sources */,
F96E48A724CA90DC000AB8D4 /* DriverItemTableViewCell.swift in Sources */,
E0C4F4B5244EE9EE00CC7E2F /* YuShouCell.swift in Sources */,
F933F6C52452C68B00189561 /* PKHUDSuccessView.swift in Sources */,
E09B03A82445B04E00211A51 /* BaseView.swift in Sources */,
......@@ -3542,6 +3589,7 @@
E00B0B1B24629E99006DC846 /* SJMapCell.swift in Sources */,
F956D5B0246A2D9C003FF510 /* LMNItem.m in Sources */,
E019E98324A9763A0086C565 /* BrandListInterface.swift in Sources */,
F96E489F24CA7930000AB8D4 /* WaybillDetailViewController.swift in Sources */,
E013D78C2484CAFC0092DE46 /* CRKBtnCell.swift in Sources */,
F956D5B5246A2D9C003FF510 /* LMNStore.m in Sources */,
F956D5A7246A2D9C003FF510 /* LMNLineChain+Numbering.m in Sources */,
......
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "1.000",
"alpha" : "1.000",
"blue" : "0.471",
"green" : "0.690"
"blue" : "0x78",
"green" : "0xAF",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
]
}
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x78",
"green" : "0xB0",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xB4",
"green" : "0xB4",
"red" : "0xB4"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xB9",
"green" : "0xB9",
"red" : "0xB9"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -29,3 +29,51 @@ class BaseView: UIView {
*/
}
/**
* 通过 CAShapeLayer 方式绘制虚线
*
* param lineView: 需要绘制成虚线的view
* param lineLength: 虚线的宽度
* param lineSpacing: 虚线的间距
* param lineColor: 虚线的颜色
* param lineDirection 虚线的方向 true 为水平方向, false 为垂直方向
**/
func drawLineOfDashByCAShapeLayer(lineView:UIView!,
lineLength:Int,
lineSpacing:Int,
lineColor:UIColor,
isHorizonal:Bool) {
let shapeLayer = CAShapeLayer()
shapeLayer.bounds = lineView.bounds
if (isHorizonal){
shapeLayer.position = CGPoint(x: lineView.frame.width/2, y: lineView.frame.height)
}else{
shapeLayer.position = CGPoint(x: lineView.frame.size.width/2, y: lineView.frame.size.height/2)
}
shapeLayer.fillColor = UIColor.clear.cgColor
shapeLayer.strokeColor = lineColor.cgColor
//设置线宽
if (isHorizonal){
shapeLayer.lineWidth = lineView.frame.size.height
}else{
shapeLayer.lineWidth = lineView.frame.size.width
}
shapeLayer.lineJoin = .round
// 设置线宽,线间距
shapeLayer.lineDashPattern = [NSNumber(integerLiteral: lineLength),NSNumber(integerLiteral: lineSpacing)]
// 设置路径
let path = CGMutablePath()
path.move(to: CGPoint(x: 0, y: 0), transform: .identity)
if isHorizonal {
path.addLine(to: CGPoint(x: lineView.frame.width, y: 0), transform: .identity)
} else {
path.addLine(to: CGPoint(x: 0, y: lineView.frame.height), transform: .identity)
}
shapeLayer.path = path
// 把绘制好的虚线添加上来
lineView.layer.addSublayer(shapeLayer)
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.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="SelectContentView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SelectContentView" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="tabContentHeight" destination="S1h-DP-cWZ" id="pxH-D1-vbP"/>
<outlet property="tabContentV" destination="bMO-eQ-C5Q" id="ta3-G5-KzK"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.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="WorkSelectTimeView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="WorkSelectTimeView" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="fBtn" destination="dQT-gl-rh7" id="giD-mj-Qaw"/>
<outlet property="lBtn" destination="sEd-Ix-rtO" id="ING-79-wTh"/>
......@@ -183,7 +184,7 @@
</objects>
<resources>
<namedColor name="多选按钮字体颜色">
<color red="0.41200000047683716" green="0.41200000047683716" blue="0.41200000047683716" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.41176470588235292" green="0.41176470588235292" blue="0.41176470588235292" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="多选按钮背景颜色">
<color red="0.83899998664855957" green="0.875" blue="0.9179999828338623" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.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="XiaDanChengGongViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="XiaDanChengGongViewController" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="listView" destination="Hgm-Vh-hNf" id="Z1n-x4-dVj"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
......
//
// WaybillDetailViewController.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/7/24.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITableViewDataSource{
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "运单详情"
self.view.addSubview(navbar)
SetTopFrameView(view: listView, btmView: self.view)
listView.register(UINib(nibName: "WayBillAddressItemCell", bundle: nil), forCellReuseIdentifier: "WayBillAddressItemCell")
listView.register(UINib(nibName: "DriverItemTableViewCell", bundle: nil), forCellReuseIdentifier: "DriverItemTableViewCell")
listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 0 {
return 1
}
if section == 3 || section == 4{
return 2
}
return 3
}
func numberOfSections(in tableView: UITableView) -> Int {
return 5;
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.section == 0 {
return 103
}
if indexPath.section == 2 {
return 30
}
if indexPath.section == 3 || indexPath.section == 4{
return 35
}
return UITableView.automaticDimension
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.section == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "DriverItemTableViewCell") as! DriverItemTableViewCell
return cell
}
if indexPath.section == 2 || indexPath.section == 3 || indexPath.section == 4{
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
cell.line.isHidden = true
if indexPath.section == 2 {
cell.nameLbl.text = "起步价(小面包车)"
cell.textTF.text = "¥22.4"
cell.nameLbl.textColor = UIColor.init(named: "灰色字体颜色")
cell.textTF.textColor = UIColor.init(named: "标题字颜色")
}else if indexPath.section == 3 {
cell.nameLbl.text = "关联平台"
cell.textTF.text = "格利食品网"
cell.nameLbl.textColor = UIColor.init(named: "标题字颜色")
cell.textTF.textColor = UIColor.init(named: "标题字颜色")
}else if indexPath.section == 4 {
cell.nameLbl.textColor = UIColor.init(named: "标题字颜色")
cell.textTF.textColor = UIColor.init(named: "灰色字体颜色")
cell.nameLbl.text = "货物保障"
cell.textTF.text = "保障成功"
}
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "WayBillAddressItemCell") as! WayBillAddressItemCell
cell.iconW.constant = 22
cell.iconH.constant = 22
cell.iconLbl.layer.cornerRadius = 11
cell.lineTopView.isHidden = false
if indexPath.row == 0 {
cell.addressDetailLbl.text = "广东省广州市白云区嘉禾望岗白云大道交叉"
cell.iconLbl.text = "发"
cell.iconLbl.backgroundColor = UIColor.init(named: "蓝色字体颜色")
cell.lineTopView.isHidden = true
}else{
cell.addressDetailLbl.text = "广东省广州市白云区嘉禾望岗白云大道交叉路口东南侧州市白云区嘉禾望岗白云大道交叉路口东南侧(望岗村民委员会西侧约150米))"
}
if indexPath.row == 1 {
cell.iconLbl.text = ""
cell.iconLbl.backgroundColor = UIColor.init(named: "虚线分界线颜色")
cell.iconW.constant = 12
cell.iconH.constant = 12
cell.iconLbl.layer.cornerRadius = 6
}
if indexPath.row == 2 {
//最后的不显示lineview
cell.lineView.isHidden = true
cell.iconLbl.text = "收"
cell.iconLbl.backgroundColor = UIColor.init(named: "企业、预售字体")
}else{
cell.lineView.isHidden = false
}
return cell
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if section == 1 || section == 2{
return 45
}
if section == 3 || section == 4{
return 10
}
return 0.01
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let headerView = UIView()
for subV in headerView.subviews {
subV.removeFromSuperview()
}
headerView.backgroundColor = UIColor.white
if section == 1 || section == 2 {
let headerV = TitleTimeHeaderFooterView()
headerView.addSubview(headerV)
headerV.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalTo(0);
}
if section == 2 {
headerV.titleLbl.text = "订单费用"
headerV.fuTitleLbl.text = "总计¥662.6"
headerV.titleLbl.font = UIFont.boldSystemFont(ofSize: 15)
headerV.fuTitleLbl.font = UIFont.boldSystemFont(ofSize: 15)
}
}
return headerView
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
if section == 1 {
return 110
}
if section == 2 {
return 60
}
if section == 3 || section == 4{
return 10
}
return 0.01
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let footerView = UIView()
for subV in footerView.subviews {
subV.removeFromSuperview()
}
footerView.backgroundColor = UIColor.white
let lineView = UIView()
lineView.backgroundColor = UIColor.init(named: "灰色分界线")
if section == 1 {
let footerV = TitleTimeHeaderFooterView()
footerView.addSubview(footerV)
footerV.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalTo(0);
}
footerV.titleLbl.text = "联系人:"
footerV.fuTitleLbl.text = "梁小锋(15577124121)"
footerView.addSubview(lineView)
lineView.snp.makeConstraints { (make) in
make.left.bottom.right.equalTo(0)
make.height.equalTo(5)
}
}
if section == 2 {
let tishiLbl = UILabel()
tishiLbl.text = "若产生消费、高速费、停车费、逾时等候费和搬运费,需要您额外支付。额外费用不可使用赠金支付"
tishiLbl.numberOfLines = 0
tishiLbl.textColor = UIColor.init(named: "提示语字体颜色")
tishiLbl.font = UIFont.init(name: "PingFang SC", size: 11)
footerView.addSubview(tishiLbl)
tishiLbl.snp.makeConstraints { (make) in
make.top.equalTo(10)
make.left.equalTo(15)
make.right.equalTo(-20)
}
tishiLbl.backgroundColor = UIColor.white
footerView.addSubview(lineView)
lineView.snp.makeConstraints { (make) in
make.left.bottom.right.equalTo(0)
make.height.equalTo(5)
}
}
if section == 3 {
footerView.addSubview(lineView)
lineView.snp.makeConstraints { (make) in
make.left.bottom.right.equalTo(0)
make.height.equalTo(5)
}
}
return footerView
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" 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="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.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="WaybillDetailViewController" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="listView" destination="t9e-fZ-mil" id="VdO-Ax-iiU"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="t9e-fZ-mil">
<rect key="frame" x="0.0" y="44" width="414" height="852"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="Ue9-ix-Dvl"/>
<outlet property="delegate" destination="-1" id="g8m-rX-68V"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="t9e-fZ-mil" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="1yK-Aa-n27"/>
<constraint firstItem="t9e-fZ-mil" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="KiF-kF-x0G"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="t9e-fZ-mil" secondAttribute="trailing" id="YsZ-fO-gKR"/>
<constraint firstAttribute="bottom" secondItem="t9e-fZ-mil" secondAttribute="bottom" id="sg2-wZ-QVS"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="132" y="125"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// DriverItemTableViewCell.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/7/24.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class DriverItemTableViewCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
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="16097" 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="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.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="142" id="KGk-i7-Jjw" customClass="DriverItemTableViewCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="377" height="142"/>
<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="377" height="142"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Wqp-PP-Pfx">
<rect key="frame" x="40" y="37" width="68" height="68"/>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstAttribute="height" constant="68" id="EGf-63-lkU"/>
<constraint firstAttribute="width" constant="68" id="UXX-DE-as8"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="34"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="黄师傅" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c3R-LQ-jdQ">
<rect key="frame" x="130" y="37" width="45" height="21"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="15"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="粤ADK023 (野马)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nhF-X3-1zA">
<rect key="frame" x="130" y="64.5" width="107" 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="厢式货车(长27*款16.7*高3.6)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bcL-SK-guN">
<rect key="frame" x="130" y="86.5" width="188" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xAU-Y2-m4K">
<rect key="frame" x="0.0" y="141" width="377" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="oXy-7p-8ik"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="bcL-SK-guN" firstAttribute="leading" secondItem="Wqp-PP-Pfx" secondAttribute="trailing" constant="22" id="7Al-j8-Lyg"/>
<constraint firstItem="bcL-SK-guN" firstAttribute="bottom" secondItem="Wqp-PP-Pfx" secondAttribute="bottom" id="Ce9-JT-2f6"/>
<constraint firstAttribute="bottom" secondItem="xAU-Y2-m4K" secondAttribute="bottom" id="IrZ-1V-YGv"/>
<constraint firstItem="Wqp-PP-Pfx" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="40" id="Rpj-Y6-gIc"/>
<constraint firstItem="c3R-LQ-jdQ" firstAttribute="top" secondItem="Wqp-PP-Pfx" secondAttribute="top" id="dNU-hd-aY5"/>
<constraint firstItem="c3R-LQ-jdQ" firstAttribute="leading" secondItem="Wqp-PP-Pfx" secondAttribute="trailing" constant="22" id="giH-j3-uz0"/>
<constraint firstItem="Wqp-PP-Pfx" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="hBt-Bl-2Gz"/>
<constraint firstItem="nhF-X3-1zA" firstAttribute="leading" secondItem="Wqp-PP-Pfx" secondAttribute="trailing" constant="22" id="jwA-BP-bb4"/>
<constraint firstItem="xAU-Y2-m4K" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="qXW-Po-Ukp"/>
<constraint firstAttribute="trailing" secondItem="xAU-Y2-m4K" secondAttribute="trailing" id="wZd-6Q-6ie"/>
<constraint firstItem="bcL-SK-guN" firstAttribute="top" secondItem="nhF-X3-1zA" secondAttribute="bottom" constant="3" id="zZB-N8-JAA"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="173.18840579710147" y="157.36607142857142"/>
</tableViewCell>
</objects>
<resources>
<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.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.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// TitleTimeHeaderView.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/7/24.
// Copyright © 2020 junye lu. All rights reserved.
//
import Foundation
class TitleTimeHeaderFooterView: UIView {
var contentView:UIView!
@IBOutlet weak var fuTitleLbl: UILabel!
@IBOutlet weak var titleLbl: 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()
}
}
// /初始化时将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()
}
}
//加载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="16097" 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="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.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="TitleTimeHeaderFooterView">
<connections>
<outlet property="fuTitleLbl" destination="U3M-HQ-3bj" id="cTf-2e-8iZ"/>
<outlet property="titleLbl" destination="emb-2G-yUh" id="iqt-KB-soZ"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clipsSubviews="YES" contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="375" height="100"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="06月22日 16:03" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="emb-2G-yUh">
<rect key="frame" x="15" y="15" width="98" 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="#20200710592" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U3M-HQ-3bj">
<rect key="frame" x="269.5" y="15" width="90.5" 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="小面包车" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="h7r-wa-Gms">
<rect key="frame" x="307" y="44" width="53" 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="纸质回单" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ORs-MY-Kik">
<rect key="frame" x="307" y="73" width="53" 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="代收货款" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yq5-ip-1PT">
<rect key="frame" x="244" y="73" width="53" 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="返程" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="08U-Ha-EC7">
<rect key="frame" x="207.5" y="73" width="26.5" 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="海运入仓" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Dpv-Pj-Ny6">
<rect key="frame" x="145" y="73" width="52.5" 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="小推车" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5dr-22-oZC">
<rect key="frame" x="95.5" y="73" width="39.5" 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="拍照回单" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BzW-hw-Icj">
<rect key="frame" x="33" y="73" width="52.5" 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" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="ORs-MY-Kik" firstAttribute="leading" secondItem="yq5-ip-1PT" secondAttribute="trailing" constant="10" id="3Om-M1-NIZ"/>
<constraint firstItem="BzW-hw-Icj" firstAttribute="centerY" secondItem="5dr-22-oZC" secondAttribute="centerY" id="7zL-zN-dHh"/>
<constraint firstItem="h7r-wa-Gms" firstAttribute="top" secondItem="U3M-HQ-3bj" secondAttribute="bottom" constant="10" id="947-Kb-3ku"/>
<constraint firstItem="Dpv-Pj-Ny6" firstAttribute="centerY" secondItem="08U-Ha-EC7" secondAttribute="centerY" id="9jn-cd-HJM"/>
<constraint firstItem="yq5-ip-1PT" firstAttribute="leading" secondItem="08U-Ha-EC7" secondAttribute="trailing" constant="10" id="GbA-pr-L88"/>
<constraint firstItem="U3M-HQ-3bj" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="15" id="H1F-ke-WiT"/>
<constraint firstItem="08U-Ha-EC7" firstAttribute="centerY" secondItem="yq5-ip-1PT" secondAttribute="centerY" id="OzA-pm-mpe"/>
<constraint firstItem="emb-2G-yUh" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="15" id="UVL-Ap-OK2"/>
<constraint firstItem="08U-Ha-EC7" firstAttribute="leading" secondItem="Dpv-Pj-Ny6" secondAttribute="trailing" constant="10" id="Vha-b6-OQX"/>
<constraint firstItem="ORs-MY-Kik" firstAttribute="top" secondItem="h7r-wa-Gms" secondAttribute="bottom" constant="10" id="aTI-Kq-hU7"/>
<constraint firstItem="yq5-ip-1PT" firstAttribute="centerY" secondItem="ORs-MY-Kik" secondAttribute="centerY" id="cAG-sT-IYJ"/>
<constraint firstItem="emb-2G-yUh" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="15" id="cmT-KP-tcF"/>
<constraint firstAttribute="trailing" secondItem="U3M-HQ-3bj" secondAttribute="trailing" constant="15" id="hbG-Yg-ayd"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="h7r-wa-Gms" secondAttribute="trailing" constant="15" id="kaO-vC-PEI"/>
<constraint firstItem="5dr-22-oZC" firstAttribute="leading" secondItem="BzW-hw-Icj" secondAttribute="trailing" constant="10" id="n6J-wD-QA6"/>
<constraint firstItem="5dr-22-oZC" firstAttribute="centerY" secondItem="Dpv-Pj-Ny6" secondAttribute="centerY" id="nOR-VZ-nZR"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="ORs-MY-Kik" secondAttribute="trailing" constant="15" id="tV0-cv-KCO"/>
<constraint firstItem="Dpv-Pj-Ny6" firstAttribute="leading" secondItem="5dr-22-oZC" secondAttribute="trailing" constant="10" id="yOD-mg-Q7s"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<point key="canvasLocation" x="184.05797101449278" y="-108.14732142857143"/>
</view>
</objects>
<resources>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题背景色">
<color red="1" green="0.68999999761581421" blue="0.47099998593330383" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// WayBillAddressItemCell.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/7/24.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class WayBillAddressItemCell: UITableViewCell {
@IBOutlet weak var lineTopView: UIView!
@IBOutlet weak var iconW: NSLayoutConstraint!
@IBOutlet weak var iconH: NSLayoutConstraint!
@IBOutlet weak var lineView: UIView!
@IBOutlet weak var namePhoneLbl: UILabel!
@IBOutlet weak var addressDetailLbl: UILabel!
@IBOutlet weak var addressLbl: UILabel!
@IBOutlet weak var iconLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
}
open override func layoutSubviews() {
super.layoutSubviews()
self.contentView.setNeedsLayout()
self.contentView.layoutIfNeeded()
drawLineOfDashByCAShapeLayer(lineView:lineView, lineLength: 5, lineSpacing: 5, lineColor: UIColor.init(named: "虚线分界线颜色")!, isHorizonal: false)
drawLineOfDashByCAShapeLayer(lineView:lineTopView, lineLength: 5, lineSpacing: 5, lineColor: UIColor.init(named: "虚线分界线颜色")!, isHorizonal: false)
}
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="16097" 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="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.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="100" id="KGk-i7-Jjw" customClass="WayBillAddressItemCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="358" height="100"/>
<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="358" height="100"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="大岭中街17巷7号" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wxD-2W-Kct">
<rect key="frame" x="46" y="5" width="297" height="19"/>
<constraints>
<constraint firstAttribute="height" constant="19" id="xRT-Rm-QDF"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="skeletonLineSpacing">
<real key="value" value="0.0"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="收" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JJG-L3-lyj">
<rect key="frame" x="14" y="3.5" width="22" height="22"/>
<color key="backgroundColor" name="企业、预售字体"/>
<constraints>
<constraint firstAttribute="width" constant="22" id="Bp5-x3-dmY"/>
<constraint firstAttribute="height" constant="22" id="PTZ-fe-NB0"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="白色背景色"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="11"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="黄小丽 18378147992" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="d4F-L8-sHy">
<rect key="frame" x="46" y="69" width="297" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="bGF-qJ-Zma"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JfY-Q9-10Q">
<rect key="frame" x="46" y="29" width="292" height="37"/>
<attributedString key="attributedText">
<fragment content="广东省广州市白云区嘉禾望岗白云大道交叉路口东南侧(望岗村民委员会西侧约150米">
<attributes>
<color key="NSColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<font key="NSFont" size="11" name="PingFangSC-Regular"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="3" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eV0-oM-vuy">
<rect key="frame" x="24.5" y="28.5" width="1" height="71.5"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="7ia-Rw-VRr"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Zm0-Vi-78r">
<rect key="frame" x="24.5" y="0.0" width="1" height="1.5"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="kML-si-FgW"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="wxD-2W-Kct" secondAttribute="trailing" constant="15" id="0az-l1-1Hw"/>
<constraint firstItem="JfY-Q9-10Q" firstAttribute="top" secondItem="wxD-2W-Kct" secondAttribute="bottom" constant="5" id="5He-uS-VEh"/>
<constraint firstItem="d4F-L8-sHy" firstAttribute="top" secondItem="JfY-Q9-10Q" secondAttribute="bottom" constant="3" id="Gfl-8h-fHP"/>
<constraint firstItem="eV0-oM-vuy" firstAttribute="top" secondItem="JJG-L3-lyj" secondAttribute="bottom" constant="3" id="Lqi-vd-qWB"/>
<constraint firstItem="JJG-L3-lyj" firstAttribute="centerY" secondItem="wxD-2W-Kct" secondAttribute="centerY" id="NoB-YO-Cpj"/>
<constraint firstItem="wxD-2W-Kct" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="5" id="PRU-ei-cCI"/>
<constraint firstItem="Zm0-Vi-78r" firstAttribute="centerX" secondItem="eV0-oM-vuy" secondAttribute="centerX" id="UCp-IU-g22"/>
<constraint firstItem="wxD-2W-Kct" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="46" id="VjN-9X-ks1"/>
<constraint firstItem="eV0-oM-vuy" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="24.5" id="WMP-T4-bk7"/>
<constraint firstItem="JJG-L3-lyj" firstAttribute="top" secondItem="Zm0-Vi-78r" secondAttribute="bottom" constant="2" id="YGa-qO-R9y"/>
<constraint firstItem="Zm0-Vi-78r" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="ZMj-hd-wiR"/>
<constraint firstItem="JfY-Q9-10Q" firstAttribute="leading" secondItem="wxD-2W-Kct" secondAttribute="leading" id="d9o-tS-vGG"/>
<constraint firstAttribute="bottom" secondItem="d4F-L8-sHy" secondAttribute="bottom" constant="15" id="enF-EC-E99"/>
<constraint firstAttribute="trailing" secondItem="d4F-L8-sHy" secondAttribute="trailing" constant="15" id="fik-0a-bN6"/>
<constraint firstItem="d4F-L8-sHy" firstAttribute="leading" secondItem="wxD-2W-Kct" secondAttribute="leading" id="geB-F3-UYR"/>
<constraint firstAttribute="trailing" secondItem="JfY-Q9-10Q" secondAttribute="trailing" constant="20" id="rWE-FX-NSP"/>
<constraint firstItem="eV0-oM-vuy" firstAttribute="centerX" secondItem="JJG-L3-lyj" secondAttribute="centerX" id="wRy-Qd-9t3"/>
<constraint firstItem="Zm0-Vi-78r" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="24.5" id="ygX-wP-k9T"/>
<constraint firstAttribute="bottom" secondItem="eV0-oM-vuy" secondAttribute="bottom" id="zZh-DB-pte"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="addressDetailLbl" destination="JfY-Q9-10Q" id="Xi4-mV-0hL"/>
<outlet property="addressLbl" destination="wxD-2W-Kct" id="OPZ-UV-8Wi"/>
<outlet property="iconH" destination="PTZ-fe-NB0" id="UMp-8r-8hy"/>
<outlet property="iconLbl" destination="JJG-L3-lyj" id="ZQ1-MD-9C6"/>
<outlet property="iconW" destination="Bp5-x3-dmY" id="blT-9t-em8"/>
<outlet property="lineTopView" destination="Zm0-Vi-78r" id="8jr-df-3Cj"/>
<outlet property="lineView" destination="eV0-oM-vuy" id="6LP-YK-WUE"/>
<outlet property="namePhoneLbl" destination="d4F-L8-sHy" id="4lt-Va-UDs"/>
</connections>
<point key="canvasLocation" x="194.20289855072465" y="120.53571428571428"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="企业、预售字体">
<color red="1" green="0.68627450980392157" blue="0.47058823529411764" 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.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
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