Commit 17b7bec2 authored by lujunye's avatar lujunye

代客下单购物逻辑补充

parent 4341ff50
...@@ -198,6 +198,8 @@ ...@@ -198,6 +198,8 @@
E0A409D524640B8300CFF109 /* DZGLViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A409D324640B8300CFF109 /* DZGLViewController.xib */; }; E0A409D524640B8300CFF109 /* DZGLViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A409D324640B8300CFF109 /* DZGLViewController.xib */; };
E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */; }; E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */; };
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */; }; E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */; };
E0B5307E247266F400FFCC15 /* DKXDAdrCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B5307C247266F400FFCC15 /* DKXDAdrCell.swift */; };
E0B5307F247266F400FFCC15 /* DKXDAdrCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0B5307D247266F400FFCC15 /* DKXDAdrCell.xib */; };
E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B6036C244D376900A56B38 /* KuWeiCell.swift */; }; E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B6036C244D376900A56B38 /* KuWeiCell.swift */; };
E0B6036F244D376900A56B38 /* KuWeiCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0B6036D244D376900A56B38 /* KuWeiCell.xib */; }; E0B6036F244D376900A56B38 /* KuWeiCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0B6036D244D376900A56B38 /* KuWeiCell.xib */; };
E0B9461E24566B3100FBEC9A /* TitleAndTFAndBtnCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B9461C24566B3100FBEC9A /* TitleAndTFAndBtnCell.swift */; }; E0B9461E24566B3100FBEC9A /* TitleAndTFAndBtnCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B9461C24566B3100FBEC9A /* TitleAndTFAndBtnCell.swift */; };
...@@ -672,6 +674,8 @@ ...@@ -672,6 +674,8 @@
E0A409D324640B8300CFF109 /* DZGLViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DZGLViewController.xib; sourceTree = "<group>"; }; E0A409D324640B8300CFF109 /* DZGLViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DZGLViewController.xib; sourceTree = "<group>"; };
E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckWareHourseViewController.swift; 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>"; }; E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CheckWareHourseViewController.xib; sourceTree = "<group>"; };
E0B5307C247266F400FFCC15 /* DKXDAdrCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DKXDAdrCell.swift; sourceTree = "<group>"; };
E0B5307D247266F400FFCC15 /* DKXDAdrCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DKXDAdrCell.xib; sourceTree = "<group>"; };
E0B6036C244D376900A56B38 /* KuWeiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KuWeiCell.swift; sourceTree = "<group>"; }; E0B6036C244D376900A56B38 /* KuWeiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KuWeiCell.swift; sourceTree = "<group>"; };
E0B6036D244D376900A56B38 /* KuWeiCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KuWeiCell.xib; sourceTree = "<group>"; }; E0B6036D244D376900A56B38 /* KuWeiCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KuWeiCell.xib; sourceTree = "<group>"; };
E0B9461C24566B3100FBEC9A /* TitleAndTFAndBtnCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleAndTFAndBtnCell.swift; sourceTree = "<group>"; }; E0B9461C24566B3100FBEC9A /* TitleAndTFAndBtnCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleAndTFAndBtnCell.swift; sourceTree = "<group>"; };
...@@ -1872,6 +1876,8 @@ ...@@ -1872,6 +1876,8 @@
E0E341E9246E95EE0060AC20 /* PingLunCell.xib */, E0E341E9246E95EE0060AC20 /* PingLunCell.xib */,
E0228BAE246FDA9A005812FA /* TitleAndLblCell.swift */, E0228BAE246FDA9A005812FA /* TitleAndLblCell.swift */,
E0228BAF246FDA9A005812FA /* TitleAndLblCell.xib */, E0228BAF246FDA9A005812FA /* TitleAndLblCell.xib */,
E0B5307C247266F400FFCC15 /* DKXDAdrCell.swift */,
E0B5307D247266F400FFCC15 /* DKXDAdrCell.xib */,
); );
path = Cell; path = Cell;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -2430,6 +2436,7 @@ ...@@ -2430,6 +2436,7 @@
E09B03B72445B85A00211A51 /* LoginViewController.xib in Resources */, E09B03B72445B85A00211A51 /* LoginViewController.xib in Resources */,
F96E9D61246657B500B5B94A /* HGImage.storyboard in Resources */, F96E9D61246657B500B5B94A /* HGImage.storyboard in Resources */,
E09F4C9E2452BEBB00BE033D /* JiPaiFangShiViewController.xib in Resources */, E09F4C9E2452BEBB00BE033D /* JiPaiFangShiViewController.xib in Resources */,
E0B5307F247266F400FFCC15 /* DKXDAdrCell.xib in Resources */,
E0A409D12464041200CFF109 /* ThirdCell.xib in Resources */, E0A409D12464041200CFF109 /* ThirdCell.xib in Resources */,
E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */, E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */,
E06524EE2458008900CA22E2 /* RuKuViewController.xib in Resources */, E06524EE2458008900CA22E2 /* RuKuViewController.xib in Resources */,
...@@ -2659,6 +2666,7 @@ ...@@ -2659,6 +2666,7 @@
E0228BB0246FDA9A005812FA /* TitleAndLblCell.swift in Sources */, E0228BB0246FDA9A005812FA /* TitleAndLblCell.swift in Sources */,
F950FDA92451613500C40530 /* GetMobileModel.swift in Sources */, F950FDA92451613500C40530 /* GetMobileModel.swift in Sources */,
F94A314724624E9500FEC38E /* GetGelipayInfoModel.swift in Sources */, F94A314724624E9500FEC38E /* GetGelipayInfoModel.swift in Sources */,
E0B5307E247266F400FFCC15 /* DKXDAdrCell.swift in Sources */,
E0B94623245671E100FBEC9A /* DaiKeXiaDanGouWuViewController.swift in Sources */, E0B94623245671E100FBEC9A /* DaiKeXiaDanGouWuViewController.swift in Sources */,
E0A320C52456D01300AF321C /* DaiKeXiaDanFooterView.swift in Sources */, E0A320C52456D01300AF321C /* DaiKeXiaDanFooterView.swift in Sources */,
E0336DD5244EC40000380BE9 /* CreatNewSpecsViewController.swift in Sources */, E0336DD5244EC40000380BE9 /* CreatNewSpecsViewController.swift in Sources */,
......
//
// DKXDAdrCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/18.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class DKXDAdrCell: UITableViewCell {
@IBOutlet weak var adrLbl: UILabel!
@IBOutlet weak var contentLbl: UILabel!
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var status1: UILabel!
@IBOutlet weak var status2: 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="DKXDAdrCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="70"/>
<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="70"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标题" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5kw-XG-gZD">
<rect key="frame" x="15" y="15" width="27" height="16"/>
<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="收" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QvD-ve-9Fp">
<rect key="frame" x="325" y="14" width="18" height="18"/>
<constraints>
<constraint firstAttribute="width" constant="18" id="K4r-yw-iY5"/>
<constraint firstAttribute="height" constant="18" id="dyP-bR-pyC"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="企业、预售字体"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="企业、预售字体"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jinru" translatesAutoresizingMaskIntoConstraints="NO" id="eho-Ot-7rf">
<rect key="frame" x="353" y="19.5" width="7" height="7"/>
<constraints>
<constraint firstAttribute="height" constant="7" id="Muz-eQ-X9h"/>
<constraint firstAttribute="width" constant="7" id="rEc-Do-HBZ"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="寄" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r5M-d4-Eze">
<rect key="frame" x="297" y="14" width="18" height="18"/>
<constraints>
<constraint firstAttribute="width" constant="18" id="0h9-G0-bSR"/>
<constraint firstAttribute="height" constant="18" id="UdR-Ln-9sV"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="蓝色字体颜色"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="蓝色字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="内容" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dVC-Xx-6Hy">
<rect key="frame" x="260" y="15" width="27" height="16"/>
<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="地址" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hiB-wE-OIe">
<rect key="frame" x="316" y="42" width="27" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VnT-fQ-1Wc">
<rect key="frame" x="15" y="69" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="j5M-8T-j3b"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="r5M-d4-Eze" firstAttribute="leading" secondItem="dVC-Xx-6Hy" secondAttribute="trailing" constant="10" id="22v-tZ-ib5"/>
<constraint firstItem="5kw-XG-gZD" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="9VS-AY-U3V"/>
<constraint firstItem="dVC-Xx-6Hy" firstAttribute="centerY" secondItem="5kw-XG-gZD" secondAttribute="centerY" id="D7X-Vs-1Cy"/>
<constraint firstItem="VnT-fQ-1Wc" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Edw-XO-oDA"/>
<constraint firstItem="r5M-d4-Eze" firstAttribute="centerY" secondItem="5kw-XG-gZD" secondAttribute="centerY" id="IXK-ww-9GV"/>
<constraint firstItem="5kw-XG-gZD" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="Ir0-HP-Fnf"/>
<constraint firstAttribute="trailing" secondItem="eho-Ot-7rf" secondAttribute="trailing" constant="15" id="L5E-l5-zjV"/>
<constraint firstItem="eho-Ot-7rf" firstAttribute="leading" secondItem="QvD-ve-9Fp" secondAttribute="trailing" constant="10" id="QQV-7a-uFO"/>
<constraint firstAttribute="bottom" secondItem="VnT-fQ-1Wc" secondAttribute="bottom" id="aUZ-V4-GMD"/>
<constraint firstAttribute="trailing" secondItem="VnT-fQ-1Wc" secondAttribute="trailing" id="g5K-bC-SvP"/>
<constraint firstItem="hiB-wE-OIe" firstAttribute="trailing" secondItem="QvD-ve-9Fp" secondAttribute="trailing" id="gKY-rB-hX3"/>
<constraint firstItem="QvD-ve-9Fp" firstAttribute="centerY" secondItem="5kw-XG-gZD" secondAttribute="centerY" id="hH4-KC-mxw"/>
<constraint firstItem="eho-Ot-7rf" firstAttribute="centerY" secondItem="5kw-XG-gZD" secondAttribute="centerY" id="laI-ZY-gLB"/>
<constraint firstItem="hiB-wE-OIe" firstAttribute="top" secondItem="QvD-ve-9Fp" secondAttribute="bottom" constant="10" id="r47-Lf-fX2"/>
<constraint firstItem="QvD-ve-9Fp" firstAttribute="leading" secondItem="r5M-d4-Eze" secondAttribute="trailing" constant="10" id="wl1-Vd-Unl"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="adrLbl" destination="hiB-wE-OIe" id="FK3-AL-t6u"/>
<outlet property="contentLbl" destination="dVC-Xx-6Hy" id="gtL-Pj-o6B"/>
<outlet property="nameLbl" destination="5kw-XG-gZD" id="UV4-nX-ceM"/>
<outlet property="status1" destination="QvD-ve-9Fp" id="vJC-ZC-Cxd"/>
<outlet property="status2" destination="r5M-d4-Eze" id="yE5-x7-b6e"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="103.79464285714285"/>
</tableViewCell>
</objects>
<resources>
<image name="jinru" width="13" height="23"/>
<namedColor name="企业、预售字体">
<color red="1" green="0.68999999761581421" blue="0.47099998593330383" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
import UIKit import UIKit
@objc protocol XuanZeShangPinCellDelegate { @objc protocol XuanZeShangPinCellDelegate {
@objc optional func XuanZeShangPinCellBtnClick(index:IndexPath) @objc optional func XuanZeShangPinCellBtnClick(index:IndexPath)
@objc optional func XuanZeShangPinCellBtnADClick(sender:UIButton)
} }
class XuanZeShangPinCell: UITableViewCell { class XuanZeShangPinCell: UITableViewCell {
@IBOutlet weak var iconImg: UIImageView! @IBOutlet weak var iconImg: UIImageView!
...@@ -22,7 +21,14 @@ class XuanZeShangPinCell: UITableViewCell { ...@@ -22,7 +21,14 @@ class XuanZeShangPinCell: UITableViewCell {
delegate?.XuanZeShangPinCellBtnClick!(index:idx!) delegate?.XuanZeShangPinCellBtnClick!(index:idx!)
} }
@IBAction func addOrDelAction(_ sender: UIButton) { @IBAction func addOrDelAction(_ sender: UIButton) {
delegate?.XuanZeShangPinCellBtnADClick?(sender: sender) let str = countTF.text as! NSString
if sender.tag == 0 {//加
countTF.text = "\(str.integerValue + 1)"
}else {
if str.integerValue > 0 {
countTF.text = "\(str.integerValue - 1)"
}
}
} }
@IBOutlet weak var priceTF: UITextField! @IBOutlet weak var priceTF: UITextField!
@IBOutlet weak var countTF: UITextField! @IBOutlet weak var countTF: UITextField!
......
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
// //
import UIKit import UIKit
protocol DaiKeXiaDanGouWuCellDelegate {
func DaiKeXiaDanGouWuCellDelAction(cell:DaiKeXiaDanGouWuCell)
}
class DaiKeXiaDanGouWuCell: UITableViewCell { class DaiKeXiaDanGouWuCell: UITableViewCell {
var delegate:DaiKeXiaDanGouWuCellDelegate?
@IBOutlet weak var changeBtn: UIButton! @IBOutlet weak var changeBtn: UIButton!
@IBOutlet weak var btmLIneWidth: NSLayoutConstraint! @IBOutlet weak var btmLIneWidth: NSLayoutConstraint!
@IBOutlet weak var detailLbl2: UILabel! @IBOutlet weak var detailLbl2: UILabel!
...@@ -20,6 +22,7 @@ class DaiKeXiaDanGouWuCell: UITableViewCell { ...@@ -20,6 +22,7 @@ class DaiKeXiaDanGouWuCell: UITableViewCell {
@IBOutlet weak var detailLbl: UILabel! @IBOutlet weak var detailLbl: UILabel!
@IBOutlet weak var titleLbl: UILabel! @IBOutlet weak var titleLbl: UILabel!
@IBAction func delAction(_ sender: Any) { @IBAction func delAction(_ sender: Any) {
delegate?.DaiKeXiaDanGouWuCellDelAction(cell: self)
} }
@IBOutlet weak var imgView: UIImageView! @IBOutlet weak var imgView: UIImageView!
override func awakeFromNib() { override func awakeFromNib() {
......
...@@ -8,39 +8,51 @@ ...@@ -8,39 +8,51 @@
import UIKit import UIKit
class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,UITableViewDelegate,DaiKeXiaDanFooterViewDelegate,TitleAndBtnCellDelegate,GLAlertSelectViewDelegate{ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,UITableViewDelegate,DaiKeXiaDanFooterViewDelegate,TitleAndBtnCellDelegate,GLAlertSelectViewDelegate,DZGLViewControllerDelegate,XuanZeShangPinViewControllerDelegate,DaiKeXiaDanGouWuCellDelegate{
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) { func DaiKeXiaDanGouWuCellDelAction(cell: DaiKeXiaDanGouWuCell) {
if selectnum != 10086 { itemArr.remove(at: cell.tag)
if view.titleLbl.text == "请选择支付状态" { listView.reloadData()
zhiFuType = selectnum
}
if view.titleLbl.text == "请选择支付方式" {
zhiFuWay = selectnum
} }
if view.titleLbl.text == "请选择提货方式" { let ddTypeArr = ["普通订单","预售下单"]
tiHuoWay = selectnum let zfTypeArr = ["未付款","欠款","月结","已付款"]
} let zfWayArr = ["未支付","现金","转账(私)","转账(公)","转账(微信)","转账(支付宝)"]
if view.titleLbl.text == "请选择出货状态" { let thArr = ["自提","派送"]
chuHuoWay = selectnum let ckArr = ["暂不出库","直接出库"]
//MARK: - 商品选择(预售)
func XuanZeShangPinViewControllerYuShou(YuShouData: String) {
itemArr.removeAll()
itemArr.append(YuShouData)
listView.reloadData()
} }
//MARK: - 商品选择(普通)
func XuanZeShangPinViewControllerSubmitAction(datas: Array<Any>) {
itemArr = datas
listView.reloadData()
} }
view.removeFromSuperview() //MARK: - 选择地址
glSelectView = nil func DZGLViewControllerSelect(data: String) {
adrData = data
listView.reloadData()
} }
var itemArr:Array<Any> = []
var yuShouData:String?
var zhiFuType = 0
var zhiFuWay = 0
var tiHuoWay = 0
var chuHuoWay = 0
var orderType:Int? //订单类型 var orderType:Int? //订单类型
var adrData:String?//地址数据
var glSelectView:GLAlertSelectView? = nil var glSelectView:GLAlertSelectView? = nil
var holderArr = ["未支付","未付款","自提","暂不出库","0","0"] var holderArr = ["未支付","未付款","自提","","暂不出库","0","0"]
let p3Arr = ["支付状态","支付方式","提货方式","出货状态","运费","其他费用"] let p3Arr = ["支付状态","支付方式","提货方式","选择地址","出货状态","运费","其他费用"]
var footerView:DaiKeXiaDanFooterView? var footerView:DaiKeXiaDanFooterView?
var itemArr:Array<Any> = []
@IBAction func submitAction(_ sender: Any) { @IBAction func submitAction(_ sender: Any) {
} }
@IBOutlet weak var listView: UITableView! @IBOutlet weak var listView: UITableView!
...@@ -59,31 +71,27 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U ...@@ -59,31 +71,27 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
listView.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtnCell") listView.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtnCell")
listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell") listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
listView.register(UINib(nibName: "DaiKeXiaDanGouWuCell", bundle: nil), forCellReuseIdentifier: "DaiKeXiaDanGouWuCell") listView.register(UINib(nibName: "DaiKeXiaDanGouWuCell", bundle: nil), forCellReuseIdentifier: "DaiKeXiaDanGouWuCell")
listView.register(UINib(nibName: "DKXDAdrCell", bundle: nil), forCellReuseIdentifier: "DKXDAdrCell")
//TitleAndBtnCell TitleAndTFCell //TitleAndBtnCell TitleAndTFCell
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
} }
//MARK: - cell delegate //MARK: - cell delegate
func addAction() { func addAction() {
if orderType == nil {
HUD.flash(.label("请选择订单类型"), delay: 1.2)
return
}
let vc = XuanZeShangPinViewController() let vc = XuanZeShangPinViewController()
self.navigationController?.pushViewController(vc, animated: true) vc.delegate = self
// itemArr.add("0") if orderType == 1 {
// UIView.performWithoutAnimation { vc.isYuShou = true
// let set = NSIndexSet(index: 1) }
// listView.reloadSections(set as IndexSet, with: .none)
// }
self.navigationController?.pushViewController(vc, animated: true)
} }
//footer //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? { func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
if section == 1{//220 142 if section == 1{//220 142
let view = DaiKeXiaDanFooterView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 220)) let view = DaiKeXiaDanFooterView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 220))
...@@ -118,113 +126,69 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U ...@@ -118,113 +126,69 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
} }
return UIView() 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 { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
switch section { switch section {
case 0:return 2 case 0:return 2
case 1:return itemArr.count case 1:return itemArr.count
default:return 6 default:return p3Arr.count
} }
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.section == 1 { if indexPath.section == 1 {
return 120 return 120
} }
return 49 if indexPath.section == 2{
if indexPath.row == 3 {
if tiHuoWay != 1 {
return 0.001
} }
if adrData != nil {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { return 70
switch indexPath.section {
case 0:
if indexPath.row == 0 {
let vc = GuanLianKehuVC()
self.navigationController?.pushViewController(vc, animated: true)
}else{
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
if orderType != nil {
view.selectNum = orderType!
view.tempNum = view.selectNum
} }
view.delegate = self
view.titleLbl.text = "请选择订单类型"
view.dataArr = ["普通订单","预售下单"]
self.view.addSubview(view)
glSelectView = view
} }
} }
break return 49
case 1:
break
default:
break
} }
func GLAlertSelectViewClick(selectNum: Int, view: GLAlertSelectView) {
switch view.tag {
case 100:
orderType = selectNum
if orderType == 1 {
if itemArr.count > 1{
itemArr.removeAll()
listView.reloadData()
} }
var zhiFuType:Int?
var zhiFuWay:Int?
var tiHuoWay:Int?
var chuHuoWay:Int?
func btnClick(content: String, cell: TitleAndBtnCell) {
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
view.delegate = self
switch cell.tag {
case 0://支付状态
if zhiFuType != nil {
view.selectNum = zhiFuType!
view.tempNum = view.selectNum
} }
view.titleLbl.text = "请选择\(p3Arr[cell.tag])"
view.dataArr = ["预售","普通","期货","团购"]
break break
case 1://支付方式 case 101:
if zhiFuWay != nil { zhiFuType = selectNum
view.selectNum = zhiFuWay! holderArr.insert(zfTypeArr[selectNum], at: 0)
view.tempNum = view.selectNum holderArr.remove(at: 1)
}
view.titleLbl.text = "请选择\(p3Arr[cell.tag])"
view.dataArr = ["预售","普通","期货","团购"]
break break
case 2://提货方式 case 102:
if tiHuoWay != nil { zhiFuWay = selectNum
view.selectNum = tiHuoWay! holderArr.insert(zfWayArr[selectNum], at: 1)
view.tempNum = view.selectNum holderArr.remove(at:2)
}
view.titleLbl.text = "请选择\(p3Arr[cell.tag])"
view.dataArr = ["预售","普通","期货","团购"]
break break
default://出货状态 case 103:
if chuHuoWay != nil { tiHuoWay = selectNum
view.selectNum = chuHuoWay! holderArr.insert(thArr[selectNum], at: 2)
view.tempNum = view.selectNum holderArr.remove(at: 3)
} break
view.titleLbl.text = "请选择\(p3Arr[cell.tag])" case 104:
view.dataArr = ["预售","普通","期货","团购"] chuHuoWay = selectNum
holderArr.insert(ckArr[selectNum], at: 4)
holderArr.remove(at: 5)
break
default:
break break
} }
self.view.addSubview(view)
glSelectView = view
}
}
func GLAlertSelectViewClick(selectNum: Int, view: GLAlertSelectView) {
print("单选",selectNum)
glSelectView?.removeFromSuperview()
glSelectView = nil
}
func GLAlertMoreSelectViewClick(sender: NSArray, view:UIView) {
print("多选",sender)
glSelectView?.removeFromSuperview() glSelectView?.removeFromSuperview()
glSelectView = nil glSelectView = nil
listView.reloadData()
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
...@@ -238,19 +202,34 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U ...@@ -238,19 +202,34 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
if indexPath.row == 1 { if indexPath.row == 1 {
cell.nameLbl.text = "订单类型:" cell.nameLbl.text = "订单类型:"
cell.contentLbl.text = "请选择订单类型" cell.contentLbl.text = "请选择订单类型"
if orderType != nil {
cell.contentLbl.text = ddTypeArr[orderType!]
}
} }
cell.btn.isUserInteractionEnabled = false cell.btn.isUserInteractionEnabled = false
return cell return cell
case 1: case 1:
let cell = tableView.dequeueReusableCell(withIdentifier: "DaiKeXiaDanGouWuCell") as! DaiKeXiaDanGouWuCell let cell = tableView.dequeueReusableCell(withIdentifier: "DaiKeXiaDanGouWuCell") as! DaiKeXiaDanGouWuCell
cell.tag = indexPath.row
cell.delegate = self
return cell return cell
default: default:
if indexPath.row < 4 { if indexPath.row < 5 {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell
cell.btn.isUserInteractionEnabled = false
cell.delegate = self cell.delegate = self
cell.nameLbl.text = p3Arr[indexPath.row] cell.nameLbl.text = p3Arr[indexPath.row]
cell.contentLbl.text = holderArr[indexPath.row] cell.contentLbl.text = holderArr[indexPath.row]
cell.tag = indexPath.row cell.tag = indexPath.row
if adrData != nil {
if indexPath.row == 3 {
let cell = tableView.dequeueReusableCell(withIdentifier: "DKXDAdrCell") as! DKXDAdrCell
cell.nameLbl.text = p3Arr[indexPath.row]
cell.contentLbl.text = adrData
cell.tag = indexPath.row
return cell
}
}
return cell return cell
} }
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
...@@ -273,7 +252,121 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U ...@@ -273,7 +252,121 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell.textTF.textAlignment = .center cell.textTF.textAlignment = .center
return cell return cell
} }
}
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, heightForFooterInSection section: Int) -> CGFloat {
if section == 1{
if itemArr.count == 0 {
return 142
}
return 220
}
return 10
}
//MARK: - didselectRow
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.section {
case 0:
if indexPath.row == 0 {
let vc = GuanLianKehuVC()
self.navigationController?.pushViewController(vc, animated: true)
}else{
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
if orderType != nil {
view.selectNum = orderType!
view.tempNum = view.selectNum
}
view.tag = 100
view.delegate = self
view.titleLbl.text = "请选择订单类型"
view.dataArr = ddTypeArr
self.view.addSubview(view)
glSelectView = view
}
}
break
case 2:
if indexPath.row == 3 || indexPath.row > 4{
if indexPath.row == 3 {
let vc = DZGLViewController()
vc.isSelectMotion = true
vc.delegate = self
self.navigationController?.pushViewController(vc, animated: true)
}
return
}
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
view.delegate = self
switch indexPath.row {
case 0://支付状态
view.tag = 101
view.selectNum = zhiFuType
view.tempNum = view.selectNum
view.titleLbl.text = "请选择\(p3Arr[indexPath.row])"
view.dataArr = zfTypeArr
break
case 1://支付方式
view.tag = 102
view.selectNum = zhiFuWay
view.tempNum = view.selectNum
view.titleLbl.text = "请选择\(p3Arr[indexPath.row])"
view.dataArr = zfWayArr
break
case 2://提货方式
view.tag = 103
view.selectNum = tiHuoWay
view.tempNum = view.selectNum
view.titleLbl.text = "请选择\(p3Arr[indexPath.row])"
view.dataArr = thArr
break
case 4://出货状态
view.tag = 104
view.selectNum = chuHuoWay
view.tempNum = view.selectNum
view.titleLbl.text = "请选择\(p3Arr[indexPath.row])"
view.dataArr = ckArr
break
default:
break
}
self.view.addSubview(view)
glSelectView = view
}
break
default:
break
}
}
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) {
if selectnum != 10086 {
if view.titleLbl.text == "请选择支付状态" {
zhiFuType = selectnum
}
if view.titleLbl.text == "请选择支付方式" {
zhiFuWay = selectnum
} }
if view.titleLbl.text == "请选择提货方式" {
tiHuoWay = selectnum
}
if view.titleLbl.text == "请选择出货状态" {
chuHuoWay = selectnum
}
}
view.removeFromSuperview()
glSelectView = nil
}
} }
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</attributedString> </attributedString>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </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"> <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="7kx-vF-yfW">
<rect key="frame" x="0.0" y="44" width="414" height="769"/> <rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" name="app底色"/> <color key="backgroundColor" name="app底色"/>
<connections> <connections>
......
...@@ -8,18 +8,36 @@ ...@@ -8,18 +8,36 @@
import UIKit import UIKit
protocol XuanZeShangPinViewControllerDelegate {
func XuanZeShangPinViewControllerSubmitAction(datas:Array<Any>)
func XuanZeShangPinViewControllerYuShou(YuShouData:String)
}
class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,XuanZeShangPinCellDelegate,UISearchBarDelegate,SearchBarViewDelegate{ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,XuanZeShangPinCellDelegate,UISearchBarDelegate,SearchBarViewDelegate{
var searchV : SearchBarView? = nil var searchV : SearchBarView? = nil
var delegate:XuanZeShangPinViewControllerDelegate?
//XuanZeShangPinCell //XuanZeShangPinCell
@IBAction func submitAction(_ sender: Any) { @IBAction func submitAction(_ sender: Any) {
print("submit")
if isYuShou {
delegate?.XuanZeShangPinViewControllerYuShou(YuShouData: "abc")
}else{
delegate?.XuanZeShangPinViewControllerSubmitAction(datas: selectIdxArr)
}
self.navigationController?.popViewController(animated: true)
} }
var idx:IndexPath?
@IBOutlet weak var btmLbl: UILabel! @IBOutlet weak var btmLbl: UILabel!
@IBOutlet weak var listView: UITableView! @IBOutlet weak var listView: UITableView!
@IBOutlet weak var topView: UIView! @IBOutlet weak var topView: UIView!
var idx:IndexPath?
//是否预售
var isYuShou = false
var datas:Array<Any> = []//数据
var selectIdxArr:Array<IndexPath> = []
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
navbar.title = "选择商品" navbar.title = "选择商品"
...@@ -62,6 +80,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab ...@@ -62,6 +80,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
let cell = tableView.dequeueReusableCell(withIdentifier: "XuanZeShangPinCell") as! XuanZeShangPinCell let cell = tableView.dequeueReusableCell(withIdentifier: "XuanZeShangPinCell") as! XuanZeShangPinCell
cell.delegate = self cell.delegate = self
cell.idx = indexPath cell.idx = indexPath
if isYuShou {//预售
if idx == indexPath { if idx == indexPath {
cell.selectBtn.isSelected = true cell.selectBtn.isSelected = true
cell.btmView.isHidden = false cell.btmView.isHidden = false
...@@ -71,6 +90,18 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab ...@@ -71,6 +90,18 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
cell.btmView.isHidden = true cell.btmView.isHidden = true
cell.btmViewHeight.constant = 0 cell.btmViewHeight.constant = 0
} }
}else{//非预售
cell.selectBtn.isSelected = false
cell.btmView.isHidden = true
cell.btmViewHeight.constant = 0
for idx in selectIdxArr {
if idx == indexPath{
cell.selectBtn.isSelected = true
cell.btmView.isHidden = false
cell.btmViewHeight.constant = 89
}
}
}
return cell return cell
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
...@@ -79,28 +110,26 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab ...@@ -79,28 +110,26 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
return 210 return 210
} }
} }
for idx in selectIdxArr {
if indexPath == idx {
return 210
}
}
return 120 return 120
} }
//MARK: - SELF DELEGATE //MARK: - SELF DELEGATE
func XuanZeShangPinCellBtnADClick(sender: UIButton) {
if sender.tag == 0 {//加
}else{//减
}
}
func XuanZeShangPinCellBtnClick(index:IndexPath) { func XuanZeShangPinCellBtnClick(index:IndexPath) {
if isYuShou{
idx = index idx = index
for item in listView.visibleCells { }else{
let cel = item as! XuanZeShangPinCell if selectIdxArr.contains(index) {
cel.selectBtn.isSelected = false let idx = selectIdxArr.index(of: index)
cel.btmView.isHidden = true selectIdxArr.remove(at: idx!)
cel.btmViewHeight.constant = 0 }else{
if cel.idx == index { selectIdxArr.append(index)
cel.selectBtn.isSelected = true
cel.btmView.isHidden = false
cel.btmViewHeight.constant = 89
} }
} }
listView.reloadData() listView.reloadData()
......
...@@ -8,19 +8,38 @@ ...@@ -8,19 +8,38 @@
import UIKit import UIKit
import SwipeCellKit import SwipeCellKit
import LGButton
protocol DZGLViewControllerDelegate {
func DZGLViewControllerSelect(data:String)
}
class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,SwipeTableViewCellDelegate{ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,SwipeTableViewCellDelegate{
var delegate:DZGLViewControllerDelegate?
var isSelectMotion = false
var selectIdx:IndexPath?
@IBOutlet weak var btmLbl: UILabel!
@IBOutlet weak var listView: UITableView! @IBOutlet weak var listView: UITableView!
@IBOutlet weak var btmBtn: LGButton!
@IBAction func btmClick(_ sender: Any) {
delegate?.DZGLViewControllerSelect(data: "abc")
self.navigationController?.popViewController(animated: true)
}
@IBOutlet weak var btmLblHeight: NSLayoutConstraint!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
navbar.title = "地址管理" navbar.title = "地址管理"
navbar.rightTitle = "新增" navbar.rightTitle = "新增"
self.view.addSubview(navbar) self.view.addSubview(navbar)
listView.separatorStyle = .none listView.separatorStyle = .none
SetTopFrame(view: listView, height: fullScreenHeight-NavCGRect.height) SetTopFrameView(view: listView, btmView: btmLbl)
listView.register(UINib(nibName: "DiZhiGuanLiCell", bundle: nil), forCellReuseIdentifier: "DiZhiGuanLiCell") listView.register(UINib(nibName: "DiZhiGuanLiCell", bundle: nil), forCellReuseIdentifier: "DiZhiGuanLiCell")
btmLbl.isHidden = !isSelectMotion
btmBtn.isHidden = !isSelectMotion
if isSelectMotion {
btmLblHeight.constant = 49
}else{
btmLblHeight.constant = 0
}
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
} }
...@@ -40,13 +59,28 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData ...@@ -40,13 +59,28 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "DiZhiGuanLiCell") as! DiZhiGuanLiCell let cell = tableView.dequeueReusableCell(withIdentifier: "DiZhiGuanLiCell") as! DiZhiGuanLiCell
cell.delegate = self cell.delegate = self
if isSelectMotion == false {
cell.btnH.constant = 0
cell.xValue.constant = 0
}else{
if indexPath == selectIdx {
cell.btn.isSelected = true
}
}
return cell return cell
} }
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print(indexPath.row) print(indexPath.row)
if isSelectMotion == false {
let vc = XinZengDiZhiViewController() let vc = XinZengDiZhiViewController()
vc.navTitle = "编辑地址" vc.navTitle = "编辑地址"
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
}else{
selectIdx = indexPath
listView.reloadData()
}
} }
......
...@@ -3,12 +3,16 @@ ...@@ -3,12 +3,16 @@
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/> <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="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="DZGLViewController" customModule="GeliBusinessPlatform" customModuleProvider="target"> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="DZGLViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections> <connections>
<outlet property="btmBtn" destination="cAI-JO-Qdu" id="Ld9-CG-TRT"/>
<outlet property="btmLbl" destination="Ypv-HH-qxb" id="Qod-Sc-gU9"/>
<outlet property="btmLblHeight" destination="5VM-BT-t21" id="Drd-88-AM5"/>
<outlet property="listView" destination="PT0-ms-ns9" id="I4E-LU-xmE"/> <outlet property="listView" destination="PT0-ms-ns9" id="I4E-LU-xmE"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections> </connections>
...@@ -19,23 +23,73 @@ ...@@ -19,23 +23,73 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="PT0-ms-ns9"> <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="PT0-ms-ns9">
<rect key="frame" x="0.0" y="44" width="414" height="818"/> <rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<connections> <connections>
<outlet property="dataSource" destination="-1" id="S9q-iF-ucu"/> <outlet property="dataSource" destination="-1" id="S9q-iF-ucu"/>
<outlet property="delegate" destination="-1" id="GCo-1t-z5P"/> <outlet property="delegate" destination="-1" id="GCo-1t-z5P"/>
</connections> </connections>
</tableView> </tableView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cAI-JO-Qdu" 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"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="btmClick:" destination="-1" eventType="touchUpInside" id="U6X-Oa-JAd"/>
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ypv-HH-qxb">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="5VM-BT-t21"/>
</constraints>
<attributedString key="attributedText">
<fragment content="确定">
<attributes>
<color key="NSColor" name="白色背景色"/>
<font key="NSFont" size="17" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
</subviews> </subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints> <constraints>
<constraint firstItem="PT0-ms-ns9" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="CdY-4j-SHV"/> <constraint firstAttribute="bottom" secondItem="cAI-JO-Qdu" secondAttribute="bottom" id="1MD-9W-7eX"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="PT0-ms-ns9" secondAttribute="trailing" id="ZJi-7I-Sxa"/> <constraint firstItem="cAI-JO-Qdu" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="2al-2v-3lI"/>
<constraint firstItem="PT0-ms-ns9" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="gk5-jK-11s"/> <constraint firstItem="cAI-JO-Qdu" firstAttribute="top" secondItem="Ypv-HH-qxb" secondAttribute="top" id="GhW-XG-N4K"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="PT0-ms-ns9" secondAttribute="bottom" id="ix1-ZR-9a5"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Ypv-HH-qxb" secondAttribute="trailing" id="PaP-SV-iSE"/>
<constraint firstItem="PT0-ms-ns9" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="V5G-53-sAf"/>
<constraint firstItem="PT0-ms-ns9" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="Zy4-E7-jKS"/>
<constraint firstItem="Ypv-HH-qxb" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="a42-al-5WD"/>
<constraint firstItem="PT0-ms-ns9" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="aAW-Lb-vlo"/>
<constraint firstItem="cAI-JO-Qdu" firstAttribute="top" secondItem="PT0-ms-ns9" secondAttribute="bottom" id="euL-DJ-Xbf"/>
<constraint firstAttribute="trailing" secondItem="cAI-JO-Qdu" secondAttribute="trailing" id="fGl-8X-Oxx"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="Ypv-HH-qxb" secondAttribute="bottom" id="z9r-c2-Am0"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="133" y="132"/> <point key="canvasLocation" x="131.8840579710145" y="131.91964285714286"/>
</view> </view>
</objects> </objects>
<resources>
<namedColor name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document> </document>
...@@ -11,11 +11,14 @@ import SwipeCellKit ...@@ -11,11 +11,14 @@ import SwipeCellKit
class DiZhiGuanLiCell: SwipeTableViewCell { class DiZhiGuanLiCell: SwipeTableViewCell {
@IBOutlet weak var btn: UIButton!
@IBOutlet weak var adrLbl: UILabel! @IBOutlet weak var adrLbl: UILabel!
@IBOutlet weak var yellowLbl: UILabel! @IBOutlet weak var yellowLbl: UILabel!
@IBOutlet weak var blueLbl: UILabel! @IBOutlet weak var blueLbl: UILabel!
@IBOutlet weak var phoneLbl: UILabel! @IBOutlet weak var phoneLbl: UILabel!
@IBOutlet weak var nameLbl: UILabel! @IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var btnH: NSLayoutConstraint!
@IBOutlet weak var xValue: NSLayoutConstraint!
override func awakeFromNib() { override func awakeFromNib() {
super.awakeFromNib() super.awakeFromNib()
self.selectionStyle = .none self.selectionStyle = .none
......
...@@ -21,39 +21,20 @@ ...@@ -21,39 +21,20 @@
<rect key="frame" x="15" y="78" width="360" height="1"/> <rect key="frame" x="15" y="78" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/> <color key="backgroundColor" name="灰色分界线"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="1" id="tdd-Zd-2Ml"/> <constraint firstAttribute="height" constant="1" id="Ydm-Mo-gqj"/>
</constraints> </constraints>
</view> </view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vAQ-5q-KPr">
<rect key="frame" x="15" y="15" width="40" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="U8k-mq-NZh"/>
<constraint firstAttribute="height" constant="21" id="wpd-12-umP"/>
</constraints>
<attributedString key="attributedText">
<fragment content="梁小锋">
<attributes>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="15577124121" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0Zd-v3-Vtu"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="15577124121" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0Zd-v3-Vtu">
<rect key="frame" x="70" y="17.5" width="79" height="16"/> <rect key="frame" x="100" y="16.5" width="79" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="79" id="Ub8-yY-fRq"/>
<constraint firstAttribute="height" constant="16" id="fQw-ED-YMn"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/> <fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/> <color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="寄" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jf6-0X-5eB"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="寄" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jf6-0X-5eB">
<rect key="frame" x="159" y="16.5" width="18" height="18"/> <rect key="frame" x="189" y="15.5" width="18" height="18"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="18" id="Euu-6m-2fN"/> <constraint firstAttribute="width" constant="18" id="KUq-24-4Xw"/>
<constraint firstAttribute="height" constant="18" id="d8o-wb-eni"/> <constraint firstAttribute="height" constant="18" id="v9o-TA-DNq"/>
</constraints> </constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/> <fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="蓝色字体颜色"/> <color key="textColor" name="蓝色字体颜色"/>
...@@ -71,10 +52,10 @@ ...@@ -71,10 +52,10 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="收" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mWp-V0-KaZ"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="收" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mWp-V0-KaZ">
<rect key="frame" x="187" y="16.5" width="18" height="18"/> <rect key="frame" x="217" y="15.5" width="18" height="18"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="18" id="Zrg-2c-fbB"/> <constraint firstAttribute="width" constant="18" id="Yz5-IC-luF"/>
<constraint firstAttribute="height" constant="18" id="meI-Oh-LXj"/> <constraint firstAttribute="height" constant="18" id="lb5-dI-B8T"/>
</constraints> </constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/> <fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="企业、预售字体"/> <color key="textColor" name="企业、预售字体"/>
...@@ -92,54 +73,77 @@ ...@@ -92,54 +73,77 @@
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="广东省广州市番禺区市桥南路电脑城" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SOh-hJ-gKS"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="广东省广州市番禺区市桥南路电脑城" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SOh-hJ-gKS">
<rect key="frame" x="15" y="45.5" width="345" height="18.5"/> <rect key="frame" x="50" y="52" width="212.5" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="gYK-gI-97n"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/> <fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/> <color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jinru" translatesAutoresizingMaskIntoConstraints="NO" id="7eJ-B4-h9O"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jinru" translatesAutoresizingMaskIntoConstraints="NO" id="7eJ-B4-h9O">
<rect key="frame" x="354.5" y="35" width="5" height="9"/> <rect key="frame" x="355" y="35" width="5" height="9"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="9" id="KmP-eU-VGg"/> <constraint firstAttribute="width" constant="5" id="0Zx-1d-oCh"/>
<constraint firstAttribute="width" constant="5" id="Oml-kx-W5k"/> <constraint firstAttribute="height" constant="9" id="Q4i-ra-ezu"/>
</constraints> </constraints>
</imageView> </imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oeS-KW-qjD">
<rect key="frame" x="15" y="29.5" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="Ulx-IU-UMy"/>
<constraint firstAttribute="width" constant="20" id="x1L-SF-P2T"/>
</constraints>
<state key="normal" image="daixuan"/>
<state key="selected" image="yuxuan"/>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vAQ-5q-KPr">
<rect key="frame" x="50" y="15" width="40" height="18.5"/>
<attributedString key="attributedText">
<fragment content="梁小锋">
<attributes>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
</subviews> </subviews>
<constraints> <constraints>
<constraint firstAttribute="trailing" secondItem="7eJ-B4-h9O" secondAttribute="trailing" constant="15.5" id="24p-jN-Puy"/> <constraint firstItem="0Zd-v3-Vtu" firstAttribute="leading" secondItem="vAQ-5q-KPr" secondAttribute="trailing" constant="10" id="3IR-u1-EGI"/>
<constraint firstItem="raS-k5-oNa" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="5cy-2v-PqJ"/> <constraint firstItem="vAQ-5q-KPr" firstAttribute="leading" secondItem="oeS-KW-qjD" secondAttribute="trailing" constant="15" id="4ok-AC-XWT"/>
<constraint firstItem="SOh-hJ-gKS" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="6KR-Wh-slR"/> <constraint firstAttribute="trailing" secondItem="raS-k5-oNa" secondAttribute="trailing" id="5WN-Ud-Jc7"/>
<constraint firstItem="vAQ-5q-KPr" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="7tE-ou-8Zn"/> <constraint firstItem="oeS-KW-qjD" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="79g-ox-Ohm"/>
<constraint firstItem="vAQ-5q-KPr" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="DwB-IN-055"/> <constraint firstItem="0Zd-v3-Vtu" firstAttribute="centerY" secondItem="vAQ-5q-KPr" secondAttribute="centerY" id="94d-JF-XNY"/>
<constraint firstAttribute="trailing" secondItem="SOh-hJ-gKS" secondAttribute="trailing" constant="15" id="JB5-Ra-TZk"/> <constraint firstItem="raS-k5-oNa" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Bl7-ud-MH8"/>
<constraint firstItem="0Zd-v3-Vtu" firstAttribute="centerY" secondItem="vAQ-5q-KPr" secondAttribute="centerY" id="Q6W-Xl-N6y"/> <constraint firstItem="vAQ-5q-KPr" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="GB4-TQ-IJc"/>
<constraint firstAttribute="trailing" secondItem="raS-k5-oNa" secondAttribute="trailing" id="SjS-gQ-d5K"/> <constraint firstItem="7eJ-B4-h9O" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="H4Y-Hp-W29"/>
<constraint firstItem="0Zd-v3-Vtu" firstAttribute="leading" secondItem="vAQ-5q-KPr" secondAttribute="trailing" constant="15" id="Spx-oR-niX"/> <constraint firstItem="jf6-0X-5eB" firstAttribute="centerY" secondItem="0Zd-v3-Vtu" secondAttribute="centerY" id="Mbj-p2-VdQ"/>
<constraint firstItem="jf6-0X-5eB" firstAttribute="centerY" secondItem="0Zd-v3-Vtu" secondAttribute="centerY" id="Xmm-CV-VkI"/> <constraint firstItem="raS-k5-oNa" firstAttribute="top" secondItem="SOh-hJ-gKS" secondAttribute="bottom" constant="10" id="Q1e-gA-4qh"/>
<constraint firstItem="7eJ-B4-h9O" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="alf-FN-0ob"/> <constraint firstItem="mWp-V0-KaZ" firstAttribute="leading" secondItem="jf6-0X-5eB" secondAttribute="trailing" constant="10" id="Q58-SO-drh"/>
<constraint firstAttribute="bottom" secondItem="raS-k5-oNa" secondAttribute="bottom" id="bUS-Dp-bDN"/> <constraint firstItem="oeS-KW-qjD" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="cia-6b-Gc1"/>
<constraint firstItem="mWp-V0-KaZ" firstAttribute="leading" secondItem="jf6-0X-5eB" secondAttribute="trailing" constant="10" id="hYt-pF-NcF"/> <constraint firstItem="SOh-hJ-gKS" firstAttribute="leading" secondItem="vAQ-5q-KPr" secondAttribute="leading" id="is0-NC-Im1"/>
<constraint firstItem="SOh-hJ-gKS" firstAttribute="top" secondItem="vAQ-5q-KPr" secondAttribute="bottom" constant="9.5" id="tBc-j6-DZF"/> <constraint firstAttribute="bottom" secondItem="raS-k5-oNa" secondAttribute="bottom" id="ow3-Vt-3kW"/>
<constraint firstItem="mWp-V0-KaZ" firstAttribute="centerY" secondItem="jf6-0X-5eB" secondAttribute="centerY" id="xTf-fO-juW"/> <constraint firstAttribute="trailing" secondItem="7eJ-B4-h9O" secondAttribute="trailing" constant="15" id="rrB-jM-gXG"/>
<constraint firstItem="jf6-0X-5eB" firstAttribute="leading" secondItem="0Zd-v3-Vtu" secondAttribute="trailing" constant="10" id="zAL-c5-DMk"/> <constraint firstItem="mWp-V0-KaZ" firstAttribute="centerY" secondItem="jf6-0X-5eB" secondAttribute="centerY" id="sXS-NF-LT4"/>
<constraint firstItem="jf6-0X-5eB" firstAttribute="leading" secondItem="0Zd-v3-Vtu" secondAttribute="trailing" constant="10" id="wng-fe-Xxb"/>
</constraints> </constraints>
</tableViewCellContentView> </tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/> <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections> <connections>
<outlet property="adrLbl" destination="SOh-hJ-gKS" id="L7w-a5-WXV"/> <outlet property="adrLbl" destination="SOh-hJ-gKS" id="L7w-a5-WXV"/>
<outlet property="blueLbl" destination="jf6-0X-5eB" id="8kh-Kf-KNP"/> <outlet property="blueLbl" destination="jf6-0X-5eB" id="8kh-Kf-KNP"/>
<outlet property="btn" destination="oeS-KW-qjD" id="cq8-ro-fPs"/>
<outlet property="btnH" destination="x1L-SF-P2T" id="Mvh-bJ-EXz"/>
<outlet property="nameLbl" destination="vAQ-5q-KPr" id="Z7m-rl-JTe"/> <outlet property="nameLbl" destination="vAQ-5q-KPr" id="Z7m-rl-JTe"/>
<outlet property="phoneLbl" destination="0Zd-v3-Vtu" id="3CH-Ai-KUY"/> <outlet property="phoneLbl" destination="0Zd-v3-Vtu" id="3CH-Ai-KUY"/>
<outlet property="xValue" destination="4ok-AC-XWT" id="Lfk-u8-Fp8"/>
<outlet property="yellowLbl" destination="mWp-V0-KaZ" id="La4-PQ-SDN"/> <outlet property="yellowLbl" destination="mWp-V0-KaZ" id="La4-PQ-SDN"/>
</connections> </connections>
<point key="canvasLocation" x="131.15942028985509" y="121.54017857142857"/> <point key="canvasLocation" x="131.15942028985509" y="121.54017857142857"/>
</tableViewCell> </tableViewCell>
</objects> </objects>
<resources> <resources>
<image name="daixuan" width="19" height="19"/>
<image name="jinru" width="13" height="23"/> <image name="jinru" width="13" height="23"/>
<image name="yuxuan" width="19" height="19"/>
<namedColor name="企业、预售字体"> <namedColor name="企业、预售字体">
<color red="1" green="0.68999999761581421" blue="0.47099998593330383" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="1" green="0.68999999761581421" blue="0.47099998593330383" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
......
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