Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMAILab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMAILab
Commits
75633777
Commit
75633777
authored
Jul 30, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI 走查
parent
2c858a69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
GMBookReachStoreConsultView.m
...es/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
+14
-7
No files found.
GMAILab/Classes/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
View file @
75633777
...
...
@@ -36,13 +36,21 @@
make
.
bottom
.
mas_equalTo
(
0
);
}];
self
.
container
.
frame
=
CGRectMake
(
0
,
MAINSCREEN_HEIGHT
-
267
-
UIView
.
safeAreaInsetsBottom
,
MAINSCREEN_WIDTH
,
267
+
UIView
.
safeAreaInsetsBottom
);
self
.
container
.
clipsToBounds
=
NO
;
[
self
containerRectCorner
:
self
.
container
];
UIView
*
titleView
=
[[
UIView
alloc
]
init
];
titleView
.
backgroundColor
=
UIColor
.
clearColor
;
titleView
.
frame
=
CGRectMake
(
0
,
MAINSCREEN_HEIGHT
-
267
-
UIView
.
safeAreaInsetsBottom
,
MAINSCREEN_WIDTH
,
85
);
titleView
.
bottom
=
self
.
container
.
top
;
[
self
addSubview
:
titleView
];
_headerImageView
=
[[
UIImageView
alloc
]
init
];
[
self
.
container
addSubview
:
_headerImageView
];
[
titleView
addSubview
:
_headerImageView
];
[
_headerImageView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
width
.
mas_equalTo
(
85
);
make
.
centerX
.
mas_equalTo
(
self
.
container
.
mas_centerX
);
make
.
centerY
.
mas_equalTo
(
self
.
container
.
mas_top
);
make
.
top
.
mas_equalTo
(
42
.
5
);
}];
_titleLabel
=
[[
UILabel
alloc
]
init
];
...
...
@@ -63,7 +71,7 @@
_iconLabel
.
textColor
=
UIColor
.
grayColor
;
_iconLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_iconLabel
.
font
=
[
UIFont
gmFont
:
14
];
[
self
addSubview
:
_iconLabel
];
[
self
.
container
addSubview
:
_iconLabel
];
[
_iconLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_titleLabel
.
mas_bottom
).
offset
(
14
);
make
.
centerX
.
mas_equalTo
(
_titleLabel
.
mas_centerX
).
offset
(
10
.
5
);
...
...
@@ -117,7 +125,7 @@
_authBtn
.
titleLabel
.
layer
.
shadowOffset
=
CGSizeMake
(
0
.
0
f
,
1
.
5
f
);
//阴影的偏移量,这个很重要
_authBtn
.
titleLabel
.
layer
.
shadowRadius
=
0
.
5
f
;
//阴影的扩散半径,
[
_authBtn
addTarget
:
self
action
:
@selector
(
authClicked
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
addSubview
:
_authBtn
];
[
self
.
container
addSubview
:
_authBtn
];
_authBtn
.
layer
.
borderColor
=
UIColor
.
whiteColor
.
CGColor
;
[
_authBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
_phoneLabel
.
mas_bottom
).
offset
(
12
);
...
...
@@ -142,7 +150,6 @@
make
.
right
.
mas_equalTo
(
self
.
container
.
mas_right
).
offset
(
-
33
);
}];
[
self
containerRectCorner
:
self
.
container
];
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
...
...
@@ -162,7 +169,7 @@
NSDictionary
*
data
=
response
.
data
;
// 跳转发私信
[[
GMRouter
sharedInstance
]
pushScheme
:
SafeString
(
data
[
@"message_url"
])];
[
weakSelf
cancelClicked
];
[
weakSelf
removeFromSuperview
];
}
failBlock
:^
(
NSString
*
message
)
{
[[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
[
weakSelf
cancelClicked
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment