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
8824f785
Commit
8824f785
authored
Apr 20, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阿斯顿发送到发顺丰达
parent
4b9916af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
27 deletions
+6
-27
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
...sinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
+5
-26
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.xib
...BusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.xib
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
8824f785
No preview for this file type
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
View file @
8824f785
...
...
@@ -27,14 +27,7 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate,UITextViewDel
@IBOutlet
weak
var
adrTf
:
UITextField
!
@IBOutlet
weak
var
nameTf
:
UITextField
!
var
btmView
:
UIView
?
var
bgBtn
:
UIButton
?
//选择的省索引
var
provinceIndex
=
0
//选择的市索引
var
cityIndex
=
0
//选择的区(县)索引
var
areaIndex
=
0
var
adrLast
=
""
func
SJMapViewControllerSelectArd
(
adr
:
String
,
cityData
:
String
,
loc
:
String
)
{
city_lbl
.
text
=
cityData
...
...
@@ -82,6 +75,7 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate,UITextViewDel
delegate
?
.
P_P_H_Adr_VC_Data
(
adrData
:
adrInfo
!
,
isSend
:
isSend
,
idx
:
idx
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
@IBAction
func
map_select_loc
(
_
sender
:
Any
)
{
nameTf
.
resignFirstResponder
()
phoneTf
.
resignFirstResponder
()
...
...
@@ -123,7 +117,6 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate,UITextViewDel
checkInfo
()
}
@IBOutlet
weak
var
adrTv
:
UITextView
!
@IBOutlet
weak
var
clearBtn
:
UIButton
!
@IBAction
func
clearAction
(
_
sender
:
Any
)
{
...
...
@@ -131,22 +124,13 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate,UITextViewDel
getInsets
()
phoneTf
.
text
=
""
nameTf
.
text
=
""
city_lbl
.
text
=
"请选择
城市
"
city_lbl
.
text
=
"请选择
定位
"
lat
=
0
lng
=
0
textTV
.
text
=
""
checkInfo
()
}
@objc
func
closeAction
(
sender
:
UIButton
){
bgBtn
?
.
removeFromSuperview
()
btmView
?
.
subviews
.
forEach
({
(
view
)
in
view
.
removeFromSuperview
()
})
btmView
?
.
removeFromSuperview
()
btmView
=
nil
bgBtn
=
nil
}
@IBOutlet
weak
var
holder_lbl
:
UILabel
!
func
checkInfo
(){
if
adrTv
.
text
?
.
count
!=
0
&&
phoneTf
.
text
?
.
count
!=
0
&&
nameTf
.
text
?
.
count
!=
0
&&
city_lbl
.
text
!=
"请选择城市"
{
...
...
@@ -200,15 +184,10 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate,UITextViewDel
}
}
checkInfo
()
}
@IBOutlet
weak
var
adrCenterY
:
NSLayoutConstraint
!
func
textSize
(
text
:
String
,
font
:
UIFont
,
maxSize
:
CGSize
)
->
CGSize
{
return
text
.
boundingRect
(
with
:
maxSize
,
options
:
[
.
usesLineFragmentOrigin
],
attributes
:
[
NSAttributedString
.
Key
.
font
:
font
],
context
:
nil
)
.
size
}
...
...
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.xib
View file @
8824f785
...
...
@@ -197,7 +197,7 @@
<color
key=
"textColor"
name=
"#999999"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请选择
城市
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qSB-h2-bQB"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请选择
定位
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qSB-h2-bQB"
>
<rect
key=
"frame"
x=
"49"
y=
"0.0"
width=
"265"
height=
"49"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"#999999"
/>
...
...
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