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
7998d979
Commit
7998d979
authored
Apr 13, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jasd;lkjasdf;ljsad jladjfpo34u859
parent
7a5a11ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
20 deletions
+28
-20
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+4
-1
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
...sinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
+22
-17
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.xib
...BusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.xib
+2
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7998d979
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
7998d979
...
...
@@ -1729,7 +1729,10 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
vc
.
delegate
=
self
vc
.
idx
=
indexPath
.
row
if
pph_send_arr
.
count
!=
0
{
vc
.
adrInfo
=
pph_send_arr
[
indexPath
.
row
]
let
model
=
pph_send_arr
[
indexPath
.
row
]
print
(
model
.
province_name
)
vc
.
adrInfo
=
model
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
View file @
7998d979
...
...
@@ -20,16 +20,7 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
var
delegate
:
P_P_H_Adr_VC_Delegate
?
var
lat
:
Double
=
0
var
lng
:
Double
=
0
var
adrInfo
:
addPinPinOrder_adrInfo
?{
didSet
{
loc
=
"
\(
adrInfo
?
.
lat
!
)
-
\(
adrInfo
?
.
lng
!
)
"
city_lbl
.
text
=
"
\(
adrInfo
?
.
province_name
!
)
-
\(
adrInfo
?
.
city_name
!
)
-
\(
adrInfo
?
.
district_name
!
)
"
adrTf
.
text
=
adrInfo
?
.
street_name
!
textTV
.
text
=
adrInfo
?
.
note
!
nameTf
.
text
=
adrInfo
?
.
linkman
!
phoneTf
.
text
=
adrInfo
?
.
mobile
!
}
}
var
adrInfo
:
addPinPinOrder_adrInfo
?
@IBOutlet
weak
var
count_lbl
:
UILabel
!
@IBOutlet
weak
var
textTV
:
UITextView
!
@IBOutlet
weak
var
phoneTf
:
UITextField
!
...
...
@@ -44,13 +35,12 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
var
cityIndex
=
0
//选择的区(县)索引
var
areaIndex
=
0
var
loc
=
""
func
SJMapViewControllerSelectArd
(
adr
:
String
,
cityData
:
String
,
loc
:
String
)
{
city_lbl
.
text
=
cityData
let
ar
=
loc
.
components
(
separatedBy
:
"-"
)
self
.
lng
=
(
ar
.
last
as!
NSString
)
.
doubleValue
self
.
lat
=
(
ar
.
first
as!
NSString
)
.
doubleValue
self
.
loc
=
loc
let
arr
=
cityData
.
components
(
separatedBy
:
"-"
)
for
i
in
0
..<
addressArray
.
count
{
let
provinceData
=
addressArray
[
i
]
as!
Dictionary
<
String
,
Any
>
...
...
@@ -80,7 +70,6 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
@IBAction
func
submit_action
(
_
sender
:
Any
)
{
let
arr
=
city_lbl
.
text
?
.
components
(
separatedBy
:
"-"
)
let
arr2
=
loc
.
components
(
separatedBy
:
"-"
)
if
arr
?
.
count
==
0
{
return
}
...
...
@@ -97,8 +86,8 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
"shopName"
:
adrTf
.
text
as
Any
,
"mobile"
:
phoneTf
.
text
as
Any
,
"type"
:
type
as
Any
,
"lat"
:
arr2
[
0
]
as
Any
,
"lng"
:
arr2
[
1
]
as
Any
,
"lat"
:
lat
as
Any
,
"lng"
:
lng
as
Any
,
"note"
:
textTV
.
text
as
Any
]
adrInfo
=
addPinPinOrder_adrInfo
(
JSON
:
dict
)
...
...
@@ -153,7 +142,6 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
btmView
?
.
removeFromSuperview
()
btmView
=
nil
bgBtn
=
nil
city_lbl
.
text
=
selectAdr
}
...
...
@@ -179,7 +167,8 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
phoneTf
.
text
=
""
nameTf
.
text
=
""
city_lbl
.
text
=
"请选择城市"
loc
=
""
lat
=
0
lng
=
0
textTV
.
text
=
""
checkInfo
()
}
...
...
@@ -217,6 +206,7 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"信息填写"
self
.
view
.
addSubview
(
navbar
)
nameTf
.
addTarget
(
self
,
action
:
#selector(
textChangeTf(tf:)
)
,
for
:
.
allEditingEvents
)
...
...
@@ -233,7 +223,22 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
getIndex
()
textTV
.
delegate
=
self
if
adrInfo
!=
nil
{
city_lbl
.
text
=
"
\(
adrInfo
!.
province_name
!
)
-
\(
adrInfo
!.
city_name
!
)
-
\(
adrInfo
!.
district_name
!
)
"
textTV
.
text
=
adrInfo
?
.
note
adrTf
.
text
=
adrInfo
?
.
street_name
nameTf
.
text
=
adrInfo
?
.
linkman
phoneTf
.
text
=
adrInfo
?
.
mobile
lat
=
adrInfo
!.
lat
!
lng
=
adrInfo
!.
lng
!
if
textTV
.
text
.
count
!=
0
{
holder_lbl
.
isHidden
=
true
}
}
checkInfo
()
}
...
...
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.xib
View file @
7998d979
...
...
@@ -337,7 +337,7 @@
<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=
"sp6-3a-dQq"
>
<rect
key=
"frame"
x=
"10"
y=
"1
0
"
width=
"65"
height=
"19"
/>
<rect
key=
"frame"
x=
"10"
y=
"1
2
"
width=
"65"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"9A9A9A"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -350,7 +350,7 @@
<constraint
firstAttribute=
"bottom"
secondItem=
"SOk-O6-8QU"
secondAttribute=
"bottom"
constant=
"5"
id=
"Iin-MT-R3m"
/>
<constraint
firstItem=
"SOk-O6-8QU"
firstAttribute=
"top"
secondItem=
"L26-Wm-cnn"
secondAttribute=
"top"
constant=
"5"
id=
"JJF-RO-7ia"
/>
<constraint
firstItem=
"sp6-3a-dQq"
firstAttribute=
"leading"
secondItem=
"L26-Wm-cnn"
secondAttribute=
"leading"
constant=
"10"
id=
"UFO-g8-D41"
/>
<constraint
firstItem=
"sp6-3a-dQq"
firstAttribute=
"top"
secondItem=
"L26-Wm-cnn"
secondAttribute=
"top"
constant=
"1
0
"
id=
"bKQ-WH-PY3"
/>
<constraint
firstItem=
"sp6-3a-dQq"
firstAttribute=
"top"
secondItem=
"L26-Wm-cnn"
secondAttribute=
"top"
constant=
"1
2
"
id=
"bKQ-WH-PY3"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Vv5-0g-G5Q"
secondAttribute=
"bottom"
constant=
"10"
id=
"nrz-b5-f8X"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Vv5-0g-G5Q"
secondAttribute=
"trailing"
constant=
"15"
id=
"ryz-b0-dep"
/>
</constraints>
...
...
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