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
a9090499
Commit
a9090499
authored
Aug 14, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定位检测
parent
817be78d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
18 deletions
+5
-18
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+1
-16
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
+4
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
a9090499
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
a9090499
...
...
@@ -906,23 +906,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var
locationIsOpen
=
false
func
checkLocation
(){
// if ((CLLocationManager.authorizationStatus() == CLAuthorizationStatus.Authorized) || (CLLocationManager.authorizationStatus() == CLAuthorizationStatus.NotDetermined)) && (CLLocationManager .locationServicesEnabled()){
//
// //定位开启了
//
// }else if CLLocationManager.authorizationStatus() == CLAuthorizationStatus.Denied{
//
// //定位没有开启
//
// }
if
CLLocationManager
.
locationServicesEnabled
(){
if
CLLocationManager
.
locationServicesEnabled
()
&&
CLLocationManager
.
authorizationStatus
()
==
.
authorizedAlways
||
CLLocationManager
.
authorizationStatus
()
==
.
authorizedWhenInUse
{
locationIsOpen
=
true
}
else
if
CLLocationManager
.
authorizationStatus
()
==
.
denied
{
let
aleat
=
UIAlertController
(
title
:
"打开定位开关"
,
message
:
"定位服务未开启,请进入系统设置>隐私>定位服务中打开开关,并允许商户端使用定位服务"
,
preferredStyle
:
.
alert
)
let
tempAction
=
UIAlertAction
(
title
:
"取消"
,
style
:
.
cancel
)
{
(
action
)
in
...
...
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
View file @
a9090499
...
...
@@ -187,7 +187,7 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
make
.
height
.
equalTo
(
35
)
}
searchV
=
searchBr
searchBr
.
placeholderStr
=
"请输入运单号
/收货人/发货人/地址
"
searchBr
.
placeholderStr
=
"请输入运单号"
searchBr
.
cornerRadius
=
35
/
2.0
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
...
...
@@ -720,7 +720,9 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
let
rowModel
=
datas
[
indexPath
.
row
]
if
rowModel
.
lc_name
==
"货拉拉"
{
if
rowModel
.
delivery_status
==
1
{
return
257
}
if
rowModel
.
delivery_status
==
4
&&
rowModel
.
pay_status
==
1
{
...
...
@@ -729,7 +731,7 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
}
return
227
}
//京东、顺丰
if
rowModel
.
delivery_status
==
1
{
return
257
}
...
...
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