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
ddec8210
Commit
ddec8210
authored
Nov 01, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 我的证件微信上传
parent
a5598ea4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
4 deletions
+33
-4
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+12
-3
YHCertificateUploadContentListVC.swift
...rtificates(我的证书)/C/YHCertificateUploadContentListVC.swift
+9
-0
YHCertificateUploadSheetView.swift
...MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
+8
-1
YHCertificateViewModel.swift
...务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
+1
-0
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-0
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
ddec8210
...
...
@@ -82,15 +82,16 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
}
func
application
(
_
app
:
UIApplication
,
open
url
:
URL
,
options
:
[
UIApplication
.
OpenURLOptionsKey
:
Any
]
=
[:])
->
Bool
{
if
let
host
=
url
.
host
,
host
.
contains
(
"platformId=wechat"
)
{
return
WXApi
.
handleOpen
(
url
,
delegate
:
self
)
}
if
YHAnalytics
.
handleSchemeUrl
(
url
)
??
false
{
return
true
}
return
true
}
func
setupNavBar
()
{
GKConfigure
.
setupDefault
()
}
...
...
@@ -125,6 +126,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
if
res
?
.
state
==
"wechat_sdk_demo_test"
,
let
code
=
res
?
.
code
{
YHShareManager
.
shared
.
getWechatAccessToken
(
code
:
code
)
}
}
else
if
resp
.
isKind
(
of
:
WXLaunchMiniProgramResp
.
self
)
{
// 微信小程序回调
let
res
=
resp
as?
WXLaunchMiniProgramResp
if
let
extMsg
=
res
?
.
extMsg
{
if
extMsg
==
"my_certificate"
{
// 我的证件 微信文件上传
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didMyCertificateWeChatFileUploadCallBackNotification
,
object
:
nil
)
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/C/YHCertificateUploadContentListVC.swift
View file @
ddec8210
...
...
@@ -177,6 +177,8 @@ class YHCertificateUploadContentListVC: YHBaseViewController {
let
token
=
YHLoginManager
.
shared
.
h5Token
let
path
=
"/superApp/pages/wxUpload/wxUpload?param=
\(
token
)
&id=
\(
self
.
supplementId
)
&type=my_certificate"
YHShareManager
.
shared
.
openMiniProgram
(
path
:
path
,
title
:
"微信上传"
)
}
sheetView
.
show
()
}
...
...
@@ -570,6 +572,13 @@ extension YHCertificateUploadContentListVC {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
handleKeyboardNotification(_:)
)
,
name
:
UIResponder
.
keyboardWillShowNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
handleKeyboardNotification(_:)
)
,
name
:
UIResponder
.
keyboardWillHideNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didRefreshData
)
,
name
:
YhConstant
.
YhNotification
.
didMyCertificateWeChatFileUploadCallBackNotification
,
object
:
nil
)
}
@objc
func
didRefreshData
()
{
requestList
()
}
func
removeNotify
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHCertificateUploadSheetView.swift
View file @
ddec8210
...
...
@@ -69,6 +69,11 @@ class YHCertificateUploadSheetView: UIView {
YHCertificateUploadItem
(
type
:
.
photo
,
title
:
"相册上传"
),
YHCertificateUploadItem
(
type
:
.
phoneFile
,
title
:
"手机文件上传"
,
subtitle
:
"从手机文件管理中上传"
),
YHCertificateUploadItem
(
type
:
.
cancel
,
title
:
"取消"
)]
{
didSet
{
updateLayouts
()
}
}
// 上传文件
var
uploadFilesBlock
:((
URL
)
->
())?
...
...
@@ -251,6 +256,8 @@ class YHCertificateUploadSheetView: UIView {
if
tips
==
""
{
lineView
.
isHidden
=
true
}
self
.
setNeedsLayout
()
self
.
layoutIfNeeded
()
}
func
calculateHeight
()
->
CGFloat
{
...
...
@@ -604,7 +611,7 @@ extension YHCertificateUploadSheetView: UIDocumentPickerDelegate {
extension
YHCertificateUploadSheetView
{
func
selectFileFromWeChatPragram
()
{
self
.
wechatUploadBlock
?()
dismiss
()
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/VM/YHCertificateViewModel.swift
View file @
ddec8210
...
...
@@ -247,6 +247,7 @@ extension YHCertificateViewModel {
let
token
=
YHLoginManager
.
shared
.
h5Token
let
path
=
"/superApp/pages/wxUpload/wxUpload?param=
\(
token
)
&id=
\(
supplementId
)
&type=my_certificate"
YHShareManager
.
shared
.
openMiniProgram
(
path
:
path
,
title
:
"微信上传"
)
completion
?()
}
sheetView
.
show
()
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
ddec8210
...
...
@@ -306,6 +306,9 @@ extension YhConstant {
// 刷新续签预约状态列表
public
static
let
didUpdateResignAppointStatusList
=
Notification
.
Name
(
rawValue
:
"com.yinhe.resign.appoint.list.update"
)
// 我的证件 微信文件上传回调
public
static
let
didMyCertificateWeChatFileUploadCallBackNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.myCertificate.wechat.fileUpload"
)
}
}
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