Commit 729c8a26 authored by pete谢兆麟's avatar pete谢兆麟
parents 308e0f9a 5883b7b6
...@@ -1266,6 +1266,7 @@ ...@@ -1266,6 +1266,7 @@
04D8FF792D97BDBD00703C75 /* YHPlanShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF782D97BDBD00703C75 /* YHPlanShareViewController.swift */; }; 04D8FF792D97BDBD00703C75 /* YHPlanShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF782D97BDBD00703C75 /* YHPlanShareViewController.swift */; };
04D8FF7B2D97C29E00703C75 /* YHPlanShareView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF7A2D97C29E00703C75 /* YHPlanShareView.swift */; }; 04D8FF7B2D97C29E00703C75 /* YHPlanShareView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FF7A2D97C29E00703C75 /* YHPlanShareView.swift */; };
04D8FFB02D9A3CF200703C75 /* YHPlanShareImageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FFAF2D9A3CF200703C75 /* YHPlanShareImageCell.swift */; }; 04D8FFB02D9A3CF200703C75 /* YHPlanShareImageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FFAF2D9A3CF200703C75 /* YHPlanShareImageCell.swift */; };
04D8FFB22DA5007A00703C75 /* YHPictureBrowserViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D8FFB12DA5007A00703C75 /* YHPictureBrowserViewController.swift */; };
04E4CF3E2D5C6D32004D4013 /* YHCountryMessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3D2D5C6D32004D4013 /* YHCountryMessageView.swift */; }; 04E4CF3E2D5C6D32004D4013 /* YHCountryMessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3D2D5C6D32004D4013 /* YHCountryMessageView.swift */; };
04E4CF402D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3F2D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift */; }; 04E4CF402D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E4CF3F2D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift */; };
04E507D62D6EE856005F758B /* YHUserLevelAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */; }; 04E507D62D6EE856005F758B /* YHUserLevelAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */; };
...@@ -2575,6 +2576,7 @@ ...@@ -2575,6 +2576,7 @@
04D8FF782D97BDBD00703C75 /* YHPlanShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanShareViewController.swift; sourceTree = "<group>"; }; 04D8FF782D97BDBD00703C75 /* YHPlanShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanShareViewController.swift; sourceTree = "<group>"; };
04D8FF7A2D97C29E00703C75 /* YHPlanShareView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanShareView.swift; sourceTree = "<group>"; }; 04D8FF7A2D97C29E00703C75 /* YHPlanShareView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanShareView.swift; sourceTree = "<group>"; };
04D8FFAF2D9A3CF200703C75 /* YHPlanShareImageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanShareImageCell.swift; sourceTree = "<group>"; }; 04D8FFAF2D9A3CF200703C75 /* YHPlanShareImageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPlanShareImageCell.swift; sourceTree = "<group>"; };
04D8FFB12DA5007A00703C75 /* YHPictureBrowserViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHPictureBrowserViewController.swift; sourceTree = "<group>"; };
04E4CF3D2D5C6D32004D4013 /* YHCountryMessageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCountryMessageView.swift; sourceTree = "<group>"; }; 04E4CF3D2D5C6D32004D4013 /* YHCountryMessageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCountryMessageView.swift; sourceTree = "<group>"; };
04E4CF3F2D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectPhoneCountryViewController.swift; sourceTree = "<group>"; }; 04E4CF3F2D5C83AE004D4013 /* YHSelectPhoneCountryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHSelectPhoneCountryViewController.swift; sourceTree = "<group>"; };
04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHUserLevelAlertView.swift; sourceTree = "<group>"; }; 04E507D52D6EE856005F758B /* YHUserLevelAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHUserLevelAlertView.swift; sourceTree = "<group>"; };
...@@ -5987,6 +5989,7 @@ ...@@ -5987,6 +5989,7 @@
children = ( children = (
045C0EFE2D12CA5E00BD2DC0 /* YHLongtapPictureSheetView.swift */, 045C0EFE2D12CA5E00BD2DC0 /* YHLongtapPictureSheetView.swift */,
045C0EFF2D12CA5E00BD2DC0 /* YHPictureReviewManager.swift */, 045C0EFF2D12CA5E00BD2DC0 /* YHPictureReviewManager.swift */,
04D8FFB12DA5007A00703C75 /* YHPictureBrowserViewController.swift */,
); );
path = "PictureReview(图片预览)"; path = "PictureReview(图片预览)";
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -7507,6 +7510,7 @@ ...@@ -7507,6 +7510,7 @@
045C10C92D12CA5F00BD2DC0 /* YHResignUploadTravelCardListModel.swift in Sources */, 045C10C92D12CA5F00BD2DC0 /* YHResignUploadTravelCardListModel.swift in Sources */,
045C10CA2D12CA5F00BD2DC0 /* YHDocListBottomView.swift in Sources */, 045C10CA2D12CA5F00BD2DC0 /* YHDocListBottomView.swift in Sources */,
045C10CB2D12CA5F00BD2DC0 /* YHPreviewInfoCertificatePictureItemView.swift in Sources */, 045C10CB2D12CA5F00BD2DC0 /* YHPreviewInfoCertificatePictureItemView.swift in Sources */,
04D8FFB22DA5007A00703C75 /* YHPictureBrowserViewController.swift in Sources */,
045C10CC2D12CA5F00BD2DC0 /* YHAIChatBannerItemCell.swift in Sources */, 045C10CC2D12CA5F00BD2DC0 /* YHAIChatBannerItemCell.swift in Sources */,
045C10CD2D12CA5F00BD2DC0 /* YHLoginPrivacyView.swift in Sources */, 045C10CD2D12CA5F00BD2DC0 /* YHLoginPrivacyView.swift in Sources */,
045C10CE2D12CA5F00BD2DC0 /* YHPrincipleUploadListVC.swift in Sources */, 045C10CE2D12CA5F00BD2DC0 /* YHPrincipleUploadListVC.swift in Sources */,
......
//
// YHPictureBrowserViewController.swift
// galaxy
//
// Created by Dufet on 2025/4/8.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import JXPhotoBrowser
import Photos
import PhotosUI
class YHPictureBrowserViewController: JXPhotoBrowser {
var getImgUrlBlock: ((Int) -> (String))?
lazy var navBar: UIView = {
let v = UIView()
let backBtn = UIButton()
backBtn.setImage(UIImage(named: "nav_back_white"), for: .normal)
backBtn.addTarget(self, action: #selector(didBackBtnClicked), for: .touchUpInside)
v.addSubview(backBtn)
let saveBtn = UIButton()
let img = UIImage(named: "photo_brower_save")
let templateImage = img?.withRenderingMode(.alwaysTemplate)
saveBtn.setImage(templateImage, for: .normal)
saveBtn.imageView?.tintColor = .white
saveBtn.addTarget(self, action: #selector(didSaveBtnClicked), for: .touchUpInside)
v.addSubview(saveBtn)
backBtn.snp.makeConstraints { make in
make.width.height.equalTo(44)
make.left.equalToSuperview()
make.bottom.equalToSuperview()
}
saveBtn.snp.makeConstraints { make in
make.width.height.equalTo(44)
make.right.equalToSuperview()
make.bottom.equalToSuperview()
}
return v
}()
@objc func didBackBtnClicked() {
dismiss()
}
@objc func didSaveBtnClicked() {
let index = self.browserView.pageIndex
if let block = self.getImgUrlBlock {
let url = block(self.pageIndex)
saveLocalPictureSyn(url)
}
}
override func viewDidLoad() {
super.viewDidLoad()
view.addSubview(navBar)
navBar.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(k_Height_NavigationtBarAndStatuBar)
}
}
func saveLocalPictureSyn(_ picUrl: String) {
let imageView = UIImageView()
imageView.kf.setImage(with: URL(string: picUrl)) { result in
switch result {
case .success(let value):
self.saveImage(value.image)
case .failure:
YHHUD.flash(message: "保存失败")
}
}
}
func saveImage(_ image: UIImage) {
// 确保应用有权访问相册
PHPhotoLibrary.requestAuthorization { status in
if status == .authorized {
// 保存图片到相册
DispatchQueue.main.async {
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil)
YHHUD.flash(message: "保存成功")
}
} else {
DispatchQueue.main.async {
YHHUD.flash(message: "保存失败,请检查系统权限")
}
}
}
}
}
...@@ -30,7 +30,7 @@ extension YHPictureReviewManager { ...@@ -30,7 +30,7 @@ extension YHPictureReviewManager {
self.curIndex = curIndex self.curIndex = curIndex
self.arrPics = arrPicturs self.arrPics = arrPicturs
let browser = JXPhotoBrowser() let browser = YHPictureBrowserViewController()
browser.numberOfItems = { browser.numberOfItems = {
self.arrPics.count self.arrPics.count
} }
...@@ -54,6 +54,14 @@ extension YHPictureReviewManager { ...@@ -54,6 +54,14 @@ extension YHPictureReviewManager {
} }
} }
browser.getImgUrlBlock = { [weak self] index in
guard let self = self else { return "" }
if 0 <= index, index < self.arrPics.count {
return self.arrPics[index]
}
return ""
}
// 数字样式的页码指示器 // 数字样式的页码指示器
browser.pageIndicator = JXPhotoBrowserNumberPageIndicator() browser.pageIndicator = JXPhotoBrowserNumberPageIndicator()
browser.pageIndex = self.curIndex browser.pageIndex = self.curIndex
......
...@@ -140,9 +140,9 @@ class YHCustomerInformationQuestionnaireVC: YHBaseViewController { ...@@ -140,9 +140,9 @@ class YHCustomerInformationQuestionnaireVC: YHBaseViewController {
make.left.equalToSuperview() make.left.equalToSuperview()
make.right.equalToSuperview() make.right.equalToSuperview()
make.top.equalToSuperview() make.top.equalToSuperview()
make.bottom.equalTo(bottomView.snp.top).offset(-24) make.bottom.equalTo(bottomView.snp.top).offset(-8)
} }
tableView.contentInset = UIEdgeInsets(top: imageHeight - 110, left: 0, bottom: 0, right: 0) tableView.contentInset = UIEdgeInsets(top: imageHeight - 115, left: 0, bottom: 0, right: 0)
tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 0.01)) tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 0.01))
} }
......
...@@ -43,16 +43,19 @@ class YHPlanPolicyDetailViewController: YHBaseViewController { ...@@ -43,16 +43,19 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
}() }()
lazy var collectionView: UICollectionView = { lazy var collectionView: UICollectionView = {
let layout = UICollectionViewFlowLayout() let layout = UICollectionViewFlowLayout()
layout.minimumInteritemSpacing = 0.0 layout.minimumInteritemSpacing = 0.0
layout.minimumLineSpacing = 0.0 layout.minimumLineSpacing = 0.0
layout.scrollDirection = .horizontal layout.scrollDirection = .horizontal
let collectView = UICollectionView(frame: CGRect(x: 0, y: k_Height_NavigationtBarAndStatuBar+24.0, width: KScreenWidth, height: 520), collectionViewLayout: layout) let collectView = UICollectionView(frame: CGRect(x: 0, y: k_Height_NavigationtBarAndStatuBar+24.0, width: KScreenWidth, height: 520), collectionViewLayout: layout)
collectView.backgroundColor = .clear collectView.backgroundColor = .clear
collectView.delegate = self collectView.delegate = self
collectView.dataSource = self collectView.dataSource = self
collectView.register(YHPlanShareImageCell.self, forCellWithReuseIdentifier: YHPlanShareImageCell.cellReuseIdentifier) collectView.register(YHPlanShareImageCell.self, forCellWithReuseIdentifier: YHPlanShareImageCell.cellReuseIdentifier)
collectView.isPagingEnabled = true collectView.isPagingEnabled = true
collectView.showsHorizontalScrollIndicator = false
return collectView return collectView
}() }()
...@@ -204,7 +207,9 @@ extension YHPlanPolicyDetailViewController: UICollectionViewDelegate, UICollecti ...@@ -204,7 +207,9 @@ extension YHPlanPolicyDetailViewController: UICollectionViewDelegate, UICollecti
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
if 0 <= indexPath.item && indexPath.item < imgs.count { if 0 <= indexPath.item && indexPath.item < imgs.count {
// let text = topicArr[indexPath.item] let model = imgs[indexPath.item]
YHPictureReviewManager.shared.showNetWorkPicturs(curIndex: 0, arrPicturs: [model.model.image_poster])
} }
} }
} }
......
...@@ -180,8 +180,8 @@ class YHPlanShareViewController: YHBaseViewController { ...@@ -180,8 +180,8 @@ class YHPlanShareViewController: YHBaseViewController {
lazy var planDocumentFileUrl: URL = { lazy var planDocumentFileUrl: URL = {
let fileManager = FileManager.default let fileManager = FileManager.default
let documentsURL = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first! let documentsURL = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first!
let planDirectoryURL = documentsURL.appendingPathComponent("plan") // let planDirectoryURL = documentsURL.appendingPathComponent("plan")
return planDirectoryURL return documentsURL
}() }()
override func viewDidLoad() { override func viewDidLoad() {
......
...@@ -106,14 +106,14 @@ class YHPlanViewController: YHBaseViewController { ...@@ -106,14 +106,14 @@ class YHPlanViewController: YHBaseViewController {
titleImgView.snp.makeConstraints { make in titleImgView.snp.makeConstraints { make in
make.left.equalTo(16) make.left.equalTo(16)
make.width.equalTo(266) make.width.equalTo(268)
make.height.equalTo(29) make.height.equalTo(42)
make.top.equalTo(18) make.top.equalTo(16)
} }
descLabel.snp.makeConstraints { make in descLabel.snp.makeConstraints { make in
make.left.equalTo(16) make.left.equalTo(16)
make.top.equalTo(titleImgView.snp.bottom).offset(17) make.top.equalTo(titleImgView.snp.bottom).offset(4)
make.height.equalTo(16) make.height.equalTo(16)
} }
......
...@@ -78,7 +78,7 @@ class YHSurveyMatchResultViewController: YHBaseViewController { ...@@ -78,7 +78,7 @@ class YHSurveyMatchResultViewController: YHBaseViewController {
button.addTarget(self, action: #selector(matchButtonClicked), for: .touchUpInside) button.addTarget(self, action: #selector(matchButtonClicked), for: .touchUpInside)
button.backgroundColor = .mainTextColor button.backgroundColor = .mainTextColor
button.setTitleColor(.white, for: .normal) button.setTitleColor(.white, for: .normal)
button.titleLabel?.font = .PFSC_R(ofSize: 14) button.titleLabel?.font = .PFSC_M(ofSize: 16)
button.layer.cornerRadius = 3 button.layer.cornerRadius = 3
button.clipsToBounds = true button.clipsToBounds = true
return button return button
...@@ -164,8 +164,14 @@ class YHSurveyMatchResultViewController: YHBaseViewController { ...@@ -164,8 +164,14 @@ class YHSurveyMatchResultViewController: YHBaseViewController {
@objc private func matchButtonClicked() { @objc private func matchButtonClicked() {
if pageType == .success { if pageType == .success {
let vc = YHPlanViewController() guard let navigationController = self.navigationController else {
navigationController?.pushViewController(vc) return
}
let ctl = YHPlanViewController()
ctl.hidesBottomBarWhenPushed = true
var viewControllers = Array(navigationController.viewControllers.prefix(1))
viewControllers.append(ctl)
navigationController.setViewControllers(viewControllers, animated: true)
} else { } else {
matchAgainEvent?() matchAgainEvent?()
navigationController?.popViewController() navigationController?.popViewController()
......
...@@ -77,7 +77,7 @@ class YHSurveySubmitDoneViewController: YHBaseViewController { ...@@ -77,7 +77,7 @@ class YHSurveySubmitDoneViewController: YHBaseViewController {
view.addSubview(backHomeButton) view.addSubview(backHomeButton)
topImageView.snp.makeConstraints { make in topImageView.snp.makeConstraints { make in
make.width.equalTo(127) make.width.equalTo(127)
make.height.equalTo(92) make.height.equalTo(127)
make.top.equalToSuperview().offset(129 + k_Height_NavigationtBarAndStatuBar) make.top.equalToSuperview().offset(129 + k_Height_NavigationtBarAndStatuBar)
make.centerX.equalToSuperview() make.centerX.equalToSuperview()
} }
......
...@@ -11,6 +11,15 @@ import AttributedString ...@@ -11,6 +11,15 @@ import AttributedString
class YHPlanAnalyzeInfoView: UIView { class YHPlanAnalyzeInfoView: UIView {
var desc: String = "" {
didSet {
if desc.isEmpty {
descLabel.text = "——"
} else {
descLabel.text = desc
}
}
}
lazy var titleLabel: UILabel = { lazy var titleLabel: UILabel = {
let lable = UILabel() let lable = UILabel()
lable.textColor = UIColor.mainTextColor lable.textColor = UIColor.mainTextColor
...@@ -29,6 +38,13 @@ class YHPlanAnalyzeInfoView: UIView { ...@@ -29,6 +38,13 @@ class YHPlanAnalyzeInfoView: UIView {
return lable return lable
}() }()
lazy var lineView: UIView = {
let v = UIView()
v.backgroundColor = .init(hex: 0xF1E8E0)
v.backgroundColor = .init(hex: 0xE9ECF0)
return v
}()
override init(frame: CGRect) { override init(frame: CGRect) {
super.init(frame: frame) super.init(frame: frame)
createUI() createUI()
...@@ -40,6 +56,7 @@ class YHPlanAnalyzeInfoView: UIView { ...@@ -40,6 +56,7 @@ class YHPlanAnalyzeInfoView: UIView {
func createUI() { func createUI() {
backgroundColor = .clear backgroundColor = .clear
self.addSubview(lineView)
self.addSubview(titleLabel) self.addSubview(titleLabel)
self.addSubview(descLabel) self.addSubview(descLabel)
...@@ -50,6 +67,13 @@ class YHPlanAnalyzeInfoView: UIView { ...@@ -50,6 +67,13 @@ class YHPlanAnalyzeInfoView: UIView {
make.height.equalTo(20) make.height.equalTo(20)
} }
lineView.snp.makeConstraints { make in
make.height.equalTo(6)
make.width.equalTo(60)
make.left.equalTo(titleLabel)
make.bottom.equalTo(titleLabel).offset(-2)
}
descLabel.snp.makeConstraints { make in descLabel.snp.makeConstraints { make in
make.left.equalTo(0) make.left.equalTo(0)
make.right.equalTo(-0) make.right.equalTo(-0)
...@@ -73,9 +97,9 @@ class YHPlanAnalyzeInfoCell: UITableViewCell { ...@@ -73,9 +97,9 @@ class YHPlanAnalyzeInfoCell: UITableViewCell {
let bb: ASAttributedString = .init("/5.0", .font(UIFont(name: "DINAlternate-Bold", size: 14)!), .foreground(UIColor.init(hex: 0x8993A2))) let bb: ASAttributedString = .init("/5.0", .font(UIFont(name: "DINAlternate-Bold", size: 14)!), .foreground(UIColor.init(hex: 0x8993A2)))
scoreLabel.attributed.text = aa+bb scoreLabel.attributed.text = aa+bb
currentStateVeiw.descLabel.text = model.current_state currentStateVeiw.desc = model.current_state
requireVeiw.descLabel.text = model.hong_kong_policy requireVeiw.desc = model.hong_kong_policy
suggestVeiw.descLabel.text = model.suggest suggestVeiw.desc = model.suggest
products = model.solution_plan products = model.solution_plan
} }
...@@ -95,6 +119,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell { ...@@ -95,6 +119,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell {
make.bottom.equalTo(-16) make.bottom.equalTo(-16)
} }
productListView.products = products productListView.products = products
productListView.titleLabel.text = "增购以下产品可提升\(model.getTitle())联系"
self.setNeedsLayout() self.setNeedsLayout()
self.layoutIfNeeded() self.layoutIfNeeded()
} }
...@@ -148,6 +173,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell { ...@@ -148,6 +173,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell {
lazy var suggestVeiw: YHPlanAnalyzeInfoView = { lazy var suggestVeiw: YHPlanAnalyzeInfoView = {
let v = YHPlanAnalyzeInfoView(frame: .zero) let v = YHPlanAnalyzeInfoView(frame: .zero)
v.titleLabel.textColor = .init(hex: 0xAE6C32) v.titleLabel.textColor = .init(hex: 0xAE6C32)
v.lineView.backgroundColor = .init(hex: 0xF1E8E0)
v.titleLabel.text = "银河建议" v.titleLabel.text = "银河建议"
return v return v
}() }()
......
...@@ -20,8 +20,7 @@ class YHPlanItemView: UIView { ...@@ -20,8 +20,7 @@ class YHPlanItemView: UIView {
let lable = UILabel() let lable = UILabel()
lable.textColor = .mainTextColor lable.textColor = .mainTextColor
lable.textAlignment = .center lable.textAlignment = .center
lable.font = UIFont.PFSC_R(ofSize: 13) lable.font = UIFont.PFSC_R(ofSize: 12)
lable.text = "您的续签评估等级为"
return lable return lable
}() }()
......
...@@ -69,7 +69,7 @@ class YHPlanPolicyCarouselView: UIView { ...@@ -69,7 +69,7 @@ class YHPlanPolicyCarouselView: UIView {
pageControl.numberOfPages = 0 pageControl.numberOfPages = 0
pageControl.currentPage = 0 pageControl.currentPage = 0
pageControl.dotColor = .init(hex: 0xD5DAE1) pageControl.dotColor = .init(hex: 0xD5DAE1)
pageControl.selectedDotColor = .brandMainColor pageControl.selectedDotColor = .mainTextColor
return pageControl return pageControl
}() }()
......
...@@ -17,9 +17,9 @@ class YHPlanProductItemView: UIView { ...@@ -17,9 +17,9 @@ class YHPlanProductItemView: UIView {
titleLabel.text = product.title titleLabel.text = product.title
descLabel.text = product.description descLabel.text = product.description
if let url = URL(string: product.img_url) { if let url = URL(string: product.img_url) {
iconImgV.sd_setImage(with: url, placeholderImage: UIImage(named: "global_default_image")) iconImgV.sd_setImage(with: url, placeholderImage: UIImage(named: "plan_product_default"))
} else { } else {
iconImgV.image = UIImage(named: "global_default_image") iconImgV.image = UIImage(named: "plan_product_default")
} }
} }
} }
...@@ -141,7 +141,7 @@ class YHPlanProductListView: UIView { ...@@ -141,7 +141,7 @@ class YHPlanProductListView: UIView {
let lable = UILabel() let lable = UILabel()
lable.textColor = UIColor.init(hex: 0xAE6C32) lable.textColor = UIColor.init(hex: 0xAE6C32)
lable.textAlignment = .left lable.textAlignment = .left
lable.font = UIFont.PFSC_M(ofSize: 15) lable.font = UIFont.PFSC_M(ofSize: 13)
lable.text = "增购以下产品可提升生活联系" lable.text = "增购以下产品可提升生活联系"
return lable return lable
}() }()
......
...@@ -106,7 +106,7 @@ class YHPlanScoreView: UIView { ...@@ -106,7 +106,7 @@ class YHPlanScoreView: UIView {
make.left.equalTo(16) make.left.equalTo(16)
make.right.equalTo(-16) make.right.equalTo(-16)
make.top.equalTo(0) make.top.equalTo(0)
make.bottom.equalTo(-20) make.bottom.equalTo(-16)
} }
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "下保存图片@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "下保存图片@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
...@@ -5,12 +5,11 @@ ...@@ -5,12 +5,11 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "续签至永居方案分析@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "续签至永居方案分析@3x.png", "filename" : "标题.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "缺省图@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "缺省图@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "plan_question_submitted@2x.png", "filename" : "提交成功@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "plan_question_submitted@3x.png", "filename" : "提交成功@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "plan_question_top_new@2x.png", "filename" : "问卷头图-新客户@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "plan_question_top_new@3x.png", "filename" : "问卷头图-新客户@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "plan_question_top_old@2x.png", "filename" : "问卷头图-老客户@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "plan_question_top_old@3x.png", "filename" : "问卷头图-老客户@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
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