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
9ce015e2
Commit
9ce015e2
authored
Apr 07, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是大连科技sad;立刻就撒旦法;拉水电费
parent
248d5f38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
51 deletions
+59
-51
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
...inessPlatform/ViewController/地图/SJMapViewController.swift
+8
-3
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
...sinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
+51
-48
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
9ce015e2
No preview for this file type
GeliBusinessPlatform/ViewController/地图/SJMapViewController.swift
View file @
9ce015e2
...
...
@@ -138,9 +138,8 @@ class SJMapViewController: UIViewController,NavBarViewDelegate,AMapLocationManag
func
clearSearchAction
()
{
print
(
"清楚搜索文字"
)
}
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
func
searchBar
(
_
searchBar
:
UISearchBar
,
textDidChange
searchText
:
String
)
{
let
request
=
AMapPOIKeywordsSearchRequest
()
request
.
keywords
=
searchBar
.
text
request
.
requireExtension
=
true
...
...
@@ -148,6 +147,12 @@ class SJMapViewController: UIViewController,NavBarViewDelegate,AMapLocationManag
request
.
requireSubPOIs
=
true
search
.
aMapPOIKeywordsSearch
(
request
)
}
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
}
@objc
func
cancelKeyboard
(){
IQKeyboardManager
.
shared
.
resignFirstResponder
()
}
...
...
GeliBusinessPlatform/ViewController/拼拼货group/P_P_H_Adr_VC.swift
View file @
9ce015e2
...
...
@@ -120,54 +120,57 @@ class P_P_H_Adr_VC: BaseViewController,SJMapViewControllerDelegate, UIPickerView
bgBtn
=
nil
}
@IBAction
func
adr_select_action
(
_
sender
:
UIButton
)
{
if
bgBtn
==
nil
{
let
btn
=
UIButton
()
self
.
view
.
addSubview
(
btn
)
btn
.
backgroundColor
=
UIColor
.
black
btn
.
alpha
=
0.4
btn
.
addTarget
(
self
,
action
:
#selector(
closeAction(sender:)
)
,
for
:
.
touchUpInside
)
btn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
right
.
bottom
.
left
.
equalTo
(
0
)
}
bgBtn
=
btn
}
if
btmView
==
nil
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
white
btmView
=
view
self
.
view
.
addSubview
(
btmView
!
)
btmView
!.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
bottom
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
230
)
}
showAreaSelect
(
view
:
btmView
!
)
let
rightBtn
=
UIButton
()
rightBtn
.
setTitle
(
"确定"
,
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
(
named
:
"蓝色字体颜色"
),
for
:
.
normal
)
rightBtn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
)
rightBtn
.
addTarget
(
self
,
action
:
#selector(
adrSelectFinish(sender:)
)
,
for
:
.
touchUpInside
)
btmView
?
.
addSubview
(
rightBtn
)
rightBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
right
.
equalTo
(
-
15
)
make
.
top
.
equalTo
(
0
)
make
.
height
.
equalTo
(
30
)
make
.
width
.
equalTo
(
50
)
}
let
leftBtn
=
UIButton
()
leftBtn
.
setTitle
(
"取消"
,
for
:
.
normal
)
leftBtn
.
setTitleColor
(
UIColor
(
named
:
"多选按钮字体颜色"
),
for
:
.
normal
)
leftBtn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
)
leftBtn
.
addTarget
(
self
,
action
:
#selector(
closeAction(sender:)
)
,
for
:
.
touchUpInside
)
btmView
?
.
addSubview
(
leftBtn
)
leftBtn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
15
)
make
.
top
.
equalTo
(
0
)
make
.
height
.
equalTo
(
30
)
make
.
width
.
equalTo
(
50
)
}
}
let
vc
=
SJMapViewController
()
vc
.
delegate
=
self
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// if bgBtn == nil {
// let btn = UIButton()
// self.view.addSubview(btn)
// btn.backgroundColor = UIColor.black
// btn.alpha = 0.4
// btn.addTarget(self, action: #selector(closeAction(sender:)), for: .touchUpInside)
// btn.snp.makeConstraints { (make) in
// make.top.right.bottom.left.equalTo(0)
// }
// bgBtn = btn
// }
// if btmView == nil {
// let view = UIView()
// view.backgroundColor = UIColor.white
// btmView = view
// self.view.addSubview(btmView!)
// btmView!.snp.makeConstraints { (make) in
// make.left.bottom.right.equalTo(0)
// make.height.equalTo(230)
// }
// showAreaSelect(view:btmView!)
//
// let rightBtn = UIButton()
// rightBtn.setTitle("确定", for: .normal)
// rightBtn.setTitleColor(UIColor(named: "蓝色字体颜色"), for: .normal)
// rightBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
// rightBtn.addTarget(self, action: #selector(adrSelectFinish(sender:)), for: .touchUpInside)
// btmView?.addSubview(rightBtn)
// rightBtn.snp.makeConstraints { (make) in
// make.right.equalTo(-15)
// make.top.equalTo(0)
// make.height.equalTo(30)
// make.width.equalTo(50)
// }
//
// let leftBtn = UIButton()
// leftBtn.setTitle("取消", for: .normal)
// leftBtn.setTitleColor(UIColor(named: "多选按钮字体颜色"), for: .normal)
// leftBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
// leftBtn.addTarget(self, action: #selector(closeAction(sender:)), for: .touchUpInside)
// btmView?.addSubview(leftBtn)
// leftBtn.snp.makeConstraints { (make) in
// make.left.equalTo(15)
// make.top.equalTo(0)
// make.height.equalTo(30)
// make.width.equalTo(50)
// }
// }
}
@IBOutlet
weak
var
city_lbl
:
UILabel
!
...
...
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