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
095a3a1b
Commit
095a3a1b
authored
Sep 11, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IM增加卡片消息跳转
parent
c0755736
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
168 additions
and
33 deletions
+168
-33
TUIOrderCell.m
TUIKit/TUIChat/UI_Classic/Cell/Custom/TUIOrderCell.m
+2
-1
TUIBaseChatViewController.h
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.h
+1
-1
TUIBaseChatViewController.m
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.m
+14
-5
TUIBaseMessageController.h
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseMessageController.h
+2
-2
TUIBaseMessageController.m
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseMessageController.m
+12
-8
TUIMergeMessageListController.h
...t/TUIChat/UI_Classic/Chat/TUIMergeMessageListController.h
+2
-2
TUIMergeMessageListController.m
...t/TUIChat/UI_Classic/Chat/TUIMergeMessageListController.m
+2
-2
TUIRepliesDetailViewController.h
.../TUIChat/UI_Classic/Chat/TUIRepliesDetailViewController.h
+2
-2
TUIRepliesDetailViewController.m
.../TUIChat/UI_Classic/Chat/TUIRepliesDetailViewController.m
+2
-2
TUIYHCustomCellClickDelegate.h
...it/TUIChat/UI_Classic/Chat/TUIYHCustomCellClickDelegate.h
+43
-0
Fastfile
galaxy/fastlane/Fastfile
+2
-1
YHNavigationController.swift
galaxy/galaxy/Classes/Base/C/YHNavigationController.swift
+17
-3
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+66
-3
YHMemberCenterViewController.swift
...ses/Modules/Mine(我的)/C/YHMemberCenterViewController.swift
+1
-1
No files found.
TUIKit/TUIChat/UI_Classic/Cell/Custom/TUIOrderCell.m
View file @
095a3a1b
...
...
@@ -52,7 +52,8 @@
if
(
data
.
imageUrl
==
nil
)
{
[
self
.
iconView
setImage
:
TUIChatBundleThemeImage
(
@"chat_custom_order_message_img"
,
@"message_custom_order"
)];
}
else
{
[
self
.
iconView
setImage
:[
UIImage
sd_imageWithData
:[
NSData
dataWithContentsOfURL
:[
NSURL
URLWithString
:
data
.
imageUrl
]]]];
[
self
.
iconView
sd_setImageWithURL
:[
NSURL
URLWithString
:
data
.
imageUrl
]];
//[self.iconView setImage:[UIImage sd_imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:data.imageUrl]]]];
}
// tell constraints they need updating
[
self
setNeedsUpdateConstraints
];
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.h
View file @
095a3a1b
...
...
@@ -47,7 +47,7 @@
@interface
TUIBaseChatViewController
:
UIViewController
// 文件预览代理
@property
(
nonatomic
,
weak
)
id
<
TUI
CustomOpenFileDelegate
>
filePreview
Delegate
;
@property
(
nonatomic
,
weak
)
id
<
TUI
YHCustomCellClickDelegate
>
yhCustomCellClick
Delegate
;
@property
(
nonatomic
,
strong
)
TUIChatConversationModel
*
conversationData
;
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseChatViewController.m
View file @
095a3a1b
...
...
@@ -41,6 +41,7 @@
#import "TUIVoiceMessageCellData.h"
#import "TUIChatShortcutMenuView.h"
#import "TUIFileViewController.h"
#import "TUIOrderCellData.h"
static
UIView
*
gCustomTopView
;
static
UIView
*
gTopExentsionView
;
...
...
@@ -59,7 +60,7 @@ static CGRect gCustomTopViewRect;
TUINavigationControllerDelegate
,
TUIChatMediaDataListener
,
TIMInputViewMoreActionProtocol
,
TUI
CustomOpenFile
Delegate
>
TUI
YHCustomCellClick
Delegate
>
@property
(
nonatomic
,
strong
)
TUINaviBarIndicatorView
*
titleView
;
@property
(
nonatomic
,
strong
)
TUIMessageMultiChooseView
*
multiChooseView
;
...
...
@@ -332,7 +333,7 @@ static CGRect gCustomTopViewRect;
vc
.
isMsgNeedReadReceipt
=
self
.
conversationData
.
msgNeedReadReceipt
&&
[
TUIChatConfig
defaultConfig
].
msgNeedReadReceipt
;
_messageController
=
vc
;
_messageController
.
delegate
=
self
;
_messageController
.
filePreview
Delegate
=
self
;
_messageController
.
yhCustomCellClick
Delegate
=
self
;
[
_messageController
setConversation
:
self
.
conversationData
];
CGFloat
textViewHeight
=
TUIChatConfig
.
defaultConfig
.
enableMainPageInputBar
?
TTextView_Height
:
0
;
...
...
@@ -1558,10 +1559,10 @@ static CGRect gCustomTopViewRect;
return
self
.
responseKeyboard
;
}
#pragma mark - TUI
CustomOpenFile
Delegate
#pragma mark - TUI
YHCustomCellClick
Delegate
-
(
void
)
didTapInFileCell
:
(
TUIFileMessageCellData
*
)
cellData
{
if
(
self
.
filePreviewDelegate
&&
[
self
.
filePreview
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
filePreview
Delegate
didTapInFileCell
:
cellData
];
if
(
self
.
yhCustomCellClickDelegate
&&
[
self
.
yhCustomCellClick
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
yhCustomCellClick
Delegate
didTapInFileCell
:
cellData
];
}
else
{
TUIFileViewController
*
file
=
[[
TUIFileViewController
alloc
]
init
];
file
.
data
=
cellData
;
...
...
@@ -1569,4 +1570,12 @@ static CGRect gCustomTopViewRect;
}
}
-
(
void
)
didTapCustomOrderCell
:
(
TUIOrderCellData
*
)
cellData
{
if
(
self
.
yhCustomCellClickDelegate
&&
[
self
.
yhCustomCellClickDelegate
respondsToSelector
:
@selector
(
didTapCustomOrderCell
:)])
{
[
self
.
yhCustomCellClickDelegate
didTapCustomOrderCell
:
cellData
];
}
else
{
[
TUITool
openLinkWithURL
:[
NSURL
URLWithString
:
cellData
.
link
]];
}
}
@end
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseMessageController.h
View file @
095a3a1b
...
...
@@ -16,7 +16,7 @@
#import "TUIBaseMessageControllerDelegate.h"
#import "TUIChatConversationModel.h"
#import "TUIChatDefine.h"
#import "TUI
CustomOpenFile
Delegate.h"
#import "TUI
YHCustomCellClick
Delegate.h"
NS_ASSUME_NONNULL_BEGIN
...
...
@@ -48,7 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
weak
)
id
<
TUIBaseMessageControllerDelegate
>
delegate
;
@property
(
nonatomic
,
weak
)
id
<
TUI
CustomOpenFileDelegate
>
filePreview
Delegate
;
@property
(
nonatomic
,
weak
)
id
<
TUI
YHCustomCellClickDelegate
>
yhCustomCellClick
Delegate
;
@property
(
nonatomic
,
assign
)
BOOL
isInVC
;
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIBaseMessageController.m
View file @
095a3a1b
...
...
@@ -1532,7 +1532,7 @@ ReceiveReadMsgWithGroupID:(NSString *)groupID
self
.
hasCoverPage
=
YES
;
TUIRepliesDetailViewController
*
repliesDetailVC
=
[[
TUIRepliesDetailViewController
alloc
]
initWithCellData
:
data
conversationData
:
self
.
conversationData
];
repliesDetailVC
.
delegate
=
self
.
delegate
;
repliesDetailVC
.
filePreviewDelegate
=
self
.
filePreview
Delegate
;
repliesDetailVC
.
yhCustomCellClickDelegate
=
self
.
yhCustomCellClick
Delegate
;
[
self
.
navigationController
pushViewController
:
repliesDetailVC
animated
:
YES
];
repliesDetailVC
.
parentPageDataProvider
=
self
.
messageDataProvider
;
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
@@ -1856,8 +1856,8 @@ ReceiveReadMsgWithGroupID:(NSString *)groupID
[
fileData
downloadFile
];
return
;
}
if
(
self
.
filePreviewDelegate
&&
[
self
.
filePreview
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
filePreview
Delegate
didTapInFileCell
:
[
cell
fileData
]];
if
(
self
.
yhCustomCellClickDelegate
&&
[
self
.
yhCustomCellClick
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
yhCustomCellClick
Delegate
didTapInFileCell
:
[
cell
fileData
]];
}
else
{
TUIFileViewController
*
file
=
[[
TUIFileViewController
alloc
]
init
];
file
.
data
=
[
cell
fileData
];
...
...
@@ -1871,7 +1871,7 @@ ReceiveReadMsgWithGroupID:(NSString *)groupID
mergeVc
.
mergerElem
=
cell
.
mergeData
.
mergerElem
;
mergeVc
.
conversationData
=
self
.
conversationData
;
mergeVc
.
parentPageDataProvider
=
self
.
messageDataProvider
;
mergeVc
.
filePreviewDelegate
=
self
.
filePreview
Delegate
;
mergeVc
.
yhCustomCellClickDelegate
=
self
.
yhCustomCellClick
Delegate
;
__weak
typeof
(
self
)
weakSelf
=
self
;
mergeVc
.
willCloseCallback
=
^
()
{
[
weakSelf
.
tableView
reloadData
];
...
...
@@ -1887,10 +1887,14 @@ ReceiveReadMsgWithGroupID:(NSString *)groupID
}
-
(
void
)
showOrderMessage
:
(
TUIOrderCell
*
)
cell
{
TUIOrderCellData
*
cellData
=
cell
.
customData
;
if
(
cellData
.
link
)
{
[
TUITool
openLinkWithURL
:[
NSURL
URLWithString
:
cellData
.
link
]];
}
if
(
self
.
yhCustomCellClickDelegate
&&
[
self
.
yhCustomCellClickDelegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
yhCustomCellClickDelegate
didTapCustomOrderCell
:
cell
.
customData
];
}
else
{
TUIOrderCellData
*
cellData
=
cell
.
customData
;
if
(
cellData
.
link
)
{
[
TUITool
openLinkWithURL
:[
NSURL
URLWithString
:
cellData
.
link
]];
}
}
}
-
(
void
)
showReplyMessage
:
(
TUIReplyMessageCell
*
)
cell
{
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIMergeMessageListController.h
View file @
095a3a1b
...
...
@@ -11,7 +11,7 @@
#import "TUIBaseMessageControllerDelegate.h"
#import "TUIChatConversationModel.h"
#import "TUIMessageDataProvider.h"
#import "TUI
CustomOpenFile
Delegate.h"
#import "TUI
YHCustomCellClick
Delegate.h"
NS_ASSUME_NONNULL_BEGIN
...
...
@@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
copy
)
dispatch_block_t
willCloseCallback
;
@property
(
nonatomic
,
strong
)
TUIChatConversationModel
*
conversationData
;
@property
(
nonatomic
,
strong
)
TUIMessageDataProvider
*
parentPageDataProvider
;
@property
(
nonatomic
,
weak
)
id
<
TUI
CustomOpenFileDelegate
>
filePreview
Delegate
;
@property
(
nonatomic
,
weak
)
id
<
TUI
YHCustomCellClickDelegate
>
yhCustomCellClick
Delegate
;
@end
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIMergeMessageListController.m
View file @
095a3a1b
...
...
@@ -475,8 +475,8 @@
}
-
(
void
)
showFileMessage
:
(
TUIFileMessageCell
*
)
cell
{
if
(
self
.
filePreviewDelegate
&&
[
self
.
filePreview
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
filePreview
Delegate
didTapInFileCell
:
[
cell
fileData
]];
if
(
self
.
yhCustomCellClickDelegate
&&
[
self
.
yhCustomCellClick
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
yhCustomCellClick
Delegate
didTapInFileCell
:
[
cell
fileData
]];
}
else
{
TUIFileViewController
*
file
=
[[
TUIFileViewController
alloc
]
init
];
file
.
data
=
[
cell
fileData
];
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIRepliesDetailViewController.h
View file @
095a3a1b
...
...
@@ -11,7 +11,7 @@
#import "TUIBaseMessageControllerDelegate.h"
#import "TUIChatConversationModel.h"
#import "TUIInputController.h"
#import "TUI
CustomOpenFile
Delegate.h"
#import "TUI
YHCustomCellClick
Delegate.h"
@class
TUIMessageDataProvider
;
...
...
@@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
copy
)
dispatch_block_t
willCloseCallback
;
@property
(
nonatomic
,
strong
)
TUIInputController
*
inputController
;
@property
(
nonatomic
,
strong
)
TUIMessageDataProvider
*
parentPageDataProvider
;
@property
(
nonatomic
,
weak
)
id
<
TUI
CustomOpenFileDelegate
>
filePreview
Delegate
;
@property
(
nonatomic
,
weak
)
id
<
TUI
YHCustomCellClickDelegate
>
yhCustomCellClick
Delegate
;
@end
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIRepliesDetailViewController.m
View file @
095a3a1b
...
...
@@ -646,8 +646,8 @@
}
-
(
void
)
showFileMessage
:
(
TUIFileMessageCell
*
)
cell
{
if
(
self
.
filePreviewDelegate
&&
[
self
.
filePreview
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
filePreview
Delegate
didTapInFileCell
:
[
cell
fileData
]];
if
(
self
.
yhCustomCellClickDelegate
&&
[
self
.
yhCustomCellClick
Delegate
respondsToSelector
:
@selector
(
didTapInFileCell
:)])
{
[
self
.
yhCustomCellClick
Delegate
didTapInFileCell
:
[
cell
fileData
]];
}
else
{
TUIFileViewController
*
file
=
[[
TUIFileViewController
alloc
]
init
];
file
.
data
=
[
cell
fileData
];
...
...
TUIKit/TUIChat/UI_Classic/Chat/TUIYHCustomCellClickDelegate.h
0 → 100644
View file @
095a3a1b
//
// TUIYHCustomCellClickDelegate.h
// Pods
//
// Created by alexzzw on 2025/5/20.
//
#import <Foundation/Foundation.h>
@import
ImSDK_Plus
;
@class
TUIFileMessageCellData
;
@class
TUIOrderCellData
;
NS_ASSUME_NONNULL_BEGIN
/////////////////////////////////////////////////////////////////////////////////
//
// TUIYHCustomCellClickDelegate
//
/////////////////////////////////////////////////////////////////////////////////
@protocol
TUIYHCustomCellClickDelegate
<
NSObject
>
/**
* Callback for clicking file cell
* You can use this callback to: preview file inside the app
*
* @param cellData include local file data
*/
-
(
void
)
didTapInFileCell
:
(
TUIFileMessageCellData
*
)
cellData
;
/**
* Callback for clicking Custom cell
* You can use this callback to: preview file inside the app
*
* @param cellData include local file data
*/
-
(
void
)
didTapCustomOrderCell
:(
TUIOrderCellData
*
)
cellData
;
@end
NS_ASSUME_NONNULL_END
galaxy/fastlane/Fastfile
View file @
095a3a1b
...
...
@@ -47,10 +47,11 @@ platform :ios do
webFix = "develop_bugfix_web"
kjzf = "kjzf"
develop_fix_adopter = "develop_fix_adopter"
txim_add_card = "txim_add_card"
#打包正使用的分支
myPack_branch =
develop_fix_adopter
myPack_branch =
txim_add_card
# 打adhoc包 执行命令 fastlane galaxyTest
...
...
galaxy/galaxy/Classes/Base/C/YHNavigationController.swift
View file @
095a3a1b
...
...
@@ -21,7 +21,14 @@ class YHNavigationController: UINavigationController {
override
func
popViewController
(
animated
:
Bool
)
->
UIViewController
?
{
printLog
(
"popViewController"
)
return
super
.
popViewController
(
animated
:
animated
)
let
popedVC
=
super
.
popViewController
(
animated
:
animated
)
if
let
lastVC
=
viewControllers
.
last
{
// 回到腾讯TUI页面,显示NavigationBar
let
className
=
String
(
describing
:
type
(
of
:
lastVC
))
if
className
.
hasPrefix
(
"TUI"
)
{
super
.
setNavigationBarHidden
(
false
,
animated
:
false
)
}
}
return
popedVC
}
override
func
setNavigationBarHidden
(
_
hidden
:
Bool
,
animated
:
Bool
)
{
...
...
@@ -31,8 +38,15 @@ class YHNavigationController: UINavigationController {
// }
if
let
lastVC
=
viewControllers
.
last
{
let
className
=
String
(
describing
:
type
(
of
:
lastVC
))
if
!
className
.
hasPrefix
(
"TUI"
)
{
// 模糊匹配类名
super
.
setNavigationBarHidden
(
hidden
,
animated
:
animated
)
if
!
className
.
hasPrefix
(
"TUI"
)
{
// 模糊匹配类名,使得腾讯IM页面不用隐藏NavigationBar
var
needAnimated
=
false
let
lastSecondCount
=
viewControllers
.
count
-
2
if
lastSecondCount
>=
0
{
let
lastSecondVC
=
viewControllers
[
lastSecondCount
]
let
lastSecondVCClassName
=
String
(
describing
:
type
(
of
:
lastSecondVC
))
needAnimated
=
lastSecondVCClassName
.
hasPrefix
(
"TUI"
)
// 当从TUI页面跳到普通页面需要缓慢隐藏,免得出现黑条
}
super
.
setNavigationBarHidden
(
hidden
,
animated
:
needAnimated
)
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
095a3a1b
...
...
@@ -12,6 +12,7 @@ import TUIConversation
import
TUIChat
import
IQKeyboardManagerSwift
import
GKNavigationBarSwift
import
SafariServices
class
YHMessageListVC
:
YHBaseViewController
{
private
let
messageListManager
=
YHTUIMessageListManager
.
shared
...
...
@@ -502,7 +503,7 @@ extension YHMessageListVC {
if
let
vc
=
vc
as?
TUIBaseChatViewController
{
vc
.
navigationItem
.
rightBarButtonItem
=
nil
vc
.
navigationItem
.
rightBarButtonItems
=
nil
vc
.
filePreview
Delegate
=
self
vc
.
yhCustomCellClick
Delegate
=
self
}
}
...
...
@@ -585,7 +586,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
if
let
vc
=
vc
as?
TUIBaseChatViewController
{
vc
.
navigationItem
.
rightBarButtonItem
=
nil
vc
.
navigationItem
.
rightBarButtonItems
=
nil
vc
.
filePreview
Delegate
=
self
vc
.
yhCustomCellClick
Delegate
=
self
}
return
...
...
@@ -721,7 +722,7 @@ extension YHMessageListVC: YHMessageListDelegate {
}
}
extension
YHMessageListVC
:
TUI
CustomOpenFile
Delegate
{
extension
YHMessageListVC
:
TUI
YHCustomCellClick
Delegate
{
func
didTap
(
inFileCell
cellData
:
TUIFileMessageCellData
)
{
var
isExist
:
ObjCBool
=
false
let
path
=
cellData
.
getFilePath
(
&
isExist
)
...
...
@@ -732,4 +733,66 @@ extension YHMessageListVC: TUICustomOpenFileDelegate {
cellData
.
downloadFile
()
}
}
func
didTapCustomOrderCell
(
_
cellData
:
TUIOrderCellData
)
{
let
linkAddress
=
cellData
.
link
??
""
guard
linkAddress
.
count
>
0
,
linkAddress
.
isValidHttpUrl
||
linkAddress
.
isValidHttpsUrl
||
linkAddress
.
isValidFileUrl
,
let
url
=
URL
(
string
:
linkAddress
)
else
{
handelMessageType
(
linkAddress
)
return
}
let
safariViewController
=
SFSafariViewController
(
url
:
url
)
safariViewController
.
dismissButtonStyle
=
.
close
safariViewController
.
modalPresentationStyle
=
.
fullScreen
UIViewController
.
current
?
.
present
(
safariViewController
,
animated
:
true
,
completion
:
nil
)
}
private
func
handelMessageType
(
_
content
:
String
?)
{
if
let
dicData
=
content
,
dicData
.
count
>
0
,
let
data
=
dicData
.
data
(
using
:
.
utf8
)
{
do
{
if
let
jsonObject
=
try
JSONSerialization
.
jsonObject
(
with
:
data
,
options
:
[])
as?
[
String
:
Any
]
{
// 转换成功,jsonObject 是一个字典
printLog
(
"JSON字符串转换为字典成功:
\(
jsonObject
)
"
)
/*
"{\"order_id\":151824,\"type\":27}"
*/
if
!
jsonObject
.
isEmpty
{
let
msgType
:
String
=
jsonObject
[
"msg_type"
]
as?
String
??
""
let
navH5Url
:
String
=
jsonObject
[
"nav_h5_url"
]
as?
String
??
""
let
orderID
:
Int
=
jsonObject
[
"order_id"
]
as?
Int
??
-
1
let
type
:
Int
=
jsonObject
[
"type"
]
as?
Int
??
-
1
let
batchId
:
Int
=
jsonObject
[
"batch_id"
]
as?
Int
??
0
if
msgType
==
"card_msg"
,
navH5Url
.
count
>
0
{
let
title
=
jsonObject
[
"title"
]
as?
String
??
""
var
url
=
""
if
YHLoginManager
.
shared
.
isLogin
()
{
let
token
=
YHLoginManager
.
shared
.
h5Token
if
navH5Url
.
contains
(
"?"
)
{
url
=
navH5Url
+
"¶m="
+
token
}
else
{
url
=
navH5Url
+
"?param="
+
token
}
}
else
{
url
=
navH5Url
}
let
vc
=
YHH5WebViewVC
()
vc
.
isFullScreenFlag
=
false
vc
.
navTitle
=
title
vc
.
url
=
url
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
orderID
>
-
1
,
type
>
-
1
{
YHServiceOrderListViewController
.
jumpToMessageController
(
type
:
type
,
orderId
:
orderID
,
batchId
)
}
}
else
{
printLog
(
"ddddd"
)
}
}
else
{
printLog
(
"JSON字符串不是有效的字典格式"
)
}
}
catch
{
printLog
(
"JSON解析错误:
\(
error
)
"
)
}
}
}
}
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMemberCenterViewController.swift
View file @
095a3a1b
...
...
@@ -168,7 +168,7 @@ class YHMemberCenterViewController: YHBaseViewController, UIGestureRecognizerDel
if
isNeedLoading
,
let
index
=
YHMembershipLevel
.
allCases
.
firstIndex
(
where
:
{
data
in
data
.
rawValue
==
memberCenterInfo
.
currentLevel
})
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.
2
5
)
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.
7
5
)
{
self
.
headerView
.
bannerView
.
scrollToItem
(
at
:
index
,
animated
:
false
)
self
.
switchCard
(
YHMembershipLevel
.
allCases
[
index
])
}
...
...
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