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
c54f30bc
Commit
c54f30bc
authored
Mar 22, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的方案 的接口联调
parent
beb256d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
YHMineSchemeViewController.swift
...e(服务中心)/MyScheme(我的方案)/C/YHMineSchemeViewController.swift
+12
-1
YHMySchemeModel.swift
...tService(服务中心)/MyScheme(我的方案)/Model/YHMySchemeModel.swift
+1
-0
YHSchemeTableHeadView.swift
...ice(服务中心)/MyScheme(我的方案)/View/YHSchemeTableHeadView.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyScheme(我的方案)/C/YHMineSchemeViewController.swift
View file @
c54f30bc
...
@@ -113,7 +113,18 @@ extension YHMineSchemeViewController {
...
@@ -113,7 +113,18 @@ extension YHMineSchemeViewController {
let
param
=
[
"order_id"
:
orderID
]
let
param
=
[
"order_id"
:
orderID
]
reqSchemeVM
.
getMySchemeData
(
params
:
param
)
{
success
,
error
in
reqSchemeVM
.
getMySchemeData
(
params
:
param
)
{
success
,
error
in
if
success
==
true
{
if
success
==
true
{
self
.
headView
.
dataSource
=
YHScemeHeadModel
(
totalScore
:
"100"
,
scoreArray
:
[
"年龄30分"
,
"学历30分"
,
"工作经验加分15分"
,
"语言加分15分"
,
"家庭背景加分10分"
],
scoreLightArray
:
[
"30"
,
"30"
,
"15"
,
"15"
,
"10"
],
addScore
:
""
,
name
:
"黄金龙"
)
guard
let
model
=
self
.
reqSchemeVM
.
schemeModel
else
{
return
}
let
ageTxt
=
"年龄"
+
model
.
age_score
.
string
+
"分"
let
eduTxtA
=
"学历"
+
model
.
education_score_a
.
string
+
"分"
let
workExp
=
"工作经验加分"
+
model
.
work_experience_score
.
string
+
"分"
let
language
=
"语言加分"
+
model
.
language_score
.
string
+
"分"
let
family
=
"家庭背景加分"
+
model
.
background_score
.
string
+
"分"
var
arrText
:
[
String
]
=
[
ageTxt
,
eduTxtA
,
workExp
,
language
,
family
]
var
arrH
:
[
String
]
=
[
model
.
age_score
.
string
,
model
.
education_score_a
.
string
,
model
.
work_experience_score
.
string
,
model
.
language_score
.
string
,
model
.
background_score
.
string
]
self
.
headView
.
dataSource
=
YHScemeHeadModel
(
totalScore
:
model
.
sum_score
.
string
,
scoreArray
:
arrText
,
scoreLightArray
:
arrH
,
addScore
:
""
,
name
:
model
.
username
.
defaultStringIfEmpty
())
}
else
{
}
else
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyScheme(我的方案)/Model/YHMySchemeModel.swift
View file @
c54f30bc
...
@@ -18,6 +18,7 @@ class YHMySchemeModel: SmartCodable {
...
@@ -18,6 +18,7 @@ class YHMySchemeModel: SmartCodable {
var
industry
:
String
=
""
var
industry
:
String
=
""
var
language_score
:
Int
=
0
var
language_score
:
Int
=
0
var
sum_score
:
Int
=
0
var
sum_score
:
Int
=
0
var
talent_list
:
Int
=
0
var
username
:
String
=
""
var
username
:
String
=
""
var
work_experience_score
:
Int
=
0
var
work_experience_score
:
Int
=
0
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyScheme(我的方案)/View/YHSchemeTableHeadView.swift
View file @
c54f30bc
...
@@ -214,7 +214,7 @@ class YHSchemeTableHeadView: UIView {
...
@@ -214,7 +214,7 @@ class YHSchemeTableHeadView: UIView {
func
updateAllViews
()
{
func
updateAllViews
()
{
guard
let
model
=
dataSource
else
{
return
}
guard
let
model
=
dataSource
else
{
return
}
nameLabel
.
text
=
"尊敬的"
+
model
.
name
+
"先生"
nameLabel
.
text
=
"尊敬的"
+
model
.
name
scoreTotalView
.
setScore
(
model
.
totalScore
)
scoreTotalView
.
setScore
(
model
.
totalScore
)
scoreItemView
.
removeSubviews
()
scoreItemView
.
removeSubviews
()
for
i
in
0
..<
model
.
scoreArray
.
count
{
for
i
in
0
..<
model
.
scoreArray
.
count
{
...
...
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