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
344cc73f
Commit
344cc73f
authored
Jul 28, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成普通下运单流程
parent
e3c17213
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
557 additions
and
100 deletions
+557
-100
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+3
-1
GeliBusinessPlatform/Model/Logistics/LogisticsModel.swift
GeliBusinessPlatform/Model/Logistics/LogisticsModel.swift
+27
-1
GeliBusinessPlatform/Model/LogisticsInterface.swift
GeliBusinessPlatform/Model/LogisticsInterface.swift
+14
-2
GeliBusinessPlatform/Model/OrderManageModel/GetAddrsInfoModel.swift
...ssPlatform/Model/OrderManageModel/GetAddrsInfoModel.swift
+6
-0
GeliBusinessPlatform/View/Cell/TitleAndTFBtnCell.swift
GeliBusinessPlatform/View/Cell/TitleAndTFBtnCell.swift
+15
-3
GeliBusinessPlatform/View/Cell/TitleAndTFBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndTFBtnCell.xib
+4
-1
GeliBusinessPlatform/View/Cell/WenDuCell.swift
GeliBusinessPlatform/View/Cell/WenDuCell.swift
+16
-1
GeliBusinessPlatform/View/Cell/WenDuCell.xib
GeliBusinessPlatform/View/Cell/WenDuCell.xib
+1
-1
GeliBusinessPlatform/View/LogisticalSelectView/LogisticalSelectView.swift
...form/View/LogisticalSelectView/LogisticalSelectView.swift
+19
-3
GeliBusinessPlatform/View/LogisticalSelectView/LogisticalSelectView.xib
...atform/View/LogisticalSelectView/LogisticalSelectView.xib
+4
-2
GeliBusinessPlatform/ViewController/代客下单(货运)/下单成功/XiaDanChengGongViewController.swift
...troller/代客下单(货运)/下单成功/XiaDanChengGongViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.swift
...atform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.swift
+2
-2
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.xib
...Platform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.xib
+3
-3
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+311
-34
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
...m/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
+3
-4
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+3
-2
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
...form/ViewController/地址管理/XinZengDiZhiViewController.swift
+7
-4
GeliBusinessPlatform/ViewController/增值服务/ZengZhiServicesViewController.swift
...m/ViewController/增值服务/ZengZhiServicesViewController.swift
+50
-3
GeliBusinessPlatform/ViewController/增值服务/ZengZhiServicesViewController.xib
...orm/ViewController/增值服务/ZengZhiServicesViewController.xib
+4
-5
GeliBusinessPlatform/ViewController/寄派方式/JiPaiFangShiViewController.swift
...form/ViewController/寄派方式/JiPaiFangShiViewController.swift
+54
-17
GeliBusinessPlatform/ViewController/寄派方式/JiPaiFangShiViewController.xib
...atform/ViewController/寄派方式/JiPaiFangShiViewController.xib
+9
-9
GeliBusinessPlatform/ViewController/寄派方式/SendTimeSelectView.swift
...nessPlatform/ViewController/寄派方式/SendTimeSelectView.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
344cc73f
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
344cc73f
...
...
@@ -199,7 +199,7 @@
<key>
下单期望上门时间
</key>
<string>
Logistics/appointmentTime
</string>
<key>
物流费用预估
</key>
<string>
register
</string>
<string>
Logistics/estimatedCost
</string>
<key>
运单详情
</key>
<string>
Logistics/logisticsOrderDetails
</string>
<key>
拒绝退款
</key>
...
...
@@ -222,5 +222,7 @@
<string>
Goods/onOff
</string>
<key>
下运单收发地址信息
</key>
<string>
Logistics/getAddr
</string>
<key>
提交运单
</key>
<string>
Logistics/addLogisticsOrder
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/Logistics/LogisticsModel.swift
View file @
344cc73f
...
...
@@ -135,7 +135,7 @@ class registerModel: Mappable {
}
}
class
registerDataModel
:
Mappable
{
var
price_jd
:
Int
?
var
price_jd
:
String
?
var
price_sf
:
String
?
required
init
?(
map
:
Map
)
{
...
...
@@ -407,4 +407,30 @@ class logisticsOrderDetailsDataModel: Mappable {
site_delivery_cn
<-
map
[
"site_delivery_cn"
]
fc_flag_cn
<-
map
[
"fc_flag_cn"
]
}
}
//MARK: - 提交运单
class
AddLogisticsOrderModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
AddLogisticsDataModel
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
AddLogisticsDataModel
:
Mappable
{
var
id
:
String
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
id
<-
map
[
"id"
]
}
}
GeliBusinessPlatform/Model/LogisticsInterface.swift
View file @
344cc73f
...
...
@@ -57,9 +57,9 @@ func appointmentTime(_ params:[String:Any],success:@escaping (_ res:Any)->(),fai
}
//MARK:-- 物流费用预估
/*
user_token 验证token
user_token 验证token
s_city r_city weight volume
*/
func
register
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
func
estimatedCost
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"物流费用预估"
,
params
,
{
(
rep
:
DataResponse
<
registerModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
...
...
@@ -94,3 +94,15 @@ func getAddr(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:@e
failture
(
error
)
}
}
//MARK:-- 提交运单
/*
user_token 验证token
*/
func
addLogisticsOrder
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"提交运单"
,
params
,
{
(
rep
:
DataResponse
<
AddLogisticsOrderModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/Model/OrderManageModel/GetAddrsInfoModel.swift
View file @
344cc73f
...
...
@@ -38,6 +38,9 @@ class GetAddrsInfoDataModel: Mappable {
var
is_default
:
Int
?
var
addr_cn
:
String
?
//联系人详细地址
var
addr_name
:
String
?
////完整地址信息(下单收发货才有)
var
province_cn
:
String
?
var
city_cn
:
String
?
var
district_cn
:
String
?
required
init
?(
map
:
Map
)
{
...
...
@@ -55,6 +58,9 @@ class GetAddrsInfoDataModel: Mappable {
is_default
<-
map
[
"is_default"
]
addr_cn
<-
map
[
"addr_cn"
]
addr_name
<-
map
[
"addr_name"
]
province_cn
<-
map
[
"province_cn"
]
city_cn
<-
map
[
"city_cn"
]
district_cn
<-
map
[
"district_cn"
]
}
}
GeliBusinessPlatform/View/Cell/TitleAndTFBtnCell.swift
View file @
344cc73f
...
...
@@ -8,17 +8,29 @@
import
UIKit
class
TitleAndTFBtnCell
:
UITableViewCell
{
protocol
TitleAndTFBtnCellDelegate
{
func
TitleAndTFBtnCellEndEdit
(
contentStr
:
String
,
cellTag
:
Int
)
}
class
TitleAndTFBtnCell
:
UITableViewCell
,
UITextFieldDelegate
{
var
delegate
:
TitleAndTFBtnCellDelegate
?
@IBOutlet
weak
var
contentTf
:
UITextField
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
contentTf
.
delegate
=
self
// Initialization code
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
delegate
?
.
TitleAndTFBtnCellEndEdit
(
contentStr
:
textField
.
text
!
,
cellTag
:
self
.
tag
)
}
@IBAction
func
eidtAction
(
_
sender
:
Any
)
{
contentTf
.
becomeFirstResponder
()
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
...
...
GeliBusinessPlatform/View/Cell/TitleAndTFBtnCell.xib
View file @
344cc73f
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
@@ -40,6 +40,9 @@
<state
key=
"normal"
title=
"编辑"
>
<color
key=
"titleColor"
name=
"蓝色字体颜色"
/>
</state>
<connections>
<action
selector=
"eidtAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"5St-2L-LDo"
/>
</connections>
</button>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bnV-l5-VU7"
>
<rect
key=
"frame"
x=
"58"
y=
"0.0"
width=
"197"
height=
"43"
/>
...
...
GeliBusinessPlatform/View/Cell/WenDuCell.swift
View file @
344cc73f
...
...
@@ -8,7 +8,12 @@
import
UIKit
protocol
WenDuCellDelegate
{
func
WenDuCellSelect
(
index
:
Int
)
}
class
WenDuCell
:
UITableViewCell
{
var
delegate
:
WenDuCellDelegate
?
@IBAction
func
selectAction
(
_
sender
:
UIButton
)
{
if
sender
==
rightBtn
{
...
...
@@ -16,6 +21,8 @@ class WenDuCell: UITableViewCell {
rightBtn
.
isSelected
=
false
rightBtn
.
backgroundColor
=
UIColor
.
clear
rightBtn
.
layer
.
borderWidth
=
1
delegate
?
.
WenDuCellSelect
(
index
:
0
)
}
else
{
leftBtn
.
backgroundColor
=
UIColor
.
clear
leftBtn
.
isSelected
=
false
...
...
@@ -24,12 +31,17 @@ class WenDuCell: UITableViewCell {
rightBtn
.
isSelected
=
true
rightBtn
.
backgroundColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
rightBtn
.
layer
.
borderWidth
=
0
delegate
?
.
WenDuCellSelect
(
index
:
1
)
}
}
else
{
if
leftBtn
.
isSelected
==
true
{
leftBtn
.
isSelected
=
false
leftBtn
.
backgroundColor
=
UIColor
.
clear
leftBtn
.
layer
.
borderWidth
=
1
delegate
?
.
WenDuCellSelect
(
index
:
0
)
}
else
{
leftBtn
.
isSelected
=
true
leftBtn
.
backgroundColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
...
...
@@ -38,6 +50,9 @@ class WenDuCell: UITableViewCell {
rightBtn
.
isSelected
=
false
rightBtn
.
backgroundColor
=
UIColor
.
clear
rightBtn
.
layer
.
borderWidth
=
1
delegate
?
.
WenDuCellSelect
(
index
:
2
)
}
}
}
...
...
GeliBusinessPlatform/View/Cell/WenDuCell.xib
View file @
344cc73f
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
GeliBusinessPlatform/View/LogisticalSelectView/LogisticalSelectView.swift
View file @
344cc73f
...
...
@@ -9,17 +9,33 @@
import
Foundation
import
LGButton
class
LogisticalSelectView
:
UIView
{
protocol
LogisticalSelectViewDelegate
{
func
LogisticalSelectViewSure
(
index
:
Int
)
}
class
LogisticalSelectView
:
UIView
{
var
delegate
:
LogisticalSelectViewDelegate
?
@IBOutlet
weak
var
jdSelectBtn
:
UIButton
!
@IBOutlet
weak
var
sfSelectBtn
:
UIButton
!
@IBAction
func
blackAction
(
_
sender
:
Any
)
{
self
.
removeFromSuperview
()
}
@IBOutlet
weak
var
sfPriceLbl
:
UILabel
!
@IBOutlet
weak
var
jdPriceLbl
:
UILabel
!
@IBAction
func
xiadanAction
(
_
sender
:
Any
)
{
if
jdSelectBtn
.
isSelected
||
sfSelectBtn
.
isSelected
{
if
jdSelectBtn
.
isSelected
{
delegate
?
.
LogisticalSelectViewSure
(
index
:
1
)
}
else
if
sfSelectBtn
.
isSelected
{
delegate
?
.
LogisticalSelectViewSure
(
index
:
2
)
}
self
.
removeFromSuperview
()
print
(
"xiadanAction"
)
}
else
{
HUD
.
flash
(
.
label
(
"请选择下单物流"
),
delay
:
1.2
)
}
}
...
...
GeliBusinessPlatform/View/LogisticalSelectView/LogisticalSelectView.xib
View file @
344cc73f
...
...
@@ -11,7 +11,9 @@
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"LogisticalSelectView"
>
<connections>
<outlet
property=
"jdPriceLbl"
destination=
"NjJ-Ja-GKH"
id=
"Gxb-tF-ubD"
/>
<outlet
property=
"jdSelectBtn"
destination=
"5iJ-FB-kNk"
id=
"EZu-xj-5I9"
/>
<outlet
property=
"sfPriceLbl"
destination=
"wwr-FR-oJl"
id=
"B1O-wO-mD7"
/>
<outlet
property=
"sfSelectBtn"
destination=
"4U6-AL-8Yv"
id=
"bsK-dU-3Nn"
/>
</connections>
</placeholder>
...
...
@@ -76,8 +78,8 @@
<action
selector=
"selectTheLogisticalAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"qLk-Ar-qNe"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"京东冷运(预估运费
2655
元)"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NjJ-Ja-GKH"
>
<rect
key=
"frame"
x=
"49"
y=
"66"
width=
"1
75
"
height=
"19"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"京东冷运(预估运费
-
元)"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NjJ-Ja-GKH"
>
<rect
key=
"frame"
x=
"49"
y=
"66"
width=
"1
51
"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下单成功/XiaDanChengGongViewController.swift
View file @
344cc73f
...
...
@@ -10,7 +10,7 @@ import UIKit
class
XiaDanChengGongViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
var
orderID
:
String
?
@IBOutlet
weak
var
listView
:
UITableView
!
override
func
viewDidLoad
()
{
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.swift
View file @
344cc73f
...
...
@@ -9,7 +9,7 @@
import
UIKit
protocol
JiTuoWuXinXiViewDelegate
{
func
JiTuoWuXinXiViewClose
()
func
JiTuoWuXinXiViewSubmit
(
itemName
:
String
,
tiJi
:
Float
,
weight
:
Float
,
count
:
Int
,
isCheck
:
Bool
)
func
JiTuoWuXinXiViewSubmit
(
itemName
:
String
,
tiJi
:
Float
,
weight
:
Float
,
count
:
Int
,
isCheck
:
Bool
,
chang
:
String
?,
kuang
:
String
?,
gao
:
String
?
)
}
class
JiTuoWuXinXiView
:
UIView
,
UITextFieldDelegate
{
var
contentView
:
UIView
!
...
...
@@ -82,7 +82,7 @@ class JiTuoWuXinXiView: UIView,UITextFieldDelegate{
let
tiji
=
tiJiTF
.
text
as!
NSString
let
weight
=
weightTf
.
text
as!
NSString
let
count
=
countTf
.
text
as!
NSString
delegate
?
.
JiTuoWuXinXiViewSubmit
(
itemName
:
itemNameTF
.
text
!
,
tiJi
:
tiji
.
floatValue
,
weight
:
weight
.
floatValue
,
count
:
count
.
integerValue
,
isCheck
:
infoSw
.
isOn
)
delegate
?
.
JiTuoWuXinXiViewSubmit
(
itemName
:
itemNameTF
.
text
!
,
tiJi
:
tiji
.
floatValue
,
weight
:
weight
.
floatValue
,
count
:
count
.
integerValue
,
isCheck
:
infoSw
.
isOn
,
chang
:
changTf
.
text
,
kuang
:
kuanTf
.
text
,
gao
:
gaoTf
.
text
)
}
@IBOutlet
weak
var
tiJiTF
:
UITextField
!
@IBOutlet
weak
var
itemNameTF
:
UITextField
!
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.xib
View file @
344cc73f
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
@@ -418,7 +418,7 @@
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Trf-1A-2UZ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"275"
width=
"414"
height=
"43"
/>
<subviews>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
on=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"n6W-Cn-03r"
>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"n6W-Cn-03r"
>
<rect
key=
"frame"
x=
"350"
y=
"6"
width=
"51"
height=
"31"
/>
<color
key=
"onTintColor"
name=
"按钮渐变色下,字体颜色"
/>
</switch>
...
...
@@ -527,7 +527,7 @@
<constraint
firstItem=
"rW2-Ka-gAx"
firstAttribute=
"leading"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"leading"
id=
"x4f-1E-FoH"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<point
key=
"canvasLocation"
x=
"
131.8840579710145"
y=
"121.875
"
/>
<point
key=
"canvasLocation"
x=
"
-210"
y=
"121
"
/>
</view>
</objects>
<resources>
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
344cc73f
...
...
@@ -9,18 +9,26 @@
import
UIKit
import
WebKit
class
XiaYunDanViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
JiTuoWuXinXiViewDelegate
,
JiPaiFangShiViewControllerDelegate
,
ZengZhiServicesViewControllerDelegate
,
AdressSelectCellDelegate
,
DZGLViewControllerDelegate
,
XinZengDiZhiViewControllerDelegate
{
class
XiaYunDanViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
JiTuoWuXinXiViewDelegate
,
JiPaiFangShiViewControllerDelegate
,
ZengZhiServicesViewControllerDelegate
,
AdressSelectCellDelegate
,
DZGLViewControllerDelegate
,
XinZengDiZhiViewControllerDelegate
,
TitleAndTFBtnCellDelegate
,
WenDuCellDelegate
,
LogisticalSelectViewDelegate
{
@IBOutlet
weak
var
topCarBtnSelectView
:
UIView
!
//MARK:--地址信息
var
sender
:
String
?
var
sendPhone
:
String
?
var
sendAdr
:
String
?
var
sendAddressModel
:
AddAddressDataModel
?
var
sendAddressSelectModel
:
GetAddrsInfoDataModel
?
var
isSelectSendAddressModel
=
false
var
s_province_name
:
String
?
var
s_city_name
:
String
?
var
s_district_name
:
String
?
var
s_city
:
Int
?
var
s_province
:
Int
?
var
s_district
:
Int
?
var
receiver
:
String
?
var
receivePhone
:
String
?
...
...
@@ -28,10 +36,15 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var
receiveAddressModel
:
AddAddressDataModel
?
var
receiveAddressSelectModel
:
GetAddrsInfoDataModel
?
var
isSelectReceiveAddressModel
=
false
var
r_province_name
:
String
?
var
r_city_name
:
String
?
var
r_district_name
:
String
?
var
r_city
:
Int
?
var
r_province
:
Int
?
var
r_district
:
Int
?
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?)
{
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?,
province_name
:
String
,
city_name
:
String
,
district_name
:
String
)
{
if
isSend
{
sender
=
name
...
...
@@ -39,15 +52,28 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
sendAdr
=
adr
sendAddressModel
=
data
isSelectSendAddressModel
=
false
s_province_name
=
province_name
s_city_name
=
city_name
s_district_name
=
district_name
s_city
=
data
?
.
city
s_province
=
data
?
.
province
s_district
=
data
?
.
district
}
else
{
receiver
=
name
receivePhone
=
phone
receiveAdr
=
adr
receiveAddressModel
=
data
isSelectReceiveAddressModel
=
false
r_province_name
=
province_name
r_city_name
=
city_name
r_district_name
=
district_name
r_city
=
data
?
.
city
r_province
=
data
?
.
province
r_district
=
data
?
.
district
}
listView
.
reloadData
()
getLogPayPrice
()
}
func
DZGLViewControllerSelect
(
data
:
GetAddrsInfoDataModel
)
{
...
...
@@ -55,18 +81,56 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if
isSend
{
sender
=
data
.
consignee
sendPhone
=
data
.
mobile
sendAdr
=
data
.
addr
_name
sendAdr
=
data
.
addr
ess
isSelectSendAddressModel
=
true
sendAddressSelectModel
=
data
s_province_name
=
data
.
province_cn
s_city_name
=
data
.
city_cn
s_district_name
=
data
.
district_cn
s_city
=
data
.
city
s_province
=
data
.
province
s_district
=
data
.
district
}
else
{
receiver
=
data
.
consignee
receivePhone
=
data
.
mobile
receiveAdr
=
data
.
addr
_name
receiveAdr
=
data
.
addr
ess
receiveAddressSelectModel
=
data
isSelectReceiveAddressModel
=
true
r_province_name
=
data
.
province_cn
r_city_name
=
data
.
city_cn
r_district_name
=
data
.
district_cn
r_city
=
data
.
city
r_province
=
data
.
province
r_district
=
data
.
district
}
listView
.
reloadData
()
getLogPayPrice
()
}
//MARK:--寄托物信息
var
itemName
=
""
var
tiJi
:
Float
?
var
weight
:
Float
?
var
count
:
Int
?
var
isCheck
:
Bool
?
var
chang
:
String
?
var
kuang
:
String
?
var
gao
:
String
?
func
JiTuoWuXinXiViewSubmit
(
itemName
:
String
,
tiJi
:
Float
,
weight
:
Float
,
count
:
Int
,
isCheck
:
Bool
,
chang
:
String
?,
kuang
:
String
?,
gao
:
String
?)
{
self
.
itemName
=
itemName
self
.
tiJi
=
tiJi
self
.
weight
=
weight
self
.
count
=
count
self
.
isCheck
=
isCheck
self
.
chang
=
chang
self
.
kuang
=
kuang
self
.
gao
=
gao
jtwxxView
?
.
removeFromSuperview
()
jtwxxView
=
nil
listView
.
reloadData
()
getLogPayPrice
()
}
func
AdressSelectCellBtnCLick
(
row
:
Int
)
{
...
...
@@ -91,43 +155,41 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
var
price
:
Float
?
var
commend
=
""
func
ZengZhiServicesViewControllerFinish
(
price
:
Float
,
content
:
String
)
{
self
.
price
=
price
commend
=
content
listView
.
reloadData
()
}
var
send
=
0
var
receive
=
0
//MARK:--寄派方式信息
func
JiPaiFangShiViewControllerDelegateFinish
(
send
:
Int
,
receive
:
Int
,
pickup_time
:
String
,
day
:
Int
)
{
self
.
send
=
send
self
.
receive
=
receive
self
.
pickup_time
=
pickup_time
self
.
day
=
day
listView
.
reloadData
()
}
var
itemName
=
""
var
tiJi
:
Float
?
var
weight
:
Float
?
var
count
:
Int
?
var
isCheck
:
Bool
?
func
JiTuoWuXinXiViewSubmit
(
itemName
:
String
,
tiJi
:
Float
,
weight
:
Float
,
count
:
Int
,
isCheck
:
Bool
)
{
self
.
itemName
=
itemName
self
.
tiJi
=
tiJi
self
.
weight
=
weight
self
.
count
=
count
self
.
isCheck
=
isCheck
jtwxxView
?
.
removeFromSuperview
()
jtwxxView
=
nil
//MARK:--增值信息
var
price
:
Float
?
=
0
var
commend
=
""
func
ZengZhiServicesViewControllerFinish
(
price
:
Float
,
content
:
String
)
{
self
.
price
=
price
commend
=
content
listView
.
reloadData
()
}
var
wenduIndex
:
Int
=
0
//0为未选 2冷冻 1冷藏
//MARK:--控温范围
func
WenDuCellSelect
(
index
:
Int
)
{
wenduIndex
=
index
}
//MARK:--关联信息
var
guanlianDingStr
:
String
?
=
""
var
guanlianPingStr
:
String
?
=
""
func
TitleAndTFBtnCellEndEdit
(
contentStr
:
String
,
cellTag
:
Int
)
{
if
cellTag
==
0
{
guanlianDingStr
=
contentStr
}
else
if
cellTag
==
1
{
guanlianPingStr
=
contentStr
}
}
func
JiTuoWuXinXiViewClose
()
{
jtwxxView
?
.
removeFromSuperview
()
...
...
@@ -137,10 +199,31 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var
selectBtn
:
UIButton
?
let
titleArr
=
[
"物品寄托"
,
"寄派方式"
,
"增值服务"
,
"温控范围"
]
let
title2Arr
=
[
"关联订单号"
,
"关联平台"
]
//MARK:--预估费用
@IBOutlet
weak
var
priceLbl
:
UILabel
!
@IBAction
func
orderAction
(
_
sender
:
Any
)
{
let
vc
=
XiaDanChengGongViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
if
isSelectPoripl
{
if
r_city
==
nil
||
s_city
==
nil
||
weight
==
nil
||
tiJi
==
nil
||
wenduIndex
==
0
{
HUD
.
flash
(
.
label
(
"请填写相关信息"
),
delay
:
1.2
)
return
}
let
alertView
=
LogisticalSelectView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
alertView
.
jdPriceLbl
.
text
=
"京东冷运(预估运费"
+
(
logPayPriceModel
?
.
price_jd
)
!
+
"元)"
alertView
.
sfPriceLbl
.
text
=
"顺丰冷运(预估运费"
+
(
logPayPriceModel
?
.
price_sf
)
!
+
"元)"
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
else
{
HUD
.
flash
(
.
label
(
"未同意快件服务协议无法下单"
),
delay
:
1.2
)
}
}
var
lc_id
:
Int
?
func
LogisticalSelectViewSure
(
index
:
Int
)
{
lc_id
=
index
//MARK:--提交运单
addLogisticsOrderUpdata
()
}
@IBOutlet
weak
var
topBtnView
:
UIView
!
@IBOutlet
weak
var
bottomView
:
UIView
!
...
...
@@ -230,10 +313,57 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
hListView
.
register
(
UINib
(
nibName
:
"TitleAndTFBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFBtnCell"
)
hListView
.
register
(
UINib
(
nibName
:
"HLLTopCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"HLLTopCell"
)
hListView
.
register
(
UINib
(
nibName
:
"WayBillAddressCanDelItemCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"WayBillAddressCanDelItemCell"
)
lenyunAppointmentTime
()
}
//MARK:--//冷运请求期望上门时间
var
pickup_time
:
String
?
=
""
var
day
:
Int
?
=
0
//0 今天 1 明天 2 后天
var
timeData
:
appointmentTimeDataModel
?
=
nil
func
lenyunAppointmentTime
()
{
HUD
.
flash
(
.
progress
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
appointmentTime
([
"user_token"
:
UserToken
as
Any
],
success
:
{
(
data
)
in
let
dataModel
=
data
as!
appointmentTimeModel
self
.
timeData
=
dataModel
.
data
HUD
.
hide
()
if
dataModel
.
data
?
.
today
==
nil
{
let
keys
=
dataModel
.
data
?
.
tomorrow
?
.
keys
let
keysArr
=
keys
?
.
sorted
(
by
:
{
(
str1
,
str2
)
->
Bool
in
let
num1
=
str1
as
NSString
let
num2
=
str2
as
NSString
return
num1
.
integerValue
<
num2
.
integerValue
?
true
:
false
})
let
rightIndexKey
=
keysArr
!
[
0
]
let
rightText
=
dataModel
.
data
?
.
tomorrow
!
[
rightIndexKey
as!
String
]
self
.
pickup_time
=
rightText
!
self
.
day
=
1
}
else
{
let
keys
=
dataModel
.
data
?
.
today
?
.
keys
let
keysArr
=
keys
?
.
sorted
(
by
:
{
(
str1
,
str2
)
->
Bool
in
let
num1
=
str1
as
NSString
let
num2
=
str2
as
NSString
return
num1
.
integerValue
<
num2
.
integerValue
?
true
:
false
})
let
rightIndexKey
=
keysArr
!
[
0
]
let
rightText
=
dataModel
.
data
?
.
tomorrow
!
[
rightIndexKey
as!
String
]
self
.
pickup_time
=
rightText
!
self
.
day
=
0
}
})
{
(
error
)
in
HUD
.
flash
(
.
label
(
"获取期望上门时间失败"
),
delay
:
1.2
)
}
}
let
hPart2
=
[
"请选择用车时间"
,
"下单联系人信息"
,
"额外需求"
,
"货物保障"
]
let
hPart3
=
[
"关联平台:"
,
"关联订单号:"
]
var
isSelectPoripl
=
false
@objc
func
selectBtnClick
(
sender
:
UIButton
){
if
sender
.
tag
==
99
{
//跳转查看合同页面
...
...
@@ -243,6 +373,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
return
}
selectBtn
!.
isSelected
=
!
selectBtn
!.
isSelected
isSelectPoripl
=
((
selectBtn
?
.
isSelected
)
!=
nil
)
}
//MARK: - CELL DELEGATE
//MARK: - 货拉拉 headerView
...
...
@@ -284,6 +415,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
make
.
width
.
height
.
equalTo
(
12.5
)
}
selectBtn
=
btn
btn
.
isSelected
=
isSelectPoripl
let
btn2
=
UIButton
()
view
.
addSubview
(
btn2
)
btn2
.
addTarget
(
self
,
action
:
#selector(
selectBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
...
...
@@ -405,16 +537,36 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
view
.
delegate
=
self
self
.
view
.
addSubview
(
view
)
jtwxxView
=
view
if
self
.
itemName
.
count
>
0
{
jtwxxView
?
.
itemNameTF
.
text
=
self
.
itemName
jtwxxView
?
.
tiJiTF
.
text
=
String
(
format
:
"%.2f"
,
(
tiJi
)
!
)
jtwxxView
?
.
weightTf
.
text
=
String
(
format
:
"%.f"
,
(
weight
)
!
)
jtwxxView
?
.
countTf
.
text
=
String
(
format
:
"%.d"
,
(
count
)
!
)
jtwxxView
?
.
infoSw
.
isOn
=
isCheck
!
jtwxxView
?
.
changTf
.
text
=
chang
jtwxxView
?
.
kuanTf
.
text
=
kuang
jtwxxView
?
.
gaoTf
.
text
=
gao
}
}
break
case
1
:
let
vc
=
JiPaiFangShiViewController
()
vc
.
delegate
=
self
vc
.
timeData
=
self
.
timeData
vc
.
pickup_time
=
self
.
pickup_time
vc
.
day
=
self
.
day
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
default
:
let
vc
=
ZengZhiServicesViewController
()
vc
.
delegate
=
self
if
self
.
price
!=
nil
{
vc
.
price
=
String
(
format
:
"%.2f"
,(
self
.
price
)
!
)
}
if
commend
.
count
>
0
{
vc
.
commend
=
commend
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
}
...
...
@@ -515,12 +667,13 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if
indexPath
.
row
==
2
{
cell
.
introLbl
.
isHidden
=
false
if
price
!=
nil
{
cell
.
contentStr
=
"
报
价金额:
\(
price
!
)
"
cell
.
contentStr
=
"
保
价金额:
\(
price
!
)
"
}
}
if
indexPath
.
row
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WenDu"
)
as!
WenDuCell
cell
.
titleLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
delegate
=
self
return
cell
}
...
...
@@ -528,6 +681,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
return
cell
default
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFBtnCell"
)
as!
TitleAndTFBtnCell
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
nameLbl
.
text
=
title2Arr
[
indexPath
.
row
]
return
cell
}
...
...
@@ -683,4 +838,126 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
view
.
addSubview
(
topBtnLine
)
}
var
carTypesArr
:
Array
<
String
>
=
[
"小面包车"
,
"中面包车"
,
"小货车"
,
"中货车"
,
"5米2"
,
"ababa"
]
//MARK:---预估费用操作
var
logPayPriceModel
:
registerDataModel
?
func
getLogPayPrice
()
{
if
r_city
==
nil
||
s_city
==
nil
||
weight
==
nil
||
tiJi
==
nil
{
return
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
estimatedCost
([
"user_token"
:
UserToken
as
Any
,
"s_city"
:
s_city
as
Any
,
"r_city"
:
r_city
as
Any
,
"weight"
:
weight
as
Any
,
"volume"
:
tiJi
as
Any
],
success
:
{
(
data
)
in
let
dataModel
=
data
as!
registerModel
self
.
logPayPriceModel
=
dataModel
.
data
self
.
priceLbl
.
text
=
"¥"
+
(
dataModel
.
data
?
.
price_sf
)
!
})
{
(
error
)
in
}
}
func
addLogisticsOrderUpdata
()
{
var
home_delivery_on
=
0
if
send
==
0
{
home_delivery_on
=
1
}
var
site_delivery
=
1
if
receive
==
0
{
site_delivery
=
1
}
else
{
site_delivery
=
0
}
// var infoArr:Array<Any> = []
// infoArr.append(["order_sn":guanlianDingStr as Any])
// infoArr.append(["sale_plat":guanlianPingStr as Any])
// infoArr.append(["express_item_name":itemName as Any])
// infoArr.append(["weight":weight as Any])
// infoArr.append(["volume":tiJi as Any])
// infoArr.append(["express_item_qty":count as Any])
// infoArr.append(["tempture_num":wenduIndex as Any])
// infoArr.append(["home_delivery_on":home_delivery_on as Any])
// infoArr.append(["site_delivery":site_delivery as Any])
// infoArr.append(["remark":commend as Any])
// infoArr.append(["guarantee_value":price as Any])
// infoArr.append(["fc_flag":0 as Any])
// infoArr.append(["pickup_time":pickup_time as Any])
// infoArr.append(["day":day as Any])
// infoArr.append(["lc_id":lc_id as Any])
let
infodic
=
[
"order_sn"
:
guanlianDingStr
as
Any
,
"sale_plat"
:
guanlianPingStr
as
Any
,
"express_item_name"
:
itemName
as
Any
,
"weight"
:
weight
as
Any
,
"volume"
:
tiJi
as
Any
,
"express_item_qty"
:
count
as
Any
,
"tempture_num"
:
wenduIndex
as
Any
,
"home_delivery_on"
:
home_delivery_on
as
Any
,
"site_delivery"
:
site_delivery
as
Any
,
"remark"
:
commend
as
Any
,
"guarantee_value"
:
price
as
Any
,
"fc_flag"
:
0
as
Any
,
"pickup_time"
:
pickup_time
as
Any
,
"day"
:
day
as
Any
,
"lc_id"
:
lc_id
as
Any
]
// var addrArr:Array<Any> = []
//
// addrArr.append(["r_consignee":sender as Any])
// addrArr.append(["r_country":1 as Any])
// addrArr.append(["r_province":s_province as Any])
// addrArr.append(["r_city":s_city as Any])
// addrArr.append(["r_district":s_district as Any])
// addrArr.append(["r_province_name":s_province_name as Any])
// addrArr.append(["r_city_name":s_city_name as Any])
// addrArr.append(["r_district_name":s_district_name as Any])
// addrArr.append(["r_address":sendAdr as Any])
// addrArr.append(["r_mobile":sendPhone as Any])
// addrArr.append(["s_consignee":receiver as Any])
// addrArr.append(["s_country":1 as Any])
// addrArr.append(["s_province":r_province as Any])
// addrArr.append(["s_city":r_city as Any])
// addrArr.append(["s_district":r_district as Any])
// addrArr.append(["s_province_name":r_province_name as Any])
// addrArr.append(["s_city_name":r_city_name as Any])
// addrArr.append(["s_district_name":r_district_name as Any])
// addrArr.append(["s_address":receiveAdr as Any])
// addrArr.append(["s_mobile":receivePhone as Any])
let
addrdic
=
[
"r_consignee"
:
sender
as
Any
,
"r_country"
:
1
as
Any
,
"r_province"
:
s_province
as
Any
,
"r_city"
:
s_city
as
Any
,
"r_district"
:
s_district
as
Any
,
"r_province_name"
:
s_province_name
as
Any
,
"r_city_name"
:
s_city_name
as
Any
,
"r_district_name"
:
s_district_name
as
Any
,
"r_address"
:
sendAdr
as
Any
,
"r_mobile"
:
sendPhone
as
Any
,
"s_consignee"
:
receiver
as
Any
,
"s_country"
:
1
as
Any
,
"s_province"
:
r_province
as
Any
,
"s_city"
:
r_city
as
Any
,
"s_district"
:
r_district
as
Any
,
"s_province_name"
:
r_province_name
as
Any
,
"s_city_name"
:
r_city_name
as
Any
,
"s_district_name"
:
r_district_name
as
Any
,
"s_address"
:
receiveAdr
as
Any
,
"s_mobile"
:
receivePhone
as
Any
]
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
dic
=
[
"info"
:
infodic
as
Any
,
"addr"
:
addrdic
as
Any
,
"user_token"
:
UserToken
as
Any
]
addLogisticsOrder
(
dic
,
success
:
{
(
data
)
in
let
dataModel
=
data
as!
AddLogisticsOrderModel
let
vc
=
XiaDanChengGongViewController
()
vc
.
orderID
=
dataModel
.
data
?
.
id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
})
{
(
error
)
in
}
}
}
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
View file @
344cc73f
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_5"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
@@ -112,10 +112,9 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
¥420
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TJP-xc-KTh"
>
<rect
key=
"frame"
x=
"58"
y=
"6.6666666666666288"
width=
"
50
"
height=
"18.333333333333332"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
-
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TJP-xc-KTh"
>
<rect
key=
"frame"
x=
"58"
y=
"6.6666666666666288"
width=
"
7
"
height=
"18.333333333333332"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"50"
id=
"XAJ-Gz-OGa"
/>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"eTp-WI-Bwg"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"15"
/>
...
...
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
344cc73f
...
...
@@ -13,7 +13,7 @@ protocol DZGLViewControllerDelegate {
func
DZGLViewControllerSelect
(
data
:
GetAddrsInfoDataModel
)
}
class
DZGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
SwipeTableViewCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
XinZengDiZhiViewControllerDelegate
,
GeliAlertViewDelegate
{
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?)
{
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?
,
province_name
:
String
,
city_name
:
String
,
district_name
:
String
)
{
listView
.
mj_header
?
.
beginRefreshing
()
}
...
...
@@ -227,6 +227,7 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
cell
.
nameLbl
.
text
=
model
?
.
consignee
cell
.
phoneLbl
.
text
=
model
?
.
mobile
cell
.
adrLbl
.
text
=
model
?
.
addr_name
cell
.
btn
.
isSelected
=
false
if
isSelectMotion
==
false
{
cell
.
btnH
.
constant
=
0
...
...
@@ -242,7 +243,7 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
cell
.
nameLbl
.
text
=
model
?
.
consignee
cell
.
phoneLbl
.
text
=
model
?
.
mobile
cell
.
adrLbl
.
text
=
model
?
.
addr_cn
cell
.
btn
.
isSelected
=
false
if
isSelectMotion
==
false
{
cell
.
btnH
.
constant
=
0
cell
.
xValue
.
constant
=
0
...
...
GeliBusinessPlatform/ViewController/地址管理/XinZengDiZhiViewController.swift
View file @
344cc73f
...
...
@@ -9,7 +9,7 @@
import
UIKit
import
SwiftyJSON
protocol
XinZengDiZhiViewControllerDelegate
{
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?)
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?
,
province_name
:
String
,
city_name
:
String
,
district_name
:
String
)
}
class
XinZengDiZhiViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndTFAndBtnCellDelegate
,
UIPickerViewDelegate
,
UIPickerViewDataSource
,
SJMapViewControllerDelegate
,
UITextFieldDelegate
,
TitleAndSwitchCellDelegate
,
GeliAlertViewDelegate
{
var
address_id
:
Int
?
...
...
@@ -18,7 +18,7 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
if
sender
.
tag
==
999
{
AddressDel
([
"user_token"
:
UserToken
as
Any
,
"address_id"
:
address_id
as
Any
],
success
:
{
(
data
)
in
self
.
delegate
?
.
XinZengDiZhiViewControllerFinishAction
(
name
:
self
.
nameStr
,
phone
:
self
.
phone
,
adr
:
self
.
adrStr
,
data
:
nil
)
self
.
delegate
?
.
XinZengDiZhiViewControllerFinishAction
(
name
:
self
.
nameStr
,
phone
:
self
.
phone
,
adr
:
self
.
adrStr
,
data
:
nil
,
province_name
:
""
,
city_name
:
""
,
district_name
:
""
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
error
)
in
...
...
@@ -32,6 +32,9 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
var
areaDict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
cityDict
[
"area_id"
]
=
""
areaDict
[
"area_id"
]
=
""
cityDict
[
"area_name"
]
=
""
areaDict
[
"area_name"
]
=
""
if
(
proDict
[
"city_list"
]
as!
NSArray
)
.
count
>
0
{
cityDict
=
(
proDict
[
"city_list"
]
as!
NSArray
)[
cityIndex
]
as!
Dictionary
<
String
,
Any
>
if
(
cityDict
[
"district_list"
]
as!
NSArray
)
.
count
>
0
{
...
...
@@ -64,7 +67,7 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
"is_send_default"
:
send_default
as
Any
,
]
EditAddress
(
dict
,
success
:
{
(
data
)
in
self
.
delegate
?
.
XinZengDiZhiViewControllerFinishAction
(
name
:
self
.
nameStr
,
phone
:
self
.
phone
,
adr
:
self
.
adrStr
,
data
:
nil
)
self
.
delegate
?
.
XinZengDiZhiViewControllerFinishAction
(
name
:
self
.
nameStr
,
phone
:
self
.
phone
,
adr
:
self
.
adrStr
,
data
:
nil
,
province_name
:
""
,
city_name
:
""
,
district_name
:
""
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
HUD
.
hide
()
})
{
(
error
)
in
...
...
@@ -88,7 +91,7 @@ class XinZengDiZhiViewController: BaseViewController,UITableViewDelegate,UITable
]
AddAddress
(
dict
,
success
:
{
(
data
)
in
let
dataModel
=
data
as!
AddAddressModel
self
.
delegate
?
.
XinZengDiZhiViewControllerFinishAction
(
name
:
self
.
nameStr
,
phone
:
self
.
phone
,
adr
:
self
.
adrStr
,
data
:
dataModel
.
data
)
self
.
delegate
?
.
XinZengDiZhiViewControllerFinishAction
(
name
:
self
.
nameStr
,
phone
:
self
.
phone
,
adr
:
self
.
adrStr
,
data
:
dataModel
.
data
,
province_name
:
proDict
[
"area_name"
]
as!
String
,
city_name
:
cityDict
[
"area_name"
]
as!
String
,
district_name
:
areaDict
[
"area_name"
]
as!
String
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
HUD
.
hide
()
})
{
(
error
)
in
...
...
GeliBusinessPlatform/ViewController/增值服务/ZengZhiServicesViewController.swift
View file @
344cc73f
...
...
@@ -10,7 +10,7 @@ import UIKit
protocol
ZengZhiServicesViewControllerDelegate
{
func
ZengZhiServicesViewControllerFinish
(
price
:
Float
,
content
:
String
)
}
class
ZengZhiServicesViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
,
UITextViewDelegate
{
class
ZengZhiServicesViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
,
UITextViewDelegate
,
UITextFieldDelegate
{
var
delegate
:
ZengZhiServicesViewControllerDelegate
?
...
...
@@ -18,11 +18,16 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
print
(
"submit"
)
if
price
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请输入
报
价金额"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请输入
保
价金额"
),
delay
:
1.2
)
return
}
let
str
=
price
as
NSString
if
str
.
floatValue
>
200000.00
{
HUD
.
flash
(
.
label
(
"保价金额超出范围"
),
delay
:
1.2
)
return
}
delegate
?
.
ZengZhiServicesViewControllerFinish
(
price
:
str
.
floatValue
,
content
:
commend
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
...
...
@@ -61,8 +66,27 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
listView
.
register
(
UINib
(
nibName
:
"TitleAndSelectCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndSelect"
)
textView
.
delegate
=
self
textView
.
text
=
commend
if
commend
.
count
>
0
{
textViewHolderLbl
.
isHidden
=
true
}
inputTF
.
addTarget
(
self
,
action
:
#selector(
textViewEdit(sender:)
)
,
for
:
.
allEditingEvents
)
inputTF
.
text
=
price
if
price
.
count
>
0
{
holderLbl
.
isHidden
=
true
let
inpuStr
=
inputTF
.
text
as!
NSString
let
pric
=
inpuStr
.
floatValue
*
0.005
if
pric
>
10.0
{
priceLbl
.
text
=
String
(
format
:
"%.2f"
,
(
pric
))
}
else
{
if
pric
>
0.0
{
priceLbl
.
text
=
"10.0"
}
else
{
priceLbl
.
text
=
"-"
}
}
}
switch
fanHuanIdx
{
case
0
:
nSet
()
...
...
@@ -74,6 +98,7 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
eSet
()
break
}
inputTF
.
delegate
=
self
// Do any additional setup after loading the view.
}
...
...
@@ -99,12 +124,19 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
return
cell
}
func
textViewDidChange
(
_
textView
:
UITextView
)
{
commend
=
textView
.
text
if
textView
.
text
.
count
!=
0
{
textViewHolderLbl
.
isHidden
=
true
}
else
{
textViewHolderLbl
.
isHidden
=
false
}
if
textView
.
markedTextRange
==
nil
{
if
textView
.
text
.
count
>
50
{
textView
.
text
=
textView
.
text
.
subString
(
start
:
0
,
length
:
50
)
}
}
commend
=
textView
.
text
}
func
textView
(
_
textView
:
UITextView
,
shouldChangeTextIn
range
:
NSRange
,
replacementText
text
:
String
)
->
Bool
{
countingLbl
.
text
=
"
\(
textView
.
text
.
count
)
/50"
...
...
@@ -124,6 +156,21 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
}
}
func
textFieldDidChangeSelection
(
_
textField
:
UITextField
)
{
let
inpuStr
=
inputTF
.
text
as!
NSString
let
pric
=
inpuStr
.
floatValue
*
0.005
if
pric
>
10.0
{
priceLbl
.
text
=
String
(
format
:
"%.2f"
,
(
pric
))
}
else
{
if
pric
>
0.0
{
priceLbl
.
text
=
"10.0"
}
else
{
priceLbl
.
text
=
"-"
}
}
}
func
nSet
(){
pBtn
.
backgroundColor
=
UIColor
.
clear
pBtn
.
isSelected
=
false
...
...
GeliBusinessPlatform/ViewController/增值服务/ZengZhiServicesViewController.xib
View file @
344cc73f
...
...
@@ -112,7 +112,7 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请输入
报价金额0~3
0000"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"B5c-XR-qp5"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请输入
保价金额0-20
0000"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"B5c-XR-qp5"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"263"
height=
"30"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
...
...
@@ -146,17 +146,16 @@
</userDefinedRuntimeAttributes>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"一"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Fzo-B3-gMd"
>
<rect
key=
"frame"
x=
"38
1"
y=
"106"
width=
"18
"
height=
"21"
/>
<rect
key=
"frame"
x=
"38
5"
y=
"106"
width=
"14
"
height=
"21"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"18"
id=
"Aza-LZ-V0M"
/>
<constraint
firstAttribute=
"height"
constant=
"21"
id=
"C9s-un-cGd"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17
"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13
"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"保费:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FxE-Ch-Fg9"
>
<rect
key=
"frame"
x=
"34
1
"
y=
"108.5"
width=
"40"
height=
"16"
/>
<rect
key=
"frame"
x=
"34
5
"
y=
"108.5"
width=
"40"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"cbd-o5-Pa6"
/>
<constraint
firstAttribute=
"width"
constant=
"40"
id=
"gRD-Ca-Wxm"
/>
...
...
GeliBusinessPlatform/ViewController/寄派方式/JiPaiFangShiViewController.swift
View file @
344cc73f
...
...
@@ -35,7 +35,7 @@ class JiPaiFangShiViewController: BaseViewController ,SendTimeSelectViewDeleagte
if
PLeftBtn
.
isSelected
==
false
{
receive
=
1
}
delegate
?
.
JiPaiFangShiViewControllerDelegateFinish
(
send
:
send
,
receive
:
receive
,
pickup_time
:
"8-10"
,
day
:
0
)
delegate
?
.
JiPaiFangShiViewControllerDelegateFinish
(
send
:
send
,
receive
:
receive
,
pickup_time
:
self
.
pickup_time
!
,
day
:
self
.
day
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
@IBOutlet
weak
var
topView
:
UIView
!
...
...
@@ -75,39 +75,76 @@ class JiPaiFangShiViewController: BaseViewController ,SendTimeSelectViewDeleagte
make
.
right
.
equalTo
(
-
15
)
make
.
height
.
equalTo
(
55
)
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
appointmentTime
([
"user_token"
:
UserToken
as
Any
],
success
:
{
(
data
)
in
if
self
.
timeData
!=
nil
{
switch
self
.
day
{
case
0
:
let
keys
=
self
.
timeData
?
.
today
?
.
keys
let
keysArr
=
keys
?
.
sorted
(
by
:
{
(
str1
,
str2
)
->
Bool
in
let
num1
=
str1
as
NSString
let
num2
=
str2
as
NSString
return
num1
.
integerValue
<
num2
.
integerValue
?
true
:
false
})
for
i
in
0
..<
keysArr
!.
count
{
let
rightIndexKey
=
keysArr
!
[
i
]
let
rightText
=
self
.
timeData
?
.
today
!
[
rightIndexKey
as!
String
]
if
self
.
pickup_time
==
rightText
!
{
leftSelectIdx
=
0
rightSelectIdx
=
i
self
.
timeLbl
.
text
=
"今天"
+
rightText
!
}
}
let
dataModel
=
data
as!
appointmentTimeModel
self
.
timeData
=
dataModel
.
data
//需要修改-放上个vc
if
dataModel
.
data
?
.
today
==
nil
{
case
1
:
let
keys
=
dataModel
.
d
ata
?
.
tomorrow
?
.
keys
let
keys
=
self
.
timeD
ata
?
.
tomorrow
?
.
keys
let
keysArr
=
keys
?
.
sorted
(
by
:
{
(
str1
,
str2
)
->
Bool
in
let
num1
=
str1
as
NSString
let
num2
=
str2
as
NSString
return
num1
.
integerValue
<
num2
.
integerValue
?
true
:
false
})
let
rightIndexKey
=
keysArr
!
[
0
]
let
rightText
=
dataModel
.
data
?
.
tomorrow
!
[
rightIndexKey
as!
String
]
self
.
timeLbl
.
text
=
"明天"
+
rightText
!
for
i
in
0
..<
keysArr
!.
count
{
let
rightIndexKey
=
keysArr
!
[
i
]
let
rightText
=
self
.
timeData
?
.
tomorrow
!
[
rightIndexKey
as!
String
]
if
self
.
pickup_time
==
rightText
!
{
if
self
.
timeData
?
.
today
!=
nil
{
leftSelectIdx
=
1
}
else
{
let
keys
=
dataModel
.
data
?
.
today
?
.
keys
leftSelectIdx
=
0
}
rightSelectIdx
=
i
self
.
timeLbl
.
text
=
"明天"
+
rightText
!
}
}
case
2
:
let
keys
=
self
.
timeData
?
.
taftert
?
.
keys
let
keysArr
=
keys
?
.
sorted
(
by
:
{
(
str1
,
str2
)
->
Bool
in
let
num1
=
str1
as
NSString
let
num2
=
str2
as
NSString
return
num1
.
integerValue
<
num2
.
integerValue
?
true
:
false
})
let
rightIndexKey
=
keysArr
!
[
0
]
let
rightText
=
dataModel
.
data
?
.
tomorrow
!
[
rightIndexKey
as!
String
]
self
.
timeLbl
.
text
=
"今天"
+
rightText
!
for
i
in
0
..<
keysArr
!.
count
{
let
rightIndexKey
=
keysArr
!
[
i
]
let
rightText
=
self
.
timeData
?
.
taftert
!
[
rightIndexKey
as!
String
]
if
self
.
pickup_time
==
rightText
!
{
if
self
.
timeData
?
.
today
!=
nil
{
leftSelectIdx
=
2
}
else
{
leftSelectIdx
=
1
}
rightSelectIdx
=
i
self
.
timeLbl
.
text
=
"后天"
+
rightText
!
}
})
{
(
error
)
in
}
default
:
break
}
}
}
func
setYuanJiao
(
sender
:
UIView
){
let
maskPath
=
UIBezierPath
(
roundedRect
:
sender
.
bounds
,
...
...
GeliBusinessPlatform/ViewController/寄派方式/JiPaiFangShiViewController.xib
View file @
344cc73f
...
...
@@ -15,7 +15,7 @@
<outlet
property=
"JLeftBtn"
destination=
"HSp-eJ-pG9"
id=
"suW-JW-uqO"
/>
<outlet
property=
"JRightBtn"
destination=
"7aa-WU-1Qb"
id=
"14j-Ai-szJ"
/>
<outlet
property=
"PLBL"
destination=
"Hgj-Lr-BmC"
id=
"vkh-ax-rWE"
/>
<outlet
property=
"PLeftBtn"
destination=
"G
TQ-vx-5qB"
id=
"eBT-aC-t85
"
/>
<outlet
property=
"PLeftBtn"
destination=
"G
BL-MZ-sLn"
id=
"sWh-v8-uaE
"
/>
<outlet
property=
"PRightBtn"
destination=
"Bh0-6K-n9j"
id=
"Cmk-qJ-Rc9"
/>
<outlet
property=
"timeLbl"
destination=
"DPN-ah-dAM"
id=
"qrX-hO-U7t"
/>
<outlet
property=
"timeViewHeight"
destination=
"1U5-hJ-N6K"
id=
"cr2-sV-XIE"
/>
...
...
@@ -243,18 +243,18 @@
<action
selector=
"sendAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"b2J-Y9-Md8"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"G
TQ-vx-5qB
"
>
<rect
key=
"frame"
x=
"21
0
"
y=
"15"
width=
"72"
height=
"27"
/>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"G
BL-MZ-sLn
"
>
<rect
key=
"frame"
x=
"21
5
"
y=
"15"
width=
"72"
height=
"27"
/>
<constraints>
<constraint
firstAttribute=
"
width"
constant=
"72"
id=
"f42-o5-2nK
"
/>
<constraint
firstAttribute=
"
height"
constant=
"27"
id=
"nwX-jN-fcs
"
/>
<constraint
firstAttribute=
"
height"
constant=
"27"
id=
"QIV-Ci-tEY
"
/>
<constraint
firstAttribute=
"
width"
constant=
"72"
id=
"epY-3u-AIV
"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"tintColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"送货上门"
>
<color
key=
"titleColor"
name=
"灰色字体颜色"
/>
</state>
<state
key=
"selected"
title=
"
上门提货
"
>
<state
key=
"selected"
title=
"
送货上门
"
>
<color
key=
"titleColor"
name=
"白色背景色"
/>
</state>
<userDefinedRuntimeAttributes>
...
...
@@ -269,15 +269,15 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"sendAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"
hWt-N2-04X
"
/>
<action
selector=
"sendAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"
sRA-WM-pOC
"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"Bh0-6K-n9j"
firstAttribute=
"leading"
secondItem=
"GTQ-vx-5qB"
secondAttribute=
"trailing"
constant=
"15"
id=
"46p-u3-3AE"
/>
<constraint
firstItem=
"Gcr-eI-ae4"
firstAttribute=
"leading"
secondItem=
"Hgj-Lr-BmC"
secondAttribute=
"trailing"
constant=
"10"
id=
"9Ps-a3-KTs"
/>
<constraint
firstItem=
"GTQ-vx-5qB"
firstAttribute=
"centerY"
secondItem=
"Bh0-6K-n9j"
secondAttribute=
"centerY"
id=
"Xkn-Se-Kbd"
/>
<constraint
firstItem=
"Bh0-6K-n9j"
firstAttribute=
"leading"
secondItem=
"GBL-MZ-sLn"
secondAttribute=
"trailing"
constant=
"10"
id=
"Qyh-qZ-1qf"
/>
<constraint
firstItem=
"GBL-MZ-sLn"
firstAttribute=
"centerY"
secondItem=
"Bh0-6K-n9j"
secondAttribute=
"centerY"
id=
"dLb-Cc-qVt"
/>
<constraint
firstItem=
"Bh0-6K-n9j"
firstAttribute=
"centerY"
secondItem=
"Ul1-px-ztN"
secondAttribute=
"centerY"
id=
"ipr-yd-9sZ"
/>
<constraint
firstItem=
"Hgj-Lr-BmC"
firstAttribute=
"centerY"
secondItem=
"Ul1-px-ztN"
secondAttribute=
"centerY"
id=
"jOD-qi-yZu"
/>
<constraint
firstItem=
"Hgj-Lr-BmC"
firstAttribute=
"leading"
secondItem=
"Ul1-px-ztN"
secondAttribute=
"leading"
id=
"nab-ys-0dO"
/>
...
...
GeliBusinessPlatform/ViewController/寄派方式/SendTimeSelectView.swift
View file @
344cc73f
...
...
@@ -81,7 +81,7 @@ class SendTimeSelectView: UIView,UITableViewDelegate,UITableViewDataSource {
break
}
delegate
?
.
SendTimeSelectViewSubmit
(
day
:
"
\(
leftListArr
[
leftSelectIdx
!
]
)
"
,
time
:
rightText
,
leftSelectIdx
:
leftSelectIdx
!
,
rightSelectIdx
:
rightSelectIdx
!
)
delegate
?
.
SendTimeSelectViewSubmit
(
day
:
"
\(
leftListArr
[
leftSelectIdx
!
]
)
"
,
time
:
rightText
,
leftSelectIdx
:
leftSelectIdx
!
,
rightSelectIdx
:
rightSelectIdx
!
)
}
@IBOutlet
weak
var
rightListView
:
UITableView
!
@IBOutlet
weak
var
leftListView
:
UITableView
!
...
...
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