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
4d6d956b
Commit
4d6d956b
authored
Jun 05, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作经验接口字段调整
parent
6bdecb3c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
90 deletions
+43
-90
YHConfigManager.swift
...y/galaxy/Classes/Modules/Home(首页)/C/YHConfigManager.swift
+1
-1
YHWorkExperienceViewController.swift
...rkExperience(工作经验)/C/YHWorkExperienceViewController.swift
+38
-84
YHWorkExperienceDetailModel.swift
...kExperience(工作经验)/Model/YHWorkExperienceDetailModel.swift
+1
-0
YHWorkExperienceViewModel.swift
...xperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
+2
-1
Info.plist
galaxy/galaxy/Res/Info.plist
+1
-4
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHConfigManager.swift
View file @
4d6d956b
...
...
@@ -50,7 +50,7 @@ class YHConfigManager: NSObject {
//测试环境-OSS
static
let
baseOSSUrlTest
:
String
=
"https://test-comserver.galaxy-immi.com"
//正式环境-OSS
static
let
baseOSSUrlRelease
:
String
=
"http://comserver.galaxy-immi.com"
static
let
baseOSSUrlRelease
:
String
=
"http
s
://comserver.galaxy-immi.com"
//OSS
var
ossUrl
:
String
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHWorkExperienceViewController.swift
View file @
4d6d956b
...
...
@@ -233,14 +233,10 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
return
1
}
if
stepView
.
currentIndex
==
3
{
if
self
.
viewModel
.
mainModel
.
is_project_introduction
==
1
{
return
1
}
else
{
return
2
}
return
1
}
if
stepView
.
currentIndex
==
4
{
return
2
return
1
}
return
baseDataSource
?
.
count
??
0
}
...
...
@@ -364,68 +360,9 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
return
cell
}
else
{
if
indexPath
.
row
==
0
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkMessageSelectTableViewCell
.
self
)
cell
.
dataSource
=
viewModel
.
mainModel
.
not_need_upload_file
cell
.
isNeedFileBlock
=
{
[
weak
self
]
value
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
updateNotNeedUploadFile
(
value
:
value
)
self
.
tableView
.
reloadData
()
}
cell
.
isHidden
=
!
self
.
isShowMessageSelect
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkFileSyncTableViewCell
.
self
)
cell
.
dataSource
=
fileDataSource
cell
.
isHidden
=
viewModel
.
mainModel
.
not_need_upload_file
==
1
&&
isShowMessageSelect
cell
.
addIntroductionBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
YHImagePickerView
.
show
()
{[
weak
self
]
image
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
show
(
.
progress
(
message
:
""
))
self
.
viewModel
.
uploadImage
(
image
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
url
=
success
else
{
return
}
let
timestamp
=
Date
()
.
timeIntervalSince1970
let
model
=
YHWorkExperienceFileModel
()
model
.
fileUrl
=
success
??
""
model
.
fileName
=
"
\(
UInt64
(
timestamp
)
)
"
+
".jpg"
self
.
fileDataSource
?
.
append
(
model
)
self
.
viewModel
.
mainModel
.
file
=
self
.
fileDataSource
??
[]
self
.
tableView
.
reloadData
()
YHHUD
.
hide
()
}
}
}
cell
.
experienceListBlock
=
{[
weak
self
]
model
,
type
in
guard
let
self
=
self
else
{
return
}
if
type
==
.
delete
{
self
.
showDeleteAlert
(
model
)
}
else
{
let
vc
=
YHImageViewController
()
vc
.
imgString
=
model
.
fileUrl
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
return
cell
}
}
}
else
if
stepView
.
currentIndex
==
4
{
if
indexPath
.
row
==
0
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkMessageSelectTableViewCell
.
self
)
cell
.
dataSource
=
viewModel
.
mainModel
.
not_need_upload_file
cell
.
isNeedFileBlock
=
{
[
weak
self
]
value
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
updateNotNeedUploadFile
(
value
:
value
)
self
.
tableView
.
reloadData
()
}
cell
.
isHidden
=
!
self
.
isShowMessageSelect
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkFileSyncTableViewCell
.
self
)
cell
.
dataSource
=
fileDataSource
cell
.
isHidden
=
viewModel
.
mainModel
.
not_need_upload_file
==
1
&&
isShowMessageSelect
cell
.
addIntroductionBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
YHImagePickerView
.
show
()
{[
weak
self
]
image
in
...
...
@@ -457,6 +394,39 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}
return
cell
}
}
else
if
stepView
.
currentIndex
==
4
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkFileSyncTableViewCell
.
self
)
cell
.
dataSource
=
fileDataSource
cell
.
addIntroductionBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
YHImagePickerView
.
show
()
{[
weak
self
]
image
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
show
(
.
progress
(
message
:
""
))
self
.
viewModel
.
uploadImage
(
image
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
url
=
success
else
{
return
}
let
timestamp
=
Date
()
.
timeIntervalSince1970
let
model
=
YHWorkExperienceFileModel
()
model
.
fileUrl
=
success
??
""
model
.
fileName
=
"
\(
UInt64
(
timestamp
)
)
"
+
".jpg"
self
.
fileDataSource
?
.
append
(
model
)
self
.
viewModel
.
mainModel
.
file
=
self
.
fileDataSource
??
[]
self
.
tableView
.
reloadData
()
YHHUD
.
hide
()
}
}
}
cell
.
experienceListBlock
=
{[
weak
self
]
model
,
type
in
guard
let
self
=
self
else
{
return
}
if
type
==
.
delete
{
self
.
showDeleteAlert
(
model
)
}
else
{
let
vc
=
YHImageViewController
()
vc
.
imgString
=
model
.
fileUrl
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHWorkExperienceTableViewCell
.
self
)
cell
.
country
=
self
.
viewModel
.
mainModel
.
location
.
country
...
...
@@ -485,29 +455,13 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
if
self
.
viewModel
.
mainModel
.
is_project_introduction
==
1
{
let
number
=
introductionDataSource
?
.
count
??
0
return
CGFloat
(
76
*
number
+
150
)
}
else
{
if
indexPath
.
row
==
0
{
if
self
.
isShowMessageSelect
{
return
166
}
else
{
return
0
}
}
else
{
let
count
=
fileDataSource
?
.
count
??
0
return
CGFloat
(
52
*
count
+
145
)
}
}
}
else
if
stepView
.
currentIndex
==
4
{
if
indexPath
.
row
==
0
{
if
self
.
isShowMessageSelect
{
return
166
}
else
{
return
0
}
}
else
{
let
count
=
fileDataSource
?
.
count
??
0
return
CGFloat
(
52
*
count
+
145
)
}
}
else
if
stepView
.
currentIndex
==
4
{
let
count
=
fileDataSource
?
.
count
??
0
return
CGFloat
(
52
*
count
+
145
)
}
else
{
let
array
=
baseDataSource
?[
indexPath
.
row
]
.
models
??
[]
var
h
=
0
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/Model/YHWorkExperienceDetailModel.swift
View file @
4d6d956b
...
...
@@ -63,4 +63,5 @@ class YHWorkExperienceDetailModel: YHBaseModel {
class
YHWorkExperienceFileModel
:
YHBaseModel
{
var
fileName
:
String
=
""
var
fileUrl
:
String
=
""
var
uploadedAt
:
String
=
""
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/ViewModel/YHWorkExperienceViewModel.swift
View file @
4d6d956b
...
...
@@ -269,7 +269,8 @@ class YHWorkExperienceViewModel: YHBaseViewModel {
var
file
:
[[
String
:
Any
]]
=
[]
for
item
in
mainModel
.
file
{
let
fileDic
=
[
"fileName"
:
item
.
fileName
,
"fileUrl"
:
item
.
fileUrl
]
"fileUrl"
:
item
.
fileUrl
,
"uploadedAt"
:
item
.
uploadedAt
]
file
.
append
(
fileDic
)
}
let
params
:
[
String
:
Any
]
=
[
"administrative_level"
:
mainModel
.
administrative_level
,
...
...
galaxy/galaxy/Res/Info.plist
View file @
4d6d956b
...
...
@@ -77,10 +77,7 @@
<
string
>
weixinURLParamsAPI
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
NSAllowsArbitraryLoads
<
/k
e
y
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
d
i
c
t/
>
<
k
e
y
>
UIAppFonts
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
DIN
Alternate
Bold
<
/string
>
...
...
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