From: liangzhenying <867174124@qq.com> Date: Mon, 4 Aug 2025 02:27:37 +0000 (+0800) Subject: 加了用户信息页面 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=d89898882cde4b94ab5463dbbae542cda9528477;p=mirrors%2FLingQi_iOS.git 加了用户信息页面 --- diff --git a/LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/Contents.json b/LingQi/LingQi/Assets.xcassets/mine/head.imageset/Contents.json similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/Contents.json rename to LingQi/LingQi/Assets.xcassets/mine/head.imageset/Contents.json diff --git a/LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/image 57.png b/LingQi/LingQi/Assets.xcassets/mine/head.imageset/image 57.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/image 57.png rename to LingQi/LingQi/Assets.xcassets/mine/head.imageset/image 57.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/image 57@2x.png b/LingQi/LingQi/Assets.xcassets/mine/head.imageset/image 57@2x.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/image 57@2x.png rename to LingQi/LingQi/Assets.xcassets/mine/head.imageset/image 57@2x.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/image 57@3x.png b/LingQi/LingQi/Assets.xcassets/mine/head.imageset/image 57@3x.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/image 57.imageset/image 57@3x.png rename to LingQi/LingQi/Assets.xcassets/mine/head.imageset/image 57@3x.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Contents.json b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Contents.json similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Contents.json rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Contents.json diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Rectangle 268.png b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Rectangle 268.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Rectangle 268.png rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Rectangle 268.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Rectangle 268@2x.png b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Rectangle 268@2x.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Rectangle 268@2x.png rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Rectangle 268@2x.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Rectangle 268@3x.png b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Rectangle 268@3x.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 268.imageset/Rectangle 268@3x.png rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg1.imageset/Rectangle 268@3x.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Contents.json b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Contents.json similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Contents.json rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Contents.json diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Rectangle 273.png b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Rectangle 273.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Rectangle 273.png rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Rectangle 273.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Rectangle 273@2x.png b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Rectangle 273@2x.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Rectangle 273@2x.png rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Rectangle 273@2x.png diff --git a/LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Rectangle 273@3x.png b/LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Rectangle 273@3x.png similarity index 100% rename from LingQi/LingQi/Assets.xcassets/mine/Rectangle 273.imageset/Rectangle 273@3x.png rename to LingQi/LingQi/Assets.xcassets/mine/mine_order_bg2.imageset/Rectangle 273@3x.png diff --git a/LingQi/LingQi/UI/Base/BaseNavigation.swift b/LingQi/LingQi/UI/Base/BaseNavigation.swift index 1827b08..dd16aa7 100644 --- a/LingQi/LingQi/UI/Base/BaseNavigation.swift +++ b/LingQi/LingQi/UI/Base/BaseNavigation.swift @@ -136,7 +136,7 @@ public class BaseNavigationBar: UIView { backgroundColor = .rgb(0x11131E) alphaBgView.backgroundColor = UIColor.white alphaBgView.alpha = 0 - separatorLine.backgroundColor = .color(.separateLine) + separatorLine.backgroundColor = .white.withAlphaComponent(0.1) separatorLine.isHidden = true titleLabel.do { (v) in diff --git a/LingQi/LingQi/UI/Mine/Root/MineCell.swift b/LingQi/LingQi/UI/Mine/Root/MineCell.swift index d39f082..7f7cb95 100644 --- a/LingQi/LingQi/UI/Mine/Root/MineCell.swift +++ b/LingQi/LingQi/UI/Mine/Root/MineCell.swift @@ -71,7 +71,7 @@ class MineCell: BaseTableViewCell { contentView.backgroundColor = .clear selectionStyle = .none line.do { (v) in - v.backgroundColor = .color(.separateLine) + v.backgroundColor = .white.withAlphaComponent(0.1) } titleLabel.do { (v) in v.textColor = .white diff --git a/LingQi/LingQi/UI/Mine/Root/MineHeaderView.swift b/LingQi/LingQi/UI/Mine/Root/MineHeaderView.swift index c92d6c6..0e9957a 100644 --- a/LingQi/LingQi/UI/Mine/Root/MineHeaderView.swift +++ b/LingQi/LingQi/UI/Mine/Root/MineHeaderView.swift @@ -18,8 +18,7 @@ class MineHeaderView: BaseView { override func setupLayout() { userView.snp.makeConstraints { make in make.left.right.equalToSuperview().inset(15) - make.top.equalToSuperview() - make.height.equalTo(120) + make.top.equalToSuperview().inset(30) } orderView.snp.makeConstraints { make in make.left.right.equalToSuperview().inset(15) diff --git a/LingQi/LingQi/UI/Mine/Root/MineOrderView.swift b/LingQi/LingQi/UI/Mine/Root/MineOrderView.swift index 1deb58d..e933965 100644 --- a/LingQi/LingQi/UI/Mine/Root/MineOrderView.swift +++ b/LingQi/LingQi/UI/Mine/Root/MineOrderView.swift @@ -7,12 +7,90 @@ import UIKit class MineOrderView: BaseView { + let bgView = UIView() + let bgImgView1 = UIImageView() + let bgImgView2 = UIImageView() + let button1 = MineOrderButton1() + let button2 = MineOrderButton1() + let button3 = MineOrderButton1() override func setupViews() { - backgroundColor = .white + backgroundColor = .clear + addSubviews([bgView]) + bgView.addSubviews([bgImgView2,bgImgView1,button1,button2,button3]) + + bgImgView1.do { v in + v.image = UIImage(named: "mine_order_bg1") + } + bgImgView2.do { v in + v.image = UIImage(named: "mine_order_bg2") + } + } override func setupLayout() { - + bgView.snp.makeConstraints { make in + make.edges.equalToSuperview() + } + bgImgView1.snp.makeConstraints { make in + make.edges.equalToSuperview() + } + bgImgView2.snp.makeConstraints { make in + make.right.equalToSuperview() + make.top.equalToSuperview() + make.width.equalTo(135) + make.height.equalTo(48) + } + button1.snp.makeConstraints { make in + make.left.equalToSuperview().inset(15) + make.top.equalToSuperview().inset(15) + make.width.equalTo(200) + } } +} +class MineOrderButton1: BaseView { + let icon = UIImageView() + let titleLabel = UILabel() + let valueLabel = UILabel() + + + override func setupViews() { + addSubviews([titleLabel,icon,valueLabel]) + + icon.do { v in + v.image = UIImage(named: "head") + v.yc.setCornerRadius(27) + v.backgroundColor = .white.withAlphaComponent(0.1) + } + titleLabel.do { (v) in + v.textColor = .white + v.font = .bold(16) + v.textAlignment = .left + v.text = "用户未登录" + } + valueLabel.do { (v) in + v.textColor = .white.withAlphaComponent(0.6) + v.font = .medium(14) + v.textAlignment = .right + v.text = "登录帐号后可查看ID" + } + } + + override func setupLayout() { + icon.snp.makeConstraints { (m) in + m.width.equalTo(32) + m.height.equalTo(32) + m.left.equalToSuperview().inset(15) + m.top.equalToSuperview() + m.bottom.equalToSuperview() + } + titleLabel.snp.makeConstraints { (m) in + m.top.equalToSuperview().inset(5) + m.left.equalTo(icon.snp.right).offset(15) + } + valueLabel.snp.makeConstraints { (m) in + m.bottom.equalToSuperview().inset(5) + m.left.equalTo(icon.snp.right).offset(15) + } + } } diff --git a/LingQi/LingQi/UI/Mine/Root/MineUserInfoView.swift b/LingQi/LingQi/UI/Mine/Root/MineUserInfoView.swift index 4bce1f7..0b9a509 100644 --- a/LingQi/LingQi/UI/Mine/Root/MineUserInfoView.swift +++ b/LingQi/LingQi/UI/Mine/Root/MineUserInfoView.swift @@ -7,12 +7,50 @@ import UIKit class MineUserInfoView: BaseView { - + let icon = UIImageView() + let titleLabel = UILabel() + let valueLabel = UILabel() + + + override func setupViews() { - backgroundColor = .white - + addSubviews([titleLabel,icon,valueLabel]) + + icon.do { v in + v.image = UIImage(named: "head") + v.yc.setCornerRadius(27) + v.backgroundColor = .white.withAlphaComponent(0.1) + } + titleLabel.do { (v) in + v.textColor = .white + v.font = .bold(16) + v.textAlignment = .left + v.text = "用户未登录" + } + valueLabel.do { (v) in + v.textColor = .white.withAlphaComponent(0.6) + v.font = .medium(14) + v.textAlignment = .right + v.text = "登录帐号后可查看ID" + } } + override func setupLayout() { + icon.snp.makeConstraints { (m) in + m.width.equalTo(54) + m.height.equalTo(54) + m.left.equalToSuperview().inset(15) + m.top.equalToSuperview() + m.bottom.equalToSuperview() + } + titleLabel.snp.makeConstraints { (m) in + m.top.equalToSuperview().inset(5) + m.left.equalTo(icon.snp.right).offset(15) + } + valueLabel.snp.makeConstraints { (m) in + m.bottom.equalToSuperview().inset(5) + m.left.equalTo(icon.snp.right).offset(15) + } }