Commit 70d2a3f3 authored by 刘俊宏's avatar 刘俊宏

完善鑫源物流下单和预估运费

parent 6050dcbe
......@@ -27,10 +27,10 @@ let systemVersion = (UIDevice.current.systemVersion as String)
//接口地址
//test
//let SERVERCE_ImageHost = "https://z.gelifood.com/"
//let SERVERCE_HOST = "https://z.gelifood.com/admin/"
let SERVERCE_ImageHost = "https://zx.gelifood.com/"
let SERVERCE_HOST = "https://zx.gelifood.com/admin/"
let SERVERCE_ImageHost = "https://z.gelifood.com/"
let SERVERCE_HOST = "https://z.gelifood.com/admin/"
//let SERVERCE_ImageHost = "https://zx.gelifood.com/"
//let SERVERCE_HOST = "https://zx.gelifood.com/admin/"
////online
//视图常量
......
......@@ -149,6 +149,11 @@ class registerDataModel: Mappable {
var kjxy_sf:String?
var kjxy_jd:String?
var xy_data : Array<registerXYDataDataModel>?
var kjxy_xy:String?
var price_xy : Float?
required init?( map: Map) {
}
......@@ -159,6 +164,9 @@ class registerDataModel: Mappable {
kjxy_sf <- map["kjxy_sf"]
kjxy_jd <- map["kjxy_jd"]
xy_data <- map["xy_data"]
kjxy_xy <- map["kjxy_xy"]
price_xy <- map["price_xy"]
}
}
class registerSfDataDataModel: Mappable {
......@@ -172,6 +180,17 @@ class registerSfDataDataModel: Mappable {
number <- map["number"]
}
}
class registerXYDataDataModel: Mappable {
var cn:String?
var number : Float?
required init?( map: Map) {
}
func mapping(map: Map) {
cn <- map["cn"]
number <- map["number"]
}
}
//MARK: - 运单详情
class addLogisticsOrderModel: Mappable {
var code:Int?
......
......@@ -18,17 +18,18 @@ class WenDuCell: UITableViewCell {
@IBAction func selectAction(_ sender: UIButton) {
switch sender.tag {
case 0:
setBtnUI(btn: leftBtn,tag: sender.tag)
rightBtn.isSelected = true
LeftBtn2.isSelected = true
setBtnUI(btn: rightBtn,tag: sender.tag)
leftBtn.isSelected = true
LeftBtn2.isSelected = true
setBtnUI(btn: leftBtn,tag: sender.tag)
setBtnUI(btn: LeftBtn2,tag: sender.tag)
break
case 1:
setBtnUI(btn: rightBtn,tag: sender.tag)
leftBtn.isSelected = true
LeftBtn2.isSelected = true
setBtnUI(btn: leftBtn,tag: sender.tag)
rightBtn.isSelected = true
LeftBtn2.isSelected = true
setBtnUI(btn: rightBtn,tag: sender.tag)
setBtnUI(btn: LeftBtn2,tag: sender.tag)
break
default:
......
......@@ -27,7 +27,7 @@
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="h2T-BN-NH0">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="h2T-BN-NH0">
<rect key="frame" x="255" y="48.5" width="105" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="2f5-gX-JVf"/>
......@@ -55,7 +55,7 @@
<action selector="selectAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="ASu-Rq-WvM"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tF5-tz-dRM">
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tF5-tz-dRM">
<rect key="frame" x="135" y="48.5" width="105" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="QFO-8D-fT6"/>
......
......@@ -20,6 +20,10 @@ class LogisticalSelectView: UIView {
@IBOutlet weak var jdBgViewH: NSLayoutConstraint!
@IBOutlet weak var jdSelectBtn: UIButton!
@IBOutlet weak var sfSelectBtn: UIButton!
@IBOutlet weak var xySelectBtn: UIButton!
@IBOutlet weak var sfBgViewH: NSLayoutConstraint!
@IBOutlet weak var sfBgView: UIView!
@IBAction func blackAction(_ sender: Any) {
self.removeFromSuperview()
}
......@@ -29,24 +33,28 @@ class LogisticalSelectView: UIView {
@IBOutlet weak var xingYuanBgV: UIView!
@IBOutlet weak var xingYuanBgHeight: NSLayoutConstraint!
@IBOutlet weak var xyPriceLbl: UILabel!
@IBOutlet weak var sflineBottom: NSLayoutConstraint!
@IBOutlet weak var xyTop: NSLayoutConstraint!
@IBOutlet weak var xyAgreeLbl: UILabel!
@IBOutlet weak var sfPriceLbl: UILabel!
@IBOutlet weak var jdPriceLbl: UILabel!
var tempArr:Array<UILabel> = []
var fuTitleArr:Array<String> = [] {
var SFtempArr:Array<UILabel> = []
var SFfuTitleArr:Array<String> = [] {
didSet {
if fuTitleArr.count == 0 {
tempArr.forEach { (item) in
if SFfuTitleArr.count == 0 {
SFtempArr.forEach { (item) in
item.removeFromSuperview()
}
// 有京东
// selectBgHeight.constant = CGFloat(265)
//没京东
selectBgHeight.constant = CGFloat(265 - 68)
selectBgHeight.constant = CGFloat(270)
xyTop.constant = CGFloat(0)
sflineBottom.constant = CGFloat(0)
return
}
for i in 0..<fuTitleArr.count {
for i in 0..<SFfuTitleArr.count {
let lbl = UILabel()
lbl.text = fuTitleArr[i]
lbl.text = SFfuTitleArr[i]
lbl.textColor = UIColor.init(named: "提示语字体颜色")
lbl.font = UIFont.systemFont(ofSize: 11)
selectBgView.addSubview(lbl)
......@@ -54,26 +62,55 @@ class LogisticalSelectView: UIView {
make.left.equalTo(sfAgreeLbl)
make.top.equalTo(sfAgreeLbl.snp_bottom).offset((5 + 15) * i + 5)
}
tempArr.append(lbl)
SFtempArr.append(lbl)
}
xyTop.constant = CGFloat(SFfuTitleArr.count * 19)
sflineBottom.constant = CGFloat(-(SFfuTitleArr.count * 19))
selectBgHeight.constant = CGFloat(270 + SFfuTitleArr.count * 19)
}
}
var XYtempArr:Array<UILabel> = []
var XYfuTitleArr:Array<String> = [] {
didSet {
if XYfuTitleArr.count == 0 {
XYtempArr.forEach { (item) in
item.removeFromSuperview()
}
selectBgHeight.constant = CGFloat(270)
return
}
for i in 0..<XYfuTitleArr.count {
let lbl = UILabel()
lbl.text = XYfuTitleArr[i]
lbl.textColor = UIColor.init(named: "提示语字体颜色")
lbl.font = UIFont.systemFont(ofSize: 11)
selectBgView.addSubview(lbl)
lbl.snp.makeConstraints { (make) in
make.left.equalTo(xyAgreeLbl)
make.top.equalTo(xyAgreeLbl.snp_bottom).offset((5 + 15) * i + 5)
}
XYtempArr.append(lbl)
}
// 有京东
// selectBgHeight.constant = CGFloat(265 + fuTitleArr.count * 19)
//没京东
selectBgHeight.constant = CGFloat(265 + fuTitleArr.count * 19 - 68)
selectBgHeight.constant = CGFloat(270 + XYfuTitleArr.count * 19)
}
}
@IBAction func xiadanAction(_ sender: Any) {
if jdSelectBtn.isSelected || sfSelectBtn.isSelected {
if jdSelectBtn.isSelected || sfSelectBtn.isSelected || xySelectBtn.isSelected{
if jdSelectBtn.isSelected {
delegate?.LogisticalSelectViewSure(index: 1)
}else if sfSelectBtn.isSelected {
delegate?.LogisticalSelectViewSure(index: 2)
}else if xySelectBtn.isSelected {
delegate?.LogisticalSelectViewSure(index: 12)
}
self.removeFromSuperview()
print("xiadanAction")
}else{
HUD.flash(.label("请选择下单物流"),delay: 1.2)
}
......@@ -85,6 +122,8 @@ class LogisticalSelectView: UIView {
print("京东快件服务协议")
}else if sender.tag == 1 {
print("顺丰快件服务协议")
}else if sender.tag == 12 {
print("鑫源物流服务协议")
}
delegate?.LogisticalSelectViewWebBy(index: sender.tag)
......@@ -94,17 +133,29 @@ class LogisticalSelectView: UIView {
if sender == jdSelectBtn {
jdSelectBtn.isSelected = !jdSelectBtn.isSelected
sfSelectBtn.isSelected = false
xySelectBtn.isSelected = false
delegate?.LogisticalSelectViewBtnclick(idx: 0)
}else if sender == sfSelectBtn {
sfSelectBtn.isSelected = !sfSelectBtn.isSelected
jdSelectBtn.isSelected = false
xySelectBtn.isSelected = false
if sfSelectBtn.isSelected {
delegate?.LogisticalSelectViewBtnclick(idx: 1)
}else{
delegate?.LogisticalSelectViewBtnclick(idx: 2)
delegate?.LogisticalSelectViewBtnclick(idx: 0)
}
}else if sender == xySelectBtn {
xySelectBtn.isSelected = !xySelectBtn.isSelected
jdSelectBtn.isSelected = false
sfSelectBtn.isSelected = false
if xySelectBtn.isSelected {
delegate?.LogisticalSelectViewBtnclick(idx: 3)
}else{
delegate?.LogisticalSelectViewBtnclick(idx: 0)
}
}
}
@IBOutlet weak var jdBgView: UIView!
var contentView:UIView!
......@@ -116,8 +167,13 @@ class LogisticalSelectView: UIView {
func setJD(){
jdBgViewH.constant = 0
jdBgView.isHidden = true
selectBgHeight.constant = CGFloat(270)
}
func setSF(){
sfBgViewH.constant = 0
sfBgView.isHidden = true
}
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
......@@ -126,8 +182,6 @@ class LogisticalSelectView: UIView {
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
setJD()
setXingYuan()
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
......@@ -137,8 +191,6 @@ class LogisticalSelectView: UIView {
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
setJD()
setXingYuan()
}
//加载xib
func loadViewFromNib() -> UIView {
......
......@@ -12,16 +12,23 @@
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="LogisticalSelectView">
<connections>
<outlet property="jdBgView" destination="65a-vB-vRu" id="R3o-9U-Hl6"/>
<outlet property="jdBgViewH" destination="nbI-Ve-Hmg" id="GyX-ox-TDx"/>
<outlet property="jdBgViewH" destination="VbT-Ng-sOM" id="ODI-rR-O25"/>
<outlet property="jdPriceLbl" destination="NjJ-Ja-GKH" id="Gxb-tF-ubD"/>
<outlet property="jdSelectBtn" destination="5iJ-FB-kNk" id="EZu-xj-5I9"/>
<outlet property="selectBgHeight" destination="wtX-OJ-Tbg" id="hzS-Oo-oIC"/>
<outlet property="selectBgHeight" destination="nLk-ap-Uau" id="WKa-F7-HPd"/>
<outlet property="selectBgView" destination="Jkx-2x-8N8" id="YLN-t4-96A"/>
<outlet property="sfAgreeLbl" destination="Uzk-gy-02b" id="ZId-A8-k71"/>
<outlet property="sfBgView" destination="Jgc-gv-1fU" id="tkr-oP-0fC"/>
<outlet property="sfBgViewH" destination="ydn-uH-AYo" id="FWQ-kp-xn9"/>
<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="sflineBottom" destination="NjH-t8-5V4" id="ERs-mR-twl"/>
<outlet property="xingYuanBgHeight" destination="d7K-wk-lMJ" id="I5Q-ac-Mnr"/>
<outlet property="xingYuanBgV" destination="ae9-Qq-iC9" id="stY-2Q-AD3"/>
<outlet property="xyAgreeLbl" destination="P30-PR-K61" id="mvB-q0-ST3"/>
<outlet property="xyPriceLbl" destination="Ne4-yw-bWe" id="dPM-Vh-H5h"/>
<outlet property="xySelectBtn" destination="gIj-On-c17" id="ycS-0d-a8h"/>
<outlet property="xyTop" destination="l5j-tS-pW3" id="qhD-7A-iDW"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
......@@ -39,7 +46,7 @@
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jkx-2x-8N8">
<rect key="frame" x="50" y="265.5" width="314" height="365"/>
<rect key="frame" x="50" y="278" width="314" height="340"/>
<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"/>
......@@ -51,16 +58,17 @@
<rect key="frame" x="0.0" y="50" width="314" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="l0k-2P-8Xo"/>
<constraint firstAttribute="height" constant="1" id="4rx-6g-3vT"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="65a-vB-vRu" userLabel="bgView">
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="65a-vB-vRu" userLabel="jdView">
<rect key="frame" x="0.0" y="51" width="314" height="67"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5iJ-FB-kNk">
<rect key="frame" x="15" y="0.0" width="19" height="67"/>
<rect key="frame" x="15" y="12.5" width="19" height="42"/>
<constraints>
<constraint firstAttribute="width" constant="19" id="7YU-Kz-7Wc"/>
<constraint firstAttribute="height" constant="42" id="Bx4-gr-Aeh"/>
<constraint firstAttribute="width" constant="19" id="h0p-mh-bFn"/>
</constraints>
<state key="normal" image="daixuan"/>
<userDefinedRuntimeAttributes>
......@@ -74,13 +82,13 @@
</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="NjJ-Ja-GKH">
<rect key="frame" x="49" y="15" width="151" height="18.5"/>
<rect key="frame" x="49" y="14.5" 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="Gbw-ID-cFn">
<rect key="frame" x="126" y="32.5" width="88" height="28"/>
<rect key="frame" x="126" y="29.5" width="88" height="28"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<state key="normal" title="《快件服务协议》"/>
<connections>
......@@ -88,87 +96,122 @@
</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="ejE-yd-OuT">
<rect key="frame" x="49" y="38.5" width="77" height="16"/>
<rect key="frame" x="49" y="35.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="gDK-w4-SDz">
<rect key="frame" x="15" y="66" width="299" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="DR5-8b-Py8"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="1" id="rGV-Cx-K34"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="Gbw-ID-cFn" firstAttribute="centerY" secondItem="ejE-yd-OuT" secondAttribute="centerY" id="Gfe-b9-YdS"/>
<constraint firstItem="5iJ-FB-kNk" firstAttribute="leading" secondItem="65a-vB-vRu" secondAttribute="leading" constant="15" id="O43-zA-J6L"/>
<constraint firstItem="ejE-yd-OuT" firstAttribute="top" secondItem="NjJ-Ja-GKH" secondAttribute="bottom" constant="5" id="OJX-h7-dlQ"/>
<constraint firstItem="5iJ-FB-kNk" firstAttribute="top" secondItem="65a-vB-vRu" secondAttribute="top" id="Vyy-42-UiX"/>
<constraint firstItem="ejE-yd-OuT" firstAttribute="leading" secondItem="5iJ-FB-kNk" secondAttribute="trailing" constant="15" id="fzi-df-lKZ"/>
<constraint firstItem="Gbw-ID-cFn" firstAttribute="leading" secondItem="ejE-yd-OuT" secondAttribute="trailing" id="g05-Nw-dfe"/>
<constraint firstAttribute="bottom" secondItem="5iJ-FB-kNk" secondAttribute="bottom" id="naS-iR-4AZ"/>
<constraint firstAttribute="height" constant="67" id="nbI-Ve-Hmg"/>
<constraint firstItem="NjJ-Ja-GKH" firstAttribute="leading" secondItem="5iJ-FB-kNk" secondAttribute="trailing" constant="15" id="wH1-e6-D6H"/>
<constraint firstItem="NjJ-Ja-GKH" firstAttribute="top" secondItem="65a-vB-vRu" secondAttribute="top" constant="15" id="zOd-bU-dXJ"/>
<constraint firstAttribute="bottom" secondItem="gDK-w4-SDz" secondAttribute="bottom" id="1Ch-VX-2Tk"/>
<constraint firstItem="5iJ-FB-kNk" firstAttribute="centerY" secondItem="65a-vB-vRu" secondAttribute="centerY" id="2hJ-Gl-U07"/>
<constraint firstItem="ejE-yd-OuT" firstAttribute="centerY" secondItem="65a-vB-vRu" secondAttribute="centerY" constant="10" id="9rB-AT-Pv6"/>
<constraint firstItem="gDK-w4-SDz" firstAttribute="leading" secondItem="65a-vB-vRu" secondAttribute="leading" constant="15" id="E60-4O-DtY"/>
<constraint firstItem="NjJ-Ja-GKH" firstAttribute="centerY" secondItem="65a-vB-vRu" secondAttribute="centerY" constant="-10" id="LPh-DD-1B7"/>
<constraint firstAttribute="height" constant="67" id="VbT-Ng-sOM"/>
<constraint firstItem="Gbw-ID-cFn" firstAttribute="centerY" secondItem="ejE-yd-OuT" secondAttribute="centerY" id="WJZ-87-i9O"/>
<constraint firstAttribute="trailing" secondItem="gDK-w4-SDz" secondAttribute="trailing" id="ec8-HS-oGW"/>
<constraint firstItem="Gbw-ID-cFn" firstAttribute="leading" secondItem="ejE-yd-OuT" secondAttribute="trailing" id="fHZ-Tp-3V4"/>
<constraint firstItem="5iJ-FB-kNk" firstAttribute="leading" secondItem="65a-vB-vRu" secondAttribute="leading" constant="15" id="fg7-6u-hbm"/>
<constraint firstItem="NjJ-Ja-GKH" firstAttribute="leading" secondItem="5iJ-FB-kNk" secondAttribute="trailing" constant="15" id="ijz-K3-dZY"/>
<constraint firstItem="ejE-yd-OuT" firstAttribute="leading" secondItem="5iJ-FB-kNk" secondAttribute="trailing" constant="15" id="rWw-h8-iKW"/>
</constraints>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0lW-V0-f3m">
<rect key="frame" x="15" y="119" width="299" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="fB0-Ez-quY"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ehz-QO-9SI">
<rect key="frame" x="0.0" y="314" width="314" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jgc-gv-1fU" userLabel="sfView">
<rect key="frame" x="0.0" y="118" width="314" height="67"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="顺丰冷运(预估运费-元)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wwr-FR-oJl">
<rect key="frame" x="49" y="14" width="151" 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="Uzk-gy-02b">
<rect key="frame" x="49" y="35.5" width="77" height="16"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4U6-AL-8Yv">
<rect key="frame" x="15" y="12.5" width="19" height="42"/>
<constraints>
<constraint firstAttribute="height" constant="42" id="Q9q-MQ-Lsz"/>
<constraint firstAttribute="width" constant="19" id="wqA-Pp-clk"/>
</constraints>
<state key="normal" image="yuxuan"/>
<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="DGM-27-2p5"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wpM-kO-cFB">
<rect key="frame" x="15" y="66" width="299" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="RQk-4A-S6r"/>
</constraints>
</view>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HlP-uj-tfd">
<rect key="frame" x="126" y="29.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="wU1-0i-7Uq"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="J9N-FF-47K"/>
<constraint firstItem="HlP-uj-tfd" firstAttribute="leading" secondItem="Uzk-gy-02b" secondAttribute="trailing" id="8nF-q9-Anf"/>
<constraint firstItem="wwr-FR-oJl" firstAttribute="centerY" secondItem="Jgc-gv-1fU" secondAttribute="centerY" constant="-10" id="Bhu-XZ-opo"/>
<constraint firstItem="Uzk-gy-02b" firstAttribute="centerY" secondItem="Jgc-gv-1fU" secondAttribute="centerY" constant="10" id="DEX-il-cRQ"/>
<constraint firstItem="wwr-FR-oJl" firstAttribute="leading" secondItem="4U6-AL-8Yv" secondAttribute="trailing" constant="15" id="HUX-h5-D46"/>
<constraint firstAttribute="trailing" secondItem="wpM-kO-cFB" secondAttribute="trailing" id="KbU-7g-hde"/>
<constraint firstItem="4U6-AL-8Yv" firstAttribute="leading" secondItem="Jgc-gv-1fU" secondAttribute="leading" constant="15" id="LLS-41-n03"/>
<constraint firstAttribute="bottom" secondItem="wpM-kO-cFB" secondAttribute="bottom" id="NjH-t8-5V4"/>
<constraint firstItem="wpM-kO-cFB" firstAttribute="leading" secondItem="Jgc-gv-1fU" secondAttribute="leading" constant="15" id="VwD-5C-3mF"/>
<constraint firstItem="4U6-AL-8Yv" firstAttribute="centerY" secondItem="Jgc-gv-1fU" secondAttribute="centerY" id="l5I-FR-U1x"/>
<constraint firstItem="HlP-uj-tfd" firstAttribute="centerY" secondItem="Uzk-gy-02b" secondAttribute="centerY" id="qci-PM-7Lc"/>
<constraint firstItem="Uzk-gy-02b" firstAttribute="leading" secondItem="4U6-AL-8Yv" secondAttribute="trailing" constant="15" id="voK-7U-gwK"/>
<constraint firstAttribute="height" constant="67" id="ydn-uH-AYo"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4U6-AL-8Yv">
<rect key="frame" x="15" y="133" width="19" height="42"/>
<constraints>
<constraint firstAttribute="height" constant="42" id="8Wn-Ip-mbK"/>
</constraints>
<state key="normal" image="yuxuan"/>
<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="DGM-27-2p5"/>
</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="wwr-FR-oJl">
<rect key="frame" x="49" y="135" width="151" 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="HHt-YQ-28E">
<rect key="frame" x="15" y="288.5" width="284" height="15.5"/>
<rect key="frame" x="15" y="263" width="299" height="16"/>
<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="Ehz-QO-9SI" userLabel="BLineView">
<rect key="frame" x="0.0" y="289" width="314" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="SAo-Eb-425"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rVk-uJ-IxU">
<rect key="frame" x="156.5" y="320" width="1" height="40"/>
<rect key="frame" x="156.5" y="299" width="1" height="31"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="N7K-YH-1nm"/>
<constraint firstAttribute="width" constant="1" id="dVx-9k-0aY"/>
</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="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="提示语字体颜色"/>
</state>
<connections>
<action selector="blackAction:" destination="-1" eventType="touchUpInside" id="xav-vW-tYK"/>
</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="315" width="156.5" height="50"/>
<rect key="frame" x="157.5" y="290" 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="蓝色字体颜色"/>
......@@ -177,27 +220,14 @@
<action selector="xiadanAction:" destination="-1" eventType="touchUpInside" id="q4c-2A-EkE"/>
</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="Uzk-gy-02b">
<rect key="frame" x="49" y="157.5" width="77" height="16"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HlP-uj-tfd">
<rect key="frame" x="126" y="151.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="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"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ae9-Qq-iC9" userLabel="xyView">
<rect key="frame" x="0.0" y="185" 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"/>
<rect key="frame" x="15" y="12.5" width="19" height="42"/>
<constraints>
<constraint firstAttribute="width" constant="19" id="ad6-0B-v3p"/>
<constraint firstAttribute="width" constant="19" id="dnc-63-gmi"/>
<constraint firstAttribute="height" constant="42" id="zIY-Ll-0Ap"/>
</constraints>
<state key="normal" image="daixuan"/>
<userDefinedRuntimeAttributes>
......@@ -211,13 +241,13 @@
</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"/>
<rect key="frame" x="49" y="14.5" 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"/>
<button opaque="NO" tag="12" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p6i-oO-TW1">
<rect key="frame" x="126" y="29.5" width="88" height="28"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<state key="normal" title="《快件服务协议》"/>
<connections>
......@@ -225,79 +255,70 @@
</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"/>
<rect key="frame" x="49" y="35.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"/>
<constraint firstItem="p6i-oO-TW1" firstAttribute="leading" secondItem="P30-PR-K61" secondAttribute="trailing" id="2Wi-qa-BnN"/>
<constraint firstItem="Ne4-yw-bWe" firstAttribute="centerY" secondItem="ae9-Qq-iC9" secondAttribute="centerY" constant="-10" id="4K6-ub-CXe"/>
<constraint firstItem="gIj-On-c17" firstAttribute="centerY" secondItem="ae9-Qq-iC9" secondAttribute="centerY" id="5Cw-Wi-BJL"/>
<constraint firstItem="P30-PR-K61" firstAttribute="centerY" secondItem="ae9-Qq-iC9" secondAttribute="centerY" constant="10" id="7HF-NE-NgU"/>
<constraint firstItem="gIj-On-c17" firstAttribute="leading" secondItem="ae9-Qq-iC9" secondAttribute="leading" constant="15" id="9RT-1C-Byy"/>
<constraint firstItem="p6i-oO-TW1" firstAttribute="centerY" secondItem="P30-PR-K61" secondAttribute="centerY" id="V1s-BE-04k"/>
<constraint firstAttribute="height" constant="67" id="d7K-wk-lMJ"/>
<constraint firstItem="Ne4-yw-bWe" firstAttribute="leading" secondItem="gIj-On-c17" secondAttribute="trailing" constant="15" id="m8q-Vr-bv5"/>
<constraint firstItem="P30-PR-K61" firstAttribute="leading" secondItem="gIj-On-c17" secondAttribute="trailing" constant="15" id="vH1-Mi-0k5"/>
</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="290" width="157.5" height="50"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="15"/>
<state key="normal" title="取消">
<color key="titleColor" name="提示语字体颜色"/>
</state>
<connections>
<action selector="blackAction:" destination="-1" eventType="touchUpInside" id="xav-vW-tYK"/>
</connections>
</button>
</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"/>
<constraint firstAttribute="trailing" secondItem="Hg7-oO-Btb" secondAttribute="trailing" id="G3E-PX-0UV"/>
<constraint firstItem="Uzk-gy-02b" firstAttribute="leading" secondItem="4U6-AL-8Yv" secondAttribute="trailing" constant="15" id="Gld-X0-OyU"/>
<constraint firstItem="9NS-Ze-kBV" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="HLg-Im-7FW"/>
<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"/>
<constraint firstItem="65a-vB-vRu" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="XDm-Rl-pGf"/>
<constraint firstAttribute="bottom" secondItem="9NS-Ze-kBV" secondAttribute="bottom" id="YPs-4i-hbC"/>
<constraint firstItem="wwr-FR-oJl" firstAttribute="top" secondItem="0lW-V0-f3m" secondAttribute="bottom" constant="15" id="aiv-Hj-LGU"/>
<constraint firstItem="65a-vB-vRu" firstAttribute="top" secondItem="u3x-lb-S3o" secondAttribute="bottom" id="bCb-Ho-ERf"/>
<constraint firstAttribute="trailing" secondItem="0lW-V0-f3m" secondAttribute="trailing" id="eAB-fI-zpX"/>
<constraint firstItem="Hg7-oO-Btb" firstAttribute="top" secondItem="Ehz-QO-9SI" secondAttribute="bottom" id="h3h-M1-tyl"/>
<constraint firstItem="u3x-lb-S3o" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="hTB-St-x4g"/>
<constraint firstItem="9NS-Ze-kBV" firstAttribute="top" secondItem="Ehz-QO-9SI" secondAttribute="bottom" id="hUF-eY-nga"/>
<constraint firstItem="wwr-FR-oJl" firstAttribute="leading" secondItem="4U6-AL-8Yv" secondAttribute="trailing" constant="15" id="k4L-r2-eDF"/>
<constraint firstItem="Uzk-gy-02b" firstAttribute="top" secondItem="wwr-FR-oJl" secondAttribute="bottom" constant="3.5" id="lYg-1T-2Vc"/>
<constraint firstItem="4U6-AL-8Yv" firstAttribute="top" secondItem="0lW-V0-f3m" secondAttribute="bottom" constant="13" id="m4c-hv-ClD"/>
<constraint firstItem="rVk-uJ-IxU" firstAttribute="top" secondItem="Ehz-QO-9SI" secondAttribute="bottom" constant="5" id="m8m-lQ-9MD"/>
<constraint firstItem="Ehz-QO-9SI" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="nDY-M9-F1h"/>
<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="365" id="wtX-OJ-Tbg"/>
<constraint firstItem="4U6-AL-8Yv" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" constant="15" id="x3A-h5-Xuy"/>
<constraint firstAttribute="bottom" secondItem="9NS-Ze-kBV" secondAttribute="bottom" id="3qd-lu-Gjw"/>
<constraint firstItem="Hg7-oO-Btb" firstAttribute="top" secondItem="Ehz-QO-9SI" secondAttribute="bottom" id="4oh-fO-oqp"/>
<constraint firstItem="rVk-uJ-IxU" firstAttribute="centerX" secondItem="Jkx-2x-8N8" secondAttribute="centerX" id="5OF-0k-4XH"/>
<constraint firstItem="vJM-Qj-NrI" firstAttribute="centerX" secondItem="Jkx-2x-8N8" secondAttribute="centerX" id="6fx-pK-tqz"/>
<constraint firstAttribute="trailing" secondItem="Hg7-oO-Btb" secondAttribute="trailing" id="CbX-PD-vHO"/>
<constraint firstItem="9NS-Ze-kBV" firstAttribute="top" secondItem="Ehz-QO-9SI" secondAttribute="bottom" id="Idc-RN-Ulg"/>
<constraint firstItem="Ehz-QO-9SI" firstAttribute="top" secondItem="HHt-YQ-28E" secondAttribute="bottom" constant="10" id="IhN-cr-N5J"/>
<constraint firstItem="Jgc-gv-1fU" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="K3V-bx-ecN"/>
<constraint firstAttribute="trailing" secondItem="Jgc-gv-1fU" secondAttribute="trailing" id="KZY-8b-l01"/>
<constraint firstAttribute="trailing" secondItem="u3x-lb-S3o" secondAttribute="trailing" id="NrB-7a-2pK"/>
<constraint firstItem="9NS-Ze-kBV" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="Obu-G7-gWt"/>
<constraint firstItem="HHt-YQ-28E" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" constant="15" id="Ph5-yr-bCn"/>
<constraint firstItem="65a-vB-vRu" firstAttribute="top" secondItem="u3x-lb-S3o" secondAttribute="bottom" id="SdD-Bb-VlV"/>
<constraint firstItem="ae9-Qq-iC9" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="Sit-Kt-2HG"/>
<constraint firstItem="rVk-uJ-IxU" firstAttribute="trailing" secondItem="9NS-Ze-kBV" secondAttribute="trailing" id="Szp-qY-gBZ"/>
<constraint firstItem="65a-vB-vRu" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="YJG-yh-1iC"/>
<constraint firstItem="Jgc-gv-1fU" firstAttribute="top" secondItem="65a-vB-vRu" secondAttribute="bottom" id="c2d-OZ-AAC"/>
<constraint firstAttribute="trailing" secondItem="ae9-Qq-iC9" secondAttribute="trailing" id="d7u-oX-m0B"/>
<constraint firstAttribute="trailing" secondItem="HHt-YQ-28E" secondAttribute="trailing" id="f1o-dH-sEn"/>
<constraint firstAttribute="trailing" secondItem="Ehz-QO-9SI" secondAttribute="trailing" id="g1D-i2-rIK"/>
<constraint firstItem="u3x-lb-S3o" firstAttribute="top" secondItem="vJM-Qj-NrI" secondAttribute="bottom" constant="14" id="hAq-UJ-EFx"/>
<constraint firstItem="ae9-Qq-iC9" firstAttribute="top" secondItem="Jgc-gv-1fU" secondAttribute="bottom" id="l5j-tS-pW3"/>
<constraint firstAttribute="height" constant="340" id="nLk-ap-Uau"/>
<constraint firstAttribute="bottom" secondItem="Ehz-QO-9SI" secondAttribute="bottom" constant="50" id="oDJ-K4-RMw"/>
<constraint firstAttribute="trailing" secondItem="65a-vB-vRu" secondAttribute="trailing" id="ow2-EY-kOJ"/>
<constraint firstItem="Hg7-oO-Btb" firstAttribute="leading" secondItem="rVk-uJ-IxU" secondAttribute="trailing" id="s2v-XU-dL8"/>
<constraint firstItem="Ehz-QO-9SI" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="sFA-9W-fYK"/>
<constraint firstAttribute="bottom" secondItem="Hg7-oO-Btb" secondAttribute="bottom" id="wPC-Sj-riI"/>
<constraint firstItem="u3x-lb-S3o" firstAttribute="leading" secondItem="Jkx-2x-8N8" secondAttribute="leading" id="x2F-1h-eYT"/>
<constraint firstItem="rVk-uJ-IxU" firstAttribute="top" secondItem="Ehz-QO-9SI" secondAttribute="top" constant="10" id="xKq-IN-Dcq"/>
<constraint firstItem="vJM-Qj-NrI" firstAttribute="top" secondItem="Jkx-2x-8N8" secondAttribute="top" constant="15" id="xwM-BJ-oic"/>
<constraint firstAttribute="bottom" secondItem="rVk-uJ-IxU" secondAttribute="bottom" constant="10" id="ynK-A0-FhH"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
......@@ -308,18 +329,14 @@
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="Jkx-2x-8N8" secondAttribute="trailing" constant="50" id="2GQ-kz-qwn"/>
<constraint firstItem="Jkx-2x-8N8" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="67a-f0-qBM"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="Eds-OX-YH2"/>
<constraint firstItem="Jkx-2x-8N8" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="FlW-jg-Eqp"/>
<constraint firstAttribute="bottom" secondItem="Dzs-wG-4tL" secondAttribute="bottom" id="H9i-qr-ciN"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="NFB-iB-ebB"/>
<constraint firstAttribute="bottom" secondItem="Dzs-wG-4tL" secondAttribute="bottom" id="Ol5-ja-Kcc"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="QWa-b4-pfa"/>
<constraint firstItem="Jkx-2x-8N8" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="50" id="U5G-Yc-TWb"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="bZ3-CE-xTz"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="hb0-f2-h6d"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="Dzs-wG-4tL" secondAttribute="trailing" id="q7O-0g-dvK"/>
<constraint firstItem="Jkx-2x-8N8" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" constant="50" id="0Gu-Qn-2oC"/>
<constraint firstItem="Jkx-2x-8N8" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="f8p-ta-YWF"/>
<constraint firstItem="Jkx-2x-8N8" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="ilr-mj-YqM"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="jDp-MI-VRM"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="Jkx-2x-8N8" secondAttribute="trailing" constant="50" id="mTj-a4-US7"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="rXR-HF-d8B"/>
<constraint firstItem="Dzs-wG-4tL" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="tLh-L1-rdL"/>
<constraint firstAttribute="bottom" secondItem="Dzs-wG-4tL" secondAttribute="bottom" id="ubU-Ie-jvw"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
......
......@@ -614,11 +614,19 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
//MARK:--增值信息
var price:Float? = 0
var commend = ""
func ZengZhiServicesViewControllerFinish(price: Float, content: String) {
var zcservice = 0
var xcservice = 0
func ZengZhiServicesViewControllerFinish(price: Float, content: String, ZhuangCheN: Int, XieCheN: Int) {
self.price = price
commend = content
zcservice = ZhuangCheN
xcservice = XieCheN
listView.reloadData()
getLogPayPrice()
}
var wenduIndex:Int = 0 //0为未选 2冷冻 1冷藏 3常温
//MARK:--控温范围
......@@ -659,45 +667,36 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
let alertView = LogisticalSelectView(frame: self.view.window!.bounds)
alertView.delegate = self
alertView.jdPriceLbl.text = "京东冷运(预估运费" + (logPayPriceModel?.price_jd)! + "元)"
alertView.sfPriceLbl.text = "顺丰冷运(预估运费" + String(format: "%.2f", (logPayPriceModel?.price_sf)!) + "元)"
self.view.window?.addSubview(alertView)
//暂无京东
// if logPayPriceModel?.price_jd != "-" {
alertView.jdSelectBtn.isSelected = false
alertView.sfSelectBtn.isSelected = true
// let num1 = logPayPriceModel?.price_sf
// let num2 = logPayPriceModel?.price_jd as! NSString
// if num1! > num2.floatValue {
// alertView.jdSelectBtn.isSelected = true
// alertView.sfSelectBtn.isSelected = false
// }
// }
var futitleArr:Array<String> = []
logPayPriceModel?.sf_data?.forEach({ (model) in
let str = model.cn! + ":¥" + (model.number)!
futitleArr.append(str)
})
if alertView.sfSelectBtn.isSelected {
alertView.fuTitleArr = futitleArr
if logPayPriceModel?.price_sf != nil {
alertView.sfPriceLbl.text = "顺丰冷运(预估运费" + String(format: "%.2f", (logPayPriceModel?.price_sf)!) + "元)"
}
alertView.xyPriceLbl.text = "鑫源物流(预估运费" + String(format: "%.2f", (logPayPriceModel?.price_xy)!) + "元)"
self.view.window?.addSubview(alertView)
alertView.setJD()
weak_alertView = alertView
}
func LogisticalSelectViewBtnclick(idx:Int){
if idx == 0 {
weak_alertView?.fuTitleArr = []
}else if idx == 1{
weak_alertView?.SFfuTitleArr = []
weak_alertView?.XYfuTitleArr = []
if idx == 1{
var futitleArr:Array<String> = []
logPayPriceModel?.sf_data?.forEach({ (model) in
let str = model.cn! + ":¥" + (model.number)!
futitleArr.append(str)
})
weak_alertView?.fuTitleArr = futitleArr
}else{
weak_alertView?.fuTitleArr = []
weak_alertView?.SFfuTitleArr = futitleArr
}else if idx == 3{
var futitleArr:Array<String> = []
logPayPriceModel?.xy_data?.forEach({ (model) in
let str = model.cn! + ":¥" + String(format: "%.2f", (model.number)!)
futitleArr.append(str)
})
weak_alertView?.XYfuTitleArr = futitleArr
}
}
......@@ -733,6 +732,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}else if index == 1 {
print("顺丰快件服务协议")
vc.urlStr = logPayPriceModel!.kjxy_sf
}else if index == 12 {
print("顺丰快件服务协议")
vc.urlStr = logPayPriceModel!.kjxy_xy
}
self.navigationController?.pushViewController(vc, animated: true)
}
......@@ -1493,6 +1495,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
vc.commend = commend
}
vc.ZhuangChe = zcservice
vc.XieChe = xcservice
self.navigationController?.pushViewController(vc, animated: true)
break
}
......@@ -2187,7 +2192,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
return
}
let UserToken = UserDefaults.standard.value(forKey: "user_token")
let addr = ["s_city":s_city as Any,"r_city":r_city as Any,"s_province_name":s_province_name as Any,"r_province_name":r_province_name as Any,"s_city_name":s_city_name as Any,"r_city_name":r_city_name as Any,"s_district_name":s_district_name as Any,"r_district_name":r_district_name as Any]
let addr = ["s_city":s_city as Any,"r_city":r_city as Any,"s_province_name":s_province_name as Any,"r_province_name":r_province_name as Any,"s_city_name":s_city_name as Any,"r_city_name":r_city_name as Any,"s_district_name":s_district_name as Any,"r_district_name":r_district_name as Any,"s_address":sendAdr as Any,"r_address":receiveAdr as Any]
var home_delivery_on = "false"
if send == 0 {
......@@ -2197,7 +2202,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if receive == 0 {
site_delivery = "true"
}
let info = ["weight":weight as Any,"volume":tiJi as Any,"home_delivery_on":home_delivery_on as Any,"site_delivery":site_delivery as Any]
let info = ["weight":weight as Any,"volume":tiJi as Any,"home_delivery_on":home_delivery_on as Any,"site_delivery":site_delivery as Any,"zcservice":zcservice as Any,"xcservice":xcservice as Any,"guarantee_value":price as Any]
let dict = ["user_token":UserToken as Any,"addr":addr as Any,"info":info as Any]
......@@ -2205,15 +2210,15 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let dataModel = data as! registerModel
self.logPayPriceModel = dataModel.data
self.priceLbl.text = "¥" + String(format: "%.2f", (dataModel.data?.price_jd)!)
if dataModel.data?.price_jd != "-" {
self.priceLbl.text = "¥" + String(format: "%.2f", (dataModel.data?.price_jd)!)
let num1 = dataModel.data?.price_sf
let num2 = dataModel.data?.price_jd as! NSString
if num1! > num2.floatValue {
self.priceLbl.text = "¥" + (dataModel.data?.price_jd)!
}
}
// self.priceLbl.text = "¥" + String(format: "%.2f", (dataModel.data?.price_jd)!)
// if dataModel.data?.price_jd != "-" {
// self.priceLbl.text = "¥" + String(format: "%.2f", (dataModel.data?.price_jd)!)
// let num1 = dataModel.data?.price_sf
// let num2 = dataModel.data?.price_jd as! NSString
// if num1! > num2.floatValue {
// self.priceLbl.text = "¥" + (dataModel.data?.price_jd)!
// }
// }
}) { (error) in
}
......@@ -2232,10 +2237,13 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
site_delivery = 0
}
if wenduIndex == 3 {
wenduIndex = 4 //(常温)
}
let infodic = ["order_sn":guanlianDingStr as Any,
"sale_plat":guanlianPingStr as Any,
"express_item_name":itemName as Any,
"package":itemBaoName as Any,
"weight":weight as Any,
"volume":tiJi as Any,
"express_item_qty":count as Any,
......@@ -2260,6 +2268,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
"s_district_name":s_district_name as Any,
"s_address":sendAdr as Any,
"s_mobile":sendPhone as Any,
"s_street_name":"" as Any,
"r_consignee":receiver as Any,
"r_country":1 as Any,
"r_province":r_province as Any,
......@@ -2269,7 +2278,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
"r_city_name":r_city_name as Any,
"r_district_name":r_district_name as Any,
"r_address":receiveAdr as Any,
"r_mobile":receivePhone as Any]
"r_mobile":receivePhone as Any,
"r_street_name":"" as Any]
let UserToken = UserDefaults.standard.value(forKey: "user_token")
......
......@@ -8,7 +8,7 @@
import UIKit
protocol ZengZhiServicesViewControllerDelegate {
func ZengZhiServicesViewControllerFinish(price:Float,content:String)
func ZengZhiServicesViewControllerFinish(price:Float,content:String,ZhuangCheN:Int,XieCheN:Int)
}
class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndSelectCellDelegate,UITextViewDelegate, UITextFieldDelegate{
......@@ -28,9 +28,8 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
HUD.flash(.label("保价金额超出范围"), delay: 1.2)
return
}
delegate?.ZengZhiServicesViewControllerFinish(price:str.floatValue, content: commend)
delegate?.ZengZhiServicesViewControllerFinish(price: str.floatValue, content: commend, ZhuangCheN: ZhuangChe, XieCheN: XieChe)
self.navigationController?.popViewController(animated: true)
}
......@@ -82,7 +81,7 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
super.viewDidLoad()
navbar.title = "增值服务"
self.view.addSubview(navbar)
topView.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height)
make.left.right.equalTo(0)
......@@ -127,6 +126,13 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
}
inputTF.delegate = self
// Do any additional setup after loading the view.
if ZhuangChe == 1 {
leftB.isSelected = true
}
if XieChe == 1 {
rightB.isSelected = true
}
}
//MARK: - CELL DELEGATE
......
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