Commit 1a3808fc authored by Steven杜宇's avatar Steven杜宇

// 兑换历史入口

parent 874d03e4
......@@ -293,6 +293,10 @@ class YHMemberCenterViewController: YHBaseViewController {
}
@objc private func didHistoryButtonClicked() {
Self.goExchangeHistory()
}
static func goExchangeHistory() {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/vip/order"
if YHLoginManager.shared.isLogin() {
let token = YHLoginManager.shared.h5Token
......@@ -313,7 +317,7 @@ class YHMemberCenterViewController: YHBaseViewController {
let vc = YHH5WebViewVC()
vc.url = tUrl
vc.isFullScreenFlag = false
navigationController?.pushViewController(vc)
UIViewController.current?.navigationController?.pushViewController(vc)
}
@objc private func didShareButtonClicked() {
......
......@@ -255,6 +255,11 @@ class YHMyNewViewController: YHBaseViewController {
serviceGroupArr.append(item)
}
do {
let item = PersonalModuleItem(icon: "mine_item_activity", title: "兑换历史".local, type:.exchangeHistory)
serviceGroupArr.append(item)
}
// 其他功能
do {
let item = PersonalModuleItem(icon: "mine_item_msg", title: "我的消息".local, type:.myMessage)
......@@ -669,6 +674,8 @@ extension YHMyNewViewController {
let vc = YHActivityListViewController()
vc.type = 1
self.navigationController?.pushViewController(vc)
case .exchangeHistory:
YHMemberCenterViewController.goExchangeHistory()
case .aboutUs:
let vc = YHAboutGalaxyViewController()
self.navigationController?.pushViewController(vc)
......
......@@ -23,6 +23,7 @@ enum YHPersonalModuleItemType: Int {
case myPoster
case myTestCode
case appointGalaxyBay
case exchangeHistory
case notifySettings
case permissionSettings
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment