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
43b8edb2
Commit
43b8edb2
authored
Jul 28, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整地图显示
parent
4ecc9c91
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
17 deletions
+19
-17
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/寄派方式/JiPaiFangShiViewController.xib
...atform/ViewController/寄派方式/JiPaiFangShiViewController.xib
+1
-1
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
...wController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
+18
-16
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
43b8edb2
No preview for this file type
GeliBusinessPlatform/ViewController/寄派方式/JiPaiFangShiViewController.xib
View file @
43b8edb2
<?xml version="1.0" encoding="UTF-8"?>
<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"
>
<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"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
View file @
43b8edb2
...
...
@@ -115,34 +115,35 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
titleLbl
=
UILabel
()
titleLbl
?
.
textColor
=
UIColor
.
black
titleLbl
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
titleLbl
?
.
numberOfLines
=
0
introView
?
.
addSubview
(
titleLbl
!
)
contentLbl
=
UILabel
()
contentLbl
?
.
textColor
=
UIColor
.
lightGray
contentLbl
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
11
)
contentLbl
?
.
numberOfLines
=
0
contentLbl
?
.
lineBreakMode
=
.
byCharWrapping
introView
?
.
addSubview
(
contentLbl
!
)
}
titleLbl
!.
text
=
response
.
pois
.
first
?
.
name
// contentLbl!.text = "contentLbl?.textColor = UIColor.lightGraycontentLbl?.font = UIFont.systemFont(ofSize: 11)contentLbl?.numberOfLines = 0introView?.addSubview(contentLbl!)"
contentLbl
!.
text
=
"
\(
String
(
describing
:
response
.
pois
.
first
!.
province
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
city
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
district
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
address
!
)
)
"
let
t
=
getStrHeight
(
str
:
titleLbl
!.
text
!
,
fontSize
:
13
)
let
c
=
getStrHeight
(
str
:
contentLbl
!.
text
!
,
fontSize
:
11
)
let
h
=
t
+
c
titleLbl
?
.
snp_updateConstraints
({
(
make
)
in
make
.
top
.
equalTo
(
7
)
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
height
.
equalTo
(
18.5
)
make
.
height
.
equalTo
(
t
)
})
contentLbl
?
.
sizeToFit
()
contentLbl
?
.
snp_updateConstraints
({
(
make
)
in
make
.
top
.
equalTo
(
20
)
make
.
top
.
equalTo
(
titleLbl
!.
snp
.
bottom
)
.
offset
(
5
)
make
.
left
.
equalTo
(
10
)
make
.
right
.
equalTo
(
-
10
)
make
.
bottom
.
equalTo
(
7
)
make
.
height
.
equalTo
(
c
)
})
let
lbl
=
UILabel
()
...
...
@@ -155,28 +156,29 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
lbl2
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
lbl2
.
sizeToFit
()
var
w
=
lbl
.
bounds
.
size
.
width
if
w
<
lbl2
.
bounds
.
size
.
width
{
w
=
lbl2
.
bounds
.
size
.
width
var
w
=
lbl
.
bounds
.
size
.
width
+
20
if
w
<
lbl2
.
bounds
.
size
.
width
+
20
{
w
=
lbl2
.
bounds
.
size
.
width
+
20
}
if
w
>
fullScreenWidth
*
0.75
{
w
=
fullScreenWidth
*
0.75
+
20
}
introView
?
.
snp_updateConstraints
({
(
make
)
in
make
.
centerX
.
equalTo
(
MapBgView
.
snp_centerX
)
make
.
centerY
.
equalTo
(
MapBgView
.
snp_centerY
)
.
offset
(
-
(
t
+
c
+
3
5
))
make
.
centerY
.
equalTo
(
MapBgView
.
snp_centerY
)
.
offset
(
-
(
h
+
4
5
))
make
.
width
.
equalTo
(
w
)
make
.
height
.
equalTo
(
t
+
c
+
20
)
make
.
height
.
equalTo
(
h
+
20
)
})
}
func
getStrHeight
(
str
:
String
,
fontSize
:
CGFloat
)
->
CGFloat
{
let
lbl
=
UILabel
()
lbl
.
text
=
str
lbl
.
font
=
UIFont
.
systemFont
(
ofSize
:
fontSize
)
lbl
.
font
=
UIFont
.
systemFont
(
ofSize
:
fontSize
+
2
)
lbl
.
sizeToFit
()
var
w
=
lbl
.
bounds
.
size
.
width
if
w
>
fullScreenWidth
*
0.75
{
...
...
@@ -185,7 +187,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
let
viewSize
=
CGSize
(
width
:
w
,
height
:
CGFloat
(
MAXFLOAT
))
let
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
let
font
=
UIFont
.
systemFont
(
ofSize
:
fontSize
+
2
)
return
(
str
as
NSString
)
.
boundingRect
(
with
:
viewSize
,
options
:
[
.
usesLineFragmentOrigin
],
attributes
:
[
NSAttributedString
.
Key
.
font
:
font
],
context
:
nil
)
.
height
}
//移动后刷新
...
...
@@ -195,7 +197,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
req
.
location
=
AMapGeoPoint
.
location
(
withLatitude
:
CGFloat
(
mapView
.
centerCoordinate
.
latitude
),
longitude
:
CGFloat
(
mapView
.
centerCoordinate
.
longitude
))
req
.
requireExtension
=
true
search
.
aMapPOIAroundSearch
(
req
)
print
(
mapView
.
centerCoordinate
.
latitude
,
mapView
.
centerCoordinate
.
longitude
,
bd_encrypt
(
gg_lat
:
mapView
.
centerCoordinate
.
latitude
,
gg_lon
:
mapView
.
centerCoordinate
.
longitude
))
}
var
annotation
:
MAPointAnnotation
?
=
nil
...
...
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