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
dcce4c43
Commit
dcce4c43
authored
Nov 22, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 提交弹窗
parent
b111b8fc
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
258 deletions
+36
-258
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-8
YHInformationPerfectListVC.swift
...telligentService(服务中心)/C/YHInformationPerfectListVC.swift
+11
-11
YHSubmintAllInfoSuccessTipView.swift
...igentService(服务中心)/V/YHSubmintAllInfoSuccessTipView.swift
+0
-218
YHSubmitAllInfoSuccessAlertView.swift
...gentService(服务中心)/V/YHSubmitAllInfoSuccessAlertView.swift
+21
-21
submit_page_scroll.gif
galaxy/galaxy/Res/gif/submit_page_scroll.gif
+0
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
dcce4c43
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHInformationPerfectListVC.swift
View file @
dcce4c43
...
@@ -263,17 +263,17 @@ extension YHInformationPerfectListVC {
...
@@ -263,17 +263,17 @@ extension YHInformationPerfectListVC {
serviceCenterMainReqVM
.
submitAllInfoOp
(
params
:
[
"orderId"
:
orderId
])
{
[
weak
self
]
success
,
error
in
serviceCenterMainReqVM
.
submitAllInfoOp
(
params
:
[
"orderId"
:
orderId
])
{
[
weak
self
]
success
,
error
in
YHHUD
.
hide
()
YHHUD
.
hide
()
if
success
==
true
{
if
success
==
true
{
//
let model = self?.serviceCenterMainReqVM.allInfoScoreModel
let
model
=
self
?
.
serviceCenterMainReqVM
.
allInfoScoreModel
//
YHSubmitAllInfoSuccessAlertView.showCheckView(model: model) { agree in
YHSubmitAllInfoSuccessAlertView
.
showCheckView
(
model
:
model
)
{
agree
in
//
//
//1、刷新当前界面
//1、刷新当前界面
//
self?.loadData()
self
?
.
loadData
()
//
//
//2、跳转其他界面
//2、跳转其他界面
//
if agree == true {
if
agree
==
true
{
//
self?.goScoreVC()
self
?
.
goScoreVC
()
//
}
}
//
}
}
//1、刷新当前界面
//1、刷新当前界面
self
?
.
loadData
()
self
?
.
loadData
()
}
else
{
}
else
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHSubmintAllInfoSuccessTipView.swift
deleted
100644 → 0
View file @
b111b8fc
//
// YHSubmintAllInfoSuccessTipView.swift
// galaxy
//
// Created by davidhuangA on 2024/1/26.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHSubmintAllInfoSuccessTipView
:
UIView
{
typealias
Block
=
(
Bool
)
->
()
var
block
:
Block
?
var
centerView
:
UIView
!
var
titleLabel
:
UILabel
!
var
messageLabel
:
UILabel
!
var
agreeButton
:
UIButton
!
var
disAgressButton
:
UIButton
!
var
model
:
YHContactInfoScoreModel
?
{
didSet
{
guard
let
model
=
model
else
{
return
}
let
a
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
model
.
sum_score
),
.
font
(
UIFont
(
name
:
"DINAlternate-Bold"
,
size
:
43
)
??
UIFont
.
PFSC_M
(
ofSize
:
43
)),
.
foreground
(
UIColor
.
warnColor
))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
labelTextColor2
))
messageLabel
.
attributed
.
text
=
a
+
b
}
}
//头部背景图片
lazy
var
headBkgImagV
:
UIImageView
=
{
let
imagV
=
UIImageView
()
imagV
.
image
=
UIImage
(
named
:
"submit_success_bkg"
)
imagV
.
contentMode
=
.
scaleAspectFill
imagV
.
clipsToBounds
=
true
return
imagV
}()
//头部背景图片
lazy
var
successIcon
:
UIImageView
=
{
let
imagV
=
UIImageView
()
imagV
.
image
=
UIImage
(
named
:
"submit_success_icon"
)
imagV
.
contentMode
=
.
scaleAspectFill
return
imagV
}()
static
func
showCheckView
(
model
:
YHContactInfoScoreModel
?,
callBack
:
@escaping
Block
)
{
let
view
=
YHSubmintAllInfoSuccessTipView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
block
=
callBack
view
.
model
=
model
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
backgroundColor
=
UIColor
(
white
:
0.5
,
alpha
:
0.1
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
handleTap
)
)
tap
.
delegate
=
self
addGestureRecognizer
(
tap
)
setView
()
}
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setView
()
{
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
centerView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius8
return
view
}()
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
center
.
equalToSuperview
()
make
.
width
.
equalTo
(
299
)
make
.
height
.
equalTo
(
338
)
}
centerView
.
addSubview
(
headBkgImagV
)
headBkgImagV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
159
)
}
centerView
.
addSubview
(
successIcon
)
successIcon
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
39
)
make
.
centerX
.
equalToSuperview
()
make
.
height
.
width
.
equalTo
(
73
)
}
let
lable
=
UILabel
(
text
:
"提交成功"
)
lable
.
textAlignment
=
.
center
lable
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
lable
.
textColor
=
UIColor
.
mainTextColor
headBkgImagV
.
addSubview
(
lable
)
lable
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalToSuperview
()
.
offset
(
6
)
make
.
left
.
right
.
equalToSuperview
()
}
let
lable2
=
UILabel
(
text
:
"根据您填写的资料,您的评分如下:"
)
lable2
.
textAlignment
=
.
center
lable2
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
lable2
.
textColor
=
UIColor
.
mainTextColor
centerView
.
addSubview
(
lable2
)
lable2
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
headBkgImagV
.
snp
.
bottom
)
.
offset
(
10
)
make
.
left
.
right
.
equalToSuperview
()
}
messageLabel
=
{
let
label
=
UILabel
()
label
.
text
=
"--分"
label
.
textAlignment
=
.
center
label
.
numberOfLines
=
1
return
label
}()
messageLabel
.
backgroundColor
=
.
clear
centerView
.
addSubview
(
messageLabel
)
messageLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
lable2
.
snp
.
bottom
)
.
offset
(
10
)
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
50
)
}
let
a
:
ASAttributedString
=
.
init
(
"90"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
43
)),
.
foreground
(
UIColor
.
warnColor
))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
labelTextColor2
))
messageLabel
.
attributed
.
text
=
a
+
b
disAgressButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
backgroundColor
=
.
white
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"取消"
,
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
.
brandMainColor
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
button
.
layer
.
borderWidth
=
1
button
.
layer
.
borderColor
=
UIColor
.
brandMainColor
.
cgColor
button
.
addTarget
(
self
,
action
:
#selector(
disagree
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
disAgressButton
)
disAgressButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
kMargin
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
}
agreeButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"评分详情"
,
for
:
.
normal
)
button
.
setTitleColor
(
.
white
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
clipsToBounds
=
true
button
.
addTarget
(
self
,
action
:
#selector(
agree
)
,
for
:
.
touchUpInside
)
return
button
}()
centerView
.
addSubview
(
agreeButton
)
agreeButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
kMargin
)
make
.
bottom
.
equalTo
(
-
21
)
make
.
width
.
equalTo
(
128
)
make
.
height
.
equalTo
(
45
)
}
agreeButton
.
layoutIfNeeded
()
agreeButton
.
addYinHeGradualLayer
()
}
@objc
func
agree
()
{
block
?(
true
)
dismiss
()
}
@objc
private
func
handleTap
(
_
sender
:
AnyObject
?)
{
dismiss
()
}
@objc
func
disagree
()
{
block
?(
false
)
dismiss
()
}
func
dismiss
()
{
removeFromSuperview
()
}
}
extension
YHSubmintAllInfoSuccessTipView
:
UIGestureRecognizerDelegate
{
func
gestureRecognizer
(
_
gestureRecognizer
:
UIGestureRecognizer
,
shouldReceive
touch
:
UITouch
)
->
Bool
{
if
touch
.
view
==
self
{
return
true
}
return
false
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHSubmitAllInfoSuccessAlertView.swift
View file @
dcce4c43
...
@@ -28,9 +28,9 @@ class YHSubmitAllInfoSuccessAlertView: UIView {
...
@@ -28,9 +28,9 @@ class YHSubmitAllInfoSuccessAlertView: UIView {
guard
let
model
=
model
else
{
guard
let
model
=
model
else
{
return
return
}
}
let
a
:
ASAttributedString
=
.
init
(
NSAttributedString
(
string
:
model
.
sum_score
),
.
font
(
self
.
scoreBigFont
),
.
foreground
(
self
.
scoreBigColor
))
//
let a: ASAttributedString = .init(NSAttributedString(string: model.sum_score), .font(self.scoreBigFont),.foreground(self.scoreBigColor))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
self
.
scoreSmallFont
),
.
foreground
(
self
.
scoreSmallColor
))
//
let b: ASAttributedString = .init("分", .font(self.scoreSmallFont),.foreground(self.scoreSmallColor))
scoreLabel
.
attributed
.
text
=
a
+
b
//
scoreLabel.attributed.text = a + b
}
}
}
}
...
@@ -99,24 +99,24 @@ class YHSubmitAllInfoSuccessAlertView: UIView {
...
@@ -99,24 +99,24 @@ class YHSubmitAllInfoSuccessAlertView: UIView {
make
.
edges
.
equalToSuperview
()
make
.
edges
.
equalToSuperview
()
}
}
scoreLabel
=
{
//
scoreLabel = {
let
label
=
UILabel
()
//
let label = UILabel()
label
.
text
=
"--分"
//
label.text = "--分"
label
.
textAlignment
=
.
left
//
label.textAlignment = .left
label
.
numberOfLines
=
1
//
label.numberOfLines = 1
return
label
//
return label
}()
//
}()
scoreLabel
.
backgroundColor
=
.
clear
//
scoreLabel.backgroundColor = .clear
centerView
.
addSubview
(
scoreLabel
)
//
centerView.addSubview(scoreLabel)
scoreLabel
.
snp
.
makeConstraints
{
make
in
//
scoreLabel.snp.makeConstraints { make in
make
.
bottom
.
equalTo
(
-
45
)
//
make.bottom.equalTo(-45)
make
.
left
.
equalTo
(
20
)
//
make.left.equalTo(20)
make
.
height
.
equalTo
(
55
)
//
make.height.equalTo(55)
}
//
}
//
let
a
:
ASAttributedString
=
.
init
(
"0"
,
.
font
(
self
.
scoreBigFont
),
.
foreground
(
scoreBigColor
))
//
let a: ASAttributedString = .init("0", .font(self.scoreBigFont), .foreground(scoreBigColor))
let
b
:
ASAttributedString
=
.
init
(
"分"
,
.
font
(
scoreSmallFont
),
.
foreground
(
scoreSmallColor
))
//
let b: ASAttributedString = .init("分", .font(scoreSmallFont), .foreground(scoreSmallColor))
scoreLabel
.
attributed
.
text
=
a
+
b
//
scoreLabel.attributed.text = a + b
cancelButton
=
{
cancelButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
let
button
=
UIButton
(
type
:
.
custom
)
...
...
galaxy/galaxy/Res/gif/submit_page_scroll.gif
View replaced file @
b111b8fc
View file @
dcce4c43
This diff is collapsed.
Click to expand it.
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