Commit 13f676a9 authored by Steven杜宇's avatar Steven杜宇

// 微信上传

parent 48788b4e
......@@ -36,7 +36,8 @@ enum YHCertificateUploadType: Int {
case camera = 2
case photo = 3
case phoneFile = 4
case cancel = 5
case wechatUpload = 5
case cancel = 6
}
......@@ -67,6 +68,7 @@ class YHCertificateUploadSheetView: UIView {
YHCertificateUploadItem(type:.camera, title:"拍照上传"),
YHCertificateUploadItem(type:.photo, title:"相册上传"),
YHCertificateUploadItem(type:.phoneFile, title:"手机文件上传", subtitle:"从手机文件管理中上传"),
YHCertificateUploadItem(type:.wechatUpload, title:"微信上传"),
YHCertificateUploadItem(type:.cancel, title:"取消")]
// 上传文件
......@@ -259,8 +261,8 @@ class YHCertificateUploadSheetView: UIView {
context: nil).size.height
descHeight = ceil(descHeight)+21+34
// 底部个操作行高度之和
let actionsHeight = 52.0 * 4.0
// 底部5个操作行高度之和
let actionsHeight = 52.0 * Double(uploadTypeArr.count)
var tableViewHeight = descHeight+actionsHeight
if tips == "" {
tableViewHeight = actionsHeight
......@@ -321,6 +323,9 @@ extension YHCertificateUploadSheetView: UITableViewDelegate, UITableViewDataSour
} else if operationItem.type == .phoneFile {
selectFile()
} else if operationItem.type == .wechatUpload {
selectFileFromWeChatPragram()
}
}
}
......@@ -594,3 +599,10 @@ extension YHCertificateUploadSheetView: UIDocumentPickerDelegate {
}
}
extension YHCertificateUploadSheetView {
func selectFileFromWeChatPragram() {
}
}
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