Commit a9090499 authored by lujunye's avatar lujunye

定位检测

parent 817be78d
......@@ -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
......
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment