Commit 90833d4b authored by David黄金龙's avatar David黄金龙

一些细节修改

parent 7c588e0a
...@@ -148,7 +148,7 @@ extension YHHomeHoldViewPageViewController { ...@@ -148,7 +148,7 @@ extension YHHomeHoldViewPageViewController {
return return
} }
model.type = 1 //for test hjl // model.type = 1 //for test hjl
if model.type == 1 { if model.type == 1 {
//正式弹窗 //正式弹窗
......
...@@ -16,8 +16,6 @@ import AttributedString ...@@ -16,8 +16,6 @@ import AttributedString
*/ */
class YHOfficialApprovalResultVC: YHBaseViewController { class YHOfficialApprovalResultVC: YHBaseViewController {
//背景 //背景
lazy var bkgImageV: UIImageView = { lazy var bkgImageV: UIImageView = {
let imageV = UIImageView() let imageV = UIImageView()
...@@ -227,6 +225,8 @@ private extension YHOfficialApprovalResultVC { ...@@ -227,6 +225,8 @@ private extension YHOfficialApprovalResultVC {
return return
} }
model.type = 1 //for test hjl
if model.type == 1 { if model.type == 1 {
let now = Date() let now = Date()
let timestamp = now.timeIntervalSince1970 let timestamp = now.timeIntervalSince1970
...@@ -290,7 +290,7 @@ private extension YHOfficialApprovalResultVC { ...@@ -290,7 +290,7 @@ private extension YHOfficialApprovalResultVC {
docImageV.addSubview(contentView) docImageV.addSubview(contentView)
contentView.snp.makeConstraints { make in contentView.snp.makeConstraints { make in
make.left.equalTo(60) make.left.equalTo(50)
make.top.equalTo(140) make.top.equalTo(140)
make.width.equalTo(294) make.width.equalTo(294)
make.height.equalTo(530) make.height.equalTo(530)
...@@ -299,7 +299,7 @@ private extension YHOfficialApprovalResultVC { ...@@ -299,7 +299,7 @@ private extension YHOfficialApprovalResultVC {
docImageV.addSubview(penImageV) docImageV.addSubview(penImageV)
penImageV.snp.makeConstraints { make in penImageV.snp.makeConstraints { make in
make.top.equalToSuperview().offset(210) make.top.equalToSuperview().offset(204)
make.right.equalToSuperview() make.right.equalToSuperview()
make.width.equalTo(67) make.width.equalTo(67)
make.height.equalTo(141) make.height.equalTo(141)
...@@ -361,9 +361,9 @@ private extension YHOfficialApprovalResultVC { ...@@ -361,9 +361,9 @@ private extension YHOfficialApprovalResultVC {
// let transform = CGAffineTransform(scaleX: 0.6, y: 0.75) // let transform = CGAffineTransform(scaleX: 0.6, y: 0.75)
// bannerView.transformer = FSPagerViewTransformer(type:.linear) bannerView.transformer = FSPagerViewTransformer(type:.linear)
// bannerView.itemSize = CGSize(width: 268, height: 148).applying(transform) // bannerView.itemSize = CGSize(width: 268, height: 148).applying(transform)
// bannerView.reloadData() bannerView.reloadData()
} }
private func rotatedTransform() -> CGAffineTransform { private func rotatedTransform() -> CGAffineTransform {
......
...@@ -116,6 +116,11 @@ extension YHOffivialApprovalGuildLineCheckView { ...@@ -116,6 +116,11 @@ extension YHOffivialApprovalGuildLineCheckView {
func show() { func show() {
UIApplication.shared.yhKeyWindow()?.addSubview(self) UIApplication.shared.yhKeyWindow()?.addSubview(self)
UIView.animate(withDuration: 0.5) {
let whiteHeight = KScreenHeight - k_Height_NavigationtBarAndStatuBar
self.whiteContentView.frame = CGRect(x: 0, y: KScreenHeight - whiteHeight, width: KScreenWidth, height: whiteHeight)
}
} }
@objc func dismiss() { @objc func dismiss() {
...@@ -184,10 +189,11 @@ private extension YHOffivialApprovalGuildLineCheckView { ...@@ -184,10 +189,11 @@ private extension YHOffivialApprovalGuildLineCheckView {
} }
let whiteHeight = KScreenHeight - k_Height_NavigationtBarAndStatuBar let whiteHeight = KScreenHeight - k_Height_NavigationtBarAndStatuBar
whiteContentView.snp.makeConstraints { make in // whiteContentView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview() // make.left.right.bottom.equalToSuperview()
make.height.equalTo(whiteHeight) // make.height.equalTo(whiteHeight)
} // }
whiteContentView.frame = CGRect(x: 0, y: KScreenHeight, width: KScreenWidth, height: whiteHeight)
whiteContentView.addSubview(bkgImageV2) whiteContentView.addSubview(bkgImageV2)
bkgImageV2.snp.makeConstraints { make in bkgImageV2.snp.makeConstraints { make in
......
...@@ -89,6 +89,7 @@ class YHOffivialApprovalSuccessView: UIView { ...@@ -89,6 +89,7 @@ class YHOffivialApprovalSuccessView: UIView {
private extension YHOffivialApprovalSuccessView { private extension YHOffivialApprovalSuccessView {
func updateUI() { func updateUI() {
// backgroundColor = .purple // for test hjl
guard let model = dataModel else { return } guard let model = dataModel else { return }
titleLabel.text = "恭喜 " + model.applicant_name + model.applicant_sex.gentlemanDescribe() + "!" titleLabel.text = "恭喜 " + model.applicant_name + model.applicant_sex.gentlemanDescribe() + "!"
......
...@@ -194,7 +194,7 @@ class YHLongtapPictureSheetView: UIView { ...@@ -194,7 +194,7 @@ class YHLongtapPictureSheetView: UIView {
// 底部四个操作行高度之和 // 底部四个操作行高度之和
let tableViewHeight = 52.0 * Double(self.uploadTypeArr.count) + (Double(self.uploadTypeArr.count - 1)) * 1 let tableViewHeight = 52.0 * Double(self.uploadTypeArr.count) + (Double(self.uploadTypeArr.count - 1)) * 1
// 白色View总高度 // 白色View总高度
var totalHeight = 52.0 + 1 + tableViewHeight + k_Height_safeAreaInsetsBottom() let totalHeight = 52.0 + 1 + tableViewHeight + k_Height_safeAreaInsetsBottom()
return totalHeight return totalHeight
} }
} }
......
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