Commit a87f9b3f authored by pete谢兆麟's avatar pete谢兆麟

国家

parent 8e312416
...@@ -14,11 +14,9 @@ class YHSelectCountryViewModel: NSObject { ...@@ -14,11 +14,9 @@ class YHSelectCountryViewModel: NSObject {
} }
func requestCountry(_ key: String, callBackBlock:@escaping (_ success: [YHCountryMessage?]?, _ error:YHErrorModel?)->()) { func requestCountry(_ key: String, callBackBlock:@escaping (_ success: [YHCountryMessage?]?, _ error:YHErrorModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.OrderInformation.countryInformation let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.OrderInformation.countryInformation + "?keyword = \(key)"
// "frontend/country?keyword=\(key)"
let params: [String : Any] = ["keyword": key]
YHNetRequest.getRequest(url: strUrl, params: params) { [weak self] json, code in YHNetRequest.getRequest(url: strUrl) { [weak self] json, code in
//1. json字符串 转 对象 //1. json字符串 转 对象
guard let self = self else { return } guard let self = self else { return }
guard let model = NetBaseModel.deserialize(dict: json) else { guard let model = NetBaseModel.deserialize(dict: json) else {
......
...@@ -155,50 +155,46 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource { ...@@ -155,50 +155,46 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
} }
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let vc = YHMainApplicantInformationViewController()
vc.orderId = 134438
navigationController?.pushViewController(vc)
if (indexPath.row >= items.count) { return }
// if (indexPath.row >= items.count) { return } if !checkLogin() {
// let vc = UINavigationController(rootVC: YHPhoneLoginViewController())
// if !checkLogin() { vc.modalPresentationStyle = .custom
// let vc = UINavigationController(rootVC: YHPhoneLoginViewController()) self.navigationController?.present(vc, animated: true)
// vc.modalPresentationStyle = .custom } else {
// self.navigationController?.present(vc, animated: true) YHHUD.flash(message: "已登录: 功能完善中...")
// } else { }
// YHHUD.flash(message: "已登录: 功能完善中...") return //for test hjl
// }
// return //for test hjl let item: PersonalModuleItem = items[indexPath.row];
//
// let item: PersonalModuleItem = items[indexPath.row]; if item.title == "关于我们" {
// let vc = YHAboutUsViewController()
// if item.title == "关于我们" { self.navigationController?.pushViewController(vc)
// let vc = YHAboutUsViewController()
// self.navigationController?.pushViewController(vc) } else if item.title == "我的设置" {
//
// } else if item.title == "我的设置" { let account = "duyu"
// let token = "123456"
// let account = "duyu" let vc = ConversationController()
// let token = "123456" self.navigationController?.pushViewController(vc)
// let vc = ConversationController()
IMKitClient.instance.loginIM(account, token) { error in
if let err = error {
print("login error in app : ", err.localizedDescription)
}else {
let _ = NEAtMessageManager.instance
}
}
} else {
// let vc = YHLoginViewController()
// self.navigationController?.pushViewController(vc) // self.navigationController?.pushViewController(vc)
// }
// IMKitClient.instance.loginIM(account, token) { error in
// if let err = error {
// print("login error in app : ", err.localizedDescription)
// }else {
// let _ = NEAtMessageManager.instance
//
// }
// }
//
//
//
// } else {
//// let vc = YHLoginViewController()
//// self.navigationController?.pushViewController(vc)
// }
} }
} }
......
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