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
b7881fe0
Commit
b7881fe0
authored
Apr 20, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阿斯顿发送到发顺丰三分
parent
41c87618
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
50 deletions
+40
-50
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/pph/getVehicleType_model.swift
GeliBusinessPlatform/Model/pph/getVehicleType_model.swift
+2
-2
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+4
-4
GeliBusinessPlatform/ViewController/地图/SJMapCell.swift
GeliBusinessPlatform/ViewController/地图/SJMapCell.swift
+1
-0
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
...inessPlatform/ViewController/地图/SJMapViewController.swift
+17
-7
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
...sinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
+14
-35
GeliBusinessPlatform/ViewController/拼拼货group/下单成功/PPH_SUC_VC.swift
...essPlatform/ViewController/拼拼货group/下单成功/PPH_SUC_VC.swift
+2
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b7881fe0
No preview for this file type
GeliBusinessPlatform/Model/pph/getVehicleType_model.swift
View file @
b7881fe0
...
...
@@ -14,7 +14,7 @@ class addPinPinOrder_adrInfo: Mappable {
var
city_name
:
String
?
var
district_name
:
String
?
var
street_name
:
String
?
var
address
:
String
?
var
linkman
:
String
?
var
shopName
:
String
?
...
...
@@ -33,7 +33,7 @@ class addPinPinOrder_adrInfo: Mappable {
city_name
<-
map
[
"city_name"
]
district_name
<-
map
[
"district_name"
]
street_name
<-
map
[
"street_name
"
]
address
<-
map
[
"address
"
]
linkman
<-
map
[
"linkman"
]
shopName
<-
map
[
"shopName"
]
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
b7881fe0
...
...
@@ -81,9 +81,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
"province_name"
:
item
.
province_name
as
Any
,
"city_name"
:
item
.
city_name
as
Any
,
"district_name"
:
item
.
district_name
as
Any
,
"
street_name"
:
item
.
street_name
as
Any
,
"
address"
:
item
.
address
as
Any
,
"linkman"
:
item
.
linkman
as
Any
,
"shopName"
:
item
.
s
treet_n
ame
as
Any
,
"shopName"
:
item
.
s
hopN
ame
as
Any
,
"mobile"
:
item
.
mobile
as
Any
,
"type"
:
item
.
type
as
Any
,
"lng"
:
item
.
lng
as
Any
,
...
...
@@ -2493,7 +2493,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let
model
=
pph_send_arr
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
shopName
cell
.
link_lbl
.
text
=
model
.
linkman
!
+
" "
+
model
.
mobile
!
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
street_name
!
)
"
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
address
!
)
"
cell
.
commend_lbl
.
text
=
"-"
if
model
.
note
?
.
count
!=
0
{
cell
.
commend_lbl
.
text
=
model
.
note
...
...
@@ -2526,7 +2526,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let
model
=
pph_receive_arr
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
shopName
cell
.
link_lbl
.
text
=
model
.
linkman
!
+
" "
+
model
.
mobile
!
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
street_name
!
)
"
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
address
!
)
"
cell
.
commend_lbl
.
text
=
"-"
if
model
.
note
?
.
count
!=
0
{
cell
.
commend_lbl
.
text
=
model
.
note
...
...
GeliBusinessPlatform/ViewController/地图/SJMapCell.swift
View file @
b7881fe0
...
...
@@ -12,6 +12,7 @@ class SJMapCell: UITableViewCell {
var
lat
:
Double
?
var
lng
:
Double
?
var
cityData
=
""
var
address
=
""
@IBOutlet
weak
var
imgView
:
UIImageView
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
...
...
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
View file @
b7881fe0
...
...
@@ -212,12 +212,16 @@ class SJMapViewController: UIViewController,NavBarViewDelegate,AMapLocationManag
// self.navigationController?.popViewController(animated: true)
// }
@objc
func
submitAction
(){
if
adrArr
.
count
==
0
{
return
}
if
idx
!=
nil
{
let
cell
=
listView
?
.
cellForRow
(
at
:
idx
!
)
as!
SJMapCell
if
isPPH
{
delegate
?
.
SJMapViewControllerSelectArd
(
adr
:
cell
.
address
,
cityData
:
cell
.
cityData
,
loc
:
"
\(
cell
.
lat
!
)
-
\(
cell
.
lng
!
)
"
)
}
else
{
delegate
?
.
SJMapViewControllerSelectArd
(
adr
:
cell
.
nameLbl
.
text
!
,
cityData
:
cell
.
cityData
,
loc
:
"
\(
cell
.
lat
!
)
-
\(
cell
.
lng
!
)
"
)
}
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
{
HUD
.
flash
(
.
label
(
"请选择地址"
),
delay
:
1.2
)
...
...
@@ -297,7 +301,14 @@ class SJMapViewController: UIViewController,NavBarViewDelegate,AMapLocationManag
let
poi
=
adrArr
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
poi
.
name
if
isPPH
{
cell
.
cityData
=
poi
.
name
let
b
=
poi
.
province
+
"-"
+
poi
.
city
+
"-"
+
poi
.
district
let
a
=
poi
.
province
+
poi
.
city
+
poi
.
district
+
poi
.
address
cell
.
address
=
a
+
":"
+
b
}
else
{
cell
.
cityData
=
poi
.
province
+
"-"
+
poi
.
city
+
"-"
+
poi
.
district
}
//1.将两个经纬度点转成投影点
let
point1
=
MAMapPointForCoordinate
(
CLLocationCoordinate2D
(
latitude
:
lat
,
longitude
:
lng
))
let
point2
=
MAMapPointForCoordinate
(
CLLocationCoordinate2D
(
latitude
:
CLLocationDegrees
(
poi
.
location
!.
latitude
),
longitude
:
CLLocationDegrees
(
poi
.
location
!.
longitude
)))
...
...
@@ -324,14 +335,13 @@ class SJMapViewController: UIViewController,NavBarViewDelegate,AMapLocationManag
var
cityData
:
String
?
var
adrStr
:
String
?
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
indexPath
.
row
)
if
idx
==
indexPath
{
if
isSearchMode
{
let
cell
=
tableView
.
cellForRow
(
at
:
idx
!
)
as!
SJMapCell
mapView
.
setCenter
(
CLLocationCoordinate2D
(
latitude
:
CLLocationDegrees
(
cell
.
lat
!
),
longitude
:
CLLocationDegrees
(
cell
.
lng
!
)),
animated
:
false
)
adrStr
=
cell
.
nameLbl
.
text
delegate
?
.
SJMapViewControllerSelectArd
(
adr
:
cell
.
nameLbl
.
text
!
,
cityData
:
cell
.
cityData
,
loc
:
"
\(
cell
.
lat
!
)
-
\(
cell
.
lng
!
)
"
)
delegate
?
.
SJMapViewControllerSelectArd
(
adr
:
cell
.
address
,
cityData
:
cell
.
cityData
,
loc
:
"
\(
cell
.
lat
!
)
-
\(
cell
.
lng
!
)
"
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
return
...
...
@@ -342,7 +352,7 @@ class SJMapViewController: UIViewController,NavBarViewDelegate,AMapLocationManag
listView
?
.
reloadData
()
adrStr
=
cell
.
nameLbl
.
text
if
isSearchMode
{
delegate
?
.
SJMapViewControllerSelectArd
(
adr
:
cell
.
nameLbl
.
text
!
,
cityData
:
cell
.
cityData
,
loc
:
"
\(
cell
.
lat
!
)
-
\(
cell
.
lng
!
)
"
)
delegate
?
.
SJMapViewControllerSelectArd
(
adr
:
cell
.
address
,
cityData
:
cell
.
cityData
,
loc
:
"
\(
cell
.
lat
!
)
-
\(
cell
.
lng
!
)
"
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
...
...
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
View file @
b7881fe0
...
...
@@ -35,44 +35,23 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
var
cityIndex
=
0
//选择的区(县)索引
var
areaIndex
=
0
var
adrLast
=
""
func
SJMapViewControllerSelectArd
(
adr
:
String
,
cityData
:
String
,
loc
:
String
)
{
city_lbl
.
text
=
cityData
adrLast
=
adr
.
components
(
separatedBy
:
":"
)
.
last
!
adrTf
.
text
=
adr
.
components
(
separatedBy
:
":"
)
.
first
!
let
ar
=
loc
.
components
(
separatedBy
:
"-"
)
print
(
"pass_loc = "
,
loc
,
cityData
)
self
.
lng
=
(
ar
.
last
!
as
NSString
)
.
doubleValue
self
.
lat
=
(
ar
.
first
!
as
NSString
)
.
doubleValue
let
arr
=
cityData
.
components
(
separatedBy
:
"-"
)
for
i
in
0
..<
addressArray
.
count
{
let
provinceData
=
addressArray
[
i
]
as!
Dictionary
<
String
,
Any
>
if
provinceData
[
"area_name"
]
as!
String
==
arr
.
first
!
{
let
cityArr
=
provinceData
[
"city_list"
]
as!
Array
<
Dictionary
<
String
,
Any
>>
for
j
in
0
..<
cityArr
.
count
{
let
cityData
=
cityArr
[
j
]
if
cityData
[
"area_name"
]
as!
String
==
arr
[
1
]
{
let
areaArr
=
cityData
[
"district_list"
]
as!
Array
<
Dictionary
<
String
,
Any
>>
for
k
in
0
..<
areaArr
.
count
{
let
areaData
=
areaArr
[
k
]
if
areaData
[
"area_name"
]
as!
String
==
arr
.
last
{
provinceIndex
=
i
cityIndex
=
j
areaIndex
=
k
}
}
}
}
}
}
adrTf
.
text
=
adr
checkInfo
()
}
@IBAction
func
submit_action
(
_
sender
:
Any
)
{
let
arr
=
city_lbl
.
text
?
.
components
(
separatedBy
:
"-"
)
if
arr
?
.
count
==
0
{
let
arr
=
adrLast
.
components
(
separatedBy
:
"-"
)
if
arr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请选择地址"
),
delay
:
1.2
)
return
}
...
...
@@ -85,12 +64,12 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
type
=
4
}
let
dict
=
[
"province_name"
:
arr
!
[
0
]
as
Any
,
"city_name"
:
arr
!
[
1
]
as
Any
,
"district_name"
:
arr
!
[
2
]
as
Any
,
"
street_name
"
:
adrTf
.
text
as
Any
,
"province_name"
:
arr
[
0
]
as
Any
,
"city_name"
:
arr
[
1
]
as
Any
,
"district_name"
:
arr
[
2
]
as
Any
,
"
address
"
:
adrTf
.
text
as
Any
,
"linkman"
:
nameTf
.
text
as
Any
,
"shopName"
:
adrTf
.
text
as
Any
,
"shopName"
:
city_lbl
.
text
as
Any
,
"mobile"
:
phoneTf
.
text
as
Any
,
"type"
:
type
as
Any
,
"lat"
:
lat
as
Any
,
...
...
@@ -233,9 +212,9 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
textTV
.
delegate
=
self
if
adrInfo
!=
nil
{
city_lbl
.
text
=
"
\(
adrInfo
!.
province_name
!
)
-
\(
adrInfo
!.
city_name
!
)
-
\(
adrInfo
!.
district_name
!
)
"
city_lbl
.
text
=
adrInfo
?
.
shopName
textTV
.
text
=
adrInfo
?
.
note
adrTf
.
text
=
adrInfo
?
.
street_name
adrTf
.
text
=
adrInfo
?
.
address
nameTf
.
text
=
adrInfo
?
.
linkman
phoneTf
.
text
=
adrInfo
?
.
mobile
lat
=
adrInfo
!.
lat
!
...
...
GeliBusinessPlatform/ViewController/拼拼货group/下单成功/PPH_SUC_VC.swift
View file @
b7881fe0
...
...
@@ -51,7 +51,7 @@ class PPH_SUC_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource {
cell
.
holder_lbl
.
isHidden
=
true
cell
.
name_lbl
.
text
=
model
.
shopName
cell
.
link_lbl
.
text
=
model
.
linkman
!
+
" "
+
model
.
mobile
!
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
street_name
!
)
"
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
address
!
)
"
cell
.
commend_lbl
.
text
=
"-"
if
model
.
note
?
.
count
!=
0
{
cell
.
commend_lbl
.
text
=
model
.
note
...
...
@@ -68,7 +68,7 @@ class PPH_SUC_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource {
cell
.
holder_lbl
.
isHidden
=
true
cell
.
name_lbl
.
text
=
model
.
shopName
cell
.
link_lbl
.
text
=
model
.
linkman
!
+
" "
+
model
.
mobile
!
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
street_name
!
)
"
cell
.
adr_lbl
.
text
=
"
\(
model
.
province_name
!
)\(
model
.
city_name
!
)\(
model
.
district_name
!
)\(
model
.
address
!
)
"
cell
.
commend_lbl
.
text
=
"-"
if
model
.
note
?
.
count
!=
0
{
cell
.
commend_lbl
.
text
=
model
.
note
...
...
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