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
a2941088
Commit
a2941088
authored
Jun 07, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回 、手势弹窗
parent
7b84dbdc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
13 deletions
+66
-13
YHInformationPerfectListVC.swift
...telligentService(服务中心)/C/YHInformationPerfectListVC.swift
+62
-10
YHSubmitAllInfoCheckView.swift
...IntelligentService(服务中心)/V/YHSubmitAllInfoCheckView.swift
+4
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHInformationPerfectListVC.swift
View file @
a2941088
...
@@ -13,6 +13,7 @@ import UIKit
...
@@ -13,6 +13,7 @@ import UIKit
*/
*/
class
YHInformationPerfectListVC
:
YHBaseViewController
{
class
YHInformationPerfectListVC
:
YHBaseViewController
{
var
orderId
:
Int
?
var
orderId
:
Int
?
private
var
firstCheckFlag
:
Bool
=
false
private
let
serviceCenterMainReqVM
:
YHServiceCenterMainViewModel
=
YHServiceCenterMainViewModel
()
private
let
serviceCenterMainReqVM
:
YHServiceCenterMainViewModel
=
YHServiceCenterMainViewModel
()
private
var
hasSubmitFlag
:
Bool
=
false
{
private
var
hasSubmitFlag
:
Bool
=
false
{
...
@@ -101,9 +102,68 @@ class YHInformationPerfectListVC: YHBaseViewController {
...
@@ -101,9 +102,68 @@ class YHInformationPerfectListVC: YHBaseViewController {
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
loadData
()
loadData
()
}
}
override
func
backItemClick
(
_
sender
:
Any
)
{
if
self
.
serviceCenterMainReqVM
.
informationFillStepModel
?
.
step
==
6
{
YHSubmitAllInfoCheckView
.
showCheckView
(
tipMsg
:
"你已填完所有信息,是否马上提交?"
)
{
agree
in
if
agree
==
true
{
printLog
(
"点击了 确认 按钮"
)
self
.
submitAllInfo
()
}
else
{
printLog
(
"点击了 取消 按钮"
)
self
.
navigationController
?
.
popViewController
()
}
}
}
else
{
self
.
navigationController
?
.
popViewController
()
}
}
/// 是否可以返回,包括点击返回和手势返回,默认YES
// @objc func navigationShouldPop() -> Bool
override
func
navigationShouldPop
()
->
Bool
{
if
self
.
serviceCenterMainReqVM
.
informationFillStepModel
?
.
step
==
6
{
YHSubmitAllInfoCheckView
.
showCheckView
(
tipMsg
:
"你已填完所有信息,是否马上提交?"
)
{
agree
in
if
agree
==
true
{
printLog
(
"点击了 确认 按钮"
)
self
.
submitAllInfo
()
}
else
{
printLog
(
"点击了 取消 按钮"
)
}
}
return
false
}
return
true
}
}
}
extension
YHInformationPerfectListVC
{
extension
YHInformationPerfectListVC
{
func
checkSubmitTips
()
{
if
firstCheckFlag
{
return
}
firstCheckFlag
=
true
if
self
.
serviceCenterMainReqVM
.
informationFillStepModel
?
.
step
==
6
{
YHSubmitAllInfoCheckView
.
showCheckView
(
tipMsg
:
"你已填完所有信息,是否马上提交?"
)
{
agree
in
if
agree
==
true
{
printLog
(
"点击了 确认 按钮"
)
self
.
submitAllInfo
()
}
else
{
printLog
(
"点击了 取消 按钮"
)
}
}
}
}
func
submitSweetNotify
()
{
func
submitSweetNotify
()
{
let
params
=
[
"option"
:
1
,
"order_id"
:
orderId
]
let
params
=
[
"option"
:
1
,
"order_id"
:
orderId
]
serviceCenterMainReqVM
.
submitSweetNotifyOp
(
params
:
params
as
[
String
:
Any
])
{
success
,
error
in
serviceCenterMainReqVM
.
submitSweetNotifyOp
(
params
:
params
as
[
String
:
Any
])
{
success
,
error
in
...
@@ -132,7 +192,6 @@ extension YHInformationPerfectListVC {
...
@@ -132,7 +192,6 @@ extension YHInformationPerfectListVC {
guard
let
orderId
=
orderId
else
{
return
}
guard
let
orderId
=
orderId
else
{
return
}
self
.
serviceCenterMainReqVM
.
getPersonInfoFillStep
(
params
:
[
"orderId"
:
orderId
])
{
success
,
error
in
self
.
serviceCenterMainReqVM
.
getPersonInfoFillStep
(
params
:
[
"orderId"
:
orderId
])
{
success
,
error
in
if
success
==
true
{
if
success
==
true
{
if
self
.
serviceCenterMainReqVM
.
myInfoFillStep
>
6
{
if
self
.
serviceCenterMainReqVM
.
myInfoFillStep
>
6
{
self
.
hasSubmitFlag
=
true
self
.
hasSubmitFlag
=
true
}
else
{
}
else
{
...
@@ -146,14 +205,9 @@ extension YHInformationPerfectListVC {
...
@@ -146,14 +205,9 @@ extension YHInformationPerfectListVC {
self
.
submitBtn
.
isEnabled
=
false
self
.
submitBtn
.
isEnabled
=
false
}
}
}
}
self
.
checkSubmitTips
()
}
}
self
.
homeTableView
.
reloadData
()
self
.
homeTableView
.
reloadData
()
// if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 {
// self.showTipsAlert()
// return
// }
}
}
}
}
...
@@ -181,9 +235,7 @@ extension YHInformationPerfectListVC {
...
@@ -181,9 +235,7 @@ extension YHInformationPerfectListVC {
@objc
func
clickSubmitBtn
()
{
@objc
func
clickSubmitBtn
()
{
YHSubmitAllInfoCheckView
.
showCheckView
(
tipMsg
:
"确定是否提交信息,提交后将不能修改哦~"
)
{
agree
in
YHSubmitAllInfoCheckView
.
showCheckView
(
tipMsg
:
"确定是否提交信息?提交后将不能修改"
)
{
agree
in
if
agree
==
true
{
if
agree
==
true
{
printLog
(
"点击了 确认 按钮"
)
printLog
(
"点击了 确认 按钮"
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHSubmitAllInfoCheckView.swift
View file @
a2941088
...
@@ -96,7 +96,7 @@ class YHSubmitAllInfoCheckView: UIView {
...
@@ -96,7 +96,7 @@ class YHSubmitAllInfoCheckView: UIView {
let
button
=
UIButton
(
type
:
.
custom
)
let
button
=
UIButton
(
type
:
.
custom
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
button
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
14
)
button
.
contentHorizontalAlignment
=
.
center
button
.
contentHorizontalAlignment
=
.
center
button
.
setTitle
(
"
确认
"
,
for
:
.
normal
)
button
.
setTitle
(
"
提交
"
,
for
:
.
normal
)
button
.
clipsToBounds
=
true
button
.
clipsToBounds
=
true
button
.
setTitleColor
(
.
white
,
for
:
.
normal
)
button
.
setTitleColor
(
.
white
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
kCornerRadius3
button
.
layer
.
cornerRadius
=
kCornerRadius3
...
@@ -111,8 +111,9 @@ class YHSubmitAllInfoCheckView: UIView {
...
@@ -111,8 +111,9 @@ class YHSubmitAllInfoCheckView: UIView {
make
.
height
.
equalTo
(
45
)
make
.
height
.
equalTo
(
45
)
}
}
agreeButton
.
layoutIfNeeded
()
agreeButton
.
layoutIfNeeded
()
agreeButton
.
addYinHeGradualLayer
()
agreeButton
.
backgroundColor
=
.
brandMainColor
agreeButton
.
addYinHeGradualLayer
()
// agreeButton.addYinHeGradualLayer()
// agreeButton.addYinHeGradualLayer()
}
}
...
...
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