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
fb6308c6
Commit
fb6308c6
authored
Jul 23, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【视频面诊】到店预约功能
parent
cd4e02d5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
GMSureOrderPopView.m
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.m
+1
-1
GMBookReachStoreConsultView.m
...es/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
+2
-2
GMBookConsultViewModel.h
...es/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.h
+1
-1
GMBookConsultViewModel.m
...es/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
+4
-2
No files found.
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.m
View file @
fb6308c6
...
...
@@ -253,7 +253,7 @@
}
// 弹授权弹窗(视频面诊评价弹窗关闭后/视频面诊结束之后(通话时长小于30s,不弹弹窗))
[
GMBookConsultViewModel
bookConsultInfoWith
S
uccessBlock
:
^
(
id
responseObject
)
{
[
GMBookConsultViewModel
bookConsultInfoWith
WithRecordId
:
self
.
infoModel
.
consultationRecordId
s
uccessBlock
:
^
(
id
responseObject
)
{
GMResponseOC
*
response
=
(
GMResponseOC
*
)
responseObject
;
NSDictionary
*
data
=
response
.
data
;
GMBookConsultInfoModel
*
info
=
[[
GMBookConsultInfoModel
alloc
]
initWithDictionary
:
data
error
:
NULL
];
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
View file @
fb6308c6
...
...
@@ -153,7 +153,7 @@
}
-
(
void
)
authClicked
{
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"appointment"
]
;
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"appointment"
]
;
if
(
self
.
isHadPhone
)
{
__weak
typeof
(
self
)
weakSelf
=
self
;
[
GMBookConsultViewModel
bookConsultWithRecordId
:
SafeString
(
self
.
recordId
)
successBlock
:
^
(
id
responseObject
)
{
...
...
@@ -173,7 +173,7 @@
}
-
(
void
)
cancelClicked
{
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"close"
]
;
[
GMBookReachStoreConsultView
on_click_buttonWithButtonName
:
@"close"
]
;
[
self
removeFromSuperview
];
}
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.h
View file @
fb6308c6
...
...
@@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface
GMBookConsultViewModel
:
WMFetchDataViewModel
// 获取弹窗
+
(
void
)
bookConsultInfoWith
S
uccessBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
+
(
void
)
bookConsultInfoWith
WithRecordId
:(
NSString
*
)
recordId
s
uccessBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
+
(
void
)
bookConsultWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
@end
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
View file @
fb6308c6
...
...
@@ -8,8 +8,10 @@
#import "GMBookConsultViewModel.h"
@implementation
GMBookConsultViewModel
+
(
void
)
bookConsultInfoWithSuccessBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
[
GMNetworking
requestOCWithApi
:
@"/api/consultation_counsel/conuslt_user_appointment"
method
:
GMHTTPMethodGet
parameters
:
nil
completion
:^
(
GMResponseOC
*
responseObject
)
{
+
(
void
)
bookConsultInfoWithWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
NSMutableDictionary
*
params
=
[
NSMutableDictionary
dictionary
];
[
params
setObject
:
SafeString
(
recordId
)
forKey
:
@"record_id"
];
[
GMNetworking
requestOCWithApi
:
@"/api/consultation_counsel/conuslt_user_appointment"
method
:
GMHTTPMethodGet
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