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
b1932ce2
Commit
b1932ce2
authored
Jul 21, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【视频面诊】落地页
parent
8a72c0bc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
face_book_consult_small_icon@2x.png
...ToFace/ImagesAndAudio/face_book_consult_small_icon@2x.png
+0
-0
face_book_consult_small_icon@3x.png
...ToFace/ImagesAndAudio/face_book_consult_small_icon@3x.png
+0
-0
GMBookReachStoreConsultView.m
...es/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
+21
-21
GMBookConsultViewModel.m
...es/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
+1
-1
No files found.
GMAILab/Classes/ToFace/ImagesAndAudio/face_book_consult_small_icon@2x.png
0 → 100644
View file @
b1932ce2
1.21 KB
GMAILab/Classes/ToFace/ImagesAndAudio/face_book_consult_small_icon@3x.png
0 → 100644
View file @
b1932ce2
1.95 KB
GMAILab/Classes/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
View file @
b1932ce2
...
...
@@ -44,18 +44,32 @@
make
.
centerY
.
mas_equalTo
(
self
.
container
.
mas_top
);
}];
_titleLabel
=
[[
UILabel
alloc
]
init
];
_titleLabel
.
textColor
=
RGBCOLOR_HEX
(
0x464646
);
_titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_titleLabel
.
numberOfLines
=
0
;
_titleLabel
.
lineBreakMode
=
NSLineBreakByWordWrapping
;
_titleLabel
.
font
=
[
UIFont
gmBoldFont
:
18
];
[
self
.
container
addSubview
:
_titleLabel
];
[
_titleLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_headerImageView
.
mas_bottom
).
offset
(
1
);
make
.
centerX
.
mas_equalTo
(
_headerImageView
.
mas_centerX
);
make
.
left
.
mas_equalTo
(
35
);
make
.
right
.
mas_equalTo
(
-
35
);
}];
_iconLabel
=
[[
UILabel
alloc
]
init
];
_iconLabel
.
textColor
=
UIColor
.
grayColor
;
_iconLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_iconLabel
.
font
=
[
UIFont
gmFont
:
14
];
[
self
addSubview
:
_iconLabel
];
[
_iconLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_
headerImageView
.
mas_bottom
).
offset
(
1
);
make
.
centerX
.
mas_equalTo
(
_
headerImageView
.
mas_centerX
);
make
.
top
.
mas_equalTo
(
_
titleLabel
.
mas_bottom
).
offset
(
14
);
make
.
centerX
.
mas_equalTo
(
_
titleLabel
.
mas_centerX
).
offset
(
10
.
5
);
make
.
height
.
mas_equalTo
(
19
);
}];
_icon
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"small_icon"
]];
_icon
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"
face_book_consult_
small_icon"
]];
[
self
.
container
addSubview
:
_icon
];
[
_icon
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
width
.
mas_equalTo
(
16
);
...
...
@@ -63,20 +77,6 @@
make
.
centerY
.
mas_equalTo
(
_iconLabel
.
mas_centerY
);
}];
_titleLabel
=
[[
UILabel
alloc
]
init
];
_titleLabel
.
textColor
=
RGBCOLOR_HEX
(
0x464646
);
_titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_titleLabel
.
numberOfLines
=
0
;
_titleLabel
.
lineBreakMode
=
NSLineBreakByWordWrapping
;
_titleLabel
.
font
=
[
UIFont
gmBoldFont
:
18
];
[
self
.
container
addSubview
:
_titleLabel
];
[
_titleLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_iconLabel
.
mas_bottom
).
offset
(
14
);
make
.
centerX
.
mas_equalTo
(
_iconLabel
.
mas_centerX
);
make
.
left
.
mas_equalTo
(
35
);
make
.
right
.
mas_equalTo
(
-
35
);
}];
_cancelBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_cancelBtn
setBackgroundImage
:[
UIImage
imageNamed
:
@"clue_cancl"
]
forState
:
UIControlStateNormal
];
[
_cancelBtn
addTarget
:
self
action
:
@selector
(
cancelClicked
)
forControlEvents
:
UIControlEventTouchUpInside
];
...
...
@@ -97,7 +97,7 @@
_phoneLabel
.
font
=
[
UIFont
gmFont
:
16
];
[
self
.
container
addSubview
:
_phoneLabel
];
[
_phoneLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_
title
Label
.
mas_bottom
).
offset
(
25
);
make
.
top
.
mas_equalTo
(
_
icon
Label
.
mas_bottom
).
offset
(
25
);
make
.
centerX
.
mas_equalTo
(
_headerImageView
.
mas_centerX
);
make
.
height
.
mas_equalTo
(
37
);
make
.
left
.
mas_equalTo
(
self
.
container
.
mas_left
).
offset
(
35
);
...
...
@@ -134,7 +134,7 @@
[
self
.
container
addSubview
:
_tipLabel
];
[
_tipLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
_authBtn
.
mas_bottom
).
offset
(
14
);
make
.
bottom
.
mas_equalTo
(
self
.
container
.
mas_bottom
).
offset
(
-
25
);
make
.
bottom
.
mas_equalTo
(
self
.
container
.
mas_bottom
).
offset
(
-
25
-
UIView
.
safeAreaInsetsBottom
);
make
.
centerX
.
mas_equalTo
(
_headerImageView
.
mas_centerX
);
make
.
height
.
mas_equalTo
(
15
);
make
.
left
.
mas_equalTo
(
self
.
container
.
mas_left
).
offset
(
33
);
...
...
@@ -180,7 +180,7 @@
}
+
(
void
)
showBookConsultPopViewWithObject
:
(
GMBookConsultInfoModel
*
)
model
{
//
if (model) {
if
(
model
)
{
GMBookReachStoreConsultView
*
popView
=
[[
GMBookReachStoreConsultView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
MAINSCREEN_WIDTH
,
MAINSCREEN_HEIGHT
)];
popView
.
titleLabel
.
text
=
model
.
title
;
[
popView
.
headerImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
model
.
imgUrl
]];
...
...
@@ -190,6 +190,6 @@
popView
.
recordId
=
model
.
recordId
;
popView
.
isHadPhone
=
model
.
hasPhone
;
[[
GMBaseTool
getCurrentViewController
].
view
addSubview
:
popView
];
//
}
}
}
@end
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
View file @
b1932ce2
...
...
@@ -22,7 +22,7 @@
NSMutableDictionary
*
params
=
[
NSMutableDictionary
dictionary
];
[
params
setObject
:
SafeString
(
recordId
)
forKey
:
@"record_id"
];
[
params
setObject
:
SafeString
([
PhobosUtil
currentTime
])
forKey
:
@"appointment_time"
];
[
GMNetworking
requestOCWithApi
:
@"/api/sales_lead/consult_appointment"
method
:
GMHTTPMethod
Get
parameters
:
@{}
completion
:^
(
GMResponseOC
*
responseObject
)
{
[
GMNetworking
requestOCWithApi
:
@"/api/sales_lead/consult_appointment"
method
:
GMHTTPMethod
Post
parameters
:
params
completion
:^
(
GMResponseOC
*
responseObject
)
{
if
(
responseObject
.
isSuccess
)
{
successBlock
(
responseObject
);
}
else
{
...
...
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