Commit a3c7843e authored by Alex朱枝文's avatar Alex朱枝文

多主体订单二维码跳转

parent 82461af4
......@@ -276,6 +276,33 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
vc.url = tUrl
UIViewController.current?.navigationController?.pushViewController(vc)
}
} else if iType == 10 {
// 多主体订单二维码跳转
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
if !YHLoginManager.shared.isLogin() {
printLog("需要登录")
return
}
// - 获取它对应的参数
if let orderId = arrItems["orderId"] as? String, !orderId.isEmpty {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/order/detail?id=\(orderId)"
if YHLoginManager.shared.isLogin() {
let token = YHLoginManager.shared.h5Token
url = url + "&param=" + token
}
var tUrl = url
if !url.contains("navigationH=") {
tUrl = url + "?navigationH=\(k_Height_NavigationtBarAndStatuBar)"
if url.contains("?") {
tUrl = url + "&navigationH=\(k_Height_NavigationtBarAndStatuBar)"
}
}
let vc = YHH5WebViewVC()
vc.url = tUrl
vc.isHideNavigationBar = false
UIViewController.current?.navigationController?.pushViewController(vc, animated: true)
}
}
} else {
printLog("未处理的类型 \(iType)")
}
......
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