|
@@ -55,6 +55,10 @@ class PublishEditController: BaseViewController {
|
|
var pubContent: String = ""
|
|
var pubContent: String = ""
|
|
// 位置
|
|
// 位置
|
|
var locationStr: String = ""
|
|
var locationStr: String = ""
|
|
|
|
+ // 纬度
|
|
|
|
+ var latitude: String = ""
|
|
|
|
+ // 经度
|
|
|
|
+ var longitude: String = ""
|
|
|
|
|
|
// MARK: 控制器生命周期
|
|
// MARK: 控制器生命周期
|
|
override func viewDidLoad() {
|
|
override func viewDidLoad() {
|
|
@@ -234,8 +238,10 @@ extension PublishEditController : UITableViewDelegate, UITableViewDataSource {
|
|
case 4:
|
|
case 4:
|
|
let vc = PublishAddAddressController()
|
|
let vc = PublishAddAddressController()
|
|
vc.selectLocationClosure = {
|
|
vc.selectLocationClosure = {
|
|
- [weak self] (address) in
|
|
|
|
|
|
+ [weak self] (address,latitude,longitude) in
|
|
self?.locationStr = address
|
|
self?.locationStr = address
|
|
|
|
+ self?.latitude = latitude ?? ""
|
|
|
|
+ self?.longitude = longitude ?? ""
|
|
self?.tableView.reloadRows(at: [indexPath], with: UITableView.RowAnimation.none)
|
|
self?.tableView.reloadRows(at: [indexPath], with: UITableView.RowAnimation.none)
|
|
}
|
|
}
|
|
self.navigationController?.pushViewController(vc, animated: true)
|
|
self.navigationController?.pushViewController(vc, animated: true)
|
|
@@ -298,6 +304,8 @@ extension PublishEditController {
|
|
aliyunVodUpToYoPublishModel.title = self.pubTitle
|
|
aliyunVodUpToYoPublishModel.title = self.pubTitle
|
|
aliyunVodUpToYoPublishModel.content = self.pubContent
|
|
aliyunVodUpToYoPublishModel.content = self.pubContent
|
|
aliyunVodUpToYoPublishModel.locationString = self.locationStr
|
|
aliyunVodUpToYoPublishModel.locationString = self.locationStr
|
|
|
|
+ aliyunVodUpToYoPublishModel.latitude = self.latitude
|
|
|
|
+ aliyunVodUpToYoPublishModel.longitude = self.longitude
|
|
|
|
|
|
if self.mediaType == .video {
|
|
if self.mediaType == .video {
|
|
aliyunVodUpToYoPublishModel.publishType = .video
|
|
aliyunVodUpToYoPublishModel.publishType = .video
|
|
@@ -313,8 +321,6 @@ extension PublishEditController {
|
|
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "DismissFromPublishEditVc"), object: aliyunVodUpToYoPublishModel)
|
|
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "DismissFromPublishEditVc"), object: aliyunVodUpToYoPublishModel)
|
|
BaseTabbarViewController.shared.esTabBarController.selectedIndex = 0
|
|
BaseTabbarViewController.shared.esTabBarController.selectedIndex = 0
|
|
}
|
|
}
|
|
-// self.dismissToWindowRootViewController(animated: false) {}
|
|
|
|
-
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|