Commit 08a43dc3 authored by Steven杜宇's avatar Steven杜宇

// 名片

parent 59b41db5
......@@ -1257,6 +1257,8 @@
04B00FCA2D9AAD6100F640C5 /* YHMakePlanTopView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B00FC92D9AAD6100F640C5 /* YHMakePlanTopView.swift */; };
04B30B7B2E86307C004E4B12 /* YHNameCardHomePageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B30B7A2E86307C004E4B12 /* YHNameCardHomePageViewController.swift */; };
04B30B8C2E869717004E4B12 /* YHGrayCommonAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B30B8B2E869717004E4B12 /* YHGrayCommonAlertView.swift */; };
04B30B8E2E88C837004E4B12 /* YHNameCardDynamicViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B30B8D2E88C837004E4B12 /* YHNameCardDynamicViewController.swift */; };
04B30B902E88CA0B004E4B12 /* YHNameCardDynamicCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04B30B8F2E88CA0B004E4B12 /* YHNameCardDynamicCell.swift */; };
04D4EC312E839C1000B0329B /* YHCircleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D4EC302E839C1000B0329B /* YHCircleViewController.swift */; };
04D4EC332E839C2B00B0329B /* YHResourceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D4EC322E839C2B00B0329B /* YHResourceViewController.swift */; };
04D4EC442E83D0D500B0329B /* YHCircleViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04D4EC432E83D0D500B0329B /* YHCircleViewModel.swift */; };
......@@ -2611,6 +2613,8 @@
04B00FC92D9AAD6100F640C5 /* YHMakePlanTopView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMakePlanTopView.swift; sourceTree = "<group>"; };
04B30B7A2E86307C004E4B12 /* YHNameCardHomePageViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHNameCardHomePageViewController.swift; sourceTree = "<group>"; };
04B30B8B2E869717004E4B12 /* YHGrayCommonAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHGrayCommonAlertView.swift; sourceTree = "<group>"; };
04B30B8D2E88C837004E4B12 /* YHNameCardDynamicViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHNameCardDynamicViewController.swift; sourceTree = "<group>"; };
04B30B8F2E88CA0B004E4B12 /* YHNameCardDynamicCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHNameCardDynamicCell.swift; sourceTree = "<group>"; };
04D4EC302E839C1000B0329B /* YHCircleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCircleViewController.swift; sourceTree = "<group>"; };
04D4EC322E839C2B00B0329B /* YHResourceViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHResourceViewController.swift; sourceTree = "<group>"; };
04D4EC432E83D0D500B0329B /* YHCircleViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCircleViewModel.swift; sourceTree = "<group>"; };
......@@ -6909,6 +6913,7 @@
children = (
0426E09B2E851A91005C9F5D /* YHNameCardContainerViewController.swift */,
04B30B7A2E86307C004E4B12 /* YHNameCardHomePageViewController.swift */,
04B30B8D2E88C837004E4B12 /* YHNameCardDynamicViewController.swift */,
);
path = C;
sourceTree = "<group>";
......@@ -6916,6 +6921,7 @@
04B30B7E2E863761004E4B12 /* V */ = {
isa = PBXGroup;
children = (
04B30B8F2E88CA0B004E4B12 /* YHNameCardDynamicCell.swift */,
);
path = V;
sourceTree = "<group>";
......@@ -7893,6 +7899,7 @@
045C10DD2D12CA5F00BD2DC0 /* YHWorkExperienceCompanySelectView.swift in Sources */,
045C10DE2D12CA5F00BD2DC0 /* YHResignUploadDocDetailViewController.swift in Sources */,
045C10DF2D12CA5F00BD2DC0 /* Array+Extension.swift in Sources */,
04B30B8E2E88C837004E4B12 /* YHNameCardDynamicViewController.swift in Sources */,
045C10E02D12CA5F00BD2DC0 /* YHAIChatConfiguration.swift in Sources */,
045C10E12D12CA5F00BD2DC0 /* YHEditPersonalProfileViewController.swift in Sources */,
045C10E22D12CA5F00BD2DC0 /* YHInvitationWithGiftsDetailView.swift in Sources */,
......@@ -8372,6 +8379,7 @@
045C12632D12CA5F00BD2DC0 /* YHTotalIncomeCell.swift in Sources */,
04307B6A2D1A4C6500ED8E8D /* YHIncomeInfoSelectCell.swift in Sources */,
045C12642D12CA5F00BD2DC0 /* YHPayMemberContentItem.swift in Sources */,
04B30B902E88CA0B004E4B12 /* YHNameCardDynamicCell.swift in Sources */,
045C12652D12CA5F00BD2DC0 /* YHSheetPickerView.swift in Sources */,
045C12662D12CA5F00BD2DC0 /* YHScorePersonInfoCell.swift in Sources */,
045C12672D12CA5F00BD2DC0 /* YHServiceOrderTipsView.swift in Sources */,
......
......@@ -66,6 +66,9 @@ extension YHConnectListViewController: UITableViewDelegate, UITableViewDataSourc
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if 0 <= indexPath.row && indexPath.row < arr.count {
let vc = YHNameCardContainerViewController()
if let userId = YHLoginManager.shared.userModel?.id {
vc.userId = userId
}
navigationController?.pushViewController(vc)
}
}
......
......@@ -668,6 +668,9 @@ extension YHMyNewViewController {
switch item.type {
case .myCard:// 我的名片
let vc = YHNameCardContainerViewController()
if let userId = YHLoginManager.shared.userModel?.id {
vc.userId = userId
}
self.navigationController?.pushViewController(vc)
// enterMyNameCard()
case .myMessage:// 我的消息
......
......@@ -34,10 +34,10 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
tableView.reloadData()
if self.viewModel.isCanNext(step: 1) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
nextButton.backgroundColor = UIColor.brandGrayColor8
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
nextButton.backgroundColor = UIColor.brandGrayColor4
}
}
......@@ -92,7 +92,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
nextButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor
button.backgroundColor = UIColor.brandGrayColor8
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
......@@ -157,10 +157,10 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
viewModel.model.avatar = replacedString
if self.viewModel.isCanNext(step: 1) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
nextButton.backgroundColor = UIColor.brandGrayColor8
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
nextButton.backgroundColor = UIColor.brandGrayColor4
}
self.viewModel.didChange = true
}
......@@ -193,7 +193,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
override func backItemClick(_ sender: Any) {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -206,7 +206,7 @@ class YHEditBaseUserInfoViewController: YHBaseViewController {
override func navigationShouldPop() -> Bool {
if viewModel.didChange {
view.resignAllFirstResponders()
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
YHGrayCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
}
......@@ -232,10 +232,10 @@ extension YHEditBaseUserInfoViewController: UITableViewDelegate, UITableViewData
}
if self.viewModel.isCanNext(step: 1) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
nextButton.backgroundColor = .brandGrayColor8
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
nextButton.backgroundColor = .brandGrayColor4
}
}
return cell
......
......@@ -95,7 +95,7 @@ class YHEditHonorViewController: YHBaseViewController {
}
nextButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor
button.backgroundColor = UIColor.brandGrayColor8
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
......
......@@ -95,7 +95,7 @@ class YHEditPersonalProfileViewController: YHBaseViewController {
}
nextButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor
button.backgroundColor = UIColor.brandGrayColor8
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
......
......@@ -27,10 +27,10 @@ class YHEditSchoolViewController: YHBaseViewController {
tableView.reloadData()
if self.viewModel.isCanNext(step: 3) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
nextButton.backgroundColor = UIColor.brandGrayColor8
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
nextButton.backgroundColor = UIColor.brandGrayColor4
}
}
......@@ -40,7 +40,7 @@ class YHEditSchoolViewController: YHBaseViewController {
nextButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor
button.backgroundColor = UIColor.brandGrayColor8
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
......@@ -130,10 +130,10 @@ extension YHEditSchoolViewController: UITableViewDelegate, UITableViewDataSource
}
if self.viewModel.isCanNext(step: 3) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
nextButton.backgroundColor = UIColor.brandGrayColor8
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
nextButton.backgroundColor = UIColor.brandGrayColor4
}
}
return cell
......
......@@ -27,10 +27,10 @@ class YHEditWorkViewController: YHBaseViewController {
tableView.reloadData()
if self.viewModel.isCanNext(step: 4) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
nextButton.backgroundColor = UIColor.brandGrayColor8
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
nextButton.backgroundColor = UIColor.brandGrayColor4
}
}
......@@ -40,7 +40,7 @@ class YHEditWorkViewController: YHBaseViewController {
nextButton = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor
button.backgroundColor = UIColor.brandGrayColor8
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("保存", for: .normal)
......@@ -130,10 +130,10 @@ extension YHEditWorkViewController: UITableViewDelegate, UITableViewDataSource {
}
if self.viewModel.isCanNext(step: 4) {
nextButton.isEnabled = true
nextButton.backgroundColor = UIColor.brandMainColor
nextButton.backgroundColor = UIColor.brandGrayColor8
} else {
nextButton.isEnabled = false
nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
nextButton.backgroundColor = UIColor.brandGrayColor4
}
}
return cell
......
......@@ -12,7 +12,10 @@ import UIKit
class YHNameCardContainerViewController: YHBaseViewController {
var userId: String = ""
var defaultIndex = 0
let viewModel = YHMatchUserViewModel()
lazy var containerScrollView: UIScrollView = {
let scrollView = UIScrollView(frame: .zero)
......@@ -83,6 +86,7 @@ class YHNameCardContainerViewController: YHBaseViewController {
lazy var editBtn: UIButton = {
let btn = UIButton(type: .custom)
btn.setBackgroundImage(UIImage(named: "name_card_edit"), for: .normal)
btn.addTarget(self, action: #selector(didBasciInfoBtnClicked), for: .touchUpInside)
return btn
}()
......@@ -164,9 +168,7 @@ class YHNameCardContainerViewController: YHBaseViewController {
}()
lazy var childrenVC: [YHBaseViewController] = {
let vc2 = YHNameCardHomePageViewController()
let vcs: [YHBaseViewController] = [homePageVC, vc2]
let vcs: [YHBaseViewController] = [homePageVC, dynamicVC]
return vcs
}()
......@@ -178,6 +180,11 @@ class YHNameCardContainerViewController: YHBaseViewController {
return vc
}()
lazy var dynamicVC: YHNameCardDynamicViewController = {
let vc = YHNameCardDynamicViewController()
return vc
}()
lazy var bottomBtn: UIButton = {
let btn = UIButton(type: .custom)
btn.setTitle("发布动态", for: .normal)
......@@ -205,7 +212,20 @@ class YHNameCardContainerViewController: YHBaseViewController {
NotificationCenter.default.removeObserver(self)
}
func requestNameCardInfo() {
self.viewModel.getUserNameCardInfo(uid: self.userId) {
_, _ in
}
}
@objc func authorizeBtnClicked() {
}
@objc func didBasciInfoBtnClicked() {
let vc = YHEditBaseUserInfoViewController()
vc.model = self.viewModel.nameCardInfo
self.navigationController?.pushViewController(vc)
}
func createUI() {
......
//
// YHNameCardDynamicViewController.swift
// galaxy
//
// Created by Dufet on 2025/9/28.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import JXSegmentedView
class YHNameCardDynamicViewController: YHBaseViewController {
var arr: [String] = ["", "", "", ""]
lazy var tableView: UITableView = {
let tableView = UITableView(frame: .zero, style: .grouped)
tableView.estimatedSectionHeaderHeight = 100
tableView.showsVerticalScrollIndicator = false
tableView.separatorStyle = .none
tableView.delegate = self
tableView.dataSource = self
tableView.backgroundColor = .clear
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "UITableViewCell")
tableView.register(YHNameCardDynamicCell.self, forCellReuseIdentifier: YHNameCardDynamicCell.cellReuseIdentifier)
return tableView
}()
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .white
gk_navigationBar.isHidden = true
view.addSubview(self.tableView)
self.tableView.snp.makeConstraints { make in
make.left.equalTo(20)
make.right.equalTo(-20)
make.bottom.equalToSuperview()
make.top.equalToSuperview()
}
}
}
extension YHNameCardDynamicViewController: UITableViewDelegate, UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return self.arr.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard let cell = tableView.dequeueReusableCell(withIdentifier: YHNameCardDynamicCell.cellReuseIdentifier, for: indexPath) as? YHNameCardDynamicCell else { return UITableViewCell() }
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableView.automaticDimension
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 1.0
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let view = UIView()
return view
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 1.0
}
}
extension YHNameCardDynamicViewController: JXSegmentedListContainerViewListDelegate {
func listView() -> UIView {
return view
}
}
......@@ -41,7 +41,6 @@ class YHNameCardHomePageViewController: YHBaseViewController {
tableView.register(YHMyEducationCell.self, forCellReuseIdentifier: YHMyEducationCell.cellReuseIdentifier)
tableView.register(YHMyWorkExperienceCell.self, forCellReuseIdentifier: YHMyWorkExperienceCell.cellReuseIdentifier)
tableView.register(YHMyInterestTopicCell.self, forCellReuseIdentifier: YHMyInterestTopicCell.cellReuseIdentifier)
tableView.contentInset = UIEdgeInsets(top: 41, left: 0, bottom: 0, right: 0)
return tableView
}()
......
//
// YHNameCardDynamicCell.swift
// galaxy
//
// Created by Dufet on 2025/9/28.
// Copyright © 2025 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
import AttributedString
class YHNameCardDynamicCell: UITableViewCell {
static let cellReuseIdentifier = "YHNameCardDynamicCell"
static let imgH: CGFloat = (KScreenWidth-20*2-4*2)/3.0
private lazy var publishLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor.brandGrayColor6
label.text = "发布了动态"
return label
}()
private lazy var timeLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor.brandGrayColor6
label.text = "00-00"
label.textAlignment = .right
return label
}()
private lazy var titleLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 16)
label.textColor = UIColor.brandGrayColor8
label.numberOfLines = 2
label.text = "阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法"
return label
}()
private lazy var detailLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_B(ofSize: 16)
label.textColor = UIColor.brandGrayColor8
label.numberOfLines = 2
label.text = "阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法阿斯顿发水电费啦看手机代发拉卡手机打发啦刷卡机都发啦刷卡机都发啦刷卡机代发拉萨会计法"
return label
}()
private lazy var imgContentV: UIView = {
let v = UIView()
v.backgroundColor = .red
return v
}()
private lazy var img1V: UIImageView = {
let v = UIImageView()
v.backgroundColor = .green
return v
}()
private lazy var img2V: UIImageView = {
let v = UIImageView()
v.backgroundColor = .blue
return v
}()
private lazy var img3V: UIImageView = {
let v = UIImageView()
v.backgroundColor = .yellow
return v
}()
private lazy var lineView: UIView = {
let v = UIView()
v.backgroundColor = UIColor.brandGrayColor3
return v
}()
private var reviewContentV: UIView = {
let v = UIView()
v.backgroundColor = UIColor.brandGrayColor2
return v
}()
private lazy var rejectLabel: UILabel = {
let label = UILabel()
label.numberOfLines = 0
let a: ASAttributedString = .init("审核不通过:", .font(UIFont.PFSC_M(ofSize: 12)), .foreground(UIColor.failColor))
let b: ASAttributedString = .init("侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权侵犯知识产权", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor.failColor))
label.attributed.text = a + b
return label
}()
private lazy var publishBtn: UIButton = {
let btn = UIButton(type: .custom)
btn.setTitle("重新发布", for: .normal)
btn.setTitleColor(.brandGrayColor8, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 11)
btn.layer.borderColor = UIColor.brandGrayColor8.cgColor
btn.layer.borderWidth = 1.0
btn.layer.cornerRadius = 12.0
return btn
}()
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupUI()
}
func setupUI() {
self.selectionStyle = .none
self.backgroundColor = .clear
contentView.addSubview(reviewContentV)
contentView.addSubview(publishLabel)
contentView.addSubview(timeLabel)
contentView.addSubview(titleLabel)
contentView.addSubview(detailLabel)
contentView.addSubview(imgContentV)
contentView.addSubview(lineView)
imgContentV.addSubview(img1V)
imgContentV.addSubview(img2V)
imgContentV.addSubview(img3V)
reviewContentV.snp.makeConstraints { make in
make.left.right.equalTo(0)
make.top.equalTo(24)
}
let iconV: UIImageView = UIImageView()
iconV.image = UIImage(named: "name_card_tips")
reviewContentV.addSubview(iconV)
iconV.snp.makeConstraints { make in
make.left.equalTo(8)
make.top.equalTo(10)
make.width.height.equalTo(14)
}
reviewContentV.addSubview(rejectLabel)
rejectLabel.snp.makeConstraints { make in
make.left.equalTo(iconV.snp.right).offset(4)
make.top.equalTo(8)
make.bottom.equalTo(-8)
}
reviewContentV.addSubview(publishBtn)
publishBtn.snp.makeConstraints { make in
make.right.equalTo(-8)
make.left.equalTo(rejectLabel.snp.right).offset(8)
make.width.equalTo(72)
make.height.equalTo(24)
make.centerY.equalToSuperview()
}
publishLabel.snp.makeConstraints { make in
make.left.equalTo(0)
make.top.equalTo(reviewContentV.snp.bottom).offset(16)
make.height.equalTo(17)
}
timeLabel.snp.makeConstraints { make in
make.top.equalTo(publishLabel)
make.left.equalTo(publishLabel.snp.right).offset(10)
make.right.equalTo(0)
make.height.equalTo(17)
}
titleLabel.snp.makeConstraints { make in
make.left.right.equalTo(0)
make.top.equalTo(publishLabel.snp.bottom).offset(10)
}
detailLabel.snp.makeConstraints { make in
make.left.right.equalTo(0)
make.top.equalTo(titleLabel.snp.bottom).offset(10)
}
imgContentV.snp.makeConstraints { make in
make.left.right.equalTo(0)
make.height.equalTo(Self.imgH)
make.top.equalTo(detailLabel.snp.bottom).offset(16)
make.bottom.equalTo(-24)
}
lineView.snp.makeConstraints { make in
make.left.right.bottom.equalTo(0)
make.height.equalTo(1)
}
img1V.snp.makeConstraints { make in
make.left.top.bottom.equalToSuperview()
make.width.equalTo(Self.imgH)
}
img2V.snp.makeConstraints { make in
make.top.bottom.equalToSuperview()
make.left.equalTo(img1V.snp.right).offset(4)
make.width.equalTo(Self.imgH)
}
img3V.snp.makeConstraints { make in
make.top.bottom.equalToSuperview()
make.left.equalTo(img2V.snp.right).offset(4)
make.width.equalTo(Self.imgH)
}
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "16pt@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "16pt@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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