Commit aad79ca9 authored by lujunye's avatar lujunye

个人中心

parent 771a085a
...@@ -47,6 +47,10 @@ ...@@ -47,6 +47,10 @@
E0D197C02448431C002B080C /* BabyCentralManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197B52448431C002B080C /* BabyCentralManager.m */; }; E0D197C02448431C002B080C /* BabyCentralManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197B52448431C002B080C /* BabyCentralManager.m */; };
E0D197C12448431C002B080C /* BabyToy.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197B82448431C002B080C /* BabyToy.m */; }; E0D197C12448431C002B080C /* BabyToy.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197B82448431C002B080C /* BabyToy.m */; };
E0D197C22448431C002B080C /* BabyRhythm.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197B92448431C002B080C /* BabyRhythm.m */; }; E0D197C22448431C002B080C /* BabyRhythm.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197B92448431C002B080C /* BabyRhythm.m */; };
E0D197C6244845FD002B080C /* PersonCenterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D197C4244845FD002B080C /* PersonCenterViewController.swift */; };
E0D197C7244845FD002B080C /* PersonCenterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0D197C5244845FD002B080C /* PersonCenterViewController.xib */; };
E0D197CA24484D90002B080C /* PersonCenterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D197C824484D90002B080C /* PersonCenterCell.swift */; };
E0D197CB24484D90002B080C /* PersonCenterCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0D197C924484D90002B080C /* PersonCenterCell.xib */; };
E0D4165F24482AAF008DCAB4 /* AccountViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D4165D24482AAF008DCAB4 /* AccountViewController.swift */; }; E0D4165F24482AAF008DCAB4 /* AccountViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D4165D24482AAF008DCAB4 /* AccountViewController.swift */; };
E0D4166024482AAF008DCAB4 /* AccountViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0D4165E24482AAF008DCAB4 /* AccountViewController.xib */; }; E0D4166024482AAF008DCAB4 /* AccountViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0D4165E24482AAF008DCAB4 /* AccountViewController.xib */; };
E0D4166424483058008DCAB4 /* ChangePassViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D4166224483058008DCAB4 /* ChangePassViewController.swift */; }; E0D4166424483058008DCAB4 /* ChangePassViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D4166224483058008DCAB4 /* ChangePassViewController.swift */; };
...@@ -129,6 +133,10 @@ ...@@ -129,6 +133,10 @@
E0D197B72448431C002B080C /* BabySpeaker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BabySpeaker.h; sourceTree = "<group>"; }; E0D197B72448431C002B080C /* BabySpeaker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BabySpeaker.h; sourceTree = "<group>"; };
E0D197B82448431C002B080C /* BabyToy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BabyToy.m; sourceTree = "<group>"; }; E0D197B82448431C002B080C /* BabyToy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BabyToy.m; sourceTree = "<group>"; };
E0D197B92448431C002B080C /* BabyRhythm.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BabyRhythm.m; sourceTree = "<group>"; }; E0D197B92448431C002B080C /* BabyRhythm.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BabyRhythm.m; sourceTree = "<group>"; };
E0D197C4244845FD002B080C /* PersonCenterViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersonCenterViewController.swift; sourceTree = "<group>"; };
E0D197C5244845FD002B080C /* PersonCenterViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PersonCenterViewController.xib; sourceTree = "<group>"; };
E0D197C824484D90002B080C /* PersonCenterCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersonCenterCell.swift; sourceTree = "<group>"; };
E0D197C924484D90002B080C /* PersonCenterCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PersonCenterCell.xib; sourceTree = "<group>"; };
E0D4165D24482AAF008DCAB4 /* AccountViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountViewController.swift; sourceTree = "<group>"; }; E0D4165D24482AAF008DCAB4 /* AccountViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountViewController.swift; sourceTree = "<group>"; };
E0D4165E24482AAF008DCAB4 /* AccountViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AccountViewController.xib; sourceTree = "<group>"; }; E0D4165E24482AAF008DCAB4 /* AccountViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AccountViewController.xib; sourceTree = "<group>"; };
E0D4166224483058008DCAB4 /* ChangePassViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChangePassViewController.swift; sourceTree = "<group>"; }; E0D4166224483058008DCAB4 /* ChangePassViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChangePassViewController.swift; sourceTree = "<group>"; };
...@@ -349,6 +357,7 @@ ...@@ -349,6 +357,7 @@
E09B03AD2445B0BA00211A51 /* ViewController */ = { E09B03AD2445B0BA00211A51 /* ViewController */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
E0D197C3244845E3002B080C /* 个人中心 */,
E0D4166124483045008DCAB4 /* 修改密码 */, E0D4166124483045008DCAB4 /* 修改密码 */,
E0D4165C24482A7D008DCAB4 /* 账号信息 */, E0D4165C24482A7D008DCAB4 /* 账号信息 */,
E0516F792448066300E373CE /* 消息中心 */, E0516F792448066300E373CE /* 消息中心 */,
...@@ -419,6 +428,17 @@ ...@@ -419,6 +428,17 @@
path = "蓝牙"; path = "蓝牙";
sourceTree = "<group>"; sourceTree = "<group>";
}; };
E0D197C3244845E3002B080C /* 个人中心 */ = {
isa = PBXGroup;
children = (
E0D197C4244845FD002B080C /* PersonCenterViewController.swift */,
E0D197C5244845FD002B080C /* PersonCenterViewController.xib */,
E0D197C824484D90002B080C /* PersonCenterCell.swift */,
E0D197C924484D90002B080C /* PersonCenterCell.xib */,
);
path = "个人中心";
sourceTree = "<group>";
};
E0D4165C24482A7D008DCAB4 /* 账号信息 */ = { E0D4165C24482A7D008DCAB4 /* 账号信息 */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -547,9 +567,11 @@ ...@@ -547,9 +567,11 @@
E0516F832448086700E373CE /* MsgCenterCell.xib in Resources */, E0516F832448086700E373CE /* MsgCenterCell.xib in Resources */,
E09B03B72445B85A00211A51 /* LoginViewController.xib in Resources */, E09B03B72445B85A00211A51 /* LoginViewController.xib in Resources */,
E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */, E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */,
E0D197C7244845FD002B080C /* PersonCenterViewController.xib in Resources */,
E01C26B72446AF3100ADCC70 /* DemoViewController.xib in Resources */, E01C26B72446AF3100ADCC70 /* DemoViewController.xib in Resources */,
E0516F782448003D00E373CE /* PayViewController.xib in Resources */, E0516F782448003D00E373CE /* PayViewController.xib in Resources */,
E088CC942447124D000DAA8A /* BindViewController.xib in Resources */, E088CC942447124D000DAA8A /* BindViewController.xib in Resources */,
E0D197CB24484D90002B080C /* PersonCenterCell.xib in Resources */,
E00D85EB244561FE00F5F816 /* LaunchScreen.storyboard in Resources */, E00D85EB244561FE00F5F816 /* LaunchScreen.storyboard in Resources */,
E0D4166024482AAF008DCAB4 /* AccountViewController.xib in Resources */, E0D4166024482AAF008DCAB4 /* AccountViewController.xib in Resources */,
E01C26B12446989700ADCC70 /* Interface_Z.plist in Resources */, E01C26B12446989700ADCC70 /* Interface_Z.plist in Resources */,
...@@ -636,8 +658,10 @@ ...@@ -636,8 +658,10 @@
E0D197BD2448431C002B080C /* BabySpeaker.m in Sources */, E0D197BD2448431C002B080C /* BabySpeaker.m in Sources */,
E00D85E1244561FD00F5F816 /* SceneDelegate.swift in Sources */, E00D85E1244561FD00F5F816 /* SceneDelegate.swift in Sources */,
E09B03A12445AF7100211A51 /* Define.swift in Sources */, E09B03A12445AF7100211A51 /* Define.swift in Sources */,
E0D197CA24484D90002B080C /* PersonCenterCell.swift in Sources */,
E09B03A82445B04E00211A51 /* BaseView.swift in Sources */, E09B03A82445B04E00211A51 /* BaseView.swift in Sources */,
E09B03C02445B96500211A51 /* FgPassViewController.swift in Sources */, E09B03C02445B96500211A51 /* FgPassViewController.swift in Sources */,
E0D197C6244845FD002B080C /* PersonCenterViewController.swift in Sources */,
E09B03AB2445B0A300211A51 /* LoginModel.swift in Sources */, E09B03AB2445B0A300211A51 /* LoginModel.swift in Sources */,
E0D197BE2448431C002B080C /* BabyOptions.m in Sources */, E0D197BE2448431C002B080C /* BabyOptions.m in Sources */,
E0D197C22448431C002B080C /* BabyRhythm.m in Sources */, E0D197C22448431C002B080C /* BabyRhythm.m in Sources */,
......
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0.396",
"alpha" : "1.000",
"blue" : "0.396",
"green" : "0.396"
}
}
}
]
}
\ No newline at end of file
...@@ -23,6 +23,7 @@ class BaseViewController: UIViewController { ...@@ -23,6 +23,7 @@ class BaseViewController: UIViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
if IsOldIos() { if IsOldIos() {
self.automaticallyAdjustsScrollViewInsets = false; self.automaticallyAdjustsScrollViewInsets = false;
} }
......
...@@ -15,8 +15,9 @@ class NavViewController: UINavigationController { ...@@ -15,8 +15,9 @@ class NavViewController: UINavigationController {
self.navigationController?.navigationBar.tintColor = UIColor(named: "主色调") self.navigationController?.navigationBar.tintColor = UIColor(named: "主色调")
UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffset(horizontal: -2000, vertical: 0), for: UIBarMetrics.default)//去掉返回图片后面的文字 UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffset(horizontal: -2000, vertical: 0), for: UIBarMetrics.default)//去掉返回图片后面的文字
}
override var preferredStatusBarStyle: UIStatusBarStyle{
return UIStatusBarStyle.lightContent
} }
// override func viewDidLayoutSubviews() { // override func viewDidLayoutSubviews() {
// super.viewDidLayoutSubviews() // super.viewDidLayoutSubviews()
......
...@@ -22,6 +22,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { ...@@ -22,6 +22,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// Create the SwiftUI view that provides the window contents. // Create the SwiftUI view that provides the window contents.
let contentView = LoginViewController() let contentView = LoginViewController()
// Use a UIHostingController as window root view controller. // Use a UIHostingController as window root view controller.
if let windowScene = scene as? UIWindowScene { if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene) let window = UIWindow(windowScene: windowScene)
......
//
// PersonCenterCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/16.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class PersonCenterCell: UITableViewCell {
@IBOutlet weak var titleLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
self.selectionStyle = .none
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="PersonCenterCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="S2b-Xn-LyD">
<rect key="frame" x="15" y="49" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="aD2-Df-mLu"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Til-B7-hcz">
<rect key="frame" x="15" y="0.0" width="360" height="49"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jinru" translatesAutoresizingMaskIntoConstraints="NO" id="vKJ-Fp-ACU">
<rect key="frame" x="353" y="21" width="7" height="7"/>
<constraints>
<constraint firstAttribute="width" constant="7" id="6dp-c6-A0b"/>
<constraint firstAttribute="height" constant="7" id="Vre-gs-ydB"/>
</constraints>
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="vKJ-Fp-ACU" secondAttribute="trailing" constant="15" id="0rT-l5-ttB"/>
<constraint firstItem="Til-B7-hcz" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="7H1-9D-7gb"/>
<constraint firstAttribute="trailing" secondItem="S2b-Xn-LyD" secondAttribute="trailing" id="HOO-OY-7gP"/>
<constraint firstItem="S2b-Xn-LyD" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="OVv-wO-fUC"/>
<constraint firstItem="Til-B7-hcz" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Pt4-HX-3yw"/>
<constraint firstItem="vKJ-Fp-ACU" firstAttribute="centerY" secondItem="Til-B7-hcz" secondAttribute="centerY" id="bKb-kI-U02"/>
<constraint firstAttribute="bottom" secondItem="S2b-Xn-LyD" secondAttribute="bottom" id="dql-i2-0iM"/>
<constraint firstItem="S2b-Xn-LyD" firstAttribute="top" secondItem="Til-B7-hcz" secondAttribute="bottom" id="kuV-8Y-pOI"/>
<constraint firstAttribute="trailing" secondItem="Til-B7-hcz" secondAttribute="trailing" id="uFb-2R-JmN"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="titleLbl" destination="Til-B7-hcz" id="dBR-zb-pVr"/>
</connections>
<point key="canvasLocation" x="133" y="111"/>
</tableViewCell>
</objects>
<resources>
<image name="jinru" width="13" height="23"/>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92900002002716064" green="0.92900002002716064" blue="0.92900002002716064" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// PersonCenterViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/16.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class PersonCenterViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
@IBOutlet weak var shopNameLbl: UILabel!
@IBOutlet weak var iconImg: UIImageView!
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var topBgImg: UIImageView!
@IBOutlet weak var topImgBg: UIImageView!
@IBOutlet weak var listView: UITableView!
let listArray = ["格利支付","蓝牙打印设置","权限设置"]
//MARK: -方法
@IBAction func editAction(_ sender: Any) {
print("编辑资料")
}
@IBAction func toMsgCenterAction(_ sender: Any) {
print("跳转消息中心")
}
override func viewDidLoad() {
super.viewDidLoad()
let glscale = UIScreen.main.bounds.size.width/375
topImgBg.snp.makeConstraints { (make) in
make.top.left.right.equalTo(0)
make.height.equalTo(227*glscale)
}
topBgImg.snp.makeConstraints { (make) in
make.bottom.equalTo(topImgBg.snp_top)
make.left.right.equalTo(0)
make.height.equalTo(60)
}
listView.delegate = self
listView.dataSource = self
listView.isScrollEnabled = false
listView.separatorStyle = .none
listView?.register(UINib(nibName: "PersonCenterCell", bundle: nil), forCellReuseIdentifier: "listCell")
// Do any additional setup after loading the view.
/*
自适应字体大小后重新编辑背景框
shopNameLbl.text = "123"
shopNameLbl.sizeToFit()
shopNameLbl.snp.makeConstraints { (make) in
make.left.equalTo(nameLbl.snp_left)
make.top.equalTo(nameLbl.snp_bottom).offset(10)
make.width.equalTo(shopNameLbl.frame.size.width+8)
make.height.equalTo(20)
}
*/
}
//MARK: -Cell delegate方法
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print(indexPath.row)
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 50
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return listArray.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCell(withIdentifier: "listCell") as! PersonCenterCell
cell.titleLbl.text = listArray[indexPath.row]
return cell
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="PersonCenterViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="iconImg" destination="DwS-q4-jGe" id="6he-Rl-qwv"/>
<outlet property="listView" destination="5jU-Ew-dGr" id="xBV-SK-mS7"/>
<outlet property="nameLbl" destination="fgk-Rc-0oD" id="YJV-I2-pwb"/>
<outlet property="shopNameLbl" destination="1dW-Zl-K3m" id="g0J-Tl-jTu"/>
<outlet property="topBgImg" destination="XS7-um-ERL" id="XGS-hV-kYP"/>
<outlet property="topImgBg" destination="HeU-V1-6DM" id="IOa-dQ-XAc"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="msgBanner" translatesAutoresizingMaskIntoConstraints="NO" id="HeU-V1-6DM">
<rect key="frame" x="0.0" y="0.0" width="375" height="227"/>
<constraints>
<constraint firstAttribute="height" constant="227" id="h9n-vV-c6l">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sekuai" translatesAutoresizingMaskIntoConstraints="NO" id="XS7-um-ERL">
<rect key="frame" x="0.0" y="-60" width="375" height="60"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="41B-Cp-7Yq"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cLg-xh-ou1">
<rect key="frame" x="343" y="40" width="17" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="cnn-lk-74W"/>
<constraint firstAttribute="width" constant="17" id="g7b-8f-Rof"/>
</constraints>
<state key="normal" image="xiaoxi"/>
<connections>
<action selector="toMsgCenterAction:" destination="-1" eventType="touchUpInside" id="ctm-oG-Q9h"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="DwS-q4-jGe">
<rect key="frame" x="15" y="70" width="75" height="75"/>
<constraints>
<constraint firstAttribute="height" constant="75" id="Hma-Cd-TV0"/>
<constraint firstAttribute="width" constant="75" id="HtK-mA-OBM"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="37.5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="白色背景色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="后台管_理app" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fgk-Rc-0oD">
<rect key="frame" x="100" y="80" width="175" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="V7v-hK-fZO"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" alpha="0.69999999999999996" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="省冷一区49档" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1dW-Zl-K3m">
<rect key="frame" x="100" y="107" width="78.5" height="20"/>
<color key="backgroundColor" name="白色背景色"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="d9r-4U-n3t"/>
<constraint firstAttribute="width" constant="78.5" id="xyl-cX-9SE"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="个人中心灰色字体"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="编辑资料" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FHK-Ns-Jbj">
<rect key="frame" x="290.5" y="99.5" width="54" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="54" id="B8d-gi-Jor"/>
<constraint firstAttribute="height" constant="16" id="M2l-m0-JLo"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jinru" translatesAutoresizingMaskIntoConstraints="NO" id="g4L-Xg-xC1">
<rect key="frame" x="353.5" y="102" width="6.5" height="11.5"/>
<constraints>
<constraint firstAttribute="height" constant="11.5" id="7qc-IJ-k2g"/>
<constraint firstAttribute="width" constant="6.5" id="eo0-SN-D8w"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rVJ-yV-KJf">
<rect key="frame" x="290" y="92.5" width="85" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="85" id="4P7-o1-qCR"/>
<constraint firstAttribute="height" constant="30" id="66j-1C-Hbd"/>
</constraints>
<connections>
<action selector="editAction:" destination="-1" eventType="touchUpInside" id="jfv-r3-u4X"/>
</connections>
</button>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="5jU-Ew-dGr">
<rect key="frame" x="15" y="175" width="345" height="150"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="150" id="sgr-YH-MQe"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="fgk-Rc-0oD" firstAttribute="top" secondItem="XS7-um-ERL" secondAttribute="bottom" constant="80" id="5Vq-dc-2PO"/>
<constraint firstItem="XS7-um-ERL" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="5dt-Rh-U95"/>
<constraint firstItem="DwS-q4-jGe" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="15" id="7sM-zc-klQ"/>
<constraint firstItem="1dW-Zl-K3m" firstAttribute="leading" secondItem="fgk-Rc-0oD" secondAttribute="leading" id="EIK-Gd-lLv"/>
<constraint firstItem="FHK-Ns-Jbj" firstAttribute="centerY" secondItem="DwS-q4-jGe" secondAttribute="centerY" id="JK4-XS-vBE"/>
<constraint firstItem="fgk-Rc-0oD" firstAttribute="leading" secondItem="DwS-q4-jGe" secondAttribute="trailing" constant="10" id="K68-Yb-HVk"/>
<constraint firstItem="g4L-Xg-xC1" firstAttribute="centerY" secondItem="DwS-q4-jGe" secondAttribute="centerY" id="M0M-hu-pUF"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="g4L-Xg-xC1" secondAttribute="trailing" constant="15" id="Mrj-Zu-Nyw"/>
<constraint firstItem="5jU-Ew-dGr" firstAttribute="top" secondItem="DwS-q4-jGe" secondAttribute="bottom" constant="30" id="OJH-Vp-JzG"/>
<constraint firstItem="cLg-xh-ou1" firstAttribute="top" secondItem="XS7-um-ERL" secondAttribute="bottom" constant="40" id="RU9-dO-deH"/>
<constraint firstItem="1dW-Zl-K3m" firstAttribute="top" secondItem="fgk-Rc-0oD" secondAttribute="bottom" constant="10" id="UAw-P4-ixK"/>
<constraint firstItem="DwS-q4-jGe" firstAttribute="top" secondItem="XS7-um-ERL" secondAttribute="bottom" constant="70" id="VTx-E9-roD"/>
<constraint firstItem="rVJ-yV-KJf" firstAttribute="leading" secondItem="fgk-Rc-0oD" secondAttribute="trailing" constant="15" id="Vr2-ou-tfd"/>
<constraint firstItem="rVJ-yV-KJf" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="WsU-SM-AkY"/>
<constraint firstItem="g4L-Xg-xC1" firstAttribute="leading" secondItem="FHK-Ns-Jbj" secondAttribute="trailing" constant="9" id="bjJ-fD-OXZ"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="HeU-V1-6DM" secondAttribute="trailing" id="gHU-E2-SuW"/>
<constraint firstItem="XS7-um-ERL" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="-60" id="hST-i2-ChZ"/>
<constraint firstItem="HeU-V1-6DM" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="mg9-jE-IY9"/>
<constraint firstItem="rVJ-yV-KJf" firstAttribute="centerY" secondItem="DwS-q4-jGe" secondAttribute="centerY" id="rBe-8F-ejm"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="5jU-Ew-dGr" secondAttribute="trailing" constant="15" id="rzW-MO-fAP"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="cLg-xh-ou1" secondAttribute="trailing" constant="15" id="sHN-S7-6ms"/>
<constraint firstItem="5jU-Ew-dGr" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" constant="15" id="v0e-5c-etM"/>
<constraint firstItem="HeU-V1-6DM" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="vP5-n9-lJH"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="XS7-um-ERL" secondAttribute="trailing" id="zG1-1C-ytv"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="132" y="110.19490254872565"/>
</view>
</objects>
<resources>
<image name="jinru" width="13" height="23"/>
<image name="msgBanner" width="750" height="454"/>
<image name="sekuai" width="375" height="30"/>
<image name="xiaoxi" width="34" height="36"/>
<namedColor name="个人中心灰色字体">
<color red="0.396078431372549" green="0.396078431372549" blue="0.396078431372549" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
...@@ -38,12 +38,8 @@ class MsgCenterViewController: BaseViewController,NavBarViewDelegate,UITableView ...@@ -38,12 +38,8 @@ class MsgCenterViewController: BaseViewController,NavBarViewDelegate,UITableView
msgTbv?.register(UINib(nibName: "MsgCenterCell", bundle: nil), forCellReuseIdentifier: "MsgCenterCell") msgTbv?.register(UINib(nibName: "MsgCenterCell", bundle: nil), forCellReuseIdentifier: "MsgCenterCell")
} }
//MARK: -delegate方法 //MARK: -delegate方法
func backAction() { func backAction() {
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
......
...@@ -27,7 +27,7 @@ self.navigationController?.pushViewController(vc, animated: true) ...@@ -27,7 +27,7 @@ self.navigationController?.pushViewController(vc, animated: true)
@IBAction func loginAction(_ sender: Any) { @IBAction func loginAction(_ sender: Any) {
print("loginAction") print("loginAction")
let vc = ChangePassViewController() let vc = PersonCenterViewController()
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} }
//MARK: - 输入账号、密码、验证码 //MARK: - 输入账号、密码、验证码
......
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