Commit d7190bc2 authored by Steven杜宇's avatar Steven杜宇

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

parents d76a94a6 1f4f175a
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
## Build generated ## Build generated
build/ build/
buglybin/
DerivedData/ DerivedData/
Podfile.lock Podfile.lock
......
...@@ -4150,7 +4150,7 @@ ...@@ -4150,7 +4150,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -4291,7 +4291,7 @@ ...@@ -4291,7 +4291,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -4495,7 +4495,7 @@ ...@@ -4495,7 +4495,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -4541,7 +4541,7 @@ ...@@ -4541,7 +4541,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
......
...@@ -28,7 +28,7 @@ class YHHomeHoldViewPageViewController: YHBaseViewController { ...@@ -28,7 +28,7 @@ class YHHomeHoldViewPageViewController: YHBaseViewController {
dataSource.isTitleColorGradientEnabled = false dataSource.isTitleColorGradientEnabled = false
dataSource.titles = arrItemTitles dataSource.titles = arrItemTitles
dataSource.titleNormalFont = UIFont.PFSC_M(ofSize: 15) dataSource.titleNormalFont = UIFont.PFSC_M(ofSize: 16)
dataSource.titleNormalColor = UIColor.yhGreyColor dataSource.titleNormalColor = UIColor.yhGreyColor
dataSource.titleSelectedFont = UIFont.PFSC_M(ofSize: 21) dataSource.titleSelectedFont = UIFont.PFSC_M(ofSize: 21)
......
...@@ -43,6 +43,14 @@ class YHHomeIdentityViewController: YHBaseViewController { ...@@ -43,6 +43,14 @@ class YHHomeIdentityViewController: YHBaseViewController {
return view return view
}() }()
lazy var noDataView: YHEmptyDataView = {
let view = YHEmptyDataView.createView("暂无内容", kEmptyCommonBgName)
view.backgroundColor = .white
view.topMargin = 150
view.isHidden = true
return view
}()
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
createUI() createUI()
...@@ -55,6 +63,8 @@ class YHHomeIdentityViewController: YHBaseViewController { ...@@ -55,6 +63,8 @@ class YHHomeIdentityViewController: YHBaseViewController {
self.view.addSubview(self.scrollView) self.view.addSubview(self.scrollView)
self.view.addSubview(self.subTabBar) self.view.addSubview(self.subTabBar)
self.view.addSubview(self.noDataView)
self.subTabBar.snp.makeConstraints { make in self.subTabBar.snp.makeConstraints { make in
make.top.equalToSuperview() make.top.equalToSuperview()
make.left.equalTo(20) make.left.equalTo(20)
...@@ -65,6 +75,10 @@ class YHHomeIdentityViewController: YHBaseViewController { ...@@ -65,6 +75,10 @@ class YHHomeIdentityViewController: YHBaseViewController {
make.top.equalTo(self.subTabBar.snp.bottom) make.top.equalTo(self.subTabBar.snp.bottom)
make.left.right.bottom.equalToSuperview() make.left.right.bottom.equalToSuperview()
} }
self.noDataView.snp.makeConstraints { make in
make.left.right.top.bottom.equalToSuperview()
}
} }
override func viewWillDisappear(_ animated: Bool) { override func viewWillDisappear(_ animated: Bool) {
...@@ -94,6 +108,11 @@ extension YHHomeIdentityViewController { ...@@ -94,6 +108,11 @@ extension YHHomeIdentityViewController {
[weak self] success, error in [weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
if !success {
self.view.bringSubviewToFront(self.noDataView)
self.noDataView.isHidden = false
}
subTabArr.removeAll() subTabArr.removeAll()
for item in self.viewModel.categoryArr { for item in self.viewModel.categoryArr {
if let item = item { if let item = item {
......
...@@ -33,28 +33,51 @@ class YHHomeInformationViewController: YHBaseViewController { ...@@ -33,28 +33,51 @@ class YHHomeInformationViewController: YHBaseViewController {
collectinoView.alwaysBounceVertical = true collectinoView.alwaysBounceVertical = true
collectinoView.showsVerticalScrollIndicator = false collectinoView.showsVerticalScrollIndicator = false
collectinoView.es.addYHPullToRefresh { collectinoView.es.addYHPullToRefresh {
self.getClassifies() self.requetData()
self.getTheNewestInfoList(isFirstPage: true)
} }
collectinoView.es.addInfiniteScrolling { collectinoView.es.addInfiniteScrolling {
self.getTheNewestInfoList(isFirstPage: false) self.getTheNewestInfoList(isFirstPage: false, completion: nil)
} }
return collectinoView return collectinoView
}() }()
lazy var noDataView: YHEmptyDataView = {
let view = YHEmptyDataView.createView("暂无内容", kEmptyCommonBgName)
view.backgroundColor = .white
view.topMargin = 150
view.isHidden = true
return view
}()
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
gk_navigationBar.isHidden = true gk_navigationBar.isHidden = true
self.view.backgroundColor = .white self.view.backgroundColor = .white
self.view.addSubview(self.collectView) self.view.addSubview(self.collectView)
self.view.addSubview(self.noDataView)
self.collectView.snp.makeConstraints { make in self.collectView.snp.makeConstraints { make in
make.top.equalTo(10) make.top.equalTo(10)
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
make.left.equalTo(20) make.left.equalTo(20)
make.right.equalTo(-20) make.right.equalTo(-20)
} }
self.getClassifies() self.noDataView.snp.makeConstraints { make in
self.getTheNewestInfoList(isFirstPage:true) make.left.right.top.bottom.equalToSuperview()
}
requetData()
}
func requetData() {
self.getClassifies {
self.getTheNewestInfoList(isFirstPage: true) {
let count = self.viewModel.arrHomeNewsData?.count ?? 0
if count <= 0, self.sectionItems.count <= 0 {
self.noDataView.isHidden = false
} else {
self.noDataView.isHidden = true
}
}
}
} }
} }
...@@ -145,15 +168,16 @@ extension YHHomeInformationViewController: JXSegmentedListContainerViewListDeleg ...@@ -145,15 +168,16 @@ extension YHHomeInformationViewController: JXSegmentedListContainerViewListDeleg
extension YHHomeInformationViewController { extension YHHomeInformationViewController {
// 获取栏目 // 获取栏目
func getClassifies() { func getClassifies(_ completion: (()->())?) {
self.viewModel.getHomeInfoClassifies { success, error in self.viewModel.getHomeInfoClassifies { success, error in
self.sectionItems.removeAll() self.sectionItems.removeAll()
self.sectionItems.append(contentsOf: self.viewModel.classifyArr) self.sectionItems.append(contentsOf: self.viewModel.classifyArr)
self.collectView.reloadData() self.collectView.reloadData()
completion?()
} }
} }
// 获取最新资讯 // 获取最新资讯
func getTheNewestInfoList(isFirstPage: Bool) { func getTheNewestInfoList(isFirstPage: Bool, completion: (()->())?) {
self.viewModel.getList(isFirsPage: isFirstPage) { success, error in self.viewModel.getList(isFirsPage: isFirstPage) { success, error in
self.collectView.reloadData() self.collectView.reloadData()
self.collectView.es.stopPullToRefresh() self.collectView.es.stopPullToRefresh()
...@@ -162,6 +186,7 @@ extension YHHomeInformationViewController { ...@@ -162,6 +186,7 @@ extension YHHomeInformationViewController {
self.collectView.es.noticeNoMoreData() self.collectView.es.noticeNoMoreData()
self.collectView.footer?.alpha = 1 self.collectView.footer?.alpha = 1
} }
completion?()
} }
} }
} }
...@@ -45,10 +45,6 @@ class YHStartPageViewController: UIViewController { ...@@ -45,10 +45,6 @@ class YHStartPageViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) { override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated) super.viewDidAppear(animated)
let dateString = Date().dateString(ofStyle: .short)
UserDefaults.standard.set(dateString, forKey: "todayShowStartPageViewFlag")
UserDefaults.standard.synchronize()
} }
} }
...@@ -121,6 +117,12 @@ private extension YHStartPageViewController { ...@@ -121,6 +117,12 @@ private extension YHStartPageViewController {
UserDefaults.standard.synchronize() UserDefaults.standard.synchronize()
self.closeBtn.isHidden = false self.closeBtn.isHidden = false
self.startTimer() self.startTimer()
let dateString = Date().dateString(ofStyle: .short)
UserDefaults.standard.set(dateString, forKey: "todayShowStartPageViewFlag")
UserDefaults.standard.synchronize()
} }
agreeAlertView.cancelBlock = { agreeAlertView.cancelBlock = {
......
...@@ -80,7 +80,7 @@ extension YHInvitationWithGiftsViewController: UITableViewDelegate, UITableViewD ...@@ -80,7 +80,7 @@ extension YHInvitationWithGiftsViewController: UITableViewDelegate, UITableViewD
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.row == 0 { if indexPath.row == 0 {
return 209 return KScreenWidth / 1.82
} else if indexPath.row == 1 { } else if indexPath.row == 1 {
if self.viewModel.recordModel.list.count == 0 { if self.viewModel.recordModel.list.count == 0 {
return 345 return 345
...@@ -200,7 +200,7 @@ extension YHInvitationWithGiftsViewController: UIScrollViewDelegate { ...@@ -200,7 +200,7 @@ extension YHInvitationWithGiftsViewController: UIScrollViewDelegate {
gk_navBarAlpha = 1 gk_navBarAlpha = 1
if percent >= 0.5 { if percent >= 0.5 {
gk_navTitle = "关于银河湾" gk_navTitle = ""
} else { } else {
gk_navTitle = "" gk_navTitle = ""
} }
......
...@@ -54,6 +54,8 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell { ...@@ -54,6 +54,8 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
label.textAlignment = .center label.textAlignment = .center
label.layer.borderWidth = 1 label.layer.borderWidth = 1
label.layer.borderColor = UIColor(hex: 0xebf4fe).cgColor label.layer.borderColor = UIColor(hex: 0xebf4fe).cgColor
label.layer.cornerRadius = kCornerRadius3
label.layer.maskedCorners = [.layerMinXMaxYCorner,.layerMaxXMaxYCorner]
self.tableView.tableFooterView = label self.tableView.tableFooterView = label
} else { } else {
self.tableView.tableFooterView = UIView() self.tableView.tableFooterView = UIView()
...@@ -261,6 +263,8 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell { ...@@ -261,6 +263,8 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
peopleOneView = { peopleOneView = {
let view = YHInvitationPeopleItemView() let view = YHInvitationPeopleItemView()
view.titleLabel.text = "被邀请人" view.titleLabel.text = "被邀请人"
view.layer.cornerRadius = kCornerRadius3
view.layer.maskedCorners = [.layerMinXMinYCorner]
return view return view
}() }()
centerView.addSubview(peopleOneView) centerView.addSubview(peopleOneView)
...@@ -274,6 +278,14 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell { ...@@ -274,6 +278,14 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
peopleFiveView = { peopleFiveView = {
let view = YHInvitationPeopleItemView() let view = YHInvitationPeopleItemView()
view.titleLabel.text = "签约" view.titleLabel.text = "签约"
view.titleLabel.textAlignment = .center
view.layer.cornerRadius = kCornerRadius3
view.layer.maskedCorners = [.layerMaxXMinYCorner]
view.titleLabel.snp.remakeConstraints { make in
make.top.equalTo(10)
make.height.equalTo(17)
make.left.right.equalToSuperview()
}
return view return view
}() }()
centerView.addSubview(peopleFiveView) centerView.addSubview(peopleFiveView)
...@@ -287,6 +299,12 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell { ...@@ -287,6 +299,12 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
peopleFourView = { peopleFourView = {
let view = YHInvitationPeopleItemView() let view = YHInvitationPeopleItemView()
view.titleLabel.text = "测评" view.titleLabel.text = "测评"
view.titleLabel.textAlignment = .center
view.titleLabel.snp.remakeConstraints { make in
make.top.equalTo(10)
make.height.equalTo(17)
make.left.right.equalToSuperview()
}
return view return view
}() }()
centerView.addSubview(peopleFourView) centerView.addSubview(peopleFourView)
...@@ -300,6 +318,12 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell { ...@@ -300,6 +318,12 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
peopleThreeView = { peopleThreeView = {
let view = YHInvitationPeopleItemView() let view = YHInvitationPeopleItemView()
view.titleLabel.text = "注册" view.titleLabel.text = "注册"
view.titleLabel.textAlignment = .center
view.titleLabel.snp.remakeConstraints { make in
make.top.equalTo(10)
make.height.equalTo(17)
make.left.right.equalToSuperview()
}
return view return view
}() }()
centerView.addSubview(peopleThreeView) centerView.addSubview(peopleThreeView)
...@@ -358,6 +382,7 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell { ...@@ -358,6 +382,7 @@ class YHInvitationWithGiftsSecondTableViewCell: UITableViewCell {
self.tableView.reloadData() self.tableView.reloadData()
} }
} }
} }
} }
......
...@@ -9,12 +9,14 @@ ...@@ -9,12 +9,14 @@
import UIKit import UIKit
class YHHomeHeadView: UIView { class YHHomeHeadView: UIView {
private static let topMargin : CGFloat = 10.0
// 不包含订单提示视图的总高度 // 不包含订单提示视图的总高度
private static let fixViewH : CGFloat = (YHHomeBannerView.viewH) + (20 + YHHomeKingKongBlockView.viewH) + (20 + 1) + (20 + YHAiRadarAreaView.viewH) + (20 + YHHomeSalonAreaView.viewH) + (20 + 1) + 20 private static let fixViewH : CGFloat = YHHomeHeadView.topMargin + (YHHomeBannerView.viewH) + (20 + YHHomeKingKongBlockView.viewH) + (20 + 1) + (20 + YHAiRadarAreaView.viewH) + (20 + YHHomeSalonAreaView.viewH) + (20 + 1) + 20
//展示 订单提示时候的 高度 //展示 订单提示时候的 高度
private var homeHeadViewH : CGFloat { private var homeHeadViewH : CGFloat {
return YHHomeHeadView.fixViewH + (20 + orderTipsView.tipViewH) return YHHomeHeadView.fixViewH + (20 + orderTipsView.tipViewH) + YHHomeHeadView.topMargin
} }
//获取headView的具体高度 //获取headView的具体高度
...@@ -22,7 +24,7 @@ class YHHomeHeadView: UIView { ...@@ -22,7 +24,7 @@ class YHHomeHeadView: UIView {
if showTips { if showTips {
return homeHeadViewH return homeHeadViewH
} else { } else {
return YHHomeHeadView.fixViewH + (20 + YHEvaluationView.viewH) return YHHomeHeadView.fixViewH + (20 + YHEvaluationView.viewH) + YHHomeHeadView.topMargin
} }
} }
...@@ -103,7 +105,7 @@ class YHHomeHeadView: UIView { ...@@ -103,7 +105,7 @@ class YHHomeHeadView: UIView {
func updateSubViewsConstraints() { func updateSubViewsConstraints() {
homeBannerView.snp.remakeConstraints { make in homeBannerView.snp.remakeConstraints { make in
make.top.equalTo(0) make.top.equalTo(YHHomeHeadView.topMargin)
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
make.height.equalTo(YHHomeBannerView.viewH) make.height.equalTo(YHHomeBannerView.viewH)
} }
...@@ -174,7 +176,7 @@ private extension YHHomeHeadView { ...@@ -174,7 +176,7 @@ private extension YHHomeHeadView {
addSubview(homeBannerView) addSubview(homeBannerView)
homeBannerView.snp.makeConstraints { make in homeBannerView.snp.makeConstraints { make in
make.top.equalTo(0) make.top.equalTo(YHHomeHeadView.topMargin)
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
make.height.equalTo(YHHomeBannerView.viewH) make.height.equalTo(YHHomeBannerView.viewH)
} }
......
...@@ -252,7 +252,7 @@ class YHDocumentToActionTableViewCell: UITableViewCell { ...@@ -252,7 +252,7 @@ class YHDocumentToActionTableViewCell: UITableViewCell {
fileImageView.image = UIImage(named: iconImgName) fileImageView.image = UIImage(named: iconImgName)
fileNameLabel.text = dataSource.writing_document.doc_sign.doc_type_name fileNameLabel.text = dataSource.writing_document.doc_sign.doc_type_name
if dataSource.writing_document.doc_sign.doc_type == 7 || dataSource.writing_document.doc_sign.doc_type == 8 { if dataSource.writing_document.doc_sign.doc_type == 7 || dataSource.writing_document.doc_sign.doc_type == 8 {
shareButton.isHidden = false // shareButton.isHidden = false
} }
} }
......
...@@ -264,7 +264,7 @@ class YHSignatureToActionTableViewCell: UITableViewCell { ...@@ -264,7 +264,7 @@ class YHSignatureToActionTableViewCell: UITableViewCell {
fileImageView.image = UIImage(named: iconImgName) fileImageView.image = UIImage(named: iconImgName)
fileNameLabel.text = dataSource.doc_type_name fileNameLabel.text = dataSource.doc_type_name
if dataSource.doc_type == 7 || dataSource.doc_type == 8 { if dataSource.doc_type == 7 || dataSource.doc_type == 8 {
shareButton.isHidden = false // shareButton.isHidden = false
} }
} }
......
...@@ -27,6 +27,10 @@ class YHWorkExperienceViewController: YHBaseViewController { ...@@ -27,6 +27,10 @@ class YHWorkExperienceViewController: YHBaseViewController {
let view = YHFileRenameInputView.inputView(defalutText: "请输入名称") let view = YHFileRenameInputView.inputView(defalutText: "请输入名称")
return view return view
}() }()
lazy var previewFileTool:YHFilePreviewTool = {
let tool = YHFilePreviewTool(targetVC: self)
return tool
}()
lazy var blackMaskView: UIView = { lazy var blackMaskView: UIView = {
let view = UIView(frame:UIScreen.main.bounds) let view = UIView(frame:UIScreen.main.bounds)
view.backgroundColor = UIColor(hex: 0x0F1214, alpha: 0.5) view.backgroundColor = UIColor(hex: 0x0F1214, alpha: 0.5)
...@@ -612,9 +616,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -612,9 +616,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
} }
if editType == .preview { if editType == .preview {
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName: model.fileName)
}
}
} }
} }
...@@ -624,9 +630,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -624,9 +630,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
}.show() }.show()
} else { } else {
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:model.fileName)
}
}
} }
} }
} }
...@@ -740,9 +748,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -740,9 +748,11 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
} }
if editType == .preview { if editType == .preview {
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:model.fileName)
}
}
} }
} }
if editType == .delete { if editType == .delete {
...@@ -750,15 +760,14 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo ...@@ -750,15 +760,14 @@ extension YHWorkExperienceViewController: UITableViewDelegate, UITableViewDataSo
} }
}.show() }.show()
} else { } else {
// let vc = YHImageViewController()
// vc.imgString = model.fileUrl
// UIViewController.current?.navigationController?.pushViewController(vc)
if model.fileUrl.isEmpty == false { if model.fileUrl.isEmpty == false {
let vc = YHImageViewController() self.viewModel.getPublicImageUrl(model.fileUrl) { success, error in
vc.imgString = model.fileUrl if let success = success {
UIViewController.current?.navigationController?.pushViewController(vc) self.previewFileTool.openXLSXRemoteFile(urlString: success, fileName:model.fileName)
}
}
} }
} }
} }
......
...@@ -184,7 +184,7 @@ private extension YHH5WebViewVC { ...@@ -184,7 +184,7 @@ private extension YHH5WebViewVC {
if shareUrl.contains("superAppBridge.html#/evaluation", caseSensitive: false) { if shareUrl.contains("superAppBridge.html#/evaluation", caseSensitive: false) {
shareUrl = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/evaluation?channel=APP-share&customer_id=\(YHLoginManager.shared.userModel?.id ?? "")" shareUrl = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/evaluation?channel=APP-share&customer_id=\(YHLoginManager.shared.userModel?.id ?? "")"
} }
YHShareManager.shared.sendLinkContent(self.shareH5Title, self.shareH5Describe, UIImage(named: "AppIcon") ?? UIImage(), link: self.url) YHShareManager.shared.sendLinkContent(self.shareH5Title, self.shareH5Describe, UIImage(named: "AppIcon") ?? UIImage(), link: shareUrl)
} }
} }
......
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