Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
17b7bec2
Commit
17b7bec2
authored
May 18, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代客下单购物逻辑补充
parent
4341ff50
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
620 additions
and
216 deletions
+620
-216
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+8
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/DKXDAdrCell.swift
GeliBusinessPlatform/View/Cell/DKXDAdrCell.swift
+31
-0
GeliBusinessPlatform/View/Cell/DKXDAdrCell.xib
GeliBusinessPlatform/View/Cell/DKXDAdrCell.xib
+139
-0
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
+8
-2
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.swift
...atform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.swift
+5
-2
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+218
-125
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
...iewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
+1
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+53
-24
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+40
-6
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.xib
...sinessPlatform/ViewController/地址管理/DZGLViewController.xib
+60
-6
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
...usinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
+3
-0
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
+54
-50
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
17b7bec2
...
...
@@ -198,6 +198,8 @@
E0A409D524640B8300CFF109
/* DZGLViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A409D324640B8300CFF109
/* DZGLViewController.xib */
;
};
E0A7548A244A8F0F00A84B67
/* CheckWareHourseViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0A75488244A8F0F00A84B67
/* CheckWareHourseViewController.swift */
;
};
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 */
;
};
E0B6036F244D376900A56B38
/* KuWeiCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B6036D244D376900A56B38
/* KuWeiCell.xib */
;
};
E0B9461E24566B3100FBEC9A
/* TitleAndTFAndBtnCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B9461C24566B3100FBEC9A
/* TitleAndTFAndBtnCell.swift */
;
};
...
...
@@ -672,6 +674,8 @@
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>"
;
};
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>"
;
};
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>"
;
};
...
...
@@ -1872,6 +1876,8 @@
E0E341E9246E95EE0060AC20
/* PingLunCell.xib */
,
E0228BAE246FDA9A005812FA
/* TitleAndLblCell.swift */
,
E0228BAF246FDA9A005812FA
/* TitleAndLblCell.xib */
,
E0B5307C247266F400FFCC15
/* DKXDAdrCell.swift */
,
E0B5307D247266F400FFCC15
/* DKXDAdrCell.xib */
,
);
path
=
Cell
;
sourceTree
=
"<group>"
;
...
...
@@ -2430,6 +2436,7 @@
E09B03B72445B85A00211A51
/* LoginViewController.xib in Resources */
,
F96E9D61246657B500B5B94A
/* HGImage.storyboard in Resources */
,
E09F4C9E2452BEBB00BE033D
/* JiPaiFangShiViewController.xib in Resources */
,
E0B5307F247266F400FFCC15
/* DKXDAdrCell.xib in Resources */
,
E0A409D12464041200CFF109
/* ThirdCell.xib in Resources */
,
E09B03C12445B96500211A51
/* FgPassViewController.xib in Resources */
,
E06524EE2458008900CA22E2
/* RuKuViewController.xib in Resources */
,
...
...
@@ -2659,6 +2666,7 @@
E0228BB0246FDA9A005812FA
/* TitleAndLblCell.swift in Sources */
,
F950FDA92451613500C40530
/* GetMobileModel.swift in Sources */
,
F94A314724624E9500FEC38E
/* GetGelipayInfoModel.swift in Sources */
,
E0B5307E247266F400FFCC15
/* DKXDAdrCell.swift in Sources */
,
E0B94623245671E100FBEC9A
/* DaiKeXiaDanGouWuViewController.swift in Sources */
,
E0A320C52456D01300AF321C
/* DaiKeXiaDanFooterView.swift in Sources */
,
E0336DD5244EC40000380BE9
/* CreatNewSpecsViewController.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
17b7bec2
No preview for this file type
GeliBusinessPlatform/View/Cell/DKXDAdrCell.swift
0 → 100644
View file @
17b7bec2
//
// 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
}
}
GeliBusinessPlatform/View/Cell/DKXDAdrCell.xib
0 → 100644
View file @
17b7bec2
<?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>
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
View file @
17b7bec2
...
...
@@ -9,7 +9,6 @@
import
UIKit
@objc
protocol
XuanZeShangPinCellDelegate
{
@objc
optional
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
@objc
optional
func
XuanZeShangPinCellBtnADClick
(
sender
:
UIButton
)
}
class
XuanZeShangPinCell
:
UITableViewCell
{
@IBOutlet
weak
var
iconImg
:
UIImageView
!
...
...
@@ -22,7 +21,14 @@ class XuanZeShangPinCell: UITableViewCell {
delegate
?
.
XuanZeShangPinCellBtnClick
!
(
index
:
idx
!
)
}
@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
countTF
:
UITextField
!
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuCell.swift
View file @
17b7bec2
...
...
@@ -7,9 +7,11 @@
//
import
UIKit
protocol
DaiKeXiaDanGouWuCellDelegate
{
func
DaiKeXiaDanGouWuCellDelAction
(
cell
:
DaiKeXiaDanGouWuCell
)
}
class
DaiKeXiaDanGouWuCell
:
UITableViewCell
{
var
delegate
:
DaiKeXiaDanGouWuCellDelegate
?
@IBOutlet
weak
var
changeBtn
:
UIButton
!
@IBOutlet
weak
var
btmLIneWidth
:
NSLayoutConstraint
!
@IBOutlet
weak
var
detailLbl2
:
UILabel
!
...
...
@@ -20,6 +22,7 @@ class DaiKeXiaDanGouWuCell: UITableViewCell {
@IBOutlet
weak
var
detailLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBAction
func
delAction
(
_
sender
:
Any
)
{
delegate
?
.
DaiKeXiaDanGouWuCellDelAction
(
cell
:
self
)
}
@IBOutlet
weak
var
imgView
:
UIImageView
!
override
func
awakeFromNib
()
{
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
17b7bec2
...
...
@@ -8,39 +8,51 @@
import
UIKit
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
{
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
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
DZGLViewControllerDelegate
,
XuanZeShangPinViewControllerDelegate
,
DaiKeXiaDanGouWuCellDelegate
{
func
DaiKeXiaDanGouWuCellDelAction
(
cell
:
DaiKeXiaDanGouWuCell
)
{
itemArr
.
remove
(
at
:
cell
.
tag
)
listView
.
reloadData
()
}
let
ddTypeArr
=
[
"普通订单"
,
"预售下单"
]
let
zfTypeArr
=
[
"未付款"
,
"欠款"
,
"月结"
,
"已付款"
]
let
zfWayArr
=
[
"未支付"
,
"现金"
,
"转账(私)"
,
"转账(公)"
,
"转账(微信)"
,
"转账(支付宝)"
]
let
thArr
=
[
"自提"
,
"派送"
]
let
ckArr
=
[
"暂不出库"
,
"直接出库"
]
//MARK: - 商品选择(预售)
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
String
)
{
itemArr
.
removeAll
()
itemArr
.
append
(
YuShouData
)
listView
.
reloadData
()
}
//MARK: - 商品选择(普通)
func
XuanZeShangPinViewControllerSubmitAction
(
datas
:
Array
<
Any
>
)
{
itemArr
=
datas
listView
.
reloadData
()
}
//MARK: - 选择地址
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
adrData
:
String
?
//地址数据
var
glSelectView
:
GLAlertSelectView
?
=
nil
var
holderArr
=
[
"未支付"
,
"未付款"
,
"自提"
,
"暂不出库"
,
"0"
,
"0"
]
let
p3Arr
=
[
"支付状态"
,
"支付方式"
,
"提货方式"
,
"出货状态"
,
"运费"
,
"其他费用"
]
var
holderArr
=
[
"未支付"
,
"未付款"
,
"自提"
,
"
"
,
"
暂不出库"
,
"0"
,
"0"
]
let
p3Arr
=
[
"支付状态"
,
"支付方式"
,
"提货方式"
,
"
选择地址"
,
"
出货状态"
,
"运费"
,
"其他费用"
]
var
footerView
:
DaiKeXiaDanFooterView
?
var
itemArr
:
Array
<
Any
>
=
[]
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
@IBOutlet
weak
var
listView
:
UITableView
!
...
...
@@ -59,31 +71,27 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
listView
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtnCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
listView
.
register
(
UINib
(
nibName
:
"DaiKeXiaDanGouWuCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DaiKeXiaDanGouWuCell"
)
listView
.
register
(
UINib
(
nibName
:
"DKXDAdrCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DKXDAdrCell"
)
//TitleAndBtnCell TitleAndTFCell
// Do any additional setup after loading the view.
}
//MARK: - cell delegate
func
addAction
()
{
if
orderType
==
nil
{
HUD
.
flash
(
.
label
(
"请选择订单类型"
),
delay
:
1.2
)
return
}
let
vc
=
XuanZeShangPinViewController
()
vc
.
delegate
=
self
if
orderType
==
1
{
vc
.
isYuShou
=
true
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// itemArr.add("0")
// UIView.performWithoutAnimation {
// let set = NSIndexSet(index: 1)
// listView.reloadSections(set as IndexSet, with: .none)
// }
}
//footer
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
if
section
==
1
{
if
itemArr
.
count
==
0
{
return
142
}
return
220
}
return
10
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
if
section
==
1
{
//220 142
let
view
=
DaiKeXiaDanFooterView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
220
))
...
...
@@ -118,113 +126,69 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
if
section
==
1
{
return
39
}
return
0.01
}
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
switch
section
{
case
0
:
return
2
case
1
:
return
itemArr
.
count
default
:
return
6
default
:
return
p3Arr
.
count
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
1
{
return
120
}
if
indexPath
.
section
==
2
{
if
indexPath
.
row
==
3
{
if
tiHuoWay
!=
1
{
return
0.001
}
if
adrData
!=
nil
{
return
70
}
}
}
return
49
}
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
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择订单类型"
view
.
dataArr
=
[
"普通订单"
,
"预售下单"
]
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
switch
view
.
tag
{
case
100
:
orderType
=
selectNum
if
orderType
==
1
{
if
itemArr
.
count
>
1
{
itemArr
.
removeAll
()
listView
.
reloadData
()
}
}
break
case
1
:
case
101
:
zhiFuType
=
selectNum
holderArr
.
insert
(
zfTypeArr
[
selectNum
],
at
:
0
)
holderArr
.
remove
(
at
:
1
)
break
case
102
:
zhiFuWay
=
selectNum
holderArr
.
insert
(
zfWayArr
[
selectNum
],
at
:
1
)
holderArr
.
remove
(
at
:
2
)
break
case
103
:
tiHuoWay
=
selectNum
holderArr
.
insert
(
thArr
[
selectNum
],
at
:
2
)
holderArr
.
remove
(
at
:
3
)
break
case
104
:
chuHuoWay
=
selectNum
holderArr
.
insert
(
ckArr
[
selectNum
],
at
:
4
)
holderArr
.
remove
(
at
:
5
)
break
default
:
break
}
}
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
case
1
:
//支付方式
if
zhiFuWay
!=
nil
{
view
.
selectNum
=
zhiFuWay
!
view
.
tempNum
=
view
.
selectNum
}
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
case
2
:
//提货方式
if
tiHuoWay
!=
nil
{
view
.
selectNum
=
tiHuoWay
!
view
.
tempNum
=
view
.
selectNum
}
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
default
:
//出货状态
if
chuHuoWay
!=
nil
{
view
.
selectNum
=
chuHuoWay
!
view
.
tempNum
=
view
.
selectNum
}
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
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
=
nil
listView
.
reloadData
()
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
...
...
@@ -238,19 +202,34 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
if
indexPath
.
row
==
1
{
cell
.
nameLbl
.
text
=
"订单类型:"
cell
.
contentLbl
.
text
=
"请选择订单类型"
if
orderType
!=
nil
{
cell
.
contentLbl
.
text
=
ddTypeArr
[
orderType
!
]
}
}
cell
.
btn
.
isUserInteractionEnabled
=
false
return
cell
case
1
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DaiKeXiaDanGouWuCell"
)
as!
DaiKeXiaDanGouWuCell
cell
.
tag
=
indexPath
.
row
cell
.
delegate
=
self
return
cell
default
:
if
indexPath
.
row
<
4
{
if
indexPath
.
row
<
5
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
btn
.
isUserInteractionEnabled
=
false
cell
.
delegate
=
self
cell
.
nameLbl
.
text
=
p3Arr
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
holderArr
[
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
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
...
...
@@ -273,7 +252,121 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
textTF
.
textAlignment
=
.
center
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
}
}
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
View file @
17b7bec2
...
...
@@ -52,7 +52,7 @@
</attributedString>
<nil
key=
"highlightedColor"
/>
</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"
s
howsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
s
tyle=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<connections>
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
17b7bec2
...
...
@@ -8,18 +8,36 @@
import
UIKit
protocol
XuanZeShangPinViewControllerDelegate
{
func
XuanZeShangPinViewControllerSubmitAction
(
datas
:
Array
<
Any
>
)
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
String
)
}
class
XuanZeShangPinViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
XuanZeShangPinCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
var
searchV
:
SearchBarView
?
=
nil
var
delegate
:
XuanZeShangPinViewControllerDelegate
?
//XuanZeShangPinCell
@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
listView
:
UITableView
!
@IBOutlet
weak
var
topView
:
UIView
!
var
idx
:
IndexPath
?
//是否预售
var
isYuShou
=
false
var
datas
:
Array
<
Any
>
=
[]
//数据
var
selectIdxArr
:
Array
<
IndexPath
>
=
[]
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"选择商品"
...
...
@@ -62,14 +80,27 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
delegate
=
self
cell
.
idx
=
indexPath
if
idx
==
indexPath
{
cell
.
selectBtn
.
isSelected
=
true
cell
.
btmView
.
isHidden
=
false
cell
.
btmViewHeight
.
constant
=
89
}
else
{
if
isYuShou
{
//预售
if
idx
==
indexPath
{
cell
.
selectBtn
.
isSelected
=
true
cell
.
btmView
.
isHidden
=
false
cell
.
btmViewHeight
.
constant
=
89
}
else
{
cell
.
selectBtn
.
isSelected
=
false
cell
.
btmView
.
isHidden
=
true
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
}
...
...
@@ -79,28 +110,26 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
return
210
}
}
for
idx
in
selectIdxArr
{
if
indexPath
==
idx
{
return
210
}
}
return
120
}
//MARK: - SELF DELEGATE
func
XuanZeShangPinCellBtnADClick
(
sender
:
UIButton
)
{
if
sender
.
tag
==
0
{
//加
}
else
{
//减
}
}
func
XuanZeShangPinCellBtnClick
(
index
:
IndexPath
)
{
idx
=
index
for
item
in
listView
.
visibleCells
{
let
cel
=
item
as!
XuanZeShangPinCell
cel
.
selectBtn
.
isSelected
=
false
cel
.
btmView
.
isHidden
=
true
cel
.
btmViewHeight
.
constant
=
0
if
cel
.
idx
==
index
{
cel
.
selectBtn
.
isSelected
=
true
cel
.
btmView
.
isHidden
=
false
cel
.
btmViewHeight
.
constant
=
89
if
isYuShou
{
idx
=
index
}
else
{
if
selectIdxArr
.
contains
(
index
)
{
let
idx
=
selectIdxArr
.
index
(
of
:
index
)
selectIdxArr
.
remove
(
at
:
idx
!
)
}
else
{
selectIdxArr
.
append
(
index
)
}
}
listView
.
reloadData
()
...
...
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
17b7bec2
...
...
@@ -8,19 +8,38 @@
import
UIKit
import
SwipeCellKit
import
LGButton
protocol
DZGLViewControllerDelegate
{
func
DZGLViewControllerSelect
(
data
:
String
)
}
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
btmBtn
:
LGButton
!
@IBAction
func
btmClick
(
_
sender
:
Any
)
{
delegate
?
.
DZGLViewControllerSelect
(
data
:
"abc"
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
@IBOutlet
weak
var
btmLblHeight
:
NSLayoutConstraint
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"地址管理"
navbar
.
rightTitle
=
"新增"
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
SetTopFrame
(
view
:
listView
,
height
:
fullScreenHeight
-
NavCGRect
.
height
)
SetTopFrame
View
(
view
:
listView
,
btmView
:
btmLbl
)
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.
}
...
...
@@ -40,13 +59,28 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DiZhiGuanLiCell"
)
as!
DiZhiGuanLiCell
cell
.
delegate
=
self
if
isSelectMotion
==
false
{
cell
.
btnH
.
constant
=
0
cell
.
xValue
.
constant
=
0
}
else
{
if
indexPath
==
selectIdx
{
cell
.
btn
.
isSelected
=
true
}
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
indexPath
.
row
)
let
vc
=
XinZengDiZhiViewController
()
vc
.
navTitle
=
"编辑地址"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
if
isSelectMotion
==
false
{
let
vc
=
XinZengDiZhiViewController
()
vc
.
navTitle
=
"编辑地址"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
selectIdx
=
indexPath
listView
.
reloadData
()
}
}
...
...
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.xib
View file @
17b7bec2
...
...
@@ -3,12 +3,16 @@
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"DZGLViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<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=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
...
...
@@ -19,23 +23,73 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"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"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"S9q-iF-ucu"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"GCo-1t-z5P"
/>
</connections>
</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>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"PT0-ms-ns9"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"CdY-4j-SHV"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"PT0-ms-ns9"
secondAttribute=
"trailing"
id=
"ZJi-7I-Sxa"
/>
<constraint
firstItem=
"PT0-ms-ns9"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"gk5-jK-11s"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"PT0-ms-ns9"
secondAttribute=
"bottom"
id=
"ix1-ZR-9a5"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"cAI-JO-Qdu"
secondAttribute=
"bottom"
id=
"1MD-9W-7eX"
/>
<constraint
firstItem=
"cAI-JO-Qdu"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"2al-2v-3lI"
/>
<constraint
firstItem=
"cAI-JO-Qdu"
firstAttribute=
"top"
secondItem=
"Ypv-HH-qxb"
secondAttribute=
"top"
id=
"GhW-XG-N4K"
/>
<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>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"13
3"
y=
"132
"
/>
<point
key=
"canvasLocation"
x=
"13
1.8840579710145"
y=
"131.91964285714286
"
/>
</view>
</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>
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
View file @
17b7bec2
...
...
@@ -11,11 +11,14 @@ import SwipeCellKit
class
DiZhiGuanLiCell
:
SwipeTableViewCell
{
@IBOutlet
weak
var
btn
:
UIButton
!
@IBOutlet
weak
var
adrLbl
:
UILabel
!
@IBOutlet
weak
var
yellowLbl
:
UILabel
!
@IBOutlet
weak
var
blueLbl
:
UILabel
!
@IBOutlet
weak
var
phoneLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
btnH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
xValue
:
NSLayoutConstraint
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
...
...
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
View file @
17b7bec2
...
...
@@ -21,39 +21,20 @@
<rect
key=
"frame"
x=
"15"
y=
"78"
width=
"360"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"
tdd-Zd-2Ml
"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"
Ydm-Mo-gqj
"
/>
</constraints>
</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"
>
<rect
key=
"frame"
x=
"70"
y=
"17.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>
<rect
key=
"frame"
x=
"100"
y=
"16.5"
width=
"79"
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=
"jf6-0X-5eB"
>
<rect
key=
"frame"
x=
"1
59"
y=
"16
.5"
width=
"18"
height=
"18"
/>
<rect
key=
"frame"
x=
"1
89"
y=
"15
.5"
width=
"18"
height=
"18"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"
Euu-6m-2fN
"
/>
<constraint
firstAttribute=
"height"
constant=
"18"
id=
"
d8o-wb-eni
"
/>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"
KUq-24-4Xw
"
/>
<constraint
firstAttribute=
"height"
constant=
"18"
id=
"
v9o-TA-DNq
"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
...
...
@@ -71,10 +52,10 @@
</userDefinedRuntimeAttributes>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"收"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"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>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"
Zrg-2c-fbB
"
/>
<constraint
firstAttribute=
"height"
constant=
"18"
id=
"
meI-Oh-LXj
"
/>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"
Yz5-IC-luF
"
/>
<constraint
firstAttribute=
"height"
constant=
"18"
id=
"
lb5-dI-B8T
"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"企业、预售字体"
/>
...
...
@@ -92,54 +73,77 @@
</userDefinedRuntimeAttributes>
</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"
>
<rect
key=
"frame"
x=
"15"
y=
"45.5"
width=
"345"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"gYK-gI-97n"
/>
</constraints>
<rect
key=
"frame"
x=
"50"
y=
"52"
width=
"212.5"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jinru"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7eJ-B4-h9O"
>
<rect
key=
"frame"
x=
"35
4.
5"
y=
"35"
width=
"5"
height=
"9"
/>
<rect
key=
"frame"
x=
"355"
y=
"35"
width=
"5"
height=
"9"
/>
<constraints>
<constraint
firstAttribute=
"
height"
constant=
"9"
id=
"KmP-eU-VGg
"
/>
<constraint
firstAttribute=
"
width"
constant=
"5"
id=
"Oml-kx-W5k
"
/>
<constraint
firstAttribute=
"
width"
constant=
"5"
id=
"0Zx-1d-oCh
"
/>
<constraint
firstAttribute=
"
height"
constant=
"9"
id=
"Q4i-ra-ezu
"
/>
</constraints>
</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>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"7eJ-B4-h9O"
secondAttribute=
"trailing"
constant=
"15.5"
id=
"24p-jN-Puy"
/>
<constraint
firstItem=
"raS-k5-oNa"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"5cy-2v-PqJ"
/>
<constraint
firstItem=
"SOh-hJ-gKS"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"6KR-Wh-slR"
/>
<constraint
firstItem=
"vAQ-5q-KPr"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"7tE-ou-8Zn"
/>
<constraint
firstItem=
"vAQ-5q-KPr"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"DwB-IN-055"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"SOh-hJ-gKS"
secondAttribute=
"trailing"
constant=
"15"
id=
"JB5-Ra-TZk"
/>
<constraint
firstItem=
"0Zd-v3-Vtu"
firstAttribute=
"centerY"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"centerY"
id=
"Q6W-Xl-N6y"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"raS-k5-oNa"
secondAttribute=
"trailing"
id=
"SjS-gQ-d5K"
/>
<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=
"Xmm-CV-VkI"
/>
<constraint
firstItem=
"7eJ-B4-h9O"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"alf-FN-0ob"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"raS-k5-oNa"
secondAttribute=
"bottom"
id=
"bUS-Dp-bDN"
/>
<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=
"top"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"bottom"
constant=
"9.5"
id=
"tBc-j6-DZF"
/>
<constraint
firstItem=
"mWp-V0-KaZ"
firstAttribute=
"centerY"
secondItem=
"jf6-0X-5eB"
secondAttribute=
"centerY"
id=
"xTf-fO-juW"
/>
<constraint
firstItem=
"jf6-0X-5eB"
firstAttribute=
"leading"
secondItem=
"0Zd-v3-Vtu"
secondAttribute=
"trailing"
constant=
"10"
id=
"zAL-c5-DMk"
/>
<constraint
firstItem=
"0Zd-v3-Vtu"
firstAttribute=
"leading"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"trailing"
constant=
"10"
id=
"3IR-u1-EGI"
/>
<constraint
firstItem=
"vAQ-5q-KPr"
firstAttribute=
"leading"
secondItem=
"oeS-KW-qjD"
secondAttribute=
"trailing"
constant=
"15"
id=
"4ok-AC-XWT"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"raS-k5-oNa"
secondAttribute=
"trailing"
id=
"5WN-Ud-Jc7"
/>
<constraint
firstItem=
"oeS-KW-qjD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"79g-ox-Ohm"
/>
<constraint
firstItem=
"0Zd-v3-Vtu"
firstAttribute=
"centerY"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"centerY"
id=
"94d-JF-XNY"
/>
<constraint
firstItem=
"raS-k5-oNa"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Bl7-ud-MH8"
/>
<constraint
firstItem=
"vAQ-5q-KPr"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"GB4-TQ-IJc"
/>
<constraint
firstItem=
"7eJ-B4-h9O"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"H4Y-Hp-W29"
/>
<constraint
firstItem=
"jf6-0X-5eB"
firstAttribute=
"centerY"
secondItem=
"0Zd-v3-Vtu"
secondAttribute=
"centerY"
id=
"Mbj-p2-VdQ"
/>
<constraint
firstItem=
"raS-k5-oNa"
firstAttribute=
"top"
secondItem=
"SOh-hJ-gKS"
secondAttribute=
"bottom"
constant=
"10"
id=
"Q1e-gA-4qh"
/>
<constraint
firstItem=
"mWp-V0-KaZ"
firstAttribute=
"leading"
secondItem=
"jf6-0X-5eB"
secondAttribute=
"trailing"
constant=
"10"
id=
"Q58-SO-drh"
/>
<constraint
firstItem=
"oeS-KW-qjD"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"cia-6b-Gc1"
/>
<constraint
firstItem=
"SOh-hJ-gKS"
firstAttribute=
"leading"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"leading"
id=
"is0-NC-Im1"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"raS-k5-oNa"
secondAttribute=
"bottom"
id=
"ow3-Vt-3kW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"7eJ-B4-h9O"
secondAttribute=
"trailing"
constant=
"15"
id=
"rrB-jM-gXG"
/>
<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>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"adrLbl"
destination=
"SOh-hJ-gKS"
id=
"L7w-a5-WXV"
/>
<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=
"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"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.54017857142857"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"jinru"
width=
"13"
height=
"23"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<namedColor
name=
"企业、预售字体"
>
<color
red=
"1"
green=
"0.68999999761581421"
blue=
"0.47099998593330383"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment