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
62c33ec6
Commit
62c33ec6
authored
Jul 24, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口联调
parent
fb6308c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
GMBookConsultInfoModel.h
...lasses/ToFace/WorkingTable/Model/GMBookConsultInfoModel.h
+1
-0
GMBookReachStoreConsultView.m
...es/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
+3
-1
GMBookConsultViewModel.h
...es/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.h
+1
-1
GMBookConsultViewModel.m
...es/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
+2
-1
No files found.
GMAILab/Classes/ToFace/WorkingTable/Model/GMBookConsultInfoModel.h
View file @
62c33ec6
...
@@ -17,6 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -17,6 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
copy
)
NSString
*
telephone
;
@property
(
nonatomic
,
copy
)
NSString
*
telephone
;
@property
(
nonatomic
,
copy
)
NSString
*
recordId
;
@property
(
nonatomic
,
copy
)
NSString
*
recordId
;
@property
(
nonatomic
,
assign
)
BOOL
hasPhone
;
@property
(
nonatomic
,
assign
)
BOOL
hasPhone
;
@property
(
nonatomic
,
assign
)
NSInteger
leadPhoneRequestId
;
@end
@end
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
View file @
62c33ec6
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
@property
(
nonatomic
,
strong
)
UILabel
*
tipLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
tipLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
copy
)
NSString
*
recordId
;
@property
(
nonatomic
,
copy
)
NSString
*
recordId
;
@property
(
nonatomic
,
assign
)
NSInteger
leadPhoneRequestId
;
@property
(
nonatomic
,
assign
)
BOOL
isHadPhone
;
@property
(
nonatomic
,
assign
)
BOOL
isHadPhone
;
...
@@ -156,7 +157,7 @@
...
@@ -156,7 +157,7 @@
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"appointment"
];
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"appointment"
];
if
(
self
.
isHadPhone
)
{
if
(
self
.
isHadPhone
)
{
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
GMBookConsultViewModel
bookConsultWithRecordId
:
SafeString
(
self
.
recordId
)
successBlock
:
^
(
id
responseObject
)
{
[
GMBookConsultViewModel
bookConsultWithRecordId
:
SafeString
(
self
.
recordId
)
requestId
:
_leadPhoneRequestId
successBlock
:^
(
id
responseObject
)
{
GMResponseOC
*
response
=
(
GMResponseOC
*
)
responseObject
;
GMResponseOC
*
response
=
(
GMResponseOC
*
)
responseObject
;
NSDictionary
*
data
=
response
.
data
;
NSDictionary
*
data
=
response
.
data
;
// 跳转发私信
// 跳转发私信
...
@@ -192,6 +193,7 @@
...
@@ -192,6 +193,7 @@
popView
.
tipLabel
.
text
=
model
.
prompt
;
popView
.
tipLabel
.
text
=
model
.
prompt
;
popView
.
recordId
=
model
.
recordId
;
popView
.
recordId
=
model
.
recordId
;
popView
.
isHadPhone
=
model
.
hasPhone
;
popView
.
isHadPhone
=
model
.
hasPhone
;
popView
.
leadPhoneRequestId
=
model
.
leadPhoneRequestId
;
[[
GMBaseTool
getCurrentViewController
].
view
addSubview
:
popView
];
[[
GMBaseTool
getCurrentViewController
].
view
addSubview
:
popView
];
}
}
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.h
View file @
62c33ec6
...
@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface
GMBookConsultViewModel
:
WMFetchDataViewModel
@interface
GMBookConsultViewModel
:
WMFetchDataViewModel
// 获取弹窗
// 获取弹窗
+
(
void
)
bookConsultInfoWithWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
+
(
void
)
bookConsultInfoWithWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
+
(
void
)
bookConsultWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
+
(
void
)
bookConsultWithRecordId
:(
NSString
*
)
recordId
requestId
:(
NSInteger
)
requestId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
View file @
62c33ec6
...
@@ -20,9 +20,10 @@
...
@@ -20,9 +20,10 @@
}];
}];
}
}
+
(
void
)
bookConsultWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
+
(
void
)
bookConsultWithRecordId
:(
NSString
*
)
recordId
requestId
:(
NSInteger
)
requestId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
NSMutableDictionary
*
params
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
params
=
[
NSMutableDictionary
dictionary
];
[
params
setObject
:
SafeString
(
recordId
)
forKey
:
@"record_id"
];
[
params
setObject
:
SafeString
(
recordId
)
forKey
:
@"record_id"
];
[
params
setObject
:
@
(
requestId
)
forKey
:
@"request_id"
];
[
params
setObject
:
SafeString
([
PhobosUtil
currentTime
])
forKey
:
@"appointment_time"
];
[
params
setObject
:
SafeString
([
PhobosUtil
currentTime
])
forKey
:
@"appointment_time"
];
[
GMNetworking
requestOCWithApi
:
@"/api/sales_lead/consult_appointment"
method
:
GMHTTPMethodPost
parameters
:
params
completion
:^
(
GMResponseOC
*
responseObject
)
{
[
GMNetworking
requestOCWithApi
:
@"/api/sales_lead/consult_appointment"
method
:
GMHTTPMethodPost
parameters
:
params
completion
:^
(
GMResponseOC
*
responseObject
)
{
if
(
responseObject
.
isSuccess
)
{
if
(
responseObject
.
isSuccess
)
{
...
...
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