Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
a87f9b3f
Commit
a87f9b3f
authored
Feb 27, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国家
parent
8e312416
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
45 deletions
+39
-45
YHSelectCountryViewModel.swift
...cantInformation(主申请人信息)/VM/YHSelectCountryViewModel.swift
+2
-4
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+37
-41
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/MainApplicantInformation(主申请人信息)/VM/YHSelectCountryViewModel.swift
View file @
a87f9b3f
...
@@ -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
{
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
a87f9b3f
...
@@ -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)
// }
}
}
}
}
...
...
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