Commit 04ae3556 authored by lujunye's avatar lujunye

代客下单购物

parent 22f558e3
......@@ -22,6 +22,10 @@
E0273DDA24551B6D00B3FCAE /* SendTimeSelectView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0273DD924551B6D00B3FCAE /* SendTimeSelectView.xib */; };
E0273DDD24551D4500B3FCAE /* OnlyLabelCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0273DDB24551D4500B3FCAE /* OnlyLabelCell.swift */; };
E0273DDE24551D4500B3FCAE /* OnlyLabelCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0273DDC24551D4500B3FCAE /* OnlyLabelCell.xib */; };
E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02C88242456B24F00925766 /* WuLiuGenZongViewController.swift */; };
E02C88272456B24F00925766 /* WuLiuGenZongViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02C88252456B24F00925766 /* WuLiuGenZongViewController.xib */; };
E02C882A2456B4BA00925766 /* WLGZCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02C88282456B4BA00925766 /* WLGZCell.swift */; };
E02C882B2456B4BA00925766 /* WLGZCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02C88292456B4BA00925766 /* WLGZCell.xib */; };
E02DDD83244FD15B00ABB707 /* TitleAndSwitchHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02DDD82244FD15B00ABB707 /* TitleAndSwitchHeaderView.xib */; };
E02DDD85244FDC6A00ABB707 /* TitleAndSwitchHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E02DDD84244FDC6A00ABB707 /* TitleAndSwitchHeaderView.swift */; };
E02DDD8B244FE17400ABB707 /* NewCreateFooter.xib in Resources */ = {isa = PBXBuildFile; fileRef = E02DDD8A244FE17400ABB707 /* NewCreateFooter.xib */; };
......@@ -89,6 +93,8 @@
E0A2E82824555B4400D6DB34 /* KuCunShangPinCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A2E82624555B4400D6DB34 /* KuCunShangPinCell.xib */; };
E0A2E82B24555D8600D6DB34 /* KuCunXiangQingCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A2E82924555D8600D6DB34 /* KuCunXiangQingCell.swift */; };
E0A2E82C24555D8600D6DB34 /* KuCunXiangQingCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A2E82A24555D8600D6DB34 /* KuCunXiangQingCell.xib */; };
E0A320C52456D01300AF321C /* DaiKeXiaDanFooterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A320C42456D01300AF321C /* DaiKeXiaDanFooterView.swift */; };
E0A320C72456D01D00AF321C /* DaiKeXiaDanFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A320C62456D01D00AF321C /* DaiKeXiaDanFooterView.xib */; };
E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */; };
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */; };
E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B6036C244D376900A56B38 /* KuWeiCell.swift */; };
......@@ -280,6 +286,10 @@
E0273DD924551B6D00B3FCAE /* SendTimeSelectView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SendTimeSelectView.xib; sourceTree = "<group>"; };
E0273DDB24551D4500B3FCAE /* OnlyLabelCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnlyLabelCell.swift; sourceTree = "<group>"; };
E0273DDC24551D4500B3FCAE /* OnlyLabelCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OnlyLabelCell.xib; sourceTree = "<group>"; };
E02C88242456B24F00925766 /* WuLiuGenZongViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WuLiuGenZongViewController.swift; sourceTree = "<group>"; };
E02C88252456B24F00925766 /* WuLiuGenZongViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WuLiuGenZongViewController.xib; sourceTree = "<group>"; };
E02C88282456B4BA00925766 /* WLGZCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WLGZCell.swift; sourceTree = "<group>"; };
E02C88292456B4BA00925766 /* WLGZCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WLGZCell.xib; sourceTree = "<group>"; };
E02DDD82244FD15B00ABB707 /* TitleAndSwitchHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TitleAndSwitchHeaderView.xib; sourceTree = "<group>"; };
E02DDD84244FDC6A00ABB707 /* TitleAndSwitchHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleAndSwitchHeaderView.swift; sourceTree = "<group>"; };
E02DDD8A244FE17400ABB707 /* NewCreateFooter.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = NewCreateFooter.xib; sourceTree = "<group>"; };
......@@ -347,6 +357,8 @@
E0A2E82624555B4400D6DB34 /* KuCunShangPinCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KuCunShangPinCell.xib; sourceTree = "<group>"; };
E0A2E82924555D8600D6DB34 /* KuCunXiangQingCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KuCunXiangQingCell.swift; sourceTree = "<group>"; };
E0A2E82A24555D8600D6DB34 /* KuCunXiangQingCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KuCunXiangQingCell.xib; sourceTree = "<group>"; };
E0A320C42456D01300AF321C /* DaiKeXiaDanFooterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DaiKeXiaDanFooterView.swift; sourceTree = "<group>"; };
E0A320C62456D01D00AF321C /* DaiKeXiaDanFooterView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DaiKeXiaDanFooterView.xib; sourceTree = "<group>"; };
E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckWareHourseViewController.swift; sourceTree = "<group>"; };
E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CheckWareHourseViewController.xib; sourceTree = "<group>"; };
E0B6036C244D376900A56B38 /* KuWeiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KuWeiCell.swift; sourceTree = "<group>"; };
......@@ -651,6 +663,17 @@
path = "订单详情";
sourceTree = "<group>";
};
E02C88232456B23400925766 /* 物流跟踪 */ = {
isa = PBXGroup;
children = (
E02C88242456B24F00925766 /* WuLiuGenZongViewController.swift */,
E02C88252456B24F00925766 /* WuLiuGenZongViewController.xib */,
E02C88282456B4BA00925766 /* WLGZCell.swift */,
E02C88292456B4BA00925766 /* WLGZCell.xib */,
);
path = "物流跟踪";
sourceTree = "<group>";
};
E02DDD86244FDF2300ABB707 /* 普通+预售header */ = {
isa = PBXGroup;
children = (
......@@ -732,10 +755,6 @@
children = (
E042F72E245272FF00CDFA12 /* XiaYunDanViewController.swift */,
E042F72F245272FF00CDFA12 /* XiaYunDanViewController.xib */,
E042F732245274F200CDFA12 /* YunDanLieBiaoCell.swift */,
E042F733245274F200CDFA12 /* YunDanLieBiaoCell.xib */,
E042F73A245288F800CDFA12 /* WenDuCell.swift */,
E042F73B245288F800CDFA12 /* WenDuCell.xib */,
E042F74224529B7B00CDFA12 /* JiTuoWuXinXiView.swift */,
E042F74424529B8500CDFA12 /* JiTuoWuXinXiView.xib */,
);
......@@ -855,6 +874,7 @@
E09B03AD2445B0BA00211A51 /* ViewController */ = {
isa = PBXGroup;
children = (
E02C88232456B23400925766 /* 物流跟踪 */,
E02FD9F3245578D800E10E27 /* 地址管理 */,
E02FD9EE2455704600E10E27 /* 出入库记录 */,
E0A2E82024553EC500D6DB34 /* 库存商品 */,
......@@ -986,6 +1006,8 @@
E0B94622245671E100FBEC9A /* DaiKeXiaDanGouWuViewController.xib */,
E0B946252456775000FBEC9A /* DaiKeXiaDanGouWuCell.swift */,
E0B946262456775000FBEC9A /* DaiKeXiaDanGouWuCell.xib */,
E0A320C42456D01300AF321C /* DaiKeXiaDanFooterView.swift */,
E0A320C62456D01D00AF321C /* DaiKeXiaDanFooterView.xib */,
);
path = "代客下单(购物)";
sourceTree = "<group>";
......@@ -1094,6 +1116,10 @@
F9023F642449A3AE00DD5A63 /* Cell */ = {
isa = PBXGroup;
children = (
E042F732245274F200CDFA12 /* YunDanLieBiaoCell.swift */,
E042F733245274F200CDFA12 /* YunDanLieBiaoCell.xib */,
E042F73A245288F800CDFA12 /* WenDuCell.swift */,
E042F73B245288F800CDFA12 /* WenDuCell.xib */,
E0DDCB0D244AD8C500DF54C7 /* DaiQueRenCell.swift */,
E0DDCB0E244AD8C500DF54C7 /* DaiQueRenCell.xib */,
E0DDCB11244ADF2C00DF54C7 /* ChangePriceNormalCell.swift */,
......@@ -1507,6 +1533,7 @@
E0D197D6244860B1002B080C /* BlueToothCell.xib in Resources */,
F95567A82453DA86009674AB /* WarehoseMangementListVC.xib in Resources */,
E0C4F4BE244EF53D00CC7E2F /* BindStepTwoViewController.xib in Resources */,
E02C882B2456B4BA00925766 /* WLGZCell.xib in Resources */,
E0F97B1524517A31001BD600 /* CommendCell.xib in Resources */,
E042F735245274F200CDFA12 /* YunDanLieBiaoCell.xib in Resources */,
E0D197CB24484D90002B080C /* PersonCenterCell.xib in Resources */,
......@@ -1540,6 +1567,7 @@
E042F74124528CD500CDFA12 /* TitleAndOnlyBtnCell.xib in Resources */,
E0D46C5724503EC50087B564 /* TitleAndSelectCell.xib in Resources */,
E0A2E82C24555D8600D6DB34 /* KuCunXiangQingCell.xib in Resources */,
E02C88272456B24F00925766 /* WuLiuGenZongViewController.xib in Resources */,
E0C4F4A8244EC82A00CC7E2F /* TitleAndBtnCell.xib in Resources */,
E02FD9F72455790800E10E27 /* DiZhiGuanLiCell.xib in Resources */,
E0F97B1B2451951D001BD600 /* ShangPinGguiGeCell.xib in Resources */,
......@@ -1548,6 +1576,7 @@
F95A9EDE24557CD500867849 /* GuanLianKehuVC.xib in Resources */,
E0273DDE24551D4500B3FCAE /* OnlyLabelCell.xib in Resources */,
E00D85E5244561FE00F5F816 /* Assets.xcassets in Resources */,
E0A320C72456D01D00AF321C /* DaiKeXiaDanFooterView.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -1634,6 +1663,7 @@
E02DDD90244FE54C00ABB707 /* NewCreateHeader.swift in Sources */,
F950FDA92451613500C40530 /* GetMobileModel.swift in Sources */,
E0B94623245671E100FBEC9A /* DaiKeXiaDanGouWuViewController.swift in Sources */,
E0A320C52456D01300AF321C /* DaiKeXiaDanFooterView.swift in Sources */,
E0336DD5244EC40000380BE9 /* CreatNewSpecsViewController.swift in Sources */,
E09F4CA22452D18800BE033D /* ZengZhiServicesViewController.swift in Sources */,
E0DDCB18244AE2AC00DF54C7 /* XiuGaiYuShouJiaViewController.swift in Sources */,
......@@ -1657,6 +1687,7 @@
F950FDD924518B9500C40530 /* FSCalendarDelegationFactory.m in Sources */,
E0A2E82B24555D8600D6DB34 /* KuCunXiangQingCell.swift in Sources */,
F933F6C22452C68B00189561 /* PKHUDAnimating.swift in Sources */,
E02C882A2456B4BA00925766 /* WLGZCell.swift in Sources */,
F950FDE824518CD800C40530 /* TimeSelectView.swift in Sources */,
F933F6C72452C68B00189561 /* PKHUDWideBaseView.swift in Sources */,
E02DDD85244FDC6A00ABB707 /* TitleAndSwitchHeaderView.swift in Sources */,
......@@ -1688,6 +1719,7 @@
E0A2E81A24552E3C00D6DB34 /* XinZengPinPaiViewController.swift in Sources */,
E0273DDD24551D4500B3FCAE /* OnlyLabelCell.swift in Sources */,
F950FDD724518B9500C40530 /* FSCalendarCollectionView.m in Sources */,
E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */,
E09B03C62445BF6700211A51 /* NavBarView.swift in Sources */,
E0C9EF12244E922200277435 /* OrderDViewController.swift in Sources */,
F950FDE424518B9500C40530 /* FSCalendarTransitionCoordinator.m in Sources */,
......
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0.600",
"alpha" : "1.000",
"blue" : "0.600",
"green" : "0.600"
}
}
}
]
}
\ No newline at end of file
{
"properties" : {
"localizable" : true
},
"info" : {
"version" : 1,
"author" : "xcode"
......
......@@ -37,14 +37,14 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
let tbvH = CGFloat(dataArr.count * 49)*glscale
if (titleLbl.text?.contains("库位"))!{
UIView.animate(withDuration: 0.5) {
self.btmVHeight.constant = 195.5*glscale+tbvH
self.btmVHeight.constant = 146.5*glscale+tbvH
if self.btmVHeight.constant > fullScreenHeight*0.75 {
self.btmVHeight.constant = fullScreenHeight*0.75
}
}
}else{
UIView.animate(withDuration: 0.5) {
self.btmVHeight.constant = 100*glscale+tbvH
self.btmVHeight.constant = 51*glscale+tbvH
}
}
}
......@@ -121,7 +121,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
btmVHeight.constant = 0
selectTbv.isScrollEnabled = true
inputDataView.addSubview(getInputView())
ipdVHeight.constant = 95.5
ipdVHeight.constant = 95.5*glscale
}
//MARK: - cell delegate
......@@ -300,7 +300,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
if (inputTextTF?.text!.count)! > 0 {
dataArr.append(inputTextTF!.text!)
let tbvH = CGFloat(dataArr.count)*49.0*glscale
self.btmVHeight.constant = 195.5*glscale+tbvH
self.btmVHeight.constant = 146.5*glscale+tbvH
if self.btmVHeight.constant > fullScreenHeight*0.75 {
self.btmVHeight.constant = fullScreenHeight*0.75
}
......
......@@ -10,10 +10,10 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="GLAlertSelectView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="btmVHeight" destination="Hoo-aN-HCc" id="Bu6-dV-7CS"/>
<outlet property="btmVHeight" destination="HPp-z3-Qzc" id="2I3-bt-sU4"/>
<outlet property="btmView" destination="Y0m-9G-DsZ" id="iws-lT-YWW"/>
<outlet property="inputDataView" destination="vcr-wd-MNy" id="IgT-35-D2O"/>
<outlet property="ipdVHeight" destination="3on-fS-fVn" id="cWQ-H2-4TU"/>
<outlet property="ipdVHeight" destination="GWf-OE-tbg" id="vai-M3-iTW"/>
<outlet property="selectTbv" destination="aRc-4S-xXS" id="5M8-Mi-14u"/>
<outlet property="titleLbl" destination="Obf-xN-br1" id="U6P-eK-FXk"/>
</connections>
......@@ -24,7 +24,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="F3A-eQ-U1t">
<rect key="frame" x="0.0" y="-26" width="414" height="888"/>
<rect key="frame" x="0.0" y="-60" width="414" height="1016"/>
<color key="backgroundColor" name="标题字颜色"/>
<state key="normal">
<color key="titleColor" name="标题字颜色"/>
......@@ -33,51 +33,48 @@
<action selector="closeAction:" destination="-1" eventType="touchUpInside" id="Aaj-rD-zGE"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yGj-x3-YL4" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="titleFontSize">
<real key="value" value="17"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submitClick:" destination="-1" eventType="touchUpInside" id="JRB-mC-cTP"/>
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确定" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qFB-1i-CWM">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="y4K-Ty-GT5"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="17"/>
<color key="textColor" name="白色背景色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Y0m-9G-DsZ">
<rect key="frame" x="0.0" y="562" width="414" height="300"/>
<rect key="frame" x="0.0" y="563" width="414" height="250"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yGj-x3-YL4" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="251" width="414" height="49"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="suw-JT-5QG">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
<userDefinedRuntimeAttribute type="string" keyPath="titleString" value="确定"/>
<userDefinedRuntimeAttribute type="number" keyPath="titleFontSize">
<real key="value" value="17"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submitClick:" destination="-1" eventType="touchUpInside" id="JRB-mC-cTP"/>
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标题" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Obf-xN-br1">
<rect key="frame" x="0.0" y="0.0" width="414" height="51"/>
<constraints>
<constraint firstAttribute="height" constant="51" id="c9U-Vw-8IK">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint firstAttribute="height" constant="51" id="Glk-8e-D41"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="15"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<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="aRc-4S-xXS">
<rect key="frame" x="0.0" y="147.66666666666663" width="414" height="103.33333333333331"/>
<rect key="frame" x="0.0" y="147.66666666666663" width="414" height="102.33333333333331"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<connections>
<outlet property="dataSource" destination="-1" id="5Tz-Qf-U57"/>
......@@ -88,57 +85,52 @@
<rect key="frame" x="0.0" y="51" width="414" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="VOq-3e-VA4"/>
<constraint firstAttribute="height" constant="1" id="A7P-Li-0Xf"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vcr-wd-MNy">
<rect key="frame" x="0.0" y="52.000000000000007" width="414" height="95.666666666666686"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="95.5" id="3on-fS-fVn">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint firstAttribute="height" constant="95.5" id="GWf-OE-tbg"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="Obf-xN-br1" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="0xt-5x-vBu"/>
<constraint firstAttribute="bottom" secondItem="yGj-x3-YL4" secondAttribute="bottom" id="2Mb-zY-cPE"/>
<constraint firstItem="yGj-x3-YL4" firstAttribute="top" secondItem="aRc-4S-xXS" secondAttribute="bottom" id="7b3-6J-4vb"/>
<constraint firstAttribute="trailing" secondItem="J9Q-vG-5ea" secondAttribute="trailing" id="Ayc-Fs-sJL"/>
<constraint firstItem="aRc-4S-xXS" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="Blv-EE-YPC"/>
<constraint firstAttribute="trailing" secondItem="Obf-xN-br1" secondAttribute="trailing" id="EFd-Zg-ckk"/>
<constraint firstAttribute="trailing" secondItem="yGj-x3-YL4" secondAttribute="trailing" id="GBS-1r-eov"/>
<constraint firstItem="vcr-wd-MNy" firstAttribute="top" secondItem="J9Q-vG-5ea" secondAttribute="bottom" id="GyN-Hn-hV1"/>
<constraint firstAttribute="height" constant="300" id="Hoo-aN-HCc">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint firstAttribute="trailing" secondItem="aRc-4S-xXS" secondAttribute="trailing" id="IAT-TW-rGX"/>
<constraint firstItem="Obf-xN-br1" firstAttribute="top" secondItem="Y0m-9G-DsZ" secondAttribute="top" id="USd-x6-b0o"/>
<constraint firstItem="vcr-wd-MNy" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="aep-dI-qYg"/>
<constraint firstItem="aRc-4S-xXS" firstAttribute="top" secondItem="vcr-wd-MNy" secondAttribute="bottom" id="avj-JH-wkd"/>
<constraint firstItem="J9Q-vG-5ea" firstAttribute="top" secondItem="Obf-xN-br1" secondAttribute="bottom" id="cEv-eF-rJQ"/>
<constraint firstItem="yGj-x3-YL4" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="ckq-Tx-j6z"/>
<constraint firstItem="J9Q-vG-5ea" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="fUk-vy-b9c"/>
<constraint firstAttribute="trailing" secondItem="vcr-wd-MNy" secondAttribute="trailing" id="riA-Yr-24J"/>
<constraint firstItem="Obf-xN-br1" firstAttribute="top" secondItem="Y0m-9G-DsZ" secondAttribute="top" id="3uO-4M-WHX"/>
<constraint firstAttribute="height" constant="250" id="HPp-z3-Qzc"/>
<constraint firstItem="aRc-4S-xXS" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="Ltt-ga-IBp"/>
<constraint firstAttribute="trailing" secondItem="aRc-4S-xXS" secondAttribute="trailing" id="OfX-tp-KfS"/>
<constraint firstItem="J9Q-vG-5ea" firstAttribute="top" secondItem="Obf-xN-br1" secondAttribute="bottom" id="Q69-55-7zY"/>
<constraint firstItem="vcr-wd-MNy" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="WtX-c9-Olh"/>
<constraint firstAttribute="bottom" secondItem="aRc-4S-xXS" secondAttribute="bottom" id="Xkr-mX-gdp"/>
<constraint firstAttribute="trailing" secondItem="J9Q-vG-5ea" secondAttribute="trailing" id="Z8E-af-AQt"/>
<constraint firstItem="aRc-4S-xXS" firstAttribute="top" secondItem="vcr-wd-MNy" secondAttribute="bottom" id="ihc-VB-j14"/>
<constraint firstItem="J9Q-vG-5ea" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="m5x-Fv-BXS"/>
<constraint firstItem="vcr-wd-MNy" firstAttribute="top" secondItem="J9Q-vG-5ea" secondAttribute="bottom" id="o9P-We-NUd"/>
<constraint firstAttribute="trailing" secondItem="Obf-xN-br1" secondAttribute="trailing" id="oed-X0-YKj"/>
<constraint firstItem="Obf-xN-br1" firstAttribute="leading" secondItem="Y0m-9G-DsZ" secondAttribute="leading" id="ptA-oO-hhq"/>
<constraint firstAttribute="trailing" secondItem="vcr-wd-MNy" secondAttribute="trailing" id="tRt-tF-TVr"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Y0m-9G-DsZ" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="3go-Qx-14T"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="Y0m-9G-DsZ" secondAttribute="bottom" id="Lle-RG-x2d"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="F3A-eQ-U1t" secondAttribute="trailing" id="TIf-Qw-p7x"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="F3A-eQ-U1t" secondAttribute="bottom" id="Tyl-MD-CuR"/>
<constraint firstItem="F3A-eQ-U1t" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="fjh-hA-Xby"/>
<constraint firstItem="F3A-eQ-U1t" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="uzh-6s-qLP"/>
<constraint firstItem="F3A-eQ-U1t" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" constant="-70" id="x16-NC-4Mx"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="Y0m-9G-DsZ" secondAttribute="trailing" id="xi7-Xc-5fL"/>
<constraint firstItem="F3A-eQ-U1t" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="-60" id="3h8-Iy-I3T"/>
<constraint firstItem="Y0m-9G-DsZ" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="5Vx-uq-fQY"/>
<constraint firstItem="yGj-x3-YL4" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="ADk-ki-313"/>
<constraint firstItem="yGj-x3-YL4" firstAttribute="top" secondItem="qFB-1i-CWM" secondAttribute="top" id="BJd-jF-213"/>
<constraint firstAttribute="bottom" secondItem="F3A-eQ-U1t" secondAttribute="bottom" constant="-60" id="P6u-XW-bUS"/>
<constraint firstItem="F3A-eQ-U1t" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="QXI-49-6LM"/>
<constraint firstItem="Y0m-9G-DsZ" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="acu-hl-uoM"/>
<constraint firstAttribute="bottom" secondItem="yGj-x3-YL4" secondAttribute="bottom" id="dMX-Yg-zd2"/>
<constraint firstItem="yGj-x3-YL4" firstAttribute="top" secondItem="Y0m-9G-DsZ" secondAttribute="bottom" id="gzY-PF-CKf"/>
<constraint firstItem="qFB-1i-CWM" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="hjk-BF-n22"/>
<constraint firstItem="F3A-eQ-U1t" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="qEw-2l-0Fg"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="qFB-1i-CWM" secondAttribute="trailing" id="w2c-hi-UZ4"/>
<constraint firstItem="yGj-x3-YL4" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="xKf-sb-Q5b"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="qFB-1i-CWM" secondAttribute="bottom" id="xMm-ka-fIT"/>
</constraints>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<point key="canvasLocation" x="128.98550724637681" y="120.53571428571428"/>
......@@ -157,5 +149,8 @@
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" 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>
......@@ -89,7 +89,7 @@
</objects>
<resources>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27450980392156865" green="0.5607843137254902" blue="0.88627450980392153" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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"/>
......
......@@ -107,7 +107,7 @@
</objects>
<resources>
<image name="bianji" width="17" height="16.5"/>
<image name="shanchu" width="17" height="17.5"/>
<image name="shanchu" width="15" height="15"/>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......
<?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" useSafeAreas="YES" colorMatched="YES">
<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">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<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"/>
......
......@@ -211,9 +211,6 @@
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" 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.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......
//
// DaiKeXiaDanFooterView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/27.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
@objc protocol DaiKeXiaDanFooterViewDelegate {
@objc optional func addAction()
}
class DaiKeXiaDanFooterView: UIView {
var contentView:UIView!
@IBOutlet weak var topView: UIView!
var delegate:DaiKeXiaDanFooterViewDelegate?
@IBAction func btnClick(_ sender: Any) {
delegate?.addAction!()
}
@IBOutlet weak var topViewHeight: NSLayoutConstraint!
@IBOutlet weak var priceLbl: UILabel!
@IBOutlet weak var countLbl: NSLayoutConstraint!
//初始化时将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="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<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="DaiKeXiaDanFooterView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="countLbl" destination="gnh-OR-ti7" id="8Ma-xe-1PM"/>
<outlet property="priceLbl" destination="vk6-I6-Jfd" id="jgo-dl-GBh"/>
<outlet property="topView" destination="boh-CT-K6N" id="H2J-y0-uvi"/>
<outlet property="topViewHeight" destination="NNw-ng-YC4" id="crC-I6-ol5"/>
</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="375" height="220"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="boh-CT-K6N">
<rect key="frame" x="0.0" y="0.0" width="375" height="77"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1455" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="RRv-JM-HXq">
<rect key="frame" x="329" y="15" width="31" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="qd7-to-a89"/>
<constraint firstAttribute="width" constant="31" id="vKH-Mb-jHx"/>
</constraints>
<fontDescription key="fontDescription" type="system" 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="LjL-li-bW4">
<rect key="frame" x="260" y="16.5" width="67" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="Ii4-Xe-hP1"/>
<constraint firstAttribute="width" constant="67" id="VwZ-GX-El4"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥159141" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vk6-I6-Jfd">
<rect key="frame" x="309" y="43.5" width="51" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="969-7e-Q8d"/>
<constraint firstAttribute="width" constant="51" id="fNZ-nj-V1a"/>
</constraints>
<fontDescription key="fontDescription" type="system" 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="gRV-Od-bGl">
<rect key="frame" x="240" y="45" width="67" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="67" id="EP4-Ak-3D9"/>
<constraint firstAttribute="height" constant="16" id="Elj-7S-H4K"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5yT-tY-iGH">
<rect key="frame" x="15" y="76" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="BfV-dY-zYa"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="5yT-tY-iGH" secondAttribute="bottom" id="DI4-Lf-6W8"/>
<constraint firstAttribute="height" constant="77" id="NNw-ng-YC4"/>
<constraint firstItem="gRV-Od-bGl" firstAttribute="centerY" secondItem="vk6-I6-Jfd" secondAttribute="centerY" id="R5T-6T-1yg"/>
<constraint firstItem="RRv-JM-HXq" firstAttribute="top" secondItem="boh-CT-K6N" secondAttribute="top" constant="15" id="WKJ-2c-bRa"/>
<constraint firstItem="vk6-I6-Jfd" firstAttribute="leading" secondItem="gRV-Od-bGl" secondAttribute="trailing" constant="2" id="Zi9-Fi-A1G"/>
<constraint firstAttribute="trailing" secondItem="vk6-I6-Jfd" secondAttribute="trailing" constant="15" id="gHm-Hs-tCg"/>
<constraint firstItem="LjL-li-bW4" firstAttribute="centerY" secondItem="RRv-JM-HXq" secondAttribute="centerY" id="gnh-OR-ti7"/>
<constraint firstItem="vk6-I6-Jfd" firstAttribute="top" secondItem="RRv-JM-HXq" secondAttribute="bottom" constant="10" id="mR8-l7-eMs"/>
<constraint firstItem="RRv-JM-HXq" firstAttribute="leading" secondItem="LjL-li-bW4" secondAttribute="trailing" constant="2" id="r6f-qY-fis"/>
<constraint firstItem="5yT-tY-iGH" firstAttribute="leading" secondItem="boh-CT-K6N" secondAttribute="leading" constant="15" id="rgE-in-qFk"/>
<constraint firstAttribute="trailing" secondItem="RRv-JM-HXq" secondAttribute="trailing" constant="15" id="vd4-GF-gAV"/>
<constraint firstAttribute="trailing" secondItem="5yT-tY-iGH" secondAttribute="trailing" id="y4k-2q-fig"/>
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tianjiashangpin" translatesAutoresizingMaskIntoConstraints="NO" id="oWM-Ng-hEt">
<rect key="frame" x="161.5" y="102" width="52" height="52.5"/>
<constraints>
<constraint firstAttribute="width" constant="52" id="B09-hk-dZo"/>
<constraint firstAttribute="height" constant="52.5" id="YPP-2c-pH0"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VXM-WF-f4N">
<rect key="frame" x="0.0" y="77" width="375" height="133"/>
<connections>
<action selector="btnClick:" destination="-1" eventType="touchUpInside" id="Rbx-t3-bRV"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rT3-T8-03r">
<rect key="frame" x="0.0" y="210" width="375" height="10"/>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstAttribute="height" constant="10" id="2T3-KT-VlP"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="rT3-T8-03r" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="3Uk-JD-RPi"/>
<constraint firstItem="rT3-T8-03r" firstAttribute="top" secondItem="VXM-WF-f4N" secondAttribute="bottom" id="4EQ-Oc-Edw"/>
<constraint firstItem="VXM-WF-f4N" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="B7i-kQ-UMF"/>
<constraint firstAttribute="trailing" secondItem="rT3-T8-03r" secondAttribute="trailing" id="HCL-aD-Bx2"/>
<constraint firstItem="oWM-Ng-hEt" firstAttribute="top" secondItem="boh-CT-K6N" secondAttribute="bottom" constant="25" id="IIZ-Uc-qoT"/>
<constraint firstItem="oWM-Ng-hEt" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="PzW-2t-Iqa"/>
<constraint firstItem="boh-CT-K6N" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="aTn-jg-CiX"/>
<constraint firstItem="boh-CT-K6N" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="bc2-m2-OeZ"/>
<constraint firstAttribute="trailing" secondItem="boh-CT-K6N" secondAttribute="trailing" id="lLa-PU-FKQ"/>
<constraint firstAttribute="trailing" secondItem="VXM-WF-f4N" secondAttribute="trailing" id="v2R-4i-Ajd"/>
<constraint firstItem="VXM-WF-f4N" firstAttribute="top" secondItem="boh-CT-K6N" secondAttribute="bottom" id="wu7-9b-cOV"/>
<constraint firstAttribute="bottom" secondItem="rT3-T8-03r" secondAttribute="bottom" id="ylp-t6-XUD"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="131.15942028985509" y="121.875"/>
</view>
</objects>
<resources>
<image name="tianjiashangpin" width="52" height="51.5"/>
<namedColor name="#F57575">
<color red="0.96100002527236938" green="0.45899999141693115" blue="0.45899999141693115" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<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>
</resources>
</document>
......@@ -10,8 +10,17 @@ import UIKit
class DaiKeXiaDanGouWuCell: UITableViewCell {
@IBOutlet weak var totalPriceLbl: UILabel!
@IBOutlet weak var priceLbl: UILabel!
@IBOutlet weak var detailLbl: UILabel!
@IBOutlet weak var titleLbl: UILabel!
@IBAction func delAction(_ sender: Any) {
}
@IBOutlet weak var imgView: UIImageView!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<?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">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<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" id="KGk-i7-Jjw" customClass="DaiKeXiaDanGouWuCell" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="DaiKeXiaDanGouWuCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="120"/>
<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="320" height="43"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="120"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oAm-E1-HwQ">
<rect key="frame" x="15" y="119" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="END-QU-37t"/>
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="AWX-Qu-0ML">
<rect key="frame" x="15" y="15" width="90" height="90"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="ECa-gV-6Hb"/>
<constraint firstAttribute="height" constant="90" id="VQx-k5-HpD"/>
</constraints>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="shanchuDel" translatesAutoresizingMaskIntoConstraints="NO" id="ftv-xQ-eXW">
<rect key="frame" x="97.5" y="7.5" width="15" height="15"/>
<constraints>
<constraint firstAttribute="width" constant="15" id="cr6-nL-Ydi"/>
<constraint firstAttribute="height" constant="15" id="g7a-W4-Sdg"/>
</constraints>
</imageView>
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eKc-LO-OD0">
<rect key="frame" x="85" y="-5" width="40" height="40"/>
<color key="backgroundColor" red="1" green="0.68026518489999999" blue="0.40248129399999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Qu8-tq-Vzl"/>
<constraint firstAttribute="width" constant="40" id="xwK-5A-mHO"/>
</constraints>
<connections>
<action selector="delAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="idK-RV-nbe"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HYf-UQ-mHg">
<rect key="frame" x="115" y="15" width="243" height="37"/>
<constraints>
<constraint firstAttribute="height" constant="37" id="XGJ-zg-D1O"/>
</constraints>
<attributedString key="attributedText">
<fragment content="六和川香鸡柳2.5kg/六和川香鸡柳2六和川香鸡柳2.">
<attributes>
<color key="NSColor" name="标题字颜色"/>
<font key="NSFont" metaFont="system"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="2" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="5kg/箱/袋" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LBB-wB-bMd">
<rect key="frame" x="115" y="67" width="225" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="fQ5-5e-VaT"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥260.00*12" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="X1B-vl-mvy">
<rect key="frame" x="115" y="87" width="225" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="QaD-aA-NKf"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥51153.00" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rio-TZ-iyo">
<rect key="frame" x="120" y="83.5" width="235" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="TMJ-sw-oCU"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="HYf-UQ-mHg" secondAttribute="trailing" constant="17" id="1et-A0-Mm7"/>
<constraint firstAttribute="trailingMargin" secondItem="Rio-TZ-iyo" secondAttribute="trailing" id="Bgy-0b-yb6"/>
<constraint firstItem="Rio-TZ-iyo" firstAttribute="bottom" secondItem="X1B-vl-mvy" secondAttribute="bottom" id="JcG-ly-QUv"/>
<constraint firstItem="AWX-Qu-0ML" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="PkW-SQ-lMP"/>
<constraint firstItem="AWX-Qu-0ML" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="QkU-Fn-YVB"/>
<constraint firstItem="ftv-xQ-eXW" firstAttribute="trailing" secondItem="AWX-Qu-0ML" secondAttribute="trailing" constant="7.5" id="R1R-mm-RvM"/>
<constraint firstAttribute="trailingMargin" secondItem="LBB-wB-bMd" secondAttribute="trailing" constant="15" id="U69-j9-gAo"/>
<constraint firstItem="HYf-UQ-mHg" firstAttribute="top" secondItem="AWX-Qu-0ML" secondAttribute="top" id="UBt-NG-mg3"/>
<constraint firstAttribute="trailingMargin" secondItem="X1B-vl-mvy" secondAttribute="trailing" constant="15" id="ZfW-BJ-Tbo"/>
<constraint firstItem="ftv-xQ-eXW" firstAttribute="top" secondItem="AWX-Qu-0ML" secondAttribute="top" constant="-7.5" id="cI7-D0-svp"/>
<constraint firstItem="X1B-vl-mvy" firstAttribute="leading" secondItem="LBB-wB-bMd" secondAttribute="leading" id="e85-Lu-Hze"/>
<constraint firstItem="LBB-wB-bMd" firstAttribute="top" secondItem="HYf-UQ-mHg" secondAttribute="bottom" constant="15" id="hvm-bz-LS0"/>
<constraint firstItem="eKc-LO-OD0" firstAttribute="centerX" secondItem="ftv-xQ-eXW" secondAttribute="centerX" id="igK-BR-aYW"/>
<constraint firstItem="Rio-TZ-iyo" firstAttribute="leading" secondItem="AWX-Qu-0ML" secondAttribute="trailing" constant="15" id="mNa-xR-0Gn"/>
<constraint firstItem="X1B-vl-mvy" firstAttribute="top" secondItem="LBB-wB-bMd" secondAttribute="bottom" constant="5" id="oPf-g5-F2k"/>
<constraint firstAttribute="bottom" secondItem="oAm-E1-HwQ" secondAttribute="bottom" id="p0n-TC-Jkb"/>
<constraint firstItem="eKc-LO-OD0" firstAttribute="centerY" secondItem="ftv-xQ-eXW" secondAttribute="centerY" id="p3f-uk-i51"/>
<constraint firstItem="oAm-E1-HwQ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="qMJ-nI-cSg"/>
<constraint firstItem="LBB-wB-bMd" firstAttribute="leading" secondItem="HYf-UQ-mHg" secondAttribute="leading" id="ue5-UX-MkI"/>
<constraint firstItem="HYf-UQ-mHg" firstAttribute="leading" secondItem="AWX-Qu-0ML" secondAttribute="trailing" constant="10" id="vdt-Oa-nCE"/>
<constraint firstAttribute="trailing" secondItem="oAm-E1-HwQ" secondAttribute="trailing" id="wno-dO-LhO"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="detailLbl" destination="LBB-wB-bMd" id="Z5L-Om-fG8"/>
<outlet property="imgView" destination="AWX-Qu-0ML" id="BQH-fG-eL9"/>
<outlet property="priceLbl" destination="Rio-TZ-iyo" id="Ivg-2f-C6y"/>
<outlet property="titleLbl" destination="HYf-UQ-mHg" id="bMC-Ni-Yjv"/>
<outlet property="totalPriceLbl" destination="Rio-TZ-iyo" id="l5M-Ih-fxa"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="121.875"/>
</tableViewCell>
</objects>
<resources>
<image name="shanchuDel" width="15" height="15"/>
<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.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -8,15 +8,148 @@
import UIKit
class DaiKeXiaDanGouWuViewController: BaseViewController {
class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,UITableViewDelegate,DaiKeXiaDanFooterViewDelegate{
let p3Arr = ["支付状态","支付方式","提货方式","出货状态","运费","其他费用"]
var footerView:DaiKeXiaDanFooterView?
var itemArr = NSMutableArray()
@IBAction func submitAction(_ sender: Any) {
}
@IBOutlet weak var listView: UITableView!
@IBOutlet weak var btmView: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "代客下单"
self.view.addSubview(navbar)
//TitleAndBtnCell TitleAndTFCell
listView.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height)
make.left.right.equalTo(0)
make.bottom.equalTo(btmView.snp_top)
}
listView.separatorStyle = .none
listView.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtnCell")
listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
listView.register(UINib(nibName: "DaiKeXiaDanGouWuCell", bundle: nil), forCellReuseIdentifier: "DaiKeXiaDanGouWuCell")
//TitleAndBtnCell TitleAndTFCell
// Do any additional setup after loading the view.
}
@objc func addProductAction(){
print("添加商品")
}
//MARK: - cell delegate
func addAction() {
itemArr.add("0")
UIView.performWithoutAnimation {
let set = NSIndexSet(index: 1)
listView.reloadSections(set as IndexSet, with: .none)
}
}
//footer
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
if section == 1{
if itemArr.count == 0 {
return 142
}
return 220
}
return 10
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
if section == 1{//220 142
let view = DaiKeXiaDanFooterView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 220))
view.topView.isHidden = false
if itemArr.count == 0 {
view.topView.isHidden = true
view.topViewHeight.constant = 0.01
}
view.delegate = self
footerView = view
return footerView
}
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 10))
view.backgroundColor = UIColor(named: "app底色")
return view
}
//header
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
if section == 1 {
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 39))
view.backgroundColor = UIColor.white
let lbl = UILabel()
lbl.text = "商品清单"
lbl.textColor = UIColor(named: "标题字颜色")
lbl.font = UIFont.boldSystemFont(ofSize: 15)
view.addSubview(lbl)
lbl.snp.makeConstraints { (make) in
make.bottom.right.equalTo(0)
make.left.equalTo(15)
}
return view
}
return UIView()
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if section == 1 {
return 39
}
return 0.01
}
func numberOfSections(in tableView: UITableView) -> Int {
return 3
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
switch section {
case 0:return 2
case 1:return itemArr.count
default:return 6
}
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.section == 1 {
return 120
}
return 49
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.section {
case 0:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell
cell.nameLbl.text = "客户:"
if indexPath.row == 1 {
cell.nameLbl.text = "订单类型:"
}
return cell
case 1:
let cell = tableView.dequeueReusableCell(withIdentifier: "DaiKeXiaDanGouWuCell") as! DaiKeXiaDanGouWuCell
return cell
default:
if indexPath.row < 4 {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell
cell.nameLbl.text = p3Arr[indexPath.row]
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.nameLbl.text = p3Arr[indexPath.row]
cell.textTF.snp.makeConstraints { (make) in
make.centerY.equalTo(cell.snp_centerY)
make.right.equalTo(-15)
make.width.equalTo(95)
make.height.equalTo(32)
}
cell.textTF.layer.cornerRadius = 3
cell.textTF.layer.masksToBounds = true
cell.textTF.layer.borderWidth = 1
cell.textTF.layer.borderColor = UIColor(named: "灰色字体颜色")?.cgColor
cell.textTF.placeholder = "请输入运费"
if indexPath.row == 5 {
cell.textTF.placeholder = "请输入费用"
}
cell.textTF.textAlignment = .center
return cell
}
}
}
......@@ -10,6 +10,8 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="DaiKeXiaDanGouWuViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="btmView" destination="Tww-Di-Bao" id="sc1-iw-raM"/>
<outlet property="listView" destination="7kx-vF-yfW" id="ICi-ue-tem"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
......@@ -30,6 +32,9 @@
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submitAction:" destination="-1" eventType="touchUpInside" id="Iyz-vs-RtO"/>
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Tww-Di-Bao">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
......@@ -49,7 +54,7 @@
</label>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="7kx-vF-yfW">
<rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="615-RE-zVt"/>
<outlet property="delegate" destination="-1" id="wfr-0B-yUN"/>
......@@ -75,11 +80,14 @@
</view>
</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.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27450980392156865" green="0.5607843137254902" blue="0.88627450980392153" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
......@@ -204,7 +204,7 @@
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27450980392156865" green="0.5607843137254902" blue="0.88627450980392153" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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"/>
......
//
// WLGZCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/27.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class WLGZCell: UITableViewCell {
@IBOutlet weak var contentLbl: UILabel!
@IBOutlet weak var firstLbl: UILabel!
@IBOutlet weak var bottomLine: UIView!
@IBOutlet weak var topLine: UIView!
@IBOutlet weak var timeLbl: UILabel!
@IBOutlet weak var dateLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// 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="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<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" id="KGk-i7-Jjw" customClass="WLGZCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<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="375" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2020.04.26" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U7Y-ud-15C">
<rect key="frame" x="20" y="25" width="61" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="BS8-Y0-GqC"/>
<constraint firstAttribute="width" constant="61" id="zYY-uG-E5b"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="10:25" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S66-qc-l6E">
<rect key="frame" x="15" y="10" width="66" height="13.5"/>
<constraints>
<constraint firstAttribute="height" constant="13.5" id="EVf-8A-oPq"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ytX-rl-jqI">
<rect key="frame" x="118" y="21" width="7" height="7"/>
<color key="backgroundColor" name="#999999"/>
<constraints>
<constraint firstAttribute="width" constant="7" id="I6H-k2-sDE"/>
<constraint firstAttribute="height" constant="7" id="x6w-Nr-ecd"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3.5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ctM-ta-8Cf">
<rect key="frame" x="121" y="0.0" width="1" height="21"/>
<color key="backgroundColor" name="#999999"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="k66-uX-tOC"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bZe-na-nJZ">
<rect key="frame" x="121" y="28" width="1" height="21"/>
<color key="backgroundColor" name="#999999"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="mdm-kX-eVe"/>
</constraints>
</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="48a-pK-yb0">
<rect key="frame" x="110.5" y="13.5" width="22" height="22"/>
<color key="backgroundColor" name="蓝色字体颜色"/>
<constraints>
<constraint firstAttribute="width" constant="22" id="c4h-bg-KFX"/>
<constraint firstAttribute="height" constant="22" id="uAi-JT-tww"/>
</constraints>
<fontDescription key="fontDescription" type="system" 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" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V26-2d-fHS">
<rect key="frame" x="151" y="5" width="204" height="39"/>
<attributedString key="attributedText">
<fragment content="代签收(雄狮前台),感谢使用京东冷运;期待再次为您服务(住单总件数:1件)">
<attributes>
<color key="NSColor" name="灰色字体颜色"/>
<font key="NSFont" metaFont="label" size="11"/>
<paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural" lineSpacing="3" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstItem="S66-qc-l6E" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="4sS-0g-PoW"/>
<constraint firstItem="bZe-na-nJZ" firstAttribute="top" secondItem="ytX-rl-jqI" secondAttribute="bottom" id="51X-Tn-dua"/>
<constraint firstAttribute="trailing" secondItem="V26-2d-fHS" secondAttribute="trailing" constant="20" id="GYN-KD-UwI"/>
<constraint firstItem="ytX-rl-jqI" firstAttribute="top" secondItem="ctM-ta-8Cf" secondAttribute="bottom" id="LfF-kL-ikB"/>
<constraint firstItem="48a-pK-yb0" firstAttribute="centerY" secondItem="ytX-rl-jqI" secondAttribute="centerY" id="QY0-ys-Rye"/>
<constraint firstItem="U7Y-ud-15C" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" constant="8" id="ZfA-wD-GVo"/>
<constraint firstItem="V26-2d-fHS" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="5" id="bCM-jr-XIz"/>
<constraint firstItem="V26-2d-fHS" firstAttribute="leading" secondItem="ytX-rl-jqI" secondAttribute="trailing" constant="26" id="h7T-am-IWL"/>
<constraint firstItem="S66-qc-l6E" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" constant="-8" id="hPr-JF-IN8"/>
<constraint firstItem="U7Y-ud-15C" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="hnZ-uQ-DLy"/>
<constraint firstItem="bZe-na-nJZ" firstAttribute="centerX" secondItem="ytX-rl-jqI" secondAttribute="centerX" id="l89-5O-UNN"/>
<constraint firstItem="48a-pK-yb0" firstAttribute="centerX" secondItem="ytX-rl-jqI" secondAttribute="centerX" id="mj8-Rs-N4b"/>
<constraint firstItem="ctM-ta-8Cf" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="nNc-s7-ALL"/>
<constraint firstItem="ctM-ta-8Cf" firstAttribute="centerX" secondItem="ytX-rl-jqI" secondAttribute="centerX" id="q8P-18-FYY"/>
<constraint firstItem="ytX-rl-jqI" firstAttribute="leading" secondItem="U7Y-ud-15C" secondAttribute="trailing" constant="37" id="qMM-0N-p7h"/>
<constraint firstItem="S66-qc-l6E" firstAttribute="trailing" secondItem="U7Y-ud-15C" secondAttribute="trailing" id="t0m-kh-yBj"/>
<constraint firstItem="ytX-rl-jqI" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="uSz-TX-lJz"/>
<constraint firstAttribute="bottom" secondItem="bZe-na-nJZ" secondAttribute="bottom" id="v7d-nl-P4f"/>
<constraint firstAttribute="bottom" secondItem="V26-2d-fHS" secondAttribute="bottom" constant="5" id="wFT-ZG-7dq"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="bottomLine" destination="bZe-na-nJZ" id="Iec-0O-GOk"/>
<outlet property="contentLbl" destination="V26-2d-fHS" id="4Nw-O6-qtI"/>
<outlet property="dateLbl" destination="U7Y-ud-15C" id="85Z-2p-c9U"/>
<outlet property="firstLbl" destination="48a-pK-yb0" id="YGh-ct-W23"/>
<outlet property="timeLbl" destination="S66-qc-l6E" id="QNA-vJ-E3f"/>
<outlet property="topLine" destination="ctM-ta-8Cf" id="G8A-5e-bkw"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="121.54017857142857"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="#999999">
<color red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<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.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// WuLiuGenZongViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/27.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class WuLiuGenZongViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
var dataArr:Array<Any>?
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "物流跟踪"
self.view.addSubview(navbar)
listView.separatorStyle = .none
listView.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height)
make.left.right.bottom.equalTo(0)
}
listView.register(UINib(nibName: "WLGZCell", bundle: nil), forCellReuseIdentifier: "WLGZCell")
listView.register(UINib(nibName: "YunDanLieBiaoCell", bundle: nil), forCellReuseIdentifier: "YunDanLieBiaoCell")
}
//cell
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.section == 0 {
return 227
}
return 70
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
if section == 0 {
return 1
}
// return dataArr?.count
return 3
}
func numberOfSections(in tableView: UITableView) -> Int {
return 2
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.section == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "YunDanLieBiaoCell") as! YunDanLieBiaoCell
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "WLGZCell") as! WLGZCell
if indexPath.row == 0 {
cell.topLine.isHidden = true
cell.firstLbl.isHidden = false
}
// if indexPath.row == dataArr!.count-1 {
if indexPath.row == 2{
cell.bottomLine.isHidden = true
}
return cell
}
}
<?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">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<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="WuLiuGenZongViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="listView" destination="Mtf-gn-QCm" id="BkK-qU-jvL"/>
<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="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Mtf-gn-QCm">
<rect key="frame" x="0.0" y="44" width="414" height="818"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="ohN-F9-Cls"/>
<outlet property="delegate" destination="-1" id="fJG-z8-rmC"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Mtf-gn-QCm" secondAttribute="trailing" id="W4A-3j-dBW"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="Mtf-gn-QCm" secondAttribute="bottom" id="aQs-sa-ll5"/>
<constraint firstItem="Mtf-gn-QCm" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="jaA-DP-kjP"/>
<constraint firstItem="Mtf-gn-QCm" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="rST-z5-86K"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="132" y="122"/>
</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>
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