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
6968122f
Commit
6968122f
authored
Apr 22, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除 不使用的文件
parent
31b60b9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
131 deletions
+12
-131
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+0
-4
YHInformationPerfectListVC.swift
...telligentService(服务中心)/C/YHInformationPerfectListVC.swift
+12
-6
YHNewWebViewController.swift
.../Classes/Modules/Login(登录)/C/YHNewWebViewController.swift
+0
-121
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
6968122f
...
@@ -231,7 +231,6 @@
...
@@ -231,7 +231,6 @@
0468D4312B5654C100CFB916
/* libresolv.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D42C2B56549200CFB916
/* libresolv.tbd */
;
};
0468D4312B5654C100CFB916
/* libresolv.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D42C2B56549200CFB916
/* libresolv.tbd */
;
};
0468D4362B57752F00CFB916
/* YHUserModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4352B57752F00CFB916
/* YHUserModel.swift */
;
};
0468D4362B57752F00CFB916
/* YHUserModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4352B57752F00CFB916
/* YHUserModel.swift */
;
};
0468D43A2B579EAC00CFB916
/* YHLoginViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4392B579EAC00CFB916
/* YHLoginViewModel.swift */
;
};
0468D43A2B579EAC00CFB916
/* YHLoginViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4392B579EAC00CFB916
/* YHLoginViewModel.swift */
;
};
047294E82B988A19008E0B84
/* YHNewWebViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
047294E72B988A19008E0B84
/* YHNewWebViewController.swift */
;
};
04754A952B96FF3D00F8ADCA
/* UITextField+Extension.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.swift */
;
};
04754A952B96FF3D00F8ADCA
/* UITextField+Extension.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.swift */
;
};
047619E92BA9867100F45358
/* YHCountryHotView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
047619E82BA9867100F45358
/* YHCountryHotView.swift */
;
};
047619E92BA9867100F45358
/* YHCountryHotView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
047619E82BA9867100F45358
/* YHCountryHotView.swift */
;
};
047619ED2BA9B9C900F45358
/* area.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
047619EC2BA9B9C900F45358
/* area.plist */
;
};
047619ED2BA9B9C900F45358
/* area.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
047619EC2BA9B9C900F45358
/* area.plist */
;
};
...
@@ -681,7 +680,6 @@
...
@@ -681,7 +680,6 @@
0468D42F2B5654B500CFB916
/* SystemConfiguration.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
SystemConfiguration.framework
;
path
=
System/Library/Frameworks/SystemConfiguration.framework
;
sourceTree
=
SDKROOT
;
};
0468D42F2B5654B500CFB916
/* SystemConfiguration.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
SystemConfiguration.framework
;
path
=
System/Library/Frameworks/SystemConfiguration.framework
;
sourceTree
=
SDKROOT
;
};
0468D4352B57752F00CFB916
/* YHUserModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
name
=
YHUserModel.swift
;
path
=
"galaxy/Classes/Modules/Login(登录)/M/YHUserModel.swift"
;
sourceTree
=
SOURCE_ROOT
;
};
0468D4352B57752F00CFB916
/* YHUserModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
name
=
YHUserModel.swift
;
path
=
"galaxy/Classes/Modules/Login(登录)/M/YHUserModel.swift"
;
sourceTree
=
SOURCE_ROOT
;
};
0468D4392B579EAC00CFB916
/* YHLoginViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginViewModel.swift
;
sourceTree
=
"<group>"
;
};
0468D4392B579EAC00CFB916
/* YHLoginViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLoginViewModel.swift
;
sourceTree
=
"<group>"
;
};
047294E72B988A19008E0B84
/* YHNewWebViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNewWebViewController.swift
;
sourceTree
=
"<group>"
;
};
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"UITextField+Extension.swift"
;
sourceTree
=
"<group>"
;
};
04754A942B96FF3D00F8ADCA
/* UITextField+Extension.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"UITextField+Extension.swift"
;
sourceTree
=
"<group>"
;
};
047619E82BA9867100F45358
/* YHCountryHotView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCountryHotView.swift
;
sourceTree
=
"<group>"
;
};
047619E82BA9867100F45358
/* YHCountryHotView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCountryHotView.swift
;
sourceTree
=
"<group>"
;
};
047619EC2BA9B9C900F45358
/* area.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
path
=
area.plist
;
sourceTree
=
"<group>"
;
};
047619EC2BA9B9C900F45358
/* area.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
path
=
area.plist
;
sourceTree
=
"<group>"
;
};
...
@@ -1935,7 +1933,6 @@
...
@@ -1935,7 +1933,6 @@
04E86E082B707ACE00A35F4B
/* YHPhoneLoginViewController.swift */
,
04E86E082B707ACE00A35F4B
/* YHPhoneLoginViewController.swift */
,
04E86E0A2B70C13300A35F4B
/* YHCodeSueecssViewController.swift */
,
04E86E0A2B70C13300A35F4B
/* YHCodeSueecssViewController.swift */
,
04E86E0C2B70D51D00A35F4B
/* YHWebViewViewController.swift */
,
04E86E0C2B70D51D00A35F4B
/* YHWebViewViewController.swift */
,
047294E72B988A19008E0B84
/* YHNewWebViewController.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -2889,7 +2886,6 @@
...
@@ -2889,7 +2886,6 @@
045EEECC2B9F171A0022A143
/* YHScoreResultModel.swift in Sources */
,
045EEECC2B9F171A0022A143
/* YHScoreResultModel.swift in Sources */
,
045EEEDC2B9F171A0022A143
/* YHQualificationDetailVC.swift in Sources */
,
045EEEDC2B9F171A0022A143
/* YHQualificationDetailVC.swift in Sources */
,
045EEEF52B9F171A0022A143
/* YHSpouseInfoContainerVC.swift in Sources */
,
045EEEF52B9F171A0022A143
/* YHSpouseInfoContainerVC.swift in Sources */
,
047294E82B988A19008E0B84
/* YHNewWebViewController.swift in Sources */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
};
};
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHInformationPerfectListVC.swift
View file @
6968122f
...
@@ -132,7 +132,7 @@ extension YHInformationPerfectListVC {
...
@@ -132,7 +132,7 @@ 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
{
...
@@ -148,6 +148,12 @@ extension YHInformationPerfectListVC {
...
@@ -148,6 +148,12 @@ extension YHInformationPerfectListVC {
}
}
}
}
self
.
homeTableView
.
reloadData
()
self
.
homeTableView
.
reloadData
()
if
self
.
serviceCenterMainReqVM
.
informationFillStepModel
?
.
sweet_notify_status
==
0
{
self
.
showTipsAlert
()
return
}
}
}
}
}
...
@@ -422,10 +428,10 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
...
@@ -422,10 +428,10 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
if
tapIndex
==
0
{
if
tapIndex
==
0
{
if
self
.
serviceCenterMainReqVM
.
informationFillStepModel
?
.
sweet_notify_status
==
0
{
//
if self.serviceCenterMainReqVM.informationFillStepModel?.sweet_notify_status == 0 {
self
.
showTipsAlert
()
//
self.showTipsAlert()
return
//
return
}
//
}
//主申请人信息
//主申请人信息
let
vc
=
YHMainApplicantInformationViewController
()
let
vc
=
YHMainApplicantInformationViewController
()
vc
.
orderId
=
orderId
??
0
vc
.
orderId
=
orderId
??
0
...
@@ -461,7 +467,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
...
@@ -461,7 +467,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
let
vc
=
YHOtherInfoFillViewController
()
let
vc
=
YHOtherInfoFillViewController
()
vc
.
orderId
=
orderId
vc
.
orderId
=
orderId
navigationController
?
.
pushViewController
(
vc
)
navigationController
?
.
pushViewController
(
vc
)
}
}
else
{
else
{
}
}
...
...
galaxy/galaxy/Classes/Modules/Login(登录)/C/YHNewWebViewController.swift
deleted
100644 → 0
View file @
31b60b9c
//
// YHNewWebViewController.swift
// galaxy
//
// Created by EDY on 2024/3/6.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
WebKit
class
YHNewWebViewController
:
YHBaseViewController
,
WKUIDelegate
,
WKNavigationDelegate
{
var
webView
=
WKWebView
()
var
progBar
=
UIProgressView
()
var
url
=
"https://www.baidu.com"
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
gk_navBackgroundColor
=
.
clear
gk_navShadowColor
=
.
clear
gk_navigationBar
.
isHidden
=
true
// 创建wkwebview
webView
=
WKWebView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
self
.
view
.
frame
.
width
,
height
:
self
.
view
.
frame
.
height
))
webView
.
navigationDelegate
=
self
webView
.
uiDelegate
=
self
// 创建网址
let
url
=
NSURL
(
string
:
url
)
// 创建请求
let
request
=
NSURLRequest
(
url
:
url
!
as
URL
)
// 加载请求
webView
.
load
(
request
as
URLRequest
)
// 添加wkwebview
self
.
view
.
addSubview
(
webView
)
// 加载网页的进度条
progBar
=
UIProgressView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
self
.
view
.
frame
.
width
,
height
:
30
))
progBar
.
progress
=
0.0
progBar
.
tintColor
=
UIColor
.
brandMainColor
webView
.
addSubview
(
progBar
)
// 监听网页加载的进度
webView
.
addObserver
(
self
,
forKeyPath
:
"estimatedProgress"
,
options
:
.
new
,
context
:
nil
)
}
override
func
viewDidDisappear
(
_
animated
:
Bool
)
{
webView
.
removeObserver
(
self
,
forKeyPath
:
"estimatedProgress"
)
}
// MARK: - WKNavigationDelegate
func
webView
(
_
webView
:
WKWebView
,
didFinish
navigation
:
WKNavigation
!
)
{
self
.
navigationItem
.
title
=
webView
.
title
}
// MARK: - WKUIDelegate
func
webView
(
_
webView
:
WKWebView
,
createWebViewWith
configuration
:
WKWebViewConfiguration
,
for
navigationAction
:
WKNavigationAction
,
windowFeatures
:
WKWindowFeatures
)
->
WKWebView
?
{
// 实现非安全链接的跳转。如果目标主视图不为空,则允许导航
if
!
(
navigationAction
.
targetFrame
?
.
isMainFrame
!=
nil
)
{
webView
.
load
(
navigationAction
.
request
)
}
return
nil
}
func
webView
(
_
webView
:
WKWebView
,
runJavaScriptAlertPanelWithMessage
message
:
String
,
initiatedByFrame
frame
:
WKFrameInfo
,
completionHandler
:
@escaping
()
->
Void
)
{
// 修复弹窗弹出的问题
let
alert
=
UIAlertController
(
title
:
nil
,
message
:
message
,
preferredStyle
:
.
alert
)
alert
.
addAction
(
UIAlertAction
(
title
:
"Ok"
,
style
:
.
default
,
handler
:
{
(
_
)
->
Void
in
completionHandler
()
}))
self
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
}
func
webView
(
_
webView
:
WKWebView
,
decidePolicyFor
navigationAction
:
WKNavigationAction
,
decisionHandler
:
@escaping
(
WKNavigationActionPolicy
)
->
Void
)
{
printLog
(
"
\(
navigationAction
.
request
.
url
?
.
absoluteString
??
""
)
"
)
// https://www.galaxy-immi.com/
decisionHandler
(
.
allow
)
}
func
webView
(
_
webView
:
WKWebView
,
didStartProvisionalNavigation
navigation
:
WKNavigation
!
)
{
print
(
"页面开始加载"
)
}
func
webView
(
_
webView
:
WKWebView
,
didCommit
navigation
:
WKNavigation
!
)
{
print
(
"页面提交"
)
}
// MARK: - webview function
@objc
func
toBack
()
{
if
webView
.
canGoBack
{
webView
.
goBack
()
}
}
@objc
func
toForward
()
{
if
webView
.
canGoForward
{
webView
.
goForward
()
}
}
override
func
observeValue
(
forKeyPath
keyPath
:
String
?,
of
object
:
Any
?,
change
:
[
NSKeyValueChangeKey
:
Any
]?,
context
:
UnsafeMutableRawPointer
?)
{
if
keyPath
==
"estimatedProgress"
{
self
.
progBar
.
alpha
=
1.0
progBar
.
setProgress
(
Float
(
webView
.
estimatedProgress
),
animated
:
true
)
//进度条的值最大为1.0
if
(
self
.
webView
.
estimatedProgress
>=
1.0
)
{
UIView
.
animate
(
withDuration
:
0.3
,
delay
:
0.1
,
options
:
.
curveEaseInOut
,
animations
:
{
()
->
Void
in
self
.
progBar
.
alpha
=
0.0
},
completion
:
{
(
finished
:
Bool
)
->
Void
in
self
.
progBar
.
progress
=
0
})
}
}
}
override
class
func
observeValue
(
forKeyPath
keyPath
:
String
?,
of
object
:
Any
?,
change
:
[
NSKeyValueChangeKey
:
Any
]?,
context
:
UnsafeMutableRawPointer
?)
{
}
}
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