Commit 4974c92f authored by David黄金龙's avatar David黄金龙

处理 bug

parent 84a9f6c7
......@@ -158,7 +158,7 @@ class YHServiceOrderListView: YHBaseViewController {
alert.show()
} else { // 已预约过直接进入赴港行程指引
if var token = YHLoginManager.shared.userModel?.token,token.count > 5 {
if let token = YHLoginManager.shared.userModel?.token,token.count > 5 {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/tohkList"
url = url + "?paramO=\(orderId)" + "&param=" + YHLoginManager.shared.h5Token
url = url + "&app_platform=ios" + "&app_version=" + UIDevice.appVersion()
......
......@@ -161,7 +161,6 @@ extension YHJsApi {
// 转换成功,jsonObject 是一个字典
print("JSON字符串转换为字典成功: \(jsonObject)")
/*
{
id:1,
name:"教学升学",
......
......@@ -404,10 +404,15 @@ extension YHMessageDetailListVC: UITableViewDelegate, UITableViewDataSource {
if self.type == YHMessageType.infoSubmit.rawValue { // 资料递交
if !message.url.isEmpty {
if let url = URL(string: message.url) {
let safariViewController = SFSafariViewController(url: url)
safariViewController.dismissButtonStyle = .close
safariViewController.modalPresentationStyle = .fullScreen
present(safariViewController, animated: true, completion: nil)
if message.url.contains("signatureQrcode/") {
} else {
let safariViewController = SFSafariViewController(url: url)
safariViewController.dismissButtonStyle = .close
safariViewController.modalPresentationStyle = .fullScreen
present(safariViewController, animated: true, completion: nil)
}
} else {
YHHUD.flash(message: "url无效")
}
......
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