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

添加鑫源物流 UI

parent 557e1bc3
......@@ -26,6 +26,8 @@ class LogisticalSelectView: UIView {
@IBOutlet weak var selectBgView: UIView!
@IBOutlet weak var selectBgHeight: NSLayoutConstraint!
@IBOutlet weak var sfAgreeLbl: UILabel!
@IBOutlet weak var xingYuanBgV: UIView!
@IBOutlet weak var xingYuanBgHeight: NSLayoutConstraint!
@IBOutlet weak var sfPriceLbl: UILabel!
@IBOutlet weak var jdPriceLbl: UILabel!
......@@ -107,7 +109,10 @@ class LogisticalSelectView: UIView {
@IBOutlet weak var jdBgView: UIView!
var contentView:UIView!
func setXingYuan(){
xingYuanBgV.isHidden = true
xingYuanBgHeight.constant = 0
}
func setJD(){
jdBgViewH.constant = 0
jdBgView.isHidden = true
......@@ -122,6 +127,7 @@ class LogisticalSelectView: UIView {
make.left.top.right.bottom.equalToSuperview()
}
setJD()
setXingYuan()
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
......@@ -132,6 +138,7 @@ class LogisticalSelectView: UIView {
make.left.top.right.bottom.equalToSuperview()
}
setJD()
setXingYuan()
}
//加载xib
func loadViewFromNib() -> UIView {
......
......@@ -20,6 +20,8 @@
<outlet property="sfAgreeLbl" destination="Uzk-gy-02b" id="ZId-A8-k71"/>
<outlet property="sfPriceLbl" destination="wwr-FR-oJl" id="B1O-wO-mD7"/>
<outlet property="sfSelectBtn" destination="4U6-AL-8Yv" id="bsK-dU-3Nn"/>
<outlet property="xingYuanBgHeight" destination="Wjh-aw-LE5" id="BJ8-ZN-1G8"/>
<outlet property="xingYuanBgV" destination="ae9-Qq-iC9" id="stY-2Q-AD3"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
......@@ -37,7 +39,7 @@
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jkx-2x-8N8">
<rect key="frame" x="50" y="349.5" width="314" height="197"/>
<rect key="frame" x="50" y="265.5" width="314" height="365"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请选择下单物流" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vJM-Qj-NrI">
<rect key="frame" x="104.5" y="15" width="105" height="21"/>
......@@ -114,7 +116,7 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ehz-QO-9SI">
<rect key="frame" x="0.0" y="146" width="314" height="1"/>
<rect key="frame" x="0.0" y="314" width="314" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="J9N-FF-47K"/>
......@@ -143,20 +145,20 @@
<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="HHt-YQ-28E">
<rect key="frame" x="15" y="120.5" width="284" height="15.5"/>
<rect key="frame" x="15" y="288.5" width="284" height="15.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<color key="textColor" name="#F57575"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rVk-uJ-IxU">
<rect key="frame" x="156.5" y="152" width="1" height="40"/>
<rect key="frame" x="156.5" y="320" width="1" height="40"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="N7K-YH-1nm"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9NS-Ze-kBV">
<rect key="frame" x="0.0" y="147" width="156.5" height="50"/>
<rect key="frame" x="0.0" y="315" width="156.5" height="50"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<state key="normal" title="取消">
<color key="titleColor" name="提示语字体颜色"/>
......@@ -166,7 +168,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" semanticContentAttribute="forceRightToLeft" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Hg7-oO-Btb">
<rect key="frame" x="157.5" y="147" width="156.5" height="50"/>
<rect key="frame" x="157.5" y="315" width="156.5" height="50"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<state key="normal" title="下运单 " image="xiadango">
<color key="titleColor" name="蓝色字体颜色"/>
......@@ -189,11 +191,76 @@
<action selector="kuaijianAction:" destination="-1" eventType="touchUpInside" id="wU1-0i-7Uq"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ae9-Qq-iC9" userLabel="bgView">
<rect key="frame" x="0.0" y="194.5" width="314" height="67"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gIj-On-c17">
<rect key="frame" x="15" y="0.0" width="19" height="67"/>
<constraints>
<constraint firstAttribute="width" constant="19" id="ad6-0B-v3p"/>
</constraints>
<state key="normal" image="daixuan"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="image" keyPath="imageForSelected" value="yuxuan"/>
<userDefinedRuntimeAttribute type="image" keyPath="imageForNormal" value="daixuan"/>
<userDefinedRuntimeAttribute type="image" keyPath="imageForDisabled" value="daixuan"/>
<userDefinedRuntimeAttribute type="image" keyPath="imageForHighlighted" value="yuxuan"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="selectTheLogisticalAction:" destination="-1" eventType="touchUpInside" id="B52-fj-ORh"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="鑫源物流(预估费用-元)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ne4-yw-bWe">
<rect key="frame" x="49" y="15" width="151" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p6i-oO-TW1">
<rect key="frame" x="126" y="32.5" width="88" height="28"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<state key="normal" title="《快件服务协议》"/>
<connections>
<action selector="kuaijianAction:" destination="-1" eventType="touchUpInside" id="p7j-Rd-ia3"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我已阅读并同意" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="P30-PR-K61">
<rect key="frame" x="49" y="38.5" width="77" height="16"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wpM-kO-cFB">
<rect key="frame" x="15" y="0.0" width="299" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="VzN-Kc-GaF"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="gIj-On-c17" firstAttribute="top" secondItem="ae9-Qq-iC9" secondAttribute="top" id="23d-bz-xVP"/>
<constraint firstItem="wpM-kO-cFB" firstAttribute="leading" secondItem="ae9-Qq-iC9" secondAttribute="leading" constant="15" id="6Eo-DI-qJk"/>
<constraint firstItem="P30-PR-K61" firstAttribute="leading" secondItem="gIj-On-c17" secondAttribute="trailing" constant="15" id="G08-wH-Jbj"/>
<constraint firstItem="gIj-On-c17" firstAttribute="leading" secondItem="ae9-Qq-iC9" secondAttribute="leading" constant="15" id="J4z-AZ-pYi"/>
<constraint firstAttribute="trailing" secondItem="wpM-kO-cFB" secondAttribute="trailing" id="L6T-Zy-imi"/>
<constraint firstItem="wpM-kO-cFB" firstAttribute="top" secondItem="ae9-Qq-iC9" secondAttribute="top" id="PAu-mV-3Ff"/>
<constraint firstItem="Ne4-yw-bWe" firstAttribute="top" secondItem="ae9-Qq-iC9" secondAttribute="top" constant="15" id="S2R-yn-wuL"/>
<constraint firstAttribute="height" constant="67" id="Wjh-aw-LE5"/>
<constraint firstItem="p6i-oO-TW1" firstAttribute="centerY" secondItem="P30-PR-K61" secondAttribute="centerY" id="bfp-bO-dge"/>
<constraint firstItem="p6i-oO-TW1" firstAttribute="leading" secondItem="P30-PR-K61" secondAttribute="trailing" id="dtH-t9-LfE"/>
<constraint firstItem="Ne4-yw-bWe" firstAttribute="leading" secondItem="gIj-On-c17" secondAttribute="trailing" constant="15" id="eSm-zp-YrN"/>
<constraint firstAttribute="bottom" secondItem="gIj-On-c17" secondAttribute="bottom" id="eY4-f1-1Hy"/>
<constraint firstItem="P30-PR-K61" firstAttribute="top" secondItem="Ne4-yw-bWe" secondAttribute="bottom" constant="5" id="tdz-IY-4ON"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="Ehz-QO-9SI" secondAttribute="trailing" id="3GE-fn-5AT"/>
<constraint firstItem="Ehz-QO-9SI" firstAttribute="top" secondItem="HHt-YQ-28E" secondAttribute="bottom" constant="10" id="6rM-0h-sV5"/>
<constraint firstItem="ae9-Qq-iC9" firstAttribute="top" secondItem="HlP-uj-tfd" secondAttribute="bottom" constant="15" id="9Hz-BH-Al4"/>
<constraint firstItem="HHt-YQ-28E" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" constant="15" id="AEs-ar-Gz8"/>
<constraint firstAttribute="trailing" secondItem="65a-vB-vRu" secondAttribute="trailing" id="Cdg-pc-VH5"/>
<constraint firstItem="HlP-uj-tfd" firstAttribute="centerY" secondItem="Uzk-gy-02b" secondAttribute="centerY" id="EcH-Ig-use"/>
......@@ -203,6 +270,7 @@
<constraint firstItem="vJM-Qj-NrI" firstAttribute="top" secondItem="Jkx-2x-8N8" secondAttribute="top" constant="15" id="Htw-TH-uwQ"/>
<constraint firstAttribute="trailing" secondItem="HHt-YQ-28E" secondAttribute="trailing" constant="15" id="KnR-33-2gH"/>
<constraint firstAttribute="bottom" secondItem="rVk-uJ-IxU" secondAttribute="bottom" constant="5" id="MCo-Wm-eV0"/>
<constraint firstAttribute="trailing" secondItem="ae9-Qq-iC9" secondAttribute="trailing" id="MZT-Kp-VMv"/>
<constraint firstItem="0lW-V0-f3m" firstAttribute="top" secondItem="65a-vB-vRu" secondAttribute="bottom" constant="1" id="N06-w3-d2s"/>
<constraint firstItem="HlP-uj-tfd" firstAttribute="leading" secondItem="Uzk-gy-02b" secondAttribute="trailing" id="OgY-0A-eg5"/>
<constraint firstAttribute="trailing" secondItem="u3x-lb-S3o" secondAttribute="trailing" id="Tbp-DN-asD"/>
......@@ -222,12 +290,13 @@
<constraint firstItem="rVk-uJ-IxU" firstAttribute="centerX" secondItem="Jkx-2x-8N8" secondAttribute="centerX" id="oH5-zm-7Q3"/>
<constraint firstItem="0lW-V0-f3m" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" constant="15" id="qlk-uU-BAU"/>
<constraint firstAttribute="bottom" secondItem="Hg7-oO-Btb" secondAttribute="bottom" id="s9S-zQ-3ul"/>
<constraint firstItem="ae9-Qq-iC9" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="sLJ-xY-ekZ"/>
<constraint firstItem="Hg7-oO-Btb" firstAttribute="leading" secondItem="rVk-uJ-IxU" secondAttribute="trailing" id="sx9-fg-JEB"/>
<constraint firstItem="rVk-uJ-IxU" firstAttribute="leading" secondItem="9NS-Ze-kBV" secondAttribute="trailing" id="tsl-ho-qYB"/>
<constraint firstItem="vJM-Qj-NrI" firstAttribute="centerX" secondItem="Jkx-2x-8N8" secondAttribute="centerX" id="uxj-bL-uIL"/>
<constraint firstAttribute="bottom" secondItem="Ehz-QO-9SI" secondAttribute="bottom" constant="50" id="v12-zh-k8Q"/>
<constraint firstItem="u3x-lb-S3o" firstAttribute="top" secondItem="vJM-Qj-NrI" secondAttribute="bottom" constant="14" id="wCM-oT-wEO"/>
<constraint firstAttribute="height" constant="197" id="wtX-OJ-Tbg"/>
<constraint firstAttribute="height" constant="365" id="wtX-OJ-Tbg"/>
<constraint firstItem="4U6-AL-8Yv" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" constant="15" id="x3A-h5-Xuy"/>
</constraints>
<userDefinedRuntimeAttributes>
......
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