Commit 96c6429b authored by David黄金龙's avatar David黄金龙

else {

                YHHUD.flash(message: "保存失败,请检查系统权限")
            }
parent cc34de1d
......@@ -160,6 +160,8 @@ extension YHInvatationShareViewController {
DispatchQueue.main.async {
YHHUD.flash(message: "保存成功")
}
} else {
YHHUD.flash(message: "保存失败,请检查系统权限")
}
}
}
......
......@@ -195,7 +195,7 @@ class YHConsultantQRCodeView: UIView {
UIImageWriteToSavedPhotosAlbum(image, self, #selector(self.image(image:didFinishSavingWithError:contextInfo:)), nil)
}
} else {
YHHUD.flash(message: "没有访问图库权限")
YHHUD.flash(message: "保存失败,请检查系统权限")
}
}
}
......
......@@ -20,7 +20,6 @@ class YHPrincleViewModel: YHBaseViewModel {
var alertStatusModel : YHPrincipleAlertStatusModel?
//正式批 操作指引是否确认
// var officialGuildCheckModel : YHPrincipleAlertStatusModel?
var isOfficialGuildCheckFlag : Bool = false
}
......@@ -28,6 +27,35 @@ class YHPrincleViewModel: YHBaseViewModel {
extension YHPrincleViewModel {
//获取获批信列表
func getApprovalLetter(param:[String : Any],callback:((_ success: Bool,_ error:YHErrorModel?)->())?) {
let param = ["IdentifyGetHKAcceptOperateGuid":2]
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Principle.getApprovalLetterApi
let _ = YHNetRequest.getRequest(url: strUrl,params: param) { [weak self] json, code in
//1. json字符串 转 对象
guard let self = self else { return }
printLog("model 是 ==> \(json)")
if json.code == 200 {
// guard let resultModel = YHPrincipleAlertStatusModel.deserialize(dict: dic as? [AnyHashable : Any]) else {
// let err = YHErrorModel(errorCode: YHErrorCode.dictParseError.rawValue, errorMsg: YHErrorCode.dictParseError.description())
// callback?(false, err)
// return
// }
// self.alertStatusModel = resultModel
// callback?(true, nil)
} else {
let err = YHErrorModel(errorCode: Int32(json.code), errorMsg: json.msg.isEmpty ? "" : json.msg)
callback?(false, err)
}
} failBlock: { err in
callback?(false, err)
}
}
//上报弹窗状态
func postAlertStatus(_ type : Int, callback:((_ success: Bool, _ error:YHErrorModel?)->())?) {
......
......@@ -237,7 +237,7 @@ extension YHFileListViewController {
UIImageWriteToSavedPhotosAlbum(image, self, #selector(self.image(image:didFinishSavingWithError:contextInfo:)), nil)
}
} else {
YHHUD.flash(message: "没有访问图库权限")
YHHUD.flash(message: "保存失败,请检查系统权限")
}
}
}
......
......@@ -493,7 +493,7 @@ extension YHMyFileListViewController {
UIImageWriteToSavedPhotosAlbum(image, self, #selector(self.image(image:didFinishSavingWithError:contextInfo:)), nil)
}
} else {
YHHUD.flash(message: "没有访问图库权限")
YHHUD.flash(message: "保存失败,请检查系统权限")
}
}
}
......
......@@ -310,6 +310,8 @@ extension YHH5WebViewVC {
DispatchQueue.main.async {
YHHUD.flash(message: "保存成功")
}
} else {
YHHUD.flash(message: "保存失败,请检查系统权限")
}
}
}
......
......@@ -258,6 +258,8 @@ private extension YHLongtapPictureSheetView {
DispatchQueue.main.async {
YHHUD.flash(message: "保存成功")
}
} else {
YHHUD.flash(message: "保存失败,请检查系统权限")
}
}
}
......
......@@ -378,14 +378,15 @@ class YHAllApiName {
}
struct Principle {
//获取 获批信列表
static let getApprovalLetterApi = "super-app/order/information/approval-letter"
//上报原则批弹窗已展示
static let postAlertStatusApi = "super-app/common/agreement/add"
//原则批、正式批弹窗状态
static let getAlertStatusApi = "super-app/home/agreement-check"
//正式批操作指引是否确认
static let getOfficialCheckStatusApi = "super-app/common/agreement/check"
// 原则批审批结果
static let getReviewResult = "super-app/order/approval/principle"
// 获取档案号列表
......
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