Commit 25f3b71d authored by lujunye's avatar lujunye

调整登录页显示

parent 4093b68e
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "fanhui@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "fanhui@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -33,6 +33,8 @@ let SERVERCE_HOST = "http://a.gelifood.com/apia"
//视图常量
let IS_IPHONE_X = __CGSizeEqualToSize(CGSize(width: 375.0, height: 812.0),UIScreen.main.bounds.size ) || __CGSizeEqualToSize(CGSize(width: 812.0, height: 375.0),UIScreen.main.bounds.size)||__CGSizeEqualToSize(CGSize(width: 414.0, height: 896.0),UIScreen.main.bounds.size ) || __CGSizeEqualToSize(CGSize(width: 896.0, height: 414.0),UIScreen.main.bounds.size)
let NavHeight = (IS_IPHONE_X ? 88 : 64)
let TabHeight = (IS_IPHONE_X ? 83 : 49)
......
......@@ -82,7 +82,7 @@ class NavBarView: BaseView {
}
leftImgV = UIImageView()
leftImgV.image = UIImage(named: "icon_fanhui")
leftImgV.image = UIImage(named: "fanhui")
self.addSubview(leftImgV)
leftImgV.snp.makeConstraints { (make) in
make.left.equalTo(12)
......
......@@ -35,6 +35,8 @@ self.navigationController?.pushViewController(vc, animated: true)
@IBOutlet weak var phoneTF: UITextField!
@IBOutlet weak var passTF: UITextField!
@IBOutlet weak var codeTF: UITextField!
@IBOutlet weak var bannerImg: UIImageView!
@IBOutlet weak var topImg: UIImageView!
//MARK: - viewWillAppear
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
......@@ -46,8 +48,17 @@ self.navigationController?.pushViewController(vc, animated: true)
override func viewDidLoad() {
super.viewDidLoad()
let glscale = UIScreen.main.bounds.size.width/375
passTF.isSecureTextEntry = true
bannerImg.snp.makeConstraints { (make) in
make.top.left.right.equalTo(0)
make.height.equalTo(234*glscale)
}
topImg.snp.makeConstraints { (make) in
make.bottom.equalTo(bannerImg.snp_top)
make.left.right.equalTo(0)
make.height.equalTo(60)
}
}
......
......@@ -10,10 +10,12 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="LoginViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="bannerImg" destination="AdE-4p-9iF" id="Eub-F8-pfv"/>
<outlet property="codeTF" destination="qfV-go-Nf1" id="dsy-cS-dte"/>
<outlet property="codeView" destination="dgy-iq-Edz" id="6HM-ez-mXt"/>
<outlet property="passTF" destination="ipW-Al-eG6" id="P2q-AH-6SO"/>
<outlet property="phoneTF" destination="xEL-ml-rz8" id="wzo-Rz-RWS"/>
<outlet property="topImg" destination="5Z0-Os-dI3" id="FoU-Ay-ylS"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
......
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