Commit fa0b5e67 authored by David黄金龙's avatar David黄金龙

添加 续签方案的跳转

parent c40953f2
...@@ -170,6 +170,25 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource { ...@@ -170,6 +170,25 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
//身份续签指引 //身份续签指引
} else if tag == 2 { } else if tag == 2 {
//我的续签方案 //我的续签方案
printLog("续签方案")
if let param = YHLoginManager.shared.userModel?.token,param.count>5 {
printLog(param)
var token : String = param
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/report/program"
let addtionString = String.randomAlphaNumericStringT(6)//随机6个字母或者数字
let indexToInsert = token.index(token.startIndex, offsetBy: 6) //插入位置,这里以第六个字符后面为例
token.insert(contentsOf: addtionString, at: indexToInsert)
//superAppBridge.html#/report/program?token=&batchID=1&order_id=151190
url = url + "?param=" + token + "&batchID=\(stepID)" + "&order_id=\(orderID)"
let vc = YHH5WebViewVC()
vc.navTitle = "我的续签方案"
vc.url = url
// vc.isFullScreenFlag = false
UIViewController.current?.navigationController?.pushViewController(vc)
}
} else if tag == 3 { } else if tag == 3 {
//添加在港记录 //添加在港记录
let vc = YHHKImmigrationRecordsVC(orderId: orderID) let vc = YHHKImmigrationRecordsVC(orderId: orderID)
......
...@@ -45,7 +45,7 @@ class YHH5WebViewVC: YHBaseViewController, WKUIDelegate, WKNavigationDelegate { ...@@ -45,7 +45,7 @@ class YHH5WebViewVC: YHBaseViewController, WKUIDelegate, WKNavigationDelegate {
} }
deinit { deinit {
webview.removeObserver(self, forKeyPath: "estimatedProgress") // webview.removeObserver(self, forKeyPath: "estimatedProgress")
NotificationCenter.default.removeObserver(self) NotificationCenter.default.removeObserver(self)
} }
...@@ -90,7 +90,7 @@ class YHH5WebViewVC: YHBaseViewController, WKUIDelegate, WKNavigationDelegate { ...@@ -90,7 +90,7 @@ class YHH5WebViewVC: YHBaseViewController, WKUIDelegate, WKNavigationDelegate {
var isNeedRefreshDataFlag : Bool = false var isNeedRefreshDataFlag : Bool = false
//webView内部返回 //webView内部返回
var isSupportWebviewInterBackFlag : Bool = false var isSupportWebviewInterBackFlag : Bool = true
override func backItemClick(_ sender: Any) { override func backItemClick(_ sender: Any) {
...@@ -227,7 +227,7 @@ private extension YHH5WebViewVC { ...@@ -227,7 +227,7 @@ private extension YHH5WebViewVC {
progBar.tintColor = UIColor.brandMainColor progBar.tintColor = UIColor.brandMainColor
webview.addSubview(progBar) webview.addSubview(progBar)
// 监听网页加载的进度 // 监听网页加载的进度
webview.addObserver(self, forKeyPath: "estimatedProgress", options: .new, context: nil) // webview.addObserver(self, forKeyPath: "estimatedProgress", options: .new, context: nil)
view.addSubview(noNetWorkTipsView) view.addSubview(noNetWorkTipsView)
self.noNetWorkTipsView.snp.makeConstraints { make in self.noNetWorkTipsView.snp.makeConstraints { make in
......
...@@ -381,7 +381,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource { ...@@ -381,7 +381,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
let vc = YHH5WebViewVC() let vc = YHH5WebViewVC()
vc.navTitle = "积分中心" vc.navTitle = "积分中心"
vc.url = url vc.url = url
vc.isSupportWebviewInterBackFlag = true
vc.isFullScreenFlag = false vc.isFullScreenFlag = false
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} }
......
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