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
b51d374a
Commit
b51d374a
authored
Aug 05, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地址选择(待完善详细出口)
parent
c24c3e12
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
16 deletions
+60
-16
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
...wController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
+48
-14
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/WayBillAddressCanDelItemCell.swift
...ntroller/货拉拉/运单详情/cell/WayBillAddressCanDelItemCell.swift
+8
-2
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/WayBillAddressCanDelItemCell.xib
...Controller/货拉拉/运单详情/cell/WayBillAddressCanDelItemCell.xib
+4
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b51d374a
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
b51d374a
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
View file @
b51d374a
...
@@ -13,7 +13,9 @@ import AMapFoundationKit
...
@@ -13,7 +13,9 @@ import AMapFoundationKit
import
MAMapKit
import
MAMapKit
import
AMapSearchKit
import
AMapSearchKit
import
IQKeyboardManagerSwift
import
IQKeyboardManagerSwift
protocol
ToAndFormSelectViewControllerDelegate
{
func
ToAndFormSelectViewControllerSelectAdr
(
dict
:
Dictionary
<
String
,
Any
>
,
idx
:
Int
)
}
class
ToAndFormSelectViewController
:
BaseViewController
,
MAMapViewDelegate
,
CLLocationManagerDelegate
,
AMapSearchDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
class
ToAndFormSelectViewController
:
BaseViewController
,
MAMapViewDelegate
,
CLLocationManagerDelegate
,
AMapSearchDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
tableView
==
searchList
{
if
tableView
==
searchList
{
...
@@ -21,6 +23,14 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -21,6 +23,14 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
}
}
return
5
return
5
}
}
var
delegate
:
ToAndFormSelectViewControllerDelegate
?
var
dict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
var
nameStr
=
""
var
phoneNum
=
""
var
adrStr
=
""
var
idx
:
Int
?
var
idx
:
Int
?
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
return
UITableView
.
automaticDimension
...
@@ -69,15 +79,15 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -69,15 +79,15 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
@IBOutlet
weak
var
leftBtn
:
UIButton
!
@IBOutlet
weak
var
leftBtn
:
UIButton
!
@IBAction
func
listViewRefresh
(
_
sender
:
UIButton
)
{
@IBAction
func
listViewRefresh
(
_
sender
:
UIButton
)
{
// if sender == leftBtn {
// if sender == leftBtn {
// leftBtn.isSelected = true
// leftBtn.isSelected = true
// rightBtn.isSelected = false
// rightBtn.isSelected = false
// lineX.constant = 0
// lineX.constant = 0
// }else{
// }else{
// leftBtn.isSelected = false
// leftBtn.isSelected = false
// rightBtn.isSelected = true
// rightBtn.isSelected = true
// lineX.constant = fullScreenWidth * 0.5
// lineX.constant = fullScreenWidth * 0.5
// }
// }
}
}
@IBOutlet
weak
var
listViewBG
:
UIView
!
@IBOutlet
weak
var
listViewBG
:
UIView
!
...
@@ -126,6 +136,10 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -126,6 +136,10 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
searchList
.
register
(
UINib
(
nibName
:
"HuoLaLaDiZhiCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"HuoLaLaDiZhiCell"
)
searchList
.
register
(
UINib
(
nibName
:
"HuoLaLaDiZhiCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"HuoLaLaDiZhiCell"
)
nameTF
.
text
=
nameStr
phoneTF
.
text
=
phoneNum
addressDetailTF
.
text
=
adrStr
}
}
func
initMapView
(){
func
initMapView
(){
...
@@ -153,7 +167,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -153,7 +167,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
@objc
func
cancelKeyboard
(){
@objc
func
cancelKeyboard
(){
IQKeyboardManager
.
shared
.
resignFirstResponder
()
IQKeyboardManager
.
shared
.
resignFirstResponder
()
}
}
var
adrDatas
:
Array
<
cityListDataModel
>
?
func
initSearch
()
{
func
initSearch
()
{
search
=
AMapSearchAPI
()
search
=
AMapSearchAPI
()
search
.
delegate
=
self
search
.
delegate
=
self
...
@@ -163,9 +177,28 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -163,9 +177,28 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
request
.
requireExtension
=
true
request
.
requireExtension
=
true
search
.
aMapPOIAroundSearch
(
request
)
search
.
aMapPOIAroundSearch
(
request
)
}
}
var
adrData
:
cityListDataModel
?
var
cityName
:
NSString
=
""
@IBAction
func
sureSelectAddressAction
(
_
sender
:
LGButton
)
{
@IBAction
func
sureSelectAddressAction
(
_
sender
:
LGButton
)
{
print
(
"sureSelectAddressAction"
)
print
(
"sureSelectAddressAction"
)
print
(
cityName
)
if
adrDatas
!.
count
>
0
{
for
item
in
adrDatas
!
{
if
cityName
.
contains
(
item
.
name
!
)
{
adrData
=
item
}
}
dict
[
"menPai"
]
=
addressDetailTF
.
text
dict
[
"shouHuoRen"
]
=
nameTF
.
text
dict
[
"phoneNum"
]
=
phoneTF
.
text
dict
[
"adr"
]
=
adrData
if
locName
.
count
>
0
{
dict
[
"locName"
]
=
titleLbl
!.
text
delegate
?
.
ToAndFormSelectViewControllerSelectAdr
(
dict
:
dict
,
idx
:
idx
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
}
//MARK: - 高德地图delegate
//MARK: - 高德地图delegate
var
introView
:
UIView
?
var
introView
:
UIView
?
...
@@ -173,6 +206,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -173,6 +206,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
var
contentLbl
:
UILabel
?
var
contentLbl
:
UILabel
?
var
adrArr
:
Array
<
AMapPOI
>
=
[]
var
adrArr
:
Array
<
AMapPOI
>
=
[]
var
keyword
=
""
var
keyword
=
""
var
locName
=
""
func
onPOISearchDone
(
_
request
:
AMapPOISearchBaseRequest
!
,
response
:
AMapPOISearchResponse
!
)
{
func
onPOISearchDone
(
_
request
:
AMapPOISearchBaseRequest
!
,
response
:
AMapPOISearchResponse
!
)
{
if
response
.
count
==
0
{
if
response
.
count
==
0
{
...
@@ -208,8 +242,8 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -208,8 +242,8 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
introView
?
.
addSubview
(
contentLbl
!
)
introView
?
.
addSubview
(
contentLbl
!
)
}
}
titleLbl
!.
text
=
response
.
pois
.
first
?
.
name
titleLbl
!.
text
=
response
.
pois
.
first
?
.
name
cityName
=
response
.
pois
.
first
?
.
city
as!
NSString
locName
=
response
.
pois
.
first
?
.
name
as!
String
//通过富文本来设置行间距
//通过富文本来设置行间距
let
paraph
=
NSMutableParagraphStyle
()
let
paraph
=
NSMutableParagraphStyle
()
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/WayBillAddressCanDelItemCell.swift
View file @
b51d374a
...
@@ -7,9 +7,12 @@
...
@@ -7,9 +7,12 @@
//
//
import
UIKit
import
UIKit
protocol
WayBillAddressCanDelItemCellDelegate
{
func
WayBillAddressCanDelItemCellDelAc
(
idx
:
Int
)
}
class
WayBillAddressCanDelItemCell
:
UITableViewCell
{
class
WayBillAddressCanDelItemCell
:
UITableViewCell
{
@IBOutlet
weak
var
delBtnTop
:
NSLayoutConstraint
!
var
delegate
:
WayBillAddressCanDelItemCellDelegate
?
@IBOutlet
weak
var
topH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
topH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
nodataLbl
:
UILabel
!
@IBOutlet
weak
var
nodataLbl
:
UILabel
!
@IBOutlet
weak
var
delBtn
:
UIButton
!
@IBOutlet
weak
var
delBtn
:
UIButton
!
...
@@ -26,6 +29,9 @@ class WayBillAddressCanDelItemCell: UITableViewCell {
...
@@ -26,6 +29,9 @@ class WayBillAddressCanDelItemCell: UITableViewCell {
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
}
}
@IBAction
func
delAction
(
_
sender
:
Any
)
{
delegate
?
.
WayBillAddressCanDelItemCellDelAc
(
idx
:
self
.
tag
)
}
open
override
func
layoutSubviews
()
{
open
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
super
.
layoutSubviews
()
self
.
contentView
.
setNeedsLayout
()
self
.
contentView
.
setNeedsLayout
()
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/WayBillAddressCanDelItemCell.xib
View file @
b51d374a
...
@@ -96,6 +96,9 @@
...
@@ -96,6 +96,9 @@
<real
key=
"value"
value=
"3"
/>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"delAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"0Z7-GB-Z7c"
/>
</connections>
</button>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请选择或填写发货信息"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"xQh-lb-yiJ"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请选择或填写发货信息"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"xQh-lb-yiJ"
>
<rect
key=
"frame"
x=
"46"
y=
"6.5"
width=
"133"
height=
"16"
/>
<rect
key=
"frame"
x=
"46"
y=
"6.5"
width=
"133"
height=
"16"
/>
...
@@ -135,6 +138,7 @@
...
@@ -135,6 +138,7 @@
<outlet
property=
"addressDetailLbl"
destination=
"JfY-Q9-10Q"
id=
"Xi4-mV-0hL"
/>
<outlet
property=
"addressDetailLbl"
destination=
"JfY-Q9-10Q"
id=
"Xi4-mV-0hL"
/>
<outlet
property=
"addressLbl"
destination=
"wxD-2W-Kct"
id=
"OPZ-UV-8Wi"
/>
<outlet
property=
"addressLbl"
destination=
"wxD-2W-Kct"
id=
"OPZ-UV-8Wi"
/>
<outlet
property=
"delBtn"
destination=
"gIq-zy-KC4"
id=
"2h5-bf-ftd"
/>
<outlet
property=
"delBtn"
destination=
"gIq-zy-KC4"
id=
"2h5-bf-ftd"
/>
<outlet
property=
"delBtnTop"
destination=
"WFS-QX-fNC"
id=
"qLd-qa-ekh"
/>
<outlet
property=
"iconH"
destination=
"PTZ-fe-NB0"
id=
"UMp-8r-8hy"
/>
<outlet
property=
"iconH"
destination=
"PTZ-fe-NB0"
id=
"UMp-8r-8hy"
/>
<outlet
property=
"iconLbl"
destination=
"JJG-L3-lyj"
id=
"ZQ1-MD-9C6"
/>
<outlet
property=
"iconLbl"
destination=
"JJG-L3-lyj"
id=
"ZQ1-MD-9C6"
/>
<outlet
property=
"iconW"
destination=
"Bp5-x3-dmY"
id=
"blT-9t-em8"
/>
<outlet
property=
"iconW"
destination=
"Bp5-x3-dmY"
id=
"blT-9t-em8"
/>
...
...
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