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
14d10884
Commit
14d10884
authored
May 18, 2020
by
luyueming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求提交
parent
b178f3ac
Hide whitespace changes
Inline
Side-by-side
Showing
143 changed files
with
1073 additions
and
480 deletions
+1073
-480
UserInterfaceState.xcuserstate
...data/luyueming.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
.DS_Store
GMAILab/Classes/.DS_Store
+0
-0
GMConsultantInfoModel.h
...ses/ToFace/ToFaceDoctorList/Model/GMConsultantInfoModel.h
+1
-0
GMToFaceDoctorListModel.h
...s/ToFace/ToFaceDoctorList/Model/GMToFaceDoctorListModel.h
+1
-0
GMToFaceDoctorListViewModel.m
.../ToFaceDoctorList/VIewModel/GMToFaceDoctorListViewModel.m
+2
-2
GMBasicInfoCardView.h
...lasses/ToFace/ToFaceDoctorList/View/GMBasicInfoCardView.h
+1
-0
GMBasicInfoCardView.m
...lasses/ToFace/ToFaceDoctorList/View/GMBasicInfoCardView.m
+31
-18
GMDoctorInfoPopupView.h
...sses/ToFace/ToFaceDoctorList/View/GMDoctorInfoPopupView.h
+1
-0
GMDoctorInfoPopupView.m
...sses/ToFace/ToFaceDoctorList/View/GMDoctorInfoPopupView.m
+55
-42
GMFaceListPageControl.h
...sses/ToFace/ToFaceDoctorList/View/GMFaceListPageControl.h
+1
-0
GMToFaceCommonEmptyView.h
...es/ToFace/ToFaceDoctorList/View/GMToFaceCommonEmptyView.h
+34
-0
GMToFaceCommonEmptyView.m
...es/ToFace/ToFaceDoctorList/View/GMToFaceCommonEmptyView.m
+103
-0
GMToFaceDoctorBlockInfoView.m
...oFace/ToFaceDoctorList/View/GMToFaceDoctorBlockInfoView.m
+5
-2
GMToFaceDoctorListHeaderFlowLayout.h
...oFaceDoctorList/View/GMToFaceDoctorListHeaderFlowLayout.h
+1
-1
GMToFaceDoctorListHorNewCell.m
...Face/ToFaceDoctorList/View/GMToFaceDoctorListHorNewCell.m
+15
-12
GMToFaceDoctorListNewHeaderView.h
...e/ToFaceDoctorList/View/GMToFaceDoctorListNewHeaderView.h
+2
-0
GMToFaceDoctorListNewHeaderView.m
...e/ToFaceDoctorList/View/GMToFaceDoctorListNewHeaderView.m
+7
-7
GMToFaceDoctorListVerCell.h
.../ToFace/ToFaceDoctorList/View/GMToFaceDoctorListVerCell.h
+1
-0
GMToFaceDoctorListVerCell.m
.../ToFace/ToFaceDoctorList/View/GMToFaceDoctorListVerCell.m
+15
-14
GMToFaceContainerViewController.h
...ctorList/ViewController/GMToFaceContainerViewController.h
+2
-2
GMToFaceContainerViewController.m
...ctorList/ViewController/GMToFaceContainerViewController.m
+10
-7
GMToFaceDoctorListController.h
...eDoctorList/ViewController/GMToFaceDoctorListController.h
+5
-3
GMToFaceDoctorListController.m
...eDoctorList/ViewController/GMToFaceDoctorListController.m
+25
-18
GMPayResultModel.h
GMAILab/Classes/ToFace/ToFaceOrder/Model/GMPayResultModel.h
+1
-0
GMToFaceOrderInfoModel.h
...Classes/ToFace/ToFaceOrder/Model/GMToFaceOrderInfoModel.h
+1
-0
GMToFacePayPrepareModel.h
...lasses/ToFace/ToFaceOrder/Model/GMToFacePayPrepareModel.h
+2
-0
GMPayTypeView.m
GMAILab/Classes/ToFace/ToFaceOrder/View/GMPayTypeView.m
+4
-3
GMSureOrderPopView.h
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.h
+2
-0
GMSureOrderPopView.m
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.m
+27
-17
GMToFaceOrderFooterView.m
...Classes/ToFace/ToFaceOrder/View/GMToFaceOrderFooterView.m
+4
-3
GMToFaceOrderHeaderView.m
...Classes/ToFace/ToFaceOrder/View/GMToFaceOrderHeaderView.m
+6
-5
GMToFacePayPopView.m
GMAILab/Classes/ToFace/ToFaceOrder/View/GMToFacePayPopView.m
+28
-17
GMToFacePaySectionHeaderView.m
...es/ToFace/ToFaceOrder/View/GMToFacePaySectionHeaderView.m
+4
-3
GMToFacePayTypeCell.m
...Lab/Classes/ToFace/ToFaceOrder/View/GMToFacePayTypeCell.m
+5
-4
GMToFaceOrderViewController.m
.../ToFaceOrder/ViewController/GMToFaceOrderViewController.m
+14
-8
GMTofaceOrderDetailViewController.m
...eOrder/ViewController/GMTofaceOrderDetailViewController.m
+10
-6
GMToFacePayViewModel.h
...asses/ToFace/ToFaceOrder/ViewModel/GMToFacePayViewModel.h
+1
-1
GMToFacePayViewModel.m
...asses/ToFace/ToFaceOrder/ViewModel/GMToFacePayViewModel.m
+10
-4
GMAppCameraAndMicrophone.m
.../ToFace/VideoTelephone/manager/GMAppCameraAndMicrophone.m
+7
-2
GMDoctorVideoTelephoneLogin.m
...Face/VideoTelephone/manager/GMDoctorVideoTelephoneLogin.m
+7
-3
GMNimChannelManager.m
...asses/ToFace/VideoTelephone/manager/GMNimChannelManager.m
+3
-2
GMRtcManager.m
GMAILab/Classes/ToFace/VideoTelephone/manager/GMRtcManager.m
+2
-2
GMUserVideoTelephoneLogin.m
...ToFace/VideoTelephone/manager/GMUserVideoTelephoneLogin.m
+11
-10
GMVideoPhobos.m
...Lab/Classes/ToFace/VideoTelephone/manager/GMVideoPhobos.m
+3
-0
GMVideoTelephoneRequestTool.m
...Face/VideoTelephone/manager/GMVideoTelephoneRequestTool.m
+2
-1
GMConsultationInfoModel.h
...ses/ToFace/VideoTelephone/model/GMConsultationInfoModel.h
+2
-0
GMRecommendShopingModel.h
...ses/ToFace/VideoTelephone/model/GMRecommendShopingModel.h
+3
-0
GMTelephoneRecommodWelfareModel.h
...ce/VideoTelephone/model/GMTelephoneRecommodWelfareModel.h
+1
-0
GMTelphoneStatusModel.h
...asses/ToFace/VideoTelephone/model/GMTelphoneStatusModel.h
+1
-0
GMUserInfoModel.h
...Lab/Classes/ToFace/VideoTelephone/model/GMUserInfoModel.h
+2
-0
GMVideoTelephoneModel.h
...asses/ToFace/VideoTelephone/model/GMVideoTelephoneModel.h
+2
-0
GMAISearchNavigationView.h
...ses/ToFace/VideoTelephone/view/GMAISearchNavigationView.h
+26
-0
GMAISearchNavigationView.m
...ses/ToFace/VideoTelephone/view/GMAISearchNavigationView.m
+157
-0
GMDoctorRecommendShoppingView.h
...oFace/VideoTelephone/view/GMDoctorRecommendShoppingView.h
+1
-1
GMDoctorRecommendShoppingView.m
...oFace/VideoTelephone/view/GMDoctorRecommendShoppingView.m
+10
-8
GMDoctorShopingViewSelectedCell.h
...ace/VideoTelephone/view/GMDoctorShopingViewSelectedCell.h
+1
-1
GMDoctorShopingViewSelectedCell.m
...ace/VideoTelephone/view/GMDoctorShopingViewSelectedCell.m
+0
-1
GMDoctorShoppingViewCell.h
...ses/ToFace/VideoTelephone/view/GMDoctorShoppingViewCell.h
+1
-1
GMDoctorTelephoneFunctionView.m
...oFace/VideoTelephone/view/GMDoctorTelephoneFunctionView.m
+1
-1
GMLinkPromptView.h
...Lab/Classes/ToFace/VideoTelephone/view/GMLinkPromptView.h
+1
-1
GMTelephoneAttentionView.m
...ses/ToFace/VideoTelephone/view/GMTelephoneAttentionView.m
+1
-0
GMTelephoneBtnView.m
...b/Classes/ToFace/VideoTelephone/view/GMTelephoneBtnView.m
+1
-0
GMTelephoneShoppingEmptyView.m
...ToFace/VideoTelephone/view/GMTelephoneShoppingEmptyView.m
+1
-0
GMTelephoneView.m
GMAILab/Classes/ToFace/VideoTelephone/view/GMTelephoneView.m
+3
-1
GMUserFillMessageView.m
...lasses/ToFace/VideoTelephone/view/GMUserFillMessageView.m
+2
-2
GMUserTelephoneFunctionView.m
.../ToFace/VideoTelephone/view/GMUserTelephoneFunctionView.m
+1
-1
GMVideoTelephoneRecommendShoppingView.m
...deoTelephone/view/GMVideoTelephoneRecommendShoppingView.m
+1
-0
GMVideoTelephoneRecommodWelfareTableViewCell.m
...phone/view/GMVideoTelephoneRecommodWelfareTableViewCell.m
+2
-1
GMUserVideoTelephoneWindow.m
...ToFace/VideoTelephone/window/GMUserVideoTelephoneWindow.m
+8
-9
GMVideoTelephoneWindow.h
...ses/ToFace/VideoTelephone/window/GMVideoTelephoneWindow.h
+0
-2
GMVideoTelephoneWindow.m
...ses/ToFace/VideoTelephone/window/GMVideoTelephoneWindow.m
+5
-6
GMNoticeInfoObject.h
GMAILab/Classes/ToFace/Waiting/GMNoticeInfoObject.h
+1
-0
GMVideoWaitingView.h
GMAILab/Classes/ToFace/Waiting/GMVideoWaitingView.h
+1
-0
GMVideoWaitingView.m
GMAILab/Classes/ToFace/Waiting/GMVideoWaitingView.m
+23
-11
GMWaitingSuccessView.h
GMAILab/Classes/ToFace/Waiting/GMWaitingSuccessView.h
+1
-0
GMWaitingSuccessView.m
GMAILab/Classes/ToFace/Waiting/GMWaitingSuccessView.m
+32
-23
GMComplaintObject.h
...Lab/Classes/ToFace/WorkingTable/Model/GMComplaintObject.h
+1
-0
GMDispatchWaitingGrabObject.h
...s/ToFace/WorkingTable/Model/GMDispatchWaitingGrabObject.h
+1
-0
GMEditQuesPartModel.h
...b/Classes/ToFace/WorkingTable/Model/GMEditQuesPartModel.h
+1
-0
GMEditQuesPartModel.m
...b/Classes/ToFace/WorkingTable/Model/GMEditQuesPartModel.m
+1
-0
GMStarWithContentObject.h
...asses/ToFace/WorkingTable/Model/GMStarWithContentObject.h
+1
-0
GMWorkTableObject.h
...Lab/Classes/ToFace/WorkingTable/Model/GMWorkTableObject.h
+1
-0
GMCommonTipAlertView.h
...b/Classes/ToFace/WorkingTable/View/GMCommonTipAlertView.h
+1
-0
GMCommonTipAlertView.m
...b/Classes/ToFace/WorkingTable/View/GMCommonTipAlertView.m
+8
-5
GMComplaintResultView.h
.../Classes/ToFace/WorkingTable/View/GMComplaintResultView.h
+1
-0
GMComplaintResultView.m
.../Classes/ToFace/WorkingTable/View/GMComplaintResultView.m
+16
-8
GMDiagnosisDispatchInfoView.h
...es/ToFace/WorkingTable/View/GMDiagnosisDispatchInfoView.h
+1
-0
GMDiagnosisDispatchInfoView.m
...es/ToFace/WorkingTable/View/GMDiagnosisDispatchInfoView.m
+4
-3
GMDiagnosisWorkingTableChooseIdentityView.h
...ingTable/View/GMDiagnosisWorkingTableChooseIdentityView.h
+1
-1
GMDiagnosisWorkingTableChooseIdentityView.m
...ingTable/View/GMDiagnosisWorkingTableChooseIdentityView.m
+17
-12
GMDiagnosisWorkingTableHeaderView.h
...ace/WorkingTable/View/GMDiagnosisWorkingTableHeaderView.h
+1
-0
GMDiagnosisWorkingTableHeaderView.m
...ace/WorkingTable/View/GMDiagnosisWorkingTableHeaderView.m
+16
-14
GMDiagnosisWorkingTableSwitch.h
.../ToFace/WorkingTable/View/GMDiagnosisWorkingTableSwitch.h
+1
-0
GMDoctorConsultatioPromptView.m
.../ToFace/WorkingTable/View/GMDoctorConsultatioPromptView.m
+1
-1
GMEditQuesPartCell.h
...Lab/Classes/ToFace/WorkingTable/View/GMEditQuesPartCell.h
+1
-1
GMEditQuesPartSelectView.h
...asses/ToFace/WorkingTable/View/GMEditQuesPartSelectView.h
+1
-0
GMEditQuesPartSelectView.m
...asses/ToFace/WorkingTable/View/GMEditQuesPartSelectView.m
+4
-2
GMEditQuesSuggestCell.h
.../Classes/ToFace/WorkingTable/View/GMEditQuesSuggestCell.h
+1
-1
GMEndConsultView.h
GMAILab/Classes/ToFace/WorkingTable/View/GMEndConsultView.h
+1
-0
GMEndConsultView.m
GMAILab/Classes/ToFace/WorkingTable/View/GMEndConsultView.m
+27
-13
GMGMDiagnosisWorkingTableScrollView.h
...e/WorkingTable/View/GMGMDiagnosisWorkingTableScrollView.h
+1
-0
GMGMDiagnosisWorkingTableScrollView.m
...e/WorkingTable/View/GMGMDiagnosisWorkingTableScrollView.m
+6
-4
GMGrabLoadingView.h
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.h
+1
-0
GMGrabLoadingView.m
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.m
+3
-3
GMGrabedListCell.h
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabedListCell.h
+1
-1
GMGradientProgressView.h
...Classes/ToFace/WorkingTable/View/GMGradientProgressView.h
+1
-0
GMGradientProgressView.m
...Classes/ToFace/WorkingTable/View/GMGradientProgressView.m
+3
-0
GMIsDoctorPopupView.h
...ab/Classes/ToFace/WorkingTable/View/GMIsDoctorPopupView.h
+1
-0
GMIsDoctorPopupView.m
...ab/Classes/ToFace/WorkingTable/View/GMIsDoctorPopupView.m
+20
-7
GMMissUsersTipView.h
...Lab/Classes/ToFace/WorkingTable/View/GMMissUsersTipView.h
+1
-0
GMMissUsersTipView.m
...Lab/Classes/ToFace/WorkingTable/View/GMMissUsersTipView.m
+2
-0
GMOnlineStatusView.h
...Lab/Classes/ToFace/WorkingTable/View/GMOnlineStatusView.h
+1
-0
GMOnlineStatusView.m
...Lab/Classes/ToFace/WorkingTable/View/GMOnlineStatusView.m
+3
-2
GMWaitingGrabListCell.m
.../Classes/ToFace/WorkingTable/View/GMWaitingGrabListCell.m
+3
-2
GMWoikingTableCollectionCell.h
...s/ToFace/WorkingTable/View/GMWoikingTableCollectionCell.h
+1
-1
GMWoikingTableCollectionCell.m
...s/ToFace/WorkingTable/View/GMWoikingTableCollectionCell.m
+4
-3
GMWorkingTableCell.h
...Lab/Classes/ToFace/WorkingTable/View/GMWorkingTableCell.h
+1
-0
GMBusinessReportListController.m
...kingTable/ViewController/GMBusinessReportListController.m
+9
-5
GMBusinessReportResultController.m
...ngTable/ViewController/GMBusinessReportResultController.m
+12
-6
GMDiagnosisDispatchContainerViewController.h
...ewController/GMDiagnosisDispatchContainerViewController.h
+1
-1
GMDiagnosisDispatchContainerViewController.m
...ewController/GMDiagnosisDispatchContainerViewController.m
+2
-1
GMDiagnosisWorkingTableViewController.m
...le/ViewController/GMDiagnosisWorkingTableViewController.m
+9
-7
GMEditQuesPartController.h
...ce/WorkingTable/ViewController/GMEditQuesPartController.h
+1
-1
GMEditQuesPartController.m
...ce/WorkingTable/ViewController/GMEditQuesPartController.m
+6
-4
GMGrabedListViewController.m
.../WorkingTable/ViewController/GMGrabedListViewController.m
+1
-1
GMWaitingGrabListViewController.m
...ingTable/ViewController/GMWaitingGrabListViewController.m
+6
-4
GMDiagnosisWorkingTableViewModel.m
...WorkingTable/ViewModel/GMDiagnosisWorkingTableViewModel.m
+3
-1
GMEditQuesPartViewModel.m
...s/ToFace/WorkingTable/ViewModel/GMEditQuesPartViewModel.m
+35
-32
GMGrabedListViewModel.m
...ses/ToFace/WorkingTable/ViewModel/GMGrabedListViewModel.m
+2
-1
GMWaitingGrabViewModel.m
...es/ToFace/WorkingTable/ViewModel/GMWaitingGrabViewModel.m
+3
-3
GMDiagnoseRecordWebViewController.m
...ToFace/diagnoseRecord/GMDiagnoseRecordWebViewController.m
+22
-12
GMPlayBackWelfareCell.h
GMAILab/Classes/ToFace/playback/GMPlayBackWelfareCell.h
+2
-2
GMPlayBackWelfareView.h
GMAILab/Classes/ToFace/playback/GMPlayBackWelfareView.h
+2
-1
GMPlayBackWelfareView.m
GMAILab/Classes/ToFace/playback/GMPlayBackWelfareView.m
+3
-3
GMVideoInfoView.h
GMAILab/Classes/ToFace/playback/GMVideoInfoView.h
+1
-0
GMVideoInfoView.m
GMAILab/Classes/ToFace/playback/GMVideoInfoView.m
+2
-1
GMVideoPlayBackObject.h
GMAILab/Classes/ToFace/playback/GMVideoPlayBackObject.h
+1
-0
GMVideoPlayBackViewController.h
...b/Classes/ToFace/playback/GMVideoPlayBackViewController.h
+5
-5
GMVideoPlayBackViewController.m
...b/Classes/ToFace/playback/GMVideoPlayBackViewController.m
+17
-16
GMVideoPlayBackViewModel.m
GMAILab/Classes/ToFace/playback/GMVideoPlayBackViewModel.m
+2
-0
telephoneDoctor.aiff
GMAILab/Classes/ToFace/source/telephoneDoctor.aiff
+0
-0
videoTelephone.aiff
GMAILab/Classes/ToFace/source/videoTelephone.aiff
+0
-0
videoTelephone.mp3
GMAILab/Classes/ToFace/source/videoTelephone.mp3
+0
-0
No files found.
Example/GMAILab.xcworkspace/xcuserdata/luyueming.xcuserdatad/UserInterfaceState.xcuserstate
View file @
14d10884
No preview for this file type
GMAILab/Classes/.DS_Store
View file @
14d10884
No preview for this file type
GMAILab/Classes/ToFace/ToFaceDoctorList/Model/GMConsultantInfoModel.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by zhouLiang on 2020/3/9.
// Created by zhouLiang on 2020/3/9.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
@protocol
GMHospitalInfoModel
@end
@protocol
GMHospitalInfoModel
@end
@interface
GMHospitalInfoModel
:
GMObject
@interface
GMHospitalInfoModel
:
GMObject
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/Model/GMToFaceDoctorListModel.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by zhouLiang on 2020/2/20.
// Created by zhouLiang on 2020/2/20.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
@protocol
GMToFaceTabs
@end
@protocol
GMToFaceTabs
@end
@interface
GMToFaceTabs
:
GMObject
@interface
GMToFaceTabs
:
GMObject
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/VIewModel/GMToFaceDoctorListViewModel.m
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMToFaceDoctorListViewModel.h"
#import "GMToFaceDoctorListViewModel.h"
#import "GMToFaceNetworking.h"
@interface
GMToFaceDoctorListViewModel
()
<
WMFetchDataModelProtocol
>
{
@interface
GMToFaceDoctorListViewModel
()
<
WMFetchDataModelProtocol
>
{
NSMutableDictionary
*
_deduplicationDic
;
NSMutableDictionary
*
_deduplicationDic
;
NSString
*
_deduplicationKey
;
NSString
*
_deduplicationKey
;
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
-
(
void
)
excuteToFaceTabsDoctorsSuccessBlock
:
(
HttpSuccessBlock
)
successBlock
-
(
void
)
excuteToFaceTabsDoctorsSuccessBlock
:
(
HttpSuccessBlock
)
successBlock
failBlock
:
(
HttpFailedBlock
)
failBlock
{
failBlock
:
(
HttpFailedBlock
)
failBlock
{
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceTabsDoctorsTabsId
:
self
.
tabId
page
:
self
.
page
SuccessBlock
:^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceTabsDoctorsTabsId
:
self
.
tabId
page
:
self
.
page
SuccessBlock
:^
(
id
response
)
{
GMToFaceTabsDoctorListModel
*
model
=
[[
GMToFaceTabsDoctorListModel
alloc
]
initWithDictionary
:
response
error
:
NULL
];
GMToFaceTabsDoctorListModel
*
model
=
[[
GMToFaceTabsDoctorListModel
alloc
]
initWithDictionary
:
response
error
:
NULL
];
if
(
self
.
page
==
1
)
{
if
(
self
.
page
==
1
)
{
[
self
.
dataArray
removeAllObjects
];
[
self
.
dataArray
removeAllObjects
];
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMBasicInfoCardView.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by yefengming on 2020/2/19.
// Created by yefengming on 2020/2/19.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMPopupBgView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMBasicInfoCardView.m
View file @
14d10884
...
@@ -7,9 +7,10 @@
...
@@ -7,9 +7,10 @@
//
//
#import "GMBasicInfoCardView.h"
#import "GMBasicInfoCardView.h"
#import "GMDetailWebViewController.h"
#import <WebKit/WebKit.h>
#import "Gengmei-Swift.h"
//#import "GMDetailWebViewController.h"
#import "GMCommentPopupView.h"
//#import "Gengmei-Swift.h"
//#import "GMCommentPopupView.h"
#import "GMUserVideoTelephoneLogin.h"
#import "GMUserVideoTelephoneLogin.h"
#import "GMVideoWaitingView.h"
#import "GMVideoWaitingView.h"
#import "GMDoctorInfoPopupView.h"
#import "GMDoctorInfoPopupView.h"
...
@@ -18,6 +19,10 @@
...
@@ -18,6 +19,10 @@
#import "GMToFacePayPrepareModel.h"
#import "GMToFacePayPrepareModel.h"
#import "GMToFaceOrderViewController.h"
#import "GMToFaceOrderViewController.h"
#import "GMToFacePayPopView.h"
#import "GMToFacePayPopView.h"
#import "RequestHeader.h"
#import <GMBase/GMBaseTool.h>
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <GMBaseWeb/GMWebutil.h>
#define counsellorAllHeight (573 + UIView.safeAreaInsetsBottom)
#define counsellorAllHeight (573 + UIView.safeAreaInsetsBottom)
#define counsellorHalfHeight (366 + UIView.safeAreaInsetsBottom)
#define counsellorHalfHeight (366 + UIView.safeAreaInsetsBottom)
...
@@ -54,6 +59,13 @@
...
@@ -54,6 +59,13 @@
[
self
containerRectCorner
:
self
.
container
];
[
self
containerRectCorner
:
self
.
container
];
}
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
+
(
void
)
showWithCorrectFrameView
:
(
GMBasicInfoCardView
*
)
cardView
resultBlock
:
(
nonnull
void
(
^
)(
void
))
resultBlock
{
+
(
void
)
showWithCorrectFrameView
:
(
GMBasicInfoCardView
*
)
cardView
resultBlock
:
(
nonnull
void
(
^
)(
void
))
resultBlock
{
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION__COUNSEL_CUSTOMER
method
:
GMHTTPMethodGet
parameters
:
@{
@"counsellor_id"
:
SafeString
(
cardView
.
counsellorId
),
@"doctor_id"
:
SafeString
(
cardView
.
doctorId
)}
completion
:^
(
GMResponseOC
*
response
)
{
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION__COUNSEL_CUSTOMER
method
:
GMHTTPMethodGet
parameters
:
@{
@"counsellor_id"
:
SafeString
(
cardView
.
counsellorId
),
@"doctor_id"
:
SafeString
(
cardView
.
doctorId
)}
completion
:^
(
GMResponseOC
*
response
)
{
if
(
response
.
isSuccess
)
{
if
(
response
.
isSuccess
)
{
...
@@ -63,10 +75,10 @@
...
@@ -63,10 +75,10 @@
cardView
.
type
=
[
dic
[
@"counsellor_type"
]
integerValue
];
cardView
.
type
=
[
dic
[
@"counsellor_type"
]
integerValue
];
}
}
[
cardView
updateConstraintsWithHasRecord
:
hasRecord
];
[
cardView
updateConstraintsWithHasRecord
:
hasRecord
];
[
AppDelegate
.
visibleController
.
view
addSubview
:
cardView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
cardView
];
}
else
{
}
else
{
[
cardView
updateConstraintsWithHasRecord
:
NO
];
[
cardView
updateConstraintsWithHasRecord
:
NO
];
[
AppDelegate
.
visibleController
.
view
addSubview
:
cardView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
cardView
];
}
}
if
(
resultBlock
)
{
if
(
resultBlock
)
{
resultBlock
();
resultBlock
();
...
@@ -106,14 +118,14 @@
...
@@ -106,14 +118,14 @@
-
(
void
)
setDoctorId
:
(
NSString
*
)
doctorId
{
-
(
void
)
setDoctorId
:
(
NSString
*
)
doctorId
{
_doctorId
=
doctorId
;
_doctorId
=
doctorId
;
self
.
webCompent
.
fullUrl
=
[
NSString
stringWithFormat
:
@"%@/phantom/treatment/user/typing_info_v4/%@?counsellor_id=%@&record_type=1"
,
GMServerDomains
.
apiHost
,
SafeString
(
doctorId
),
SafeString
(
self
.
counsellorId
)];
self
.
webCompent
.
fullUrl
=
[
NSString
stringWithFormat
:
@"%@/phantom/treatment/user/typing_info_v4/%@?counsellor_id=%@&record_type=1"
,
[
GMWebutil
getCurrentApiHost
]
,
SafeString
(
doctorId
),
SafeString
(
self
.
counsellorId
)];
[
self
.
webCompent
webviewLoad
:
self
];
[
self
.
webCompent
webviewLoad
:
self
];
}
}
-
(
void
)
setIsDispatch
:
(
BOOL
)
isDispatch
{
-
(
void
)
setIsDispatch
:
(
BOOL
)
isDispatch
{
_isDispatch
=
isDispatch
;
_isDispatch
=
isDispatch
;
if
(
self
.
isDispatch
)
{
if
(
self
.
isDispatch
)
{
self
.
webCompent
.
fullUrl
=
[
NSString
stringWithFormat
:
@"%@/phantom/treatment/user/typing_info_v4?record_type=2"
,
GMServerDomains
.
apiHost
];
self
.
webCompent
.
fullUrl
=
[
NSString
stringWithFormat
:
@"%@/phantom/treatment/user/typing_info_v4?record_type=2"
,
[
GMWebutil
getCurrentApiHost
]
];
[
self
.
webCompent
webviewLoad
:
self
];
[
self
.
webCompent
webviewLoad
:
self
];
}
}
}
}
...
@@ -135,9 +147,9 @@
...
@@ -135,9 +147,9 @@
GMDoctorInfoPopupView
*
popupView
=
[[
GMDoctorInfoPopupView
alloc
]
init
];
GMDoctorInfoPopupView
*
popupView
=
[[
GMDoctorInfoPopupView
alloc
]
init
];
popupView
.
tabName
=
@"医生推荐"
;
popupView
.
tabName
=
@"医生推荐"
;
popupView
.
model
=
model
;
popupView
.
model
=
model
;
[
AppDelegate
.
visibleController
.
view
addSubview
:
popupView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
popupView
];
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
response
.
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
response
.
message
];
}
}
}];
}];
}
}
...
@@ -157,9 +169,9 @@
...
@@ -157,9 +169,9 @@
-
(
void
)
globalDataLoaded
:
(
NSDictionary
*
)
data
{
-
(
void
)
globalDataLoaded
:
(
NSDictionary
*
)
data
{
int
consultation_type
=
[
data
[
@"consultation_type"
]
intValue
];
int
consultation_type
=
[
data
[
@"consultation_type"
]
intValue
];
int
counsellor_type
=
[
data
[
@"counsellor_type"
]
intValue
];
int
counsellor_type
=
[
data
[
@"counsellor_type"
]
intValue
];
NSDictionary
*
dict
=
@{
@"page_name"
:
AppDelegate
.
visibleController
.
pageName
,
NSDictionary
*
dict
=
@{
@"page_name"
:
[
GMBaseTool
getCurrentViewController
]
.
pageName
,
@"popup_name"
:
@"basic_info"
,
@"popup_name"
:
@"basic_info"
,
@"referrer_link"
:
AppDelegate
.
visibleController
.
referrerLink
?
:
@[],
@"referrer_link"
:
[
GMBaseTool
getCurrentViewController
]
.
referrerLink
?
:
@[],
@"consultation_type"
:
@
(
consultation_type
),
@"consultation_type"
:
@
(
consultation_type
),
@"counsellor_type"
:
@
(
counsellor_type
),
@"counsellor_type"
:
@
(
counsellor_type
),
@"tab_name"
:
SafeString
(
self
.
tabName
),
@"tab_name"
:
SafeString
(
self
.
tabName
),
...
@@ -252,7 +264,7 @@
...
@@ -252,7 +264,7 @@
popView
.
CloseView
=
^
{
popView
.
CloseView
=
^
{
[
weakSelf
hide
];
[
weakSelf
hide
];
};
};
[[
AppDelegate
shareInstance
].
window
addSubview
:
popView
];
[[
GMBaseTool
mainWindow
]
addSubview
:
popView
];
//进到付款页面先隐藏view,等到付款成功的回调来了之后再显示
//进到付款页面先隐藏view,等到付款成功的回调来了之后再显示
self
.
alpha
=
0
.
f
;
self
.
alpha
=
0
.
f
;
}
else
{
}
else
{
...
@@ -265,7 +277,7 @@
...
@@ -265,7 +277,7 @@
//支付成功发起面诊
//支付成功发起面诊
[
weakSelf
videoDiagnose
];
[
weakSelf
videoDiagnose
];
};
};
[
AppDelegate
.
visibleController
pushViewController
:
controller
animated
:
YES
completion
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
pushViewController
:
controller
animated
:
YES
completion
:
nil
];
}
}
}
}
-
(
BOOL
)
showAlertIfNotAllowed
{
-
(
BOOL
)
showAlertIfNotAllowed
{
...
@@ -281,12 +293,13 @@
...
@@ -281,12 +293,13 @@
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
otherButton
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
action
)
{
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
otherButton
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
action
)
{
[
GMLocationManager
jumpToSettings
];
[
GMLocationManager
jumpToSettings
];
}]];
}]];
[
AppDelegate
.
visibleController
presentViewController
:
alert
animated
:
YES
completion
:
NULL
];
[
[
GMBaseTool
getCurrentViewController
]
presentViewController
:
alert
animated
:
YES
completion
:
NULL
];
return
YES
;
return
YES
;
}
}
return
NO
;
return
NO
;
}
}
-
(
void
)
cancelDispatch
{
-
(
void
)
cancelDispatch
{
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION_CANCEL_DISPATCH
method
:
GMHTTPMethodPost
parameters
:
nil
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION_CANCEL_DISPATCH
method
:
GMHTTPMethodPost
parameters
:
nil
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
...
@@ -314,7 +327,7 @@
...
@@ -314,7 +327,7 @@
[
weakSelf
hide
];
[
weakSelf
hide
];
});
});
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
response
.
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
response
.
message
];
}
}
}];
}];
}
}
...
@@ -376,7 +389,7 @@
...
@@ -376,7 +389,7 @@
}
}
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
}]];
}]];
[
AppDelegate
.
visibleController
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
}
-
(
void
)
showCameraAlert
{
-
(
void
)
showCameraAlert
{
...
@@ -391,7 +404,7 @@
...
@@ -391,7 +404,7 @@
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
}]];
}]];
[
AppDelegate
.
visibleController
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
}
#pragma mark - 权限获取埋点(只有两个权限全部为点同一状态才算YES,并且必须两个都音视频都授权才进行埋点)
#pragma mark - 权限获取埋点(只有两个权限全部为点同一状态才算YES,并且必须两个都音视频都授权才进行埋点)
-
(
void
)
audioAndVideoJurisdiction
:
(
BOOL
)
isOpen
{
-
(
void
)
audioAndVideoJurisdiction
:
(
BOOL
)
isOpen
{
...
@@ -426,7 +439,7 @@
...
@@ -426,7 +439,7 @@
};
};
}
}
if
(
!
_waitingView
.
superview
)
{
if
(
!
_waitingView
.
superview
)
{
[
AppDelegate
.
visibleController
.
view
addSubview
:
_waitingView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
_waitingView
];
[
_waitingView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_waitingView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
edges
.
mas_equalTo
(
0
);
make
.
edges
.
mas_equalTo
(
0
);
}];
}];
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMDoctorInfoPopupView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMConsultantInfoModel.h"
#import "GMConsultantInfoModel.h"
#import "GMLibraryHeader.h"
@protocol
GMDoctorInfoPopupViewDelegate
<
NSObject
>
@protocol
GMDoctorInfoPopupViewDelegate
<
NSObject
>
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMDoctorInfoPopupView.m
View file @
14d10884
...
@@ -8,6 +8,10 @@
...
@@ -8,6 +8,10 @@
#import "GMDoctorInfoPopupView.h"
#import "GMDoctorInfoPopupView.h"
#import "GMBasicInfoCardView.h"
#import "GMBasicInfoCardView.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
#import <GMBase/GMBaseTool.h>
@protocol
GMDoctorInfoHeaderViewDelegate
<
NSObject
>
@protocol
GMDoctorInfoHeaderViewDelegate
<
NSObject
>
-
(
void
)
followBtnClick
:
(
BOOL
)
isFollow
;
-
(
void
)
followBtnClick
:
(
BOOL
)
isFollow
;
...
@@ -119,13 +123,13 @@
...
@@ -119,13 +123,13 @@
-
(
NSMutableAttributedString
*
)
rateLabelText
{
-
(
NSMutableAttributedString
*
)
rateLabelText
{
NSMutableAttributedString
*
content
=
[[
NSMutableAttributedString
alloc
]
init
];
NSMutableAttributedString
*
content
=
[[
NSMutableAttributedString
alloc
]
init
];
// 0:不显示1: 好评率 + 接通率 2: 好评率 + 有效面诊人数
// 0:不显示1: 好评率 + 接通率 2: 好评率 + 有效面诊人数
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
@"好评率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
@"好评率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_doctorInfoModel
.
likeRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor51CDC7
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_doctorInfoModel
.
likeRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x51CDC7
)
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 接通率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 接通率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContentC
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_doctorInfoModel
.
connectRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor51CDC7
}];
NSAttributedString
*
subContentC
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_doctorInfoModel
.
connectRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x51CDC7
)
}];
NSAttributedString
*
subContentD
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 有效面诊:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentD
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 有效面诊:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContentE
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_doctorInfoModel
.
consultPeopleNumber
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor51CDC7
}];
NSAttributedString
*
subContentE
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_doctorInfoModel
.
consultPeopleNumber
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x51CDC7
)
}];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContentB
];
[
content
appendAttributedString
:
subContentB
];
...
@@ -153,7 +157,7 @@
...
@@ -153,7 +157,7 @@
}
}
-
(
GMLabel
*
)
nameLabel
{
-
(
GMLabel
*
)
nameLabel
{
if
(
!
_nameLabel
)
{
if
(
!
_nameLabel
)
{
_nameLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
_nameLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
_nameLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_nameLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_nameLabel
.
text
=
@"赵宏伟"
;
_nameLabel
.
text
=
@"赵宏伟"
;
}
}
...
@@ -161,7 +165,7 @@
...
@@ -161,7 +165,7 @@
}
}
-
(
GMLabel
*
)
titleLabel
{
-
(
GMLabel
*
)
titleLabel
{
if
(
!
_titleLabel
)
{
if
(
!
_titleLabel
)
{
_titleLabel
=
[
GMLabel
labelWithTextColor
:
ALColor8E8E8E
fontSize
:
12
];
_titleLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x8E8E8E
)
fontSize
:
12
];
_titleLabel
.
textAlignment
=
NSTextAlignmentLeft
;
_titleLabel
.
textAlignment
=
NSTextAlignmentLeft
;
}
}
return
_titleLabel
;
return
_titleLabel
;
...
@@ -176,7 +180,7 @@
...
@@ -176,7 +180,7 @@
make
.
left
.
mas_equalTo
(
0
);
make
.
left
.
mas_equalTo
(
0
);
make
.
centerY
.
equalTo
(
_positionView
.
mas_centerY
);
make
.
centerY
.
equalTo
(
_positionView
.
mas_centerY
);
}];
}];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
ALColor8E8E8E
fontSize
:
10
];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x8E8E8E
)
fontSize
:
10
];
[
_positionView
addSubview
:
label
];
[
_positionView
addSubview
:
label
];
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
icon
.
mas_right
).
offset
(
2
);
make
.
left
.
equalTo
(
icon
.
mas_right
).
offset
(
2
);
...
@@ -187,14 +191,14 @@
...
@@ -187,14 +191,14 @@
}
}
-
(
GMLabel
*
)
numLabel
{
-
(
GMLabel
*
)
numLabel
{
if
(
!
_numLabel
)
{
if
(
!
_numLabel
)
{
_numLabel
=
[
GMLabel
labelWithTextColor
:
ALColor8E8E8E
fontSize
:
12
];
_numLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x8E8E8E
)
fontSize
:
12
];
}
}
return
_numLabel
;
return
_numLabel
;
}
}
-
(
UIView
*
)
lineView
{
-
(
UIView
*
)
lineView
{
if
(
!
_lineView
)
{
if
(
!
_lineView
)
{
_lineView
=
[[
UIView
alloc
]
init
];
_lineView
=
[[
UIView
alloc
]
init
];
_lineView
.
backgroundColor
=
GMColorF4F3F8
;
_lineView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xF4F3F8
)
;
}
}
return
_lineView
;
return
_lineView
;
}
}
...
@@ -202,9 +206,9 @@
...
@@ -202,9 +206,9 @@
-
(
UIView
*
)
organView
{
-
(
UIView
*
)
organView
{
if
(
!
_organView
)
{
if
(
!
_organView
)
{
_organView
=
[[
UIView
alloc
]
init
];
_organView
=
[[
UIView
alloc
]
init
];
GMLabel
*
oneLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
13
];
GMLabel
*
oneLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
13
];
oneLabel
.
text
=
@"机构:"
;
oneLabel
.
text
=
@"机构:"
;
GMLabel
*
twoLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
13
];
GMLabel
*
twoLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
13
];
twoLabel
.
font
=
[
UIFont
gmBoldFont
:
13
];
twoLabel
.
font
=
[
UIFont
gmBoldFont
:
13
];
twoLabel
.
userInteractionEnabled
=
YES
;
twoLabel
.
userInteractionEnabled
=
YES
;
twoLabel
.
textAlignment
=
NSTextAlignmentLeft
;
twoLabel
.
textAlignment
=
NSTextAlignmentLeft
;
...
@@ -316,10 +320,10 @@
...
@@ -316,10 +320,10 @@
__block
CGFloat
height
=
0
;
//labelView高度
__block
CGFloat
height
=
0
;
//labelView高度
__block
NSInteger
numberOfLines
=
1
;
__block
NSInteger
numberOfLines
=
1
;
[
model
.
goodAt
enumerateObjectsUsingBlock
:
^
(
id
_Nonnull
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
[
model
.
goodAt
enumerateObjectsUsingBlock
:
^
(
id
_Nonnull
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
GMColor4DBBB5
fontSize
:
11
];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x4DBBB5
)
fontSize
:
11
];
label
.
layer
.
cornerRadius
=
3
.
f
;
label
.
layer
.
cornerRadius
=
3
.
f
;
label
.
layer
.
masksToBounds
=
YES
;
label
.
layer
.
masksToBounds
=
YES
;
label
.
backgroundColor
=
GMColorEEF8F7
;
label
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEF8F7
)
;
label
.
textAlignment
=
NSTextAlignmentCenter
;
label
.
textAlignment
=
NSTextAlignmentCenter
;
label
.
text
=
obj
;
label
.
text
=
obj
;
CGFloat
width
=
[
label
sizeThatFits
:
CGSizeMake
(
66
,
17
)].
width
+
22
;
CGFloat
width
=
[
label
sizeThatFits
:
CGSizeMake
(
66
,
17
)].
width
+
22
;
...
@@ -382,12 +386,13 @@
...
@@ -382,12 +386,13 @@
}
}
#pragma mark - 在线
#pragma mark - 在线
-
(
void
)
onlineBtnClickMethod
{
-
(
void
)
onlineBtnClickMethod
{
if
([[
GMLoginManager
shareInstance
]
showLoginViewIfNeeded
])
{
BOOL
status
=
(
BOOL
)[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_showLoginViewIfNeeded"
];
if
(
status
)
{
return
;
return
;
}
}
[
self
hide
];
[
self
hide
];
[
Phobos
track
:
@"on_click_button"
attributes
:@{
@"page_name"
:
AppDelegate
.
visibleController
.
pageName
,
[
Phobos
track
:
@"on_click_button"
attributes
:@{
@"page_name"
:
[
GMBaseTool
getCurrentViewController
]
.
pageName
,
@"tab_name"
:
self
.
tabName
,
@"tab_name"
:
self
.
tabName
,
@"button_name"
:
@"online_consult"
,
@"button_name"
:
@"online_consult"
,
@"doctor_id"
:
self
.
model
.
counsellorId
,
@"doctor_id"
:
self
.
model
.
counsellorId
,
...
@@ -398,11 +403,13 @@
...
@@ -398,11 +403,13 @@
}
}
#pragma mark - 随机1v1面诊
#pragma mark - 随机1v1面诊
-
(
void
)
faceRandomMethod
{
-
(
void
)
faceRandomMethod
{
if
([[
GMLoginManager
shareInstance
]
showLoginViewIfNeeded
])
{
BOOL
status
=
(
BOOL
)[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_showLoginViewIfNeeded"
];
if
(
status
)
{
return
;
return
;
}
}
[
Phobos
track
:
@"on_click_button"
attributes
:@{
@"page_name"
:
AppDelegate
.
visibleController
.
pageName
,
[
Phobos
track
:
@"on_click_button"
attributes
:@{
@"page_name"
:
[
GMBaseTool
getCurrentViewController
]
.
pageName
,
@"tab_name"
:
self
.
tabName
,
@"tab_name"
:
self
.
tabName
,
@"button_name"
:
@"视频面诊"
,
@"button_name"
:
@"视频面诊"
,
@"doctor_id"
:
self
.
model
.
counsellorId
,
@"doctor_id"
:
self
.
model
.
counsellorId
,
...
@@ -410,28 +417,34 @@
...
@@ -410,28 +417,34 @@
@"referrer_link"
:
(
self
.
referrerLink
?
:
@[])
@"referrer_link"
:
(
self
.
referrerLink
?
:
@[])
}];
}];
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
[[
GMInterfaceNetwork
shareInstance
]
excuteToFaceBlockInfoSuccessBlock
:
^
(
id
response
)
{
NSDictionary
*
dict
=
response
[
@"block_info"
];
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION_COUNSEL_BLOCK_INFO
method
:
GMHTTPMethodGet
parameters
:
@{}
completion
:^
(
GMResponseOC
*
responseOC
)
{
NSString
*
alert
=
dict
[
@"alert"
];
if
(
responseOC
.
isSuccess
)
{
[
weakSelf
hide
];
NSDictionary
*
response
=
[
NSJSONSerialization
JSONObjectWithData
:
responseOC
.
responseData
options
:
NSJSONReadingMutableLeaves
error
:
nil
];
if
(
!
[
alert
isNonEmpty
])
{
NSDictionary
*
dict
=
response
[
@"block_info"
];
//未被禁止
NSString
*
alert
=
dict
[
@"alert"
];
//请求用户填面诊信息的弹框
[
weakSelf
hide
];
GMBasicInfoCardView
*
cardView
=
[
GMBasicInfoCardView
new
];
if
(
!
[
alert
isNonEmpty
])
{
cardView
.
referer
=
AppDelegate
.
visibleController
.
pageName
;
//未被禁止
cardView
.
counsellorId
=
weakSelf
.
model
.
counsellorId
;
//请求用户填面诊信息的弹框
cardView
.
doctorId
=
@""
;
GMBasicInfoCardView
*
cardView
=
[
GMBasicInfoCardView
new
];
cardView
.
tabName
=
self
.
tabName
;
cardView
.
referer
=
[
GMBaseTool
getCurrentViewController
].
pageName
;
[
GMBasicInfoCardView
showWithCorrectFrameView
:
cardView
resultBlock
:
nil
];
cardView
.
counsellorId
=
weakSelf
.
model
.
counsellorId
;
}
else
{
cardView
.
doctorId
=
@""
;
//被禁止
cardView
.
tabName
=
self
.
tabName
;
if
(
weakSelf
.
blockInfoCallback
)
{
[
GMBasicInfoCardView
showWithCorrectFrameView
:
cardView
resultBlock
:
nil
];
weakSelf
.
blockInfoCallback
(
alert
);
}
else
{
//被禁止
if
(
weakSelf
.
blockInfoCallback
)
{
weakSelf
.
blockInfoCallback
(
alert
);
}
}
}
}
else
{
[
GMHudModule
toast
:
responseOC
.
message
];
}
}
}
failureBlock
:
^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
GMHudModule
toast
:
message
];
}];
}];
}
}
-
(
GMDoctorInfoHeaderView
*
)
headerView
{
-
(
GMDoctorInfoHeaderView
*
)
headerView
{
...
@@ -443,7 +456,7 @@
...
@@ -443,7 +456,7 @@
}
}
-
(
GMLabel
*
)
projectLabel
{
-
(
GMLabel
*
)
projectLabel
{
if
(
!
_projectLabel
)
{
if
(
!
_projectLabel
)
{
_projectLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
13
];
_projectLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
13
];
_projectLabel
.
text
=
@"擅长:"
;
_projectLabel
.
text
=
@"擅长:"
;
}
}
return
_projectLabel
;
return
_projectLabel
;
...
@@ -456,14 +469,14 @@
...
@@ -456,14 +469,14 @@
}
}
-
(
GMLabel
*
)
introduceLabel
{
-
(
GMLabel
*
)
introduceLabel
{
if
(
!
_introduceLabel
)
{
if
(
!
_introduceLabel
)
{
_introduceLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
13
];
_introduceLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
13
];
_introduceLabel
.
text
=
@"简介:"
;
_introduceLabel
.
text
=
@"简介:"
;
}
}
return
_introduceLabel
;
return
_introduceLabel
;
}
}
-
(
GMLabel
*
)
infoLabel
{
-
(
GMLabel
*
)
infoLabel
{
if
(
!
_infoLabel
)
{
if
(
!
_infoLabel
)
{
_infoLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
13
];
_infoLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
13
];
_infoLabel
.
numberOfLines
=
0
;
_infoLabel
.
numberOfLines
=
0
;
}
}
return
_infoLabel
;
return
_infoLabel
;
...
@@ -474,7 +487,7 @@
...
@@ -474,7 +487,7 @@
_faceToFaceBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_faceToFaceBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_faceToFaceBtn
addTarget
:
self
action
:
@selector
(
faceToFaceBtnClickMethod
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
[
_faceToFaceBtn
addTarget
:
self
action
:
@selector
(
faceToFaceBtnClickMethod
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
_faceToFaceBtn
.
multiControlTimeInterva
=
2
.
f
;
_faceToFaceBtn
.
multiControlTimeInterva
=
2
.
f
;
[
_faceToFaceBtn
setBackgroundColor
:
GMColorFF8C8D
];
[
_faceToFaceBtn
setBackgroundColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
];
[
_faceToFaceBtn
setTitle
:
@"立即视频面诊"
forState
:(
UIControlStateNormal
)];
[
_faceToFaceBtn
setTitle
:
@"立即视频面诊"
forState
:(
UIControlStateNormal
)];
[
_faceToFaceBtn
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_faceToFaceBtn
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_faceToFaceBtn
.
titleLabel
setFont
:[
UIFont
gmBoldFont
:
16
]];
[
_faceToFaceBtn
.
titleLabel
setFont
:[
UIFont
gmBoldFont
:
16
]];
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMFaceListPageControl.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceCommonEmptyView.h
0 → 100644
View file @
14d10884
//
// GMToFaceCommonEmptyView.h
// GMAILab
//
// Created by 卢悦明 on 2020/5/9.
//
#import <UIKit/UIKit.h>
#import "GMLibraryHeader.h"
typedef
NS_ENUM
(
NSInteger
,
GMToFaceCommonEmptyViewType
)
{
GMToFaceCommonEmptyViewTypeEmpty
,
//无数据
GMToFaceCommonEmptyViewTypeError
//错误页面
};
@protocol
GMToFaceCommonEmptyViewDelegate
<
NSObject
>
-
(
void
)
emptyViewDidClickReload
;
@end
@interface
GMToFaceCommonEmptyView
:
UIView
/** 占位图 */
@property
(
nonatomic
,
strong
)
GMImageView
*
emptyImg
;
/** 占位文字 */
@property
(
nonatomic
,
strong
)
GMLabel
*
emptyLabel
;
/** 图片h宽高 */
@property
(
nonatomic
,
assign
)
CGSize
emptyImgSize
;
@property
(
nonatomic
,
assign
)
GMToFaceCommonEmptyViewType
type
;
@property
(
nonatomic
,
weak
)
id
<
GMToFaceCommonEmptyViewDelegate
>
delegate
;
-
(
void
)
hide
;
@end
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceCommonEmptyView.m
0 → 100644
View file @
14d10884
//
// GMToFaceCommonEmptyView.m
// GMAILab
//
// Created by 卢悦明 on 2020/5/9.
//
#import "GMToFaceCommonEmptyView.h"
@interface
GMToFaceCommonEmptyView
()
@property
(
nonatomic
,
strong
)
GMButton
*
tapBtn
;
@end
@implementation
GMToFaceCommonEmptyView
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
{
self
=
[
super
initWithFrame
:
frame
];
if
(
self
)
{
[
self
setup
];
}
return
self
;
}
-
(
void
)
setup
{
self
.
backgroundColor
=
UIColor
.
whiteColor
;
_emptyImg
=
[
GMImageView
new
];
_emptyImg
.
contentMode
=
UIViewContentModeScaleAspectFit
;
_emptyImg
.
image
=
[
UIImage
imageNamed
:
@"empty"
];
[
self
addSubview
:
_emptyImg
];
[
_emptyImg
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
mas_equalTo
(
0
);
make
.
centerY
.
mas_equalTo
(
-
20
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
175
,
199
));
}];
// 349/396
_emptyLabel
=
[
GMLabel
labelWithTextColor
:
UIColor
.
bodyText
fontSize
:
15
];
_emptyLabel
.
preferredMaxLayoutWidth
=
300
;
_emptyLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_emptyLabel
.
text
=
@"此处太寂寥,社区等你撩"
;
_emptyLabel
.
numberOfLines
=
0
;
[
self
addSubview
:
_emptyLabel
];
[
_emptyLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_emptyImg
.
mas_bottom
).
offset
(
-
30
);
make
.
centerX
.
mas_equalTo
(
0
);
}];
[
self
addSubview
:
self
.
tapBtn
];
[
self
.
tapBtn
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
equalTo
(
self
);
make
.
width
.
mas_equalTo
(
150
);
make
.
height
.
mas_equalTo
(
33
);
make
.
top
.
mas_equalTo
(
_emptyImg
.
mas_bottom
).
offset
(
15
);
}];
}
-
(
void
)
setEmptyImgSize
:
(
CGSize
)
emptyImgSize
{
_emptyImgSize
=
emptyImgSize
;
[
_emptyImg
mas_updateConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
size
.
mas_equalTo
(
emptyImgSize
);
}];
}
-
(
void
)
hide
{
self
.
hidden
=
YES
;
}
-
(
void
)
setType
:
(
GMToFaceCommonEmptyViewType
)
type
{
self
.
hidden
=
NO
;
switch
(
type
)
{
case
GMToFaceCommonEmptyViewTypeEmpty
:{
self
.
tapBtn
.
hidden
=
YES
;
self
.
emptyImg
.
image
=
[
UIImage
imageNamed
:
@"empty"
];
self
.
emptyLabel
.
text
=
@"此处太寂寥,社区等你撩"
;
// self.emptyImgSize = CGSizeMake(175, 199);
break
;
}
case
GMToFaceCommonEmptyViewTypeError
:{
self
.
tapBtn
.
hidden
=
NO
;
self
.
emptyImg
.
image
=
[
UIImage
imageNamed
:
@"network_failed"
];
self
.
emptyLabel
.
text
=
@"原谅我一看到美人就不淡定"
;
}
default
:
break
;
}
}
-
(
void
)
reloadBtnTap
{
self
.
hidden
=
YES
;
if
([
self
.
delegate
respondsToSelector
:
@selector
(
emptyViewDidClickReload
)])
{
[
self
.
delegate
emptyViewDidClickReload
];
}
}
-
(
GMButton
*
)
tapBtn
{
if
(
!
_tapBtn
)
{
_tapBtn
=
[
GMButton
buttonWithCustomType
:
GMButtonTypeRedSemicircleGradient
];
_tapBtn
.
hidden
=
YES
;
[
_tapBtn
setTitle
:
@"重新加载"
forState
:
UIControlStateNormal
];
_tapBtn
.
titleLabel
.
font
=
[
UIFont
gmFont
:
16
];
[
_tapBtn
setTitleColor
:
UIColor
.
bodyText
forState
:
UIControlStateNormal
];
[
_tapBtn
addTarget
:
self
action
:
@selector
(
reloadBtnTap
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
return
_tapBtn
;
}
@end
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceDoctorBlockInfoView.m
View file @
14d10884
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
//
//
#import "GMToFaceDoctorBlockInfoView.h"
#import "GMToFaceDoctorBlockInfoView.h"
#import "UIView+GMGradient.h"
#import "GMLibraryHeader.h"
//#import "UIView+GMGradient.h"
@interface
GMToFaceDoctorBlockInfoView
()
@interface
GMToFaceDoctorBlockInfoView
()
@property
(
nonatomic
,
strong
)
GMLabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
GMLabel
*
titleLabel
;
@end
@end
...
@@ -30,9 +32,10 @@
...
@@ -30,9 +32,10 @@
make
.
height
.
mas_equalTo
(
46
);
make
.
height
.
mas_equalTo
(
46
);
}];
}];
//渐变色
//渐变色
[
self
setGradientBackgroundWithColors
:@[
GMColorFF7096
,
GMColorFF5963
]
locations
:
nil
startPoint
:
CGPointMake
(
0
,
0
)
endPoint
:
CGPointMake
(
1
,
0
)];
[
self
setGradientBackgroundWithColors
:@[
RGBCOLOR_HEX
(
0xFF7096
),
RGBCOLOR_HEX
(
0xFF5963
)
]
locations
:
nil
startPoint
:
CGPointMake
(
0
,
0
)
endPoint
:
CGPointMake
(
1
,
0
)];
self
.
alpha
=
0
.
7
;
self
.
alpha
=
0
.
7
;
}
}
-
(
void
)
setBlockInfo
:
(
NSString
*
)
blockInfo
{
-
(
void
)
setBlockInfo
:
(
NSString
*
)
blockInfo
{
self
.
titleLabel
.
text
=
SafeString
(
blockInfo
);
self
.
titleLabel
.
text
=
SafeString
(
blockInfo
);
self
.
hidden
=
!
[
SafeString
(
blockInfo
)
isNonEmpty
];
self
.
hidden
=
!
[
SafeString
(
blockInfo
)
isNonEmpty
];
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceDoctorListHeaderFlowLayout.h
View file @
14d10884
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Created by Jessica on 2020/3/28.
// Created by Jessica on 2020/3/28.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMLibraryHeader.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMToFaceDoctorListHeaderFlowLayout
:
UICollectionViewFlowLayout
@interface
GMToFaceDoctorListHeaderFlowLayout
:
UICollectionViewFlowLayout
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceDoctorListHorNewCell.m
View file @
14d10884
...
@@ -10,7 +10,10 @@
...
@@ -10,7 +10,10 @@
#import "GMBasicInfoCardView.h"
#import "GMBasicInfoCardView.h"
#import "GMDoctorInfoPopupView.h"
#import "GMDoctorInfoPopupView.h"
#import "GMConsultantInfoModel.h"
#import "GMConsultantInfoModel.h"
#import "GMToFaceNetworking.h"
#import "GMLibraryHeader.h"
#import "RequestHeader.h"
#import <GMBase/GMBaseTool.h>
@interface
GMToFaceDoctorListHorNewCell
()
<
GMDoctorInfoPopupViewDelegate
>
@interface
GMToFaceDoctorListHorNewCell
()
<
GMDoctorInfoPopupViewDelegate
>
/** 形象照 */
/** 形象照 */
@property
(
nonatomic
,
strong
)
UIImageView
*
personalIcon
;
@property
(
nonatomic
,
strong
)
UIImageView
*
personalIcon
;
...
@@ -114,15 +117,15 @@
...
@@ -114,15 +117,15 @@
NSRange
range
=
[
str
rangeOfString
:
@"/"
];
NSRange
range
=
[
str
rangeOfString
:
@"/"
];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
10
]}
range
:
NSMakeRange
(
range
.
location
,
str
.
length
-
range
.
location
)];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
10
]}
range
:
NSMakeRange
(
range
.
location
,
str
.
length
-
range
.
location
)];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
12
]}
range
:
NSMakeRange
(
0
,
1
)];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
12
]}
range
:
NSMakeRange
(
0
,
1
)];
[
attribute
addAttributes
:@{
NSForegroundColorAttributeName
:
ALColorFFFFFF
}
range
:
NSMakeRange
(
range
.
location
,
str
.
length
-
range
.
location
)];
[
attribute
addAttributes
:@{
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0xFFFFFF
)
}
range
:
NSMakeRange
(
range
.
location
,
str
.
length
-
range
.
location
)];
self
.
priceLabel
.
attributedText
=
attribute
;
self
.
priceLabel
.
attributedText
=
attribute
;
}
}
self
.
exposure
=
doctorsModel
.
exposure
;
self
.
exposure
=
doctorsModel
.
exposure
;
}
}
-
(
void
)
clickUserIconMethod
{
-
(
void
)
clickUserIconMethod
{
AppDelegate
.
visibleController
.
tabName
=
@"医生推荐"
;
[
GMBaseTool
getCurrentViewController
]
.
tabName
=
@"医生推荐"
;
[
Phobos
track
:
@"on_click_card"
attributes
:@{
@"page_name"
:
AppDelegate
.
visibleController
.
pageName
,
[
Phobos
track
:
@"on_click_card"
attributes
:@{
@"page_name"
:
[
GMBaseTool
getCurrentViewController
]
.
pageName
,
@"tab_name"
:
@"医生推荐"
,
@"tab_name"
:
@"医生推荐"
,
@"position"
:
@
(
self
.
indexPath
.
item
),
@"position"
:
@
(
self
.
indexPath
.
item
),
@"card_id"
:
SafeString
(
self
.
doctorsModel
.
counsellorId
),
@"card_id"
:
SafeString
(
self
.
doctorsModel
.
counsellorId
),
...
@@ -138,8 +141,8 @@
...
@@ -138,8 +141,8 @@
}];
}];
}
}
-
(
void
)
clickBottomBtnMethod
{
-
(
void
)
clickBottomBtnMethod
{
AppDelegate
.
visibleController
.
tabName
=
@"医生推荐"
;
[
GMBaseTool
getCurrentViewController
]
.
tabName
=
@"医生推荐"
;
[
Phobos
track
:
@"on_click_card"
attributes
:@{
@"page_name"
:
AppDelegate
.
visibleController
.
pageName
,
[
Phobos
track
:
@"on_click_card"
attributes
:@{
@"page_name"
:
[
GMBaseTool
getCurrentViewController
]
.
pageName
,
@"tab_name"
:
@"医生推荐"
,
@"tab_name"
:
@"医生推荐"
,
@"position"
:
@
(
self
.
indexPath
.
item
),
@"position"
:
@
(
self
.
indexPath
.
item
),
@"card_id"
:
SafeString
(
self
.
doctorsModel
.
counsellorId
),
@"card_id"
:
SafeString
(
self
.
doctorsModel
.
counsellorId
),
...
@@ -157,13 +160,13 @@
...
@@ -157,13 +160,13 @@
-
(
void
)
counsellorFillInfoView
{
-
(
void
)
counsellorFillInfoView
{
//填写信息卡片
//填写信息卡片
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceBlockInfoSuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceBlockInfoSuccessBlock
:
^
(
id
response
)
{
NSDictionary
*
dict
=
response
[
@"block_info"
];
NSDictionary
*
dict
=
response
[
@"block_info"
];
NSString
*
alert
=
dict
[
@"alert"
];
NSString
*
alert
=
dict
[
@"alert"
];
if
(
!
[
alert
isNonEmpty
])
{
if
(
!
[
alert
isNonEmpty
])
{
//请求用户填面诊信息的弹框
//请求用户填面诊信息的弹框
GMBasicInfoCardView
*
cardView
=
[
GMBasicInfoCardView
new
];
GMBasicInfoCardView
*
cardView
=
[
GMBasicInfoCardView
new
];
cardView
.
referer
=
AppDelegate
.
visibleController
.
pageName
;
cardView
.
referer
=
[
GMBaseTool
getCurrentViewController
]
.
pageName
;
cardView
.
counsellorId
=
weakSelf
.
doctorsModel
.
counsellorId
;
cardView
.
counsellorId
=
weakSelf
.
doctorsModel
.
counsellorId
;
cardView
.
doctorId
=
weakSelf
.
doctorsModel
.
doctorId
;
cardView
.
doctorId
=
weakSelf
.
doctorsModel
.
doctorId
;
cardView
.
tabName
=
@"医生推荐"
;
cardView
.
tabName
=
@"医生推荐"
;
...
@@ -197,10 +200,10 @@
...
@@ -197,10 +200,10 @@
};
};
popupView
.
delegate
=
weakSelf
;
popupView
.
delegate
=
weakSelf
;
popupView
.
model
=
model
;
popupView
.
model
=
model
;
[
AppDelegate
.
visibleController
.
view
addSubview
:
popupView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
popupView
];
weakSelf
.
personalIcon
.
userInteractionEnabled
=
YES
;
weakSelf
.
personalIcon
.
userInteractionEnabled
=
YES
;
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
response
.
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
response
.
message
];
weakSelf
.
personalIcon
.
userInteractionEnabled
=
YES
;
weakSelf
.
personalIcon
.
userInteractionEnabled
=
YES
;
}
}
}];
}];
...
@@ -208,7 +211,7 @@
...
@@ -208,7 +211,7 @@
#pragma mark - 医生头像
#pragma mark - 医生头像
-
(
void
)
docIconClickMethod
{
-
(
void
)
docIconClickMethod
{
AppDelegate
.
visibleController
.
tabName
=
@"医生推荐"
;
[
GMBaseTool
getCurrentViewController
]
.
tabName
=
@"医生推荐"
;
self
.
personalIcon
.
userInteractionEnabled
=
NO
;
self
.
personalIcon
.
userInteractionEnabled
=
NO
;
// 若该医生为在线可面诊状态,则拉起基本信息卡,若为面诊中/不在线状态,跳转医生详情页/或者弹出面诊师卡片
// 若该医生为在线可面诊状态,则拉起基本信息卡,若为面诊中/不在线状态,跳转医生详情页/或者弹出面诊师卡片
if
(
self
.
doctorsModel
.
status
==
2
)
{
// 在线状态
if
(
self
.
doctorsModel
.
status
==
2
)
{
// 在线状态
...
@@ -292,7 +295,7 @@
...
@@ -292,7 +295,7 @@
}
}
-
(
GMLabel
*
)
priceLabel
{
-
(
GMLabel
*
)
priceLabel
{
if
(
!
_priceLabel
)
{
if
(
!
_priceLabel
)
{
_priceLabel
=
[
GMLabel
labelWithTextColor
:
GMColorFF8C8D
fontSize
:
16
];
_priceLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
fontSize
:
16
];
_priceLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_priceLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
}
}
return
_priceLabel
;
return
_priceLabel
;
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceDoctorListNewHeaderView.h
View file @
14d10884
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
//
//
#import "GMToFaceDoctorListModel.h"
#import "GMToFaceDoctorListModel.h"
#import <GMKit/GMView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMToFaceDoctorListNewHeaderView
:
GMView
@interface
GMToFaceDoctorListNewHeaderView
:
GMView
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceDoctorListNewHeaderView.m
View file @
14d10884
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#import "GMToFaceDoctorListNewHeaderView.h"
#import "GMToFaceDoctorListNewHeaderView.h"
#import "GMToFaceDoctorListHeaderFlowLayout.h"
#import "GMToFaceDoctorListHeaderFlowLayout.h"
#import "GMToFaceDoctorListHorNewCell.h"
#import "GMToFaceDoctorListHorNewCell.h"
#import "GM
Weak
Proxy.h"
#import "GM
Telephone
Proxy.h"
#import "GMFaceListPageControl.h"
#import "GMFaceListPageControl.h"
#define MaxCount 500
#define MaxCount 500
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
}
}
-
(
void
)
setUI
{
-
(
void
)
setUI
{
self
.
backgroundColor
=
GMColorF7F6FA
;
self
.
backgroundColor
=
RGBCOLOR_HEX
(
0xF7F6FA
)
;
[
self
addSubview
:
self
.
collectView
];
[
self
addSubview
:
self
.
collectView
];
[
self
addSubview
:
self
.
pageControl
];
[
self
addSubview
:
self
.
pageControl
];
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
}
}
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
// GMToFaceRecommendsDoctors *model = self.dataArray[indexPath.row];
// GMToFaceRecommendsDoctors *model = self.dataArray[indexPath.row];
//
AppDelegate.visibleController
.tabName = @"医生推荐";
//
[GMBaseTool getCurrentViewController]
.tabName = @"医生推荐";
// //跳到医生主页
// //跳到医生主页
// [[GMRouter sharedInstance] pushScheme:model.gm_url];
// [[GMRouter sharedInstance] pushScheme:model.gm_url];
}
}
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
[
self
invalidateTimer
];
[
self
invalidateTimer
];
}
}
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
10
target
:[
GM
Weak
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
nextPage
)
userInfo
:
nil
repeats
:
YES
];
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
10
target
:[
GM
Telephone
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
nextPage
)
userInfo
:
nil
repeats
:
YES
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSDefaultRunLoopMode
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSDefaultRunLoopMode
];
}
}
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
if
(
!
_collectView
)
{
if
(
!
_collectView
)
{
_collectView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectZero
collectionViewLayout
:
self
.
layout
];
_collectView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectZero
collectionViewLayout
:
self
.
layout
];
_collectView
.
showsHorizontalScrollIndicator
=
NO
;
_collectView
.
showsHorizontalScrollIndicator
=
NO
;
_collectView
.
backgroundColor
=
GMColorF7F6FA
;
_collectView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xF7F6FA
)
;
_collectView
.
decelerationRate
=
UIScrollViewDecelerationRateFast
;
_collectView
.
decelerationRate
=
UIScrollViewDecelerationRateFast
;
_collectView
.
delegate
=
self
;
_collectView
.
delegate
=
self
;
_collectView
.
dataSource
=
self
;
_collectView
.
dataSource
=
self
;
...
@@ -173,8 +173,8 @@
...
@@ -173,8 +173,8 @@
if
(
!
_pageControl
)
{
if
(
!
_pageControl
)
{
_pageControl
=
[[
GMFaceListPageControl
alloc
]
init
];
_pageControl
=
[[
GMFaceListPageControl
alloc
]
init
];
_pageControl
.
numberOfPages
=
0
;
_pageControl
.
numberOfPages
=
0
;
_pageControl
.
tintColor
=
GMColorD8D8D8
;
_pageControl
.
tintColor
=
RGBCOLOR_HEX
(
0xD8D8D8
)
;
_pageControl
.
currentTintColor
=
GMColor7DC6CC
;
_pageControl
.
currentTintColor
=
RGBCOLOR_HEX
(
0x7DC6CC
)
;
}
}
return
_pageControl
;
return
_pageControl
;
}
}
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceDoctorListVerCell.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMToFaceDoctorListViewModel.h"
#import "GMToFaceDoctorListViewModel.h"
#import "GMLibraryHeader.h"
@interface
GMToFaceDoctorInfoView
:
GMView
@interface
GMToFaceDoctorInfoView
:
GMView
-
(
void
)
showWithLikeRate
:(
NSString
*
)
likeRate
connectRate
:(
NSString
*
)
connectRate
consultPeopleNumber
:(
NSString
*
)
consultPeopleNumber
showType
:(
NSInteger
)
showType
;
-
(
void
)
showWithLikeRate
:(
NSString
*
)
likeRate
connectRate
:(
NSString
*
)
connectRate
consultPeopleNumber
:(
NSString
*
)
consultPeopleNumber
showType
:(
NSInteger
)
showType
;
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMToFaceDoctorListVerCell.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMToFaceDoctorListVerCell.h"
#import "GMToFaceDoctorListVerCell.h"
@interface
GMToFaceDoctorInfoView
()
@interface
GMToFaceDoctorInfoView
()
/** 好评率 */
/** 好评率 */
@property
(
nonatomic
,
copy
)
NSString
*
likeRate
;
@property
(
nonatomic
,
copy
)
NSString
*
likeRate
;
...
@@ -107,7 +108,7 @@
...
@@ -107,7 +108,7 @@
_icon
.
image
=
[
UIImage
imageNamed
:
@"to_face_like_rate"
];
_icon
.
image
=
[
UIImage
imageNamed
:
@"to_face_like_rate"
];
_label
.
text
=
[
NSString
stringWithFormat
:
@"好评%@"
,
likeRate
];
_label
.
text
=
[
NSString
stringWithFormat
:
@"好评%@"
,
likeRate
];
_icon1
.
backgroundColor
=
GMColor44D7B6
;
_icon1
.
backgroundColor
=
RGBCOLOR_HEX
(
0x44D7B6
)
;
_icon1
.
layer
.
cornerRadius
=
2
;
_icon1
.
layer
.
cornerRadius
=
2
;
_icon1
.
layer
.
masksToBounds
=
YES
;
_icon1
.
layer
.
masksToBounds
=
YES
;
_icon1
.
image
=
[
UIImage
imageNamed
:
@""
];
_icon1
.
image
=
[
UIImage
imageNamed
:
@""
];
...
@@ -140,7 +141,7 @@
...
@@ -140,7 +141,7 @@
if
(
connectRate
.
isNonEmpty
)
{
if
(
connectRate
.
isNonEmpty
)
{
[
self
addSubview
:
self
.
icon1
];
[
self
addSubview
:
self
.
icon1
];
[
self
addSubview
:
self
.
label1
];
[
self
addSubview
:
self
.
label1
];
_icon1
.
backgroundColor
=
GMColor44D7B6
;
_icon1
.
backgroundColor
=
RGBCOLOR_HEX
(
0x44D7B6
)
;
_icon1
.
layer
.
cornerRadius
=
2
;
_icon1
.
layer
.
cornerRadius
=
2
;
_icon1
.
layer
.
masksToBounds
=
YES
;
_icon1
.
layer
.
masksToBounds
=
YES
;
_icon1
.
image
=
[
UIImage
imageNamed
:
@""
];
_icon1
.
image
=
[
UIImage
imageNamed
:
@""
];
...
@@ -331,7 +332,7 @@
...
@@ -331,7 +332,7 @@
NSRange
range
=
[
str
rangeOfString
:
@"/"
];
NSRange
range
=
[
str
rangeOfString
:
@"/"
];
range
=
NSMakeRange
(
range
.
location
,
str
.
length
-
range
.
location
);
range
=
NSMakeRange
(
range
.
location
,
str
.
length
-
range
.
location
);
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
str
];
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
str
];
[
attribute
addAttributes
:@{
NSForegroundColorAttributeName
:
ALColor8E8E8E
}
range
:
range
];
[
attribute
addAttributes
:@{
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x8E8E8E
)
}
range
:
range
];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
]}
range
:
range
];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
]}
range
:
range
];
self
.
priceLabel
.
attributedText
=
attribute
;
self
.
priceLabel
.
attributedText
=
attribute
;
}
}
...
@@ -361,9 +362,9 @@
...
@@ -361,9 +362,9 @@
#pragma mark - 医生身份
#pragma mark - 医生身份
-
(
void
)
doctorIdentity
{
-
(
void
)
doctorIdentity
{
if
(
self
.
doctorsModel
.
type
==
1
)
{
// 医生
if
(
self
.
doctorsModel
.
type
==
1
)
{
// 医生
_docTitleView
.
layer
.
borderColor
=
GMColor65B4FF
.
CGColor
;
_docTitleView
.
layer
.
borderColor
=
RGBCOLOR_HEX
(
0x65B4FF
)
.
CGColor
;
}
else
if
(
self
.
doctorsModel
.
type
==
2
)
{
}
else
if
(
self
.
doctorsModel
.
type
==
2
)
{
_docTitleView
.
layer
.
borderColor
=
GMColor51CDC7
.
CGColor
;
_docTitleView
.
layer
.
borderColor
=
RGBCOLOR_HEX
(
0x51CDC7
)
.
CGColor
;
}
}
[
self
.
docTitleView
.
subviews
enumerateObjectsUsingBlock
:
^
(
__kindof
UIView
*
_Nonnull
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
[
self
.
docTitleView
.
subviews
enumerateObjectsUsingBlock
:
^
(
__kindof
UIView
*
_Nonnull
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
if
(
idx
==
0
)
{
if
(
idx
==
0
)
{
...
@@ -377,9 +378,9 @@
...
@@ -377,9 +378,9 @@
GMLabel
*
label
=
(
GMLabel
*
)
obj
;
GMLabel
*
label
=
(
GMLabel
*
)
obj
;
label
.
text
=
SafeString
(
self
.
doctorsModel
.
title
);
label
.
text
=
SafeString
(
self
.
doctorsModel
.
title
);
if
(
self
.
doctorsModel
.
type
==
1
)
{
// 医生
if
(
self
.
doctorsModel
.
type
==
1
)
{
// 医生
label
.
textColor
=
GMColor65B4FF
;
label
.
textColor
=
RGBCOLOR_HEX
(
0x65B4FF
)
;
}
else
if
(
self
.
doctorsModel
.
type
==
2
)
{
// 面诊师
}
else
if
(
self
.
doctorsModel
.
type
==
2
)
{
// 面诊师
label
.
textColor
=
GMColor51CDC7
;
label
.
textColor
=
RGBCOLOR_HEX
(
0x51CDC7
)
;
}
}
}
}
}];
}];
...
@@ -423,7 +424,7 @@
...
@@ -423,7 +424,7 @@
_docTitleView
=
[[
UIView
alloc
]
init
];
_docTitleView
=
[[
UIView
alloc
]
init
];
_docTitleView
.
layer
.
cornerRadius
=
7
.
5
f
;
_docTitleView
.
layer
.
cornerRadius
=
7
.
5
f
;
_docTitleView
.
layer
.
masksToBounds
=
YES
;
_docTitleView
.
layer
.
masksToBounds
=
YES
;
_docTitleView
.
layer
.
borderColor
=
GMColor65B4FF
.
CGColor
;
_docTitleView
.
layer
.
borderColor
=
RGBCOLOR_HEX
(
0x65B4FF
)
.
CGColor
;
_docTitleView
.
layer
.
borderWidth
=
ONE_PIXEL
;
_docTitleView
.
layer
.
borderWidth
=
ONE_PIXEL
;
UIImageView
*
corView
=
[[
UIImageView
alloc
]
init
];
UIImageView
*
corView
=
[[
UIImageView
alloc
]
init
];
corView
.
layer
.
cornerRadius
=
7
.
5
f
;
corView
.
layer
.
cornerRadius
=
7
.
5
f
;
...
@@ -434,7 +435,7 @@
...
@@ -434,7 +435,7 @@
make
.
size
.
mas_equalTo
(
CGSizeMake
(
15
,
15
));
make
.
size
.
mas_equalTo
(
CGSizeMake
(
15
,
15
));
make
.
centerY
.
mas_equalTo
(
0
);
make
.
centerY
.
mas_equalTo
(
0
);
}];
}];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
GMColor65B4FF
fontSize
:
10
];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x65B4FF
)
fontSize
:
10
];
[
_docTitleView
addSubview
:
label
];
[
_docTitleView
addSubview
:
label
];
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
mas_equalTo
(
0
);
make
.
centerY
.
mas_equalTo
(
0
);
...
@@ -454,7 +455,7 @@
...
@@ -454,7 +455,7 @@
-
(
GMLabel
*
)
docNameLabel
{
-
(
GMLabel
*
)
docNameLabel
{
if
(
!
_docNameLabel
)
{
if
(
!
_docNameLabel
)
{
_docNameLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
14
];
_docNameLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
14
];
_docNameLabel
.
font
=
[
UIFont
gmFont
:
14
];
_docNameLabel
.
font
=
[
UIFont
gmFont
:
14
];
}
}
return
_docNameLabel
;
return
_docNameLabel
;
...
@@ -462,7 +463,7 @@
...
@@ -462,7 +463,7 @@
-
(
GMLabel
*
)
docWorkTimeLabel
{
-
(
GMLabel
*
)
docWorkTimeLabel
{
if
(
!
_docWorkTimeLabel
)
{
if
(
!
_docWorkTimeLabel
)
{
_docWorkTimeLabel
=
[
GMLabel
labelWithTextColor
:
ALColor8E8E8E
fontSize
:
12
];
_docWorkTimeLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x8E8E8E
)
fontSize
:
12
];
}
}
return
_docWorkTimeLabel
;
return
_docWorkTimeLabel
;
}
}
...
@@ -477,7 +478,7 @@
...
@@ -477,7 +478,7 @@
make
.
left
.
mas_equalTo
(
0
);
make
.
left
.
mas_equalTo
(
0
);
make
.
centerY
.
equalTo
(
_positionView
.
mas_centerY
);
make
.
centerY
.
equalTo
(
_positionView
.
mas_centerY
);
}];
}];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
ALColor8E8E8E
fontSize
:
10
];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x8E8E8E
)
fontSize
:
10
];
[
_positionView
addSubview
:
label
];
[
_positionView
addSubview
:
label
];
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
icon
.
mas_right
).
offset
(
2
);
make
.
left
.
equalTo
(
icon
.
mas_right
).
offset
(
2
);
...
@@ -488,7 +489,7 @@
...
@@ -488,7 +489,7 @@
}
}
-
(
GMLabel
*
)
goodAtLabel
{
-
(
GMLabel
*
)
goodAtLabel
{
if
(
!
_goodAtLabel
)
{
if
(
!
_goodAtLabel
)
{
_goodAtLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
12
];
_goodAtLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
12
];
_goodAtLabel
.
font
=
[
UIFont
gmFont
:
12
];
_goodAtLabel
.
font
=
[
UIFont
gmFont
:
12
];
_goodAtLabel
.
numberOfLines
=
2
;
_goodAtLabel
.
numberOfLines
=
2
;
}
}
...
@@ -496,7 +497,7 @@
...
@@ -496,7 +497,7 @@
}
}
-
(
GMLabel
*
)
priceLabel
{
-
(
GMLabel
*
)
priceLabel
{
if
(
!
_priceLabel
)
{
if
(
!
_priceLabel
)
{
_priceLabel
=
[
GMLabel
labelWithTextColor
:
GMColorFF8C8D
fontSize
:
16
];
_priceLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
fontSize
:
16
];
_priceLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_priceLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
}
}
return
_priceLabel
;
return
_priceLabel
;
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/ViewController/GMToFaceContainerViewController.h
View file @
14d10884
...
@@ -6,11 +6,11 @@
...
@@ -6,11 +6,11 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMPagingViewController.h"
#import "GM
Face
PagingViewController.h"
#import "GMToFaceDoctorListViewModel.h"
#import "GMToFaceDoctorListViewModel.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMToFaceContainerViewController
:
GMPagingViewController
@interface
GMToFaceContainerViewController
:
GM
Face
PagingViewController
@property
(
nonatomic
,
strong
)
GMToFaceDoctorListViewModel
*
viewModel
;
@property
(
nonatomic
,
strong
)
GMToFaceDoctorListViewModel
*
viewModel
;
@end
@end
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/ViewController/GMToFaceContainerViewController.m
View file @
14d10884
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
#import "GMToFaceDoctorBlockInfoView.h"
#import "GMToFaceDoctorBlockInfoView.h"
#import "GMBasicInfoCardView.h"
#import "GMBasicInfoCardView.h"
#import "GMToFaceDoctorListNewHeaderView.h"
#import "GMToFaceDoctorListNewHeaderView.h"
#import "GMToFaceNetworking.h"
#import "GMLibraryHeader.h"
#import "UIResponder+transmission.h"
@interface
GMToFaceContainerViewController
()
<
GMInfinitelViewDelegate
,
UIScrollViewDelegate
>
@interface
GMToFaceContainerViewController
()
<
GMInfinitelViewDelegate
,
UIScrollViewDelegate
>
/** 头部视图 */
/** 头部视图 */
...
@@ -73,7 +76,7 @@
...
@@ -73,7 +76,7 @@
self
.
navigationBar
.
isShowShadow
=
NO
;
self
.
navigationBar
.
isShowShadow
=
NO
;
self
.
fd_interactivePopDisabled
=
YES
;
self
.
fd_interactivePopDisabled
=
YES
;
self
.
navigationBar
.
title
=
@"更美视频面诊"
;
self
.
navigationBar
.
title
=
@"更美视频面诊"
;
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
updateDoctorListMethod
)
name
:
LOGIN_SUCCESS_NOTIFICATION
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
updateDoctorListMethod
)
name
:
@"login_success_notification"
object
:
nil
];
}
}
-
(
void
)
backAction
:
(
OCNavigationBarButton
*
)
button
{
-
(
void
)
backAction
:
(
OCNavigationBarButton
*
)
button
{
...
@@ -95,13 +98,13 @@
...
@@ -95,13 +98,13 @@
}
}
-
(
void
)
reSetSegmentView
{
-
(
void
)
reSetSegmentView
{
self
.
segmentView
.
isShowShadow
=
NO
;
self
.
segmentView
.
isShowShadow
=
NO
;
self
.
segmentView
.
backgroundColor
=
GMColorF7F6FA
;
self
.
segmentView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xF7F6FA
)
;
self
.
segmentView
.
indicatorColor
=
GMColorFF8C8D
;
self
.
segmentView
.
indicatorColor
=
RGBCOLOR_HEX
(
0xFF8C8D
)
;
self
.
segmentView
.
height
=
74
.
f
;
self
.
segmentView
.
height
=
74
.
f
;
self
.
segmentView
.
titleTextAttributes
=
@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
self
.
segmentView
.
titleTextAttributes
=
@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
NSForegroundColorAttributeName:
GMColor696969
};
NSForegroundColorAttributeName:
RGBCOLOR_HEX
(
0x696969
)
};
self
.
segmentView
.
selectedTitleTextAttributes
=
@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
16
],
self
.
segmentView
.
selectedTitleTextAttributes
=
@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
16
],
NSForegroundColorAttributeName:
GMColor2A2828
};
NSForegroundColorAttributeName:
RGBCOLOR_HEX
(
0x2A2828
)
};
}
}
-
(
void
)
setupChildViews
{
-
(
void
)
setupChildViews
{
CGFloat
height
=
self
.
recommendDoctorListModel
.
recommendsCounsellors
.
count
>
0
?
[
GMToFaceDoctorListNewHeaderView
viewHeight
]
:
0
;
CGFloat
height
=
self
.
recommendDoctorListModel
.
recommendsCounsellors
.
count
>
0
?
[
GMToFaceDoctorListNewHeaderView
viewHeight
]
:
0
;
...
@@ -121,7 +124,7 @@
...
@@ -121,7 +124,7 @@
[
self
showLoading
:
nil
];
[
self
showLoading
:
nil
];
}
}
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceRecommendDoctorsSuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceRecommendDoctorsSuccessBlock
:
^
(
id
response
)
{
NSError
*
error
=
[[
NSError
alloc
]
init
];
NSError
*
error
=
[[
NSError
alloc
]
init
];
weakSelf
.
recommendDoctorListModel
=
[[
GMToFaceDoctorListModel
alloc
]
initWithDictionary
:
response
error
:
&
error
];
weakSelf
.
recommendDoctorListModel
=
[[
GMToFaceDoctorListModel
alloc
]
initWithDictionary
:
response
error
:
&
error
];
[
weakSelf
loadHome
];
[
weakSelf
loadHome
];
...
@@ -250,7 +253,7 @@
...
@@ -250,7 +253,7 @@
-
(
void
)
bottomBtnClick
{
-
(
void
)
bottomBtnClick
{
[
Phobos
track
:
@"on_click_button"
attributes
:@{
@"page_name"
:
self
.
pageName
,
@"button_name"
:
@"video_interview_now"
}];
[
Phobos
track
:
@"on_click_button"
attributes
:@{
@"page_name"
:
self
.
pageName
,
@"button_name"
:
@"video_interview_now"
}];
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceBlockInfoSuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceBlockInfoSuccessBlock
:
^
(
id
response
)
{
NSDictionary
*
dict
=
response
[
@"block_info"
];
NSDictionary
*
dict
=
response
[
@"block_info"
];
NSString
*
alert
=
dict
[
@"alert"
];
NSString
*
alert
=
dict
[
@"alert"
];
if
(
!
[
alert
isNonEmpty
])
{
if
(
!
[
alert
isNonEmpty
])
{
...
...
GMAILab/Classes/ToFace/ToFaceDoctorList/ViewController/GMToFaceDoctorListController.h
View file @
14d10884
...
@@ -8,12 +8,14 @@
...
@@ -8,12 +8,14 @@
#import "JXPagerView.h"
#import "JXPagerView.h"
#import "GMToFaceDoctorListViewModel.h"
#import "GMToFaceDoctorListViewModel.h"
@import
GMBase
;
@interface
GMToFaceDoctorListController
:
WMBaseViewController
<
JXPagerViewListViewDelegate
>
@interface
GMToFaceDoctorListController
:
WMBaseViewController
<
JXPagerViewListViewDelegate
>
@property
(
nonatomic
,
strong
)
GMToFaceDoctorListViewModel
*
viewModel
;
@property
(
nonatomic
,
strong
)
GMToFaceDoctorListViewModel
*
_Nullable
viewModel
;
@property
(
nonatomic
,
assign
)
CGFloat
topViewHeight
;
@property
(
nonatomic
,
assign
)
CGFloat
topViewHeight
;
@property
(
nonatomic
,
copy
,
nullable
)
void
(
^
scrollCallback
)(
UIScrollView
*
scrollView
);
@property
(
nonatomic
,
copy
,
nullable
)
void
(
^
scrollCallback
)(
UIScrollView
*
_Nullable
scrollView
);
/** 获取封禁信息的回调 */
/** 获取封禁信息的回调 */
@property
(
nonatomic
,
copy
,
nullable
)
void
(
^
blockInfoCallback
)(
NSString
*
blockInfo
);
@property
(
nonatomic
,
copy
,
nullable
)
void
(
^
blockInfoCallback
)(
NSString
*
_Nullable
blockInfo
);
-
(
void
)
requestData
;
-
(
void
)
requestData
;
@end
@end
GMAILab/Classes/ToFace/ToFaceDoctorList/ViewController/GMToFaceDoctorListController.m
View file @
14d10884
...
@@ -8,17 +8,22 @@
...
@@ -8,17 +8,22 @@
#import "GMToFaceDoctorListController.h"
#import "GMToFaceDoctorListController.h"
#import "GMToFaceDoctorListVerCell.h"
#import "GMToFaceDoctorListVerCell.h"
#import <GMRefreshFooter.h>
#import "GMToFaceDoctorListModel.h"
#import "GMToFaceDoctorListModel.h"
#import "GMCommonEmptyView.h"
#import "GM
ToFace
CommonEmptyView.h"
#import "GMBasicInfoCardView.h"
#import "GMBasicInfoCardView.h"
#import "UIView+GMGradient.h"
#import "UIView+GMGradient.h"
#import "GMDoctorInfoPopupView.h"
#import "GMDoctorInfoPopupView.h"
@interface
GMToFaceDoctorListController
()
<
UICollectionViewDelegate
,
UICollectionViewDataSource
,
GMCommonEmptyViewDelegate
>
#import "RequestHeader.h"
#import "GMToFaceNetworking.h"
#import "GMLibraryHeader.h"
#import <GMBase/GMBaseTool.h>
@interface
GMToFaceDoctorListController
()
<
UICollectionViewDelegate
,
UICollectionViewDataSource
,
GMToFaceCommonEmptyViewDelegate
>
@property
(
nonatomic
,
strong
)
UICollectionViewFlowLayout
*
layout
;
@property
(
nonatomic
,
strong
)
UICollectionViewFlowLayout
*
layout
;
@property
(
nonatomic
,
strong
)
UICollectionView
*
collectView
;
@property
(
nonatomic
,
strong
)
UICollectionView
*
collectView
;
@property
(
nonatomic
,
strong
)
NSIndexPath
*
indexPath
;
@property
(
nonatomic
,
strong
)
NSIndexPath
*
indexPath
;
@property
(
nonatomic
,
strong
)
GMCommonEmptyView
*
commonEmptyView
;
@property
(
nonatomic
,
strong
)
GM
ToFace
CommonEmptyView
*
commonEmptyView
;
@end
@end
@implementation
GMToFaceDoctorListController
@implementation
GMToFaceDoctorListController
...
@@ -56,20 +61,20 @@
...
@@ -56,20 +61,20 @@
}
}
-
(
void
)
requestData
{
-
(
void
)
requestData
{
if
(
self
.
viewModel
.
page
==
1
)
{
if
(
self
.
viewModel
.
page
==
1
)
{
[
AppDelegate
.
visibleController
showLoading
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
showLoading
:
nil
];
}
}
self
.
commonEmptyView
.
hidden
=
YES
;
self
.
commonEmptyView
.
hidden
=
YES
;
[
self
.
viewModel
excuteToFaceTabsDoctorsSuccessBlock
:
^
(
id
responseObject
)
{
[
self
.
viewModel
excuteToFaceTabsDoctorsSuccessBlock
:
^
(
id
responseObject
)
{
[
AppDelegate
.
visibleController
hideLoading
];
[
[
GMBaseTool
getCurrentViewController
]
hideLoading
];
if
(
self
.
viewModel
.
dataArray
.
count
==
0
)
{
if
(
self
.
viewModel
.
dataArray
.
count
==
0
)
{
self
.
commonEmptyView
.
type
=
GMCommonEmptyViewTypeEmpty
;
self
.
commonEmptyView
.
type
=
GM
ToFace
CommonEmptyViewTypeEmpty
;
}
}
[
self
.
collectView
.
mj_footer
endRefreshing
];
[
self
.
collectView
.
mj_footer
endRefreshing
];
[
self
.
collectView
reloadData
];
[
self
.
collectView
reloadData
];
}
failBlock
:
^
(
NSString
*
message
)
{
}
failBlock
:
^
(
NSString
*
message
)
{
[
AppDelegate
.
visibleController
hideLoading
];
[
[
GMBaseTool
getCurrentViewController
]
hideLoading
];
[
self
.
collectView
.
mj_footer
endRefreshing
];
[
self
.
collectView
.
mj_footer
endRefreshing
];
self
.
commonEmptyView
.
type
=
GMCommonEmptyViewTypeError
;
self
.
commonEmptyView
.
type
=
GM
ToFace
CommonEmptyViewTypeError
;
}];
}];
}
}
-
(
void
)
emptyViewDidClickReload
{
-
(
void
)
emptyViewDidClickReload
{
...
@@ -119,11 +124,13 @@
...
@@ -119,11 +124,13 @@
@"transaction_type"
:
@"-1"
,
@"transaction_type"
:
@"-1"
,
@"counsellor_type"
:
@
(
model
.
type
)
@"counsellor_type"
:
@
(
model
.
type
)
}];
}];
AppDelegate
.
visibleController
.
tabName
=
SafeString
(
self
.
viewModel
.
tabName
);
[
GMBaseTool
getCurrentViewController
]
.
tabName
=
SafeString
(
self
.
viewModel
.
tabName
);
}
}
-
(
void
)
counsellorFillInfoView
:
(
GMToFaceRecommendsDoctors
*
)
model
indexPath
:
(
NSIndexPath
*
)
indexPath
{
-
(
void
)
counsellorFillInfoView
:
(
GMToFaceRecommendsDoctors
*
)
model
indexPath
:
(
NSIndexPath
*
)
indexPath
{
if
([[
GMLoginManager
shareInstance
]
showLoginViewIfNeeded
])
{
BOOL
status
=
(
BOOL
)[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_showLoginViewIfNeeded"
];
if
(
status
)
{
return
;
return
;
}
}
if
(
self
.
indexPath
==
indexPath
)
{
//目的是防止重复点击
if
(
self
.
indexPath
==
indexPath
)
{
//目的是防止重复点击
...
@@ -132,7 +139,7 @@
...
@@ -132,7 +139,7 @@
self
.
collectView
.
userInteractionEnabled
=
NO
;
self
.
collectView
.
userInteractionEnabled
=
NO
;
self
.
indexPath
=
indexPath
;
self
.
indexPath
=
indexPath
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceBlockInfoSuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceBlockInfoSuccessBlock
:
^
(
id
response
)
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
0
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
0
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
weakSelf
.
indexPath
=
nil
;
weakSelf
.
indexPath
=
nil
;
});
});
...
@@ -179,9 +186,9 @@
...
@@ -179,9 +186,9 @@
}
}
};
};
popupView
.
model
=
model
;
popupView
.
model
=
model
;
[
AppDelegate
.
visibleController
.
view
addSubview
:
popupView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
popupView
];
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
response
.
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
response
.
message
];
}
}
weakSelf
.
collectView
.
userInteractionEnabled
=
YES
;
weakSelf
.
collectView
.
userInteractionEnabled
=
YES
;
}];
}];
...
@@ -215,8 +222,8 @@
...
@@ -215,8 +222,8 @@
-
(
UICollectionView
*
)
collectView
{
-
(
UICollectionView
*
)
collectView
{
if
(
!
_collectView
)
{
if
(
!
_collectView
)
{
_collectView
=
[[
UICollectionView
alloc
]
initWithFrame
:
self
.
view
.
bounds
collectionViewLayout
:
self
.
layout
];
_collectView
=
[[
UICollectionView
alloc
]
initWithFrame
:
self
.
view
.
bounds
collectionViewLayout
:
self
.
layout
];
// [_collectView setGradientBackgroundWithColors:@[
ALColorFFFFFF
,GMColorF7F6FA] locations:nil startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 0.1)];
// [_collectView setGradientBackgroundWithColors:@[
RGBCOLOR_HEX(0xFFFFFF)
,GMColorF7F6FA] locations:nil startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 0.1)];
_collectView
.
backgroundColor
=
GMColorF7F6FA
;
_collectView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xF7F6FA
)
;
_collectView
.
delegate
=
self
;
_collectView
.
delegate
=
self
;
_collectView
.
dataSource
=
self
;
_collectView
.
dataSource
=
self
;
_collectView
.
showsVerticalScrollIndicator
=
NO
;
_collectView
.
showsVerticalScrollIndicator
=
NO
;
...
@@ -224,9 +231,9 @@
...
@@ -224,9 +231,9 @@
}
}
return
_collectView
;
return
_collectView
;
}
}
-
(
GMCommonEmptyView
*
)
commonEmptyView
{
-
(
GM
ToFace
CommonEmptyView
*
)
commonEmptyView
{
if
(
!
_commonEmptyView
)
{
if
(
!
_commonEmptyView
)
{
_commonEmptyView
=
[[
GMCommonEmptyView
alloc
]
init
];
_commonEmptyView
=
[[
GM
ToFace
CommonEmptyView
alloc
]
init
];
_commonEmptyView
.
delegate
=
self
;
_commonEmptyView
.
delegate
=
self
;
_commonEmptyView
.
hidden
=
YES
;
_commonEmptyView
.
hidden
=
YES
;
}
}
...
...
GMAILab/Classes/ToFace/ToFaceOrder/Model/GMPayResultModel.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
@interface
GMPayResultModel
:
GMObject
@interface
GMPayResultModel
:
GMObject
...
...
GMAILab/Classes/ToFace/ToFaceOrder/Model/GMToFaceOrderInfoModel.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
@import
GMBase
;
@interface
GMToFaceOrderInfoModel
:
GMObject
@interface
GMToFaceOrderInfoModel
:
GMObject
...
...
GMAILab/Classes/ToFace/ToFaceOrder/Model/GMToFacePayPrepareModel.h
View file @
14d10884
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
// Created by zhouLiang on 2020/4/8.
// Created by zhouLiang on 2020/4/8.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
@protocol
GMToFacePayCounsellorInfoModel
@end
@protocol
GMToFacePayCounsellorInfoModel
@end
@interface
GMToFacePayCounsellorInfoModel
:
GMObject
@interface
GMToFacePayCounsellorInfoModel
:
GMObject
@property
(
nonatomic
,
copy
)
NSString
*
id
;
@property
(
nonatomic
,
copy
)
NSString
*
id
;
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMPayTypeView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMPayTypeView.h"
#import "GMPayTypeView.h"
#import "GMLibraryHeader.h"
@interface
GMPayTypeView
()
@interface
GMPayTypeView
()
@property
(
strong
,
nonatomic
)
UIImageView
*
payWayImage
;
@property
(
strong
,
nonatomic
)
UIImageView
*
payWayImage
;
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
[
self
.
payWayImage
sd_setImageWithURL
:[
NSURL
URLWithString
:
typeModel
.
icon
]];
[
self
.
payWayImage
sd_setImageWithURL
:[
NSURL
URLWithString
:
typeModel
.
icon
]];
self
.
payDesc
.
text
=
typeModel
.
desc
;
self
.
payDesc
.
text
=
typeModel
.
desc
;
self
.
payName
.
text
=
typeModel
.
title
;
self
.
payName
.
text
=
typeModel
.
title
;
self
.
payDesc
.
textColor
=
typeModel
.
recommend
?
GMColorFF5963
:
GMColor999999
;
self
.
payDesc
.
textColor
=
typeModel
.
recommend
?
RGBCOLOR_HEX
(
0xFF5963
):
RGBCOLOR_HEX
(
0x999999
)
;
self
.
recommendIcon
.
hidden
=
!
typeModel
.
recommend
;
self
.
recommendIcon
.
hidden
=
!
typeModel
.
recommend
;
}
}
-
(
void
)
setIsSelected
:
(
BOOL
)
isSelected
{
-
(
void
)
setIsSelected
:
(
BOOL
)
isSelected
{
...
@@ -82,14 +83,14 @@
...
@@ -82,14 +83,14 @@
}
}
-
(
GMLabel
*
)
payName
{
-
(
GMLabel
*
)
payName
{
if
(
!
_payName
)
{
if
(
!
_payName
)
{
_payName
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
14
];
_payName
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
14
];
_payName
.
text
=
@"支付宝支付"
;
_payName
.
text
=
@"支付宝支付"
;
}
}
return
_payName
;
return
_payName
;
}
}
-
(
GMLabel
*
)
payDesc
{
-
(
GMLabel
*
)
payDesc
{
if
(
!
_payDesc
)
{
if
(
!
_payDesc
)
{
_payDesc
=
[
GMLabel
labelWithTextColor
:
GMColorFF5963
fontSize
:
12
];
_payDesc
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0xFF5963
)
fontSize
:
12
];
_payDesc
.
text
=
@"推荐使用支付宝支付"
;
_payDesc
.
text
=
@"推荐使用支付宝支付"
;
}
}
return
_payDesc
;
return
_payDesc
;
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.h
View file @
14d10884
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
//
//
#import "GMToFaceOrderInfoModel.h"
#import "GMToFaceOrderInfoModel.h"
#import "GMLibraryHeader.h"
@interface
GMSureOrderPopView
:
GMPopupBgView
@interface
GMSureOrderPopView
:
GMPopupBgView
/// 面诊 ID
/// 面诊 ID
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.m
View file @
14d10884
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
#import "GMSureOrderPopView.h"
#import "GMSureOrderPopView.h"
#import "GMEndConsultView.h"
#import "GMEndConsultView.h"
#import "GMStarWithContentObject.h"
#import "GMStarWithContentObject.h"
#import "GMToFaceNetworking.h"
#import <GMBase/GMBaseTool.h>
@interface
GMSureOrderPopView
()
@interface
GMSureOrderPopView
()
@property
(
nonatomic
,
strong
)
GMLabel
*
topLabel
;
@property
(
nonatomic
,
strong
)
GMLabel
*
topLabel
;
...
@@ -133,6 +136,13 @@
...
@@ -133,6 +136,13 @@
});
});
}
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
-
(
void
)
setInfoModel
:
(
GMToFaceOrderInfoModel
*
)
infoModel
{
-
(
void
)
setInfoModel
:
(
GMToFaceOrderInfoModel
*
)
infoModel
{
_infoModel
=
infoModel
;
_infoModel
=
infoModel
;
self
.
titleLabel
.
text
=
infoModel
.
counsellorType
==
1
?
@"面诊医生 | "
:
@"面诊师 | "
;
self
.
titleLabel
.
text
=
infoModel
.
counsellorType
==
1
?
@"面诊医生 | "
:
@"面诊师 | "
;
...
@@ -149,14 +159,14 @@
...
@@ -149,14 +159,14 @@
NSRange
priceRange
=
[
priceStr
rangeOfString
:
@"¥"
];
NSRange
priceRange
=
[
priceStr
rangeOfString
:
@"¥"
];
priceRange
=
NSMakeRange
(
priceRange
.
location
,
priceStr
.
length
-
priceRange
.
location
);
priceRange
=
NSMakeRange
(
priceRange
.
location
,
priceStr
.
length
-
priceRange
.
location
);
NSMutableAttributedString
*
priceAttribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
priceStr
];
NSMutableAttributedString
*
priceAttribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
priceStr
];
[
priceAttribute
addAttributes
:@{
NSForegroundColorAttributeName
:
GMColorFF8C8D
}
range
:
priceRange
];
[
priceAttribute
addAttributes
:@{
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0xFF8C8D
)
}
range
:
priceRange
];
self
.
priceLabel
.
attributedText
=
priceAttribute
;
self
.
priceLabel
.
attributedText
=
priceAttribute
;
NSString
*
payStr
=
self
.
payLabel
.
text
;
NSString
*
payStr
=
self
.
payLabel
.
text
;
NSRange
payRange
=
[
payStr
rangeOfString
:
@"¥"
];
NSRange
payRange
=
[
payStr
rangeOfString
:
@"¥"
];
payRange
=
NSMakeRange
(
payRange
.
location
,
payStr
.
length
-
payRange
.
location
);
payRange
=
NSMakeRange
(
payRange
.
location
,
payStr
.
length
-
payRange
.
location
);
NSMutableAttributedString
*
payAttribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
payStr
];
NSMutableAttributedString
*
payAttribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
payStr
];
[
payAttribute
addAttributes
:@{
NSForegroundColorAttributeName
:
GMColorFF8C8D
}
range
:
payRange
];
[
payAttribute
addAttributes
:@{
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0xFF8C8D
)
}
range
:
payRange
];
self
.
payLabel
.
attributedText
=
payAttribute
;
self
.
payLabel
.
attributedText
=
payAttribute
;
}
}
#pragma mark - 确认订单弹框
#pragma mark - 确认订单弹框
...
@@ -166,11 +176,11 @@
...
@@ -166,11 +176,11 @@
if
(
self
.
isSureOrder
)
{
if
(
self
.
isSureOrder
)
{
[
self
starMethod
];
[
self
starMethod
];
}
else
{
}
else
{
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceSureOrder
:
self
.
infoModel
.
orderNo
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceSureOrder
:
self
.
infoModel
.
orderNo
SuccessBlock
:
^
(
id
response
)
{
self
.
isSureOrder
=
YES
;
self
.
isSureOrder
=
YES
;
[
self
starMethod
];
[
self
starMethod
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
[
self
hide
];
[
self
hide
];
}];
}];
}
}
...
@@ -194,7 +204,7 @@
...
@@ -194,7 +204,7 @@
};
};
view
.
recordId
=
self
.
infoModel
.
consultationRecordId
;
view
.
recordId
=
self
.
infoModel
.
consultationRecordId
;
view
.
complaintType
=
GMComplaintTypeDoctor
;
view
.
complaintType
=
GMComplaintTypeDoctor
;
[
AppDelegate
.
navigation
.
view
addSubview
:
view
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
view
];
}
}
-
(
void
)
clickConfireBtnPhobo
:
(
NSInteger
)
counsellorType
consultationType
:
(
NSInteger
)
consultationType
doctorId
:
(
NSString
*
)
doctorId
{
-
(
void
)
clickConfireBtnPhobo
:
(
NSInteger
)
counsellorType
consultationType
:
(
NSInteger
)
consultationType
doctorId
:
(
NSString
*
)
doctorId
{
_counsellorType
=
counsellorType
;
_counsellorType
=
counsellorType
;
...
@@ -216,7 +226,7 @@
...
@@ -216,7 +226,7 @@
-
(
void
)
starMethod
{
-
(
void
)
starMethod
{
//是面诊师直接弹评价弹框
//是面诊师直接弹评价弹框
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceEvaluateItemDiagnosis_id
:
self
.
infoModel
.
consultationRecordId
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceEvaluateItemDiagnosis_id
:
self
.
infoModel
.
consultationRecordId
SuccessBlock
:
^
(
id
response
)
{
GMStarWithContentObject
*
starContentModel
=
[[
GMStarWithContentObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMStarWithContentObject
*
starContentModel
=
[[
GMStarWithContentObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:(
GMEndConsultViewTypeGrayStar
)
starNum
:
0
];
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:(
GMEndConsultViewTypeGrayStar
)
starNum
:
0
];
[
weakSelf
hide
];
[
weakSelf
hide
];
...
@@ -239,7 +249,7 @@
...
@@ -239,7 +249,7 @@
view
.
showComplaint
=
NO
;
view
.
showComplaint
=
NO
;
view
.
recordId
=
self
.
infoModel
.
consultationRecordId
;
view
.
recordId
=
self
.
infoModel
.
consultationRecordId
;
view
.
starContentArray
=
starContentModel
.
evaluates
;
view
.
starContentArray
=
starContentModel
.
evaluates
;
[
AppDelegate
.
navigation
.
view
addSubview
:
view
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
view
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
self
hide
];
[
self
hide
];
}];
}];
...
@@ -252,7 +262,7 @@
...
@@ -252,7 +262,7 @@
}
}
-
(
GMLabel
*
)
topLabel
{
-
(
GMLabel
*
)
topLabel
{
if
(
!
_topLabel
)
{
if
(
!
_topLabel
)
{
_topLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
_topLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
_topLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_topLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_topLabel
.
text
=
@"请确认视频面诊信息"
;
_topLabel
.
text
=
@"请确认视频面诊信息"
;
}
}
...
@@ -268,44 +278,44 @@
...
@@ -268,44 +278,44 @@
}
}
-
(
GMLabel
*
)
titleLabel
{
-
(
GMLabel
*
)
titleLabel
{
if
(
!
_titleLabel
)
{
if
(
!
_titleLabel
)
{
_titleLabel
=
[
GMLabel
labelWithTextColor
:
ALColor282828
fontSize
:
12
];
_titleLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
12
];
}
}
return
_titleLabel
;
return
_titleLabel
;
}
}
-
(
GMLabel
*
)
nameLabel
{
-
(
GMLabel
*
)
nameLabel
{
if
(
!
_nameLabel
)
{
if
(
!
_nameLabel
)
{
_nameLabel
=
[
GMLabel
labelWithTextColor
:
ALColor282828
fontSize
:
16
];
_nameLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
_nameLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_nameLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
}
}
return
_nameLabel
;
return
_nameLabel
;
}
}
-
(
GMLabel
*
)
startTimeLabel
{
-
(
GMLabel
*
)
startTimeLabel
{
if
(
!
_startTimeLabel
)
{
if
(
!
_startTimeLabel
)
{
_startTimeLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
12
];
_startTimeLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
12
];
}
}
return
_startTimeLabel
;
return
_startTimeLabel
;
}
}
-
(
GMLabel
*
)
endTimeLabel
{
-
(
GMLabel
*
)
endTimeLabel
{
if
(
!
_endTimeLabel
)
{
if
(
!
_endTimeLabel
)
{
_endTimeLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
12
];
_endTimeLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
12
];
}
}
return
_endTimeLabel
;
return
_endTimeLabel
;
}
}
-
(
GMLabel
*
)
durationLabel
{
-
(
GMLabel
*
)
durationLabel
{
if
(
!
_durationLabel
)
{
if
(
!
_durationLabel
)
{
_durationLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
12
];
_durationLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
12
];
}
}
return
_durationLabel
;
return
_durationLabel
;
}
}
-
(
GMLabel
*
)
priceLabel
{
-
(
GMLabel
*
)
priceLabel
{
if
(
!
_priceLabel
)
{
if
(
!
_priceLabel
)
{
_priceLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
12
];
_priceLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
12
];
}
}
return
_priceLabel
;
return
_priceLabel
;
}
}
-
(
GMLabel
*
)
payLabel
{
-
(
GMLabel
*
)
payLabel
{
if
(
!
_payLabel
)
{
if
(
!
_payLabel
)
{
_payLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
12
];
_payLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
12
];
}
}
return
_payLabel
;
return
_payLabel
;
}
}
...
@@ -313,7 +323,7 @@
...
@@ -313,7 +323,7 @@
if
(
!
_sureBtn
)
{
if
(
!
_sureBtn
)
{
_sureBtn
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
_sureBtn
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
_sureBtn
.
multiControlTimeInterva
=
2
.
f
;
_sureBtn
.
multiControlTimeInterva
=
2
.
f
;
[
_sureBtn
setBackgroundColor
:
GMColorFF8C8D
forState
:(
UIControlStateNormal
)];
[
_sureBtn
setBackgroundColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:(
UIControlStateNormal
)];
[
_sureBtn
setTitle
:
@"确认订单"
forState
:(
UIControlStateNormal
)];
[
_sureBtn
setTitle
:
@"确认订单"
forState
:(
UIControlStateNormal
)];
[
_sureBtn
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_sureBtn
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_sureBtn
addTarget
:
self
action
:
@selector
(
sureBtnClick
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
[
_sureBtn
addTarget
:
self
action
:
@selector
(
sureBtnClick
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
...
@@ -331,7 +341,7 @@
...
@@ -331,7 +341,7 @@
[
_problemBtn
.
titleLabel
setFont
:[
UIFont
gmFont
:
13
]];
[
_problemBtn
.
titleLabel
setFont
:[
UIFont
gmFont
:
13
]];
_problemBtn
.
enableAdaptive
=
YES
;
_problemBtn
.
enableAdaptive
=
YES
;
[
_problemBtn
setTitle
:
@"问题申诉>"
forState
:(
UIControlStateNormal
)];
[
_problemBtn
setTitle
:
@"问题申诉>"
forState
:(
UIControlStateNormal
)];
[
_problemBtn
setTitleColor
:
GMColorFF8C8D
forState
:(
UIControlStateNormal
)];
[
_problemBtn
setTitleColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:(
UIControlStateNormal
)];
}
}
return
_problemBtn
;
return
_problemBtn
;
}
}
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMToFaceOrderFooterView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMToFaceOrderFooterView.h"
#import "GMToFaceOrderFooterView.h"
@import
GMBase
;
@interface
GMToFaceOrderFooterView
()
@interface
GMToFaceOrderFooterView
()
@property
(
nonatomic
,
strong
)
GMLabel
*
payNameLabel
;
@property
(
nonatomic
,
strong
)
GMLabel
*
payNameLabel
;
...
@@ -60,14 +61,14 @@
...
@@ -60,14 +61,14 @@
}
}
-
(
GMLabel
*
)
payNameLabel
{
-
(
GMLabel
*
)
payNameLabel
{
if
(
!
_payNameLabel
)
{
if
(
!
_payNameLabel
)
{
_payNameLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
14
];
_payNameLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
14
];
_payNameLabel
.
text
=
@"支付金额:"
;
_payNameLabel
.
text
=
@"支付金额:"
;
}
}
return
_payNameLabel
;
return
_payNameLabel
;
}
}
-
(
GMLabel
*
)
moneyLabel
{
-
(
GMLabel
*
)
moneyLabel
{
if
(
!
_moneyLabel
)
{
if
(
!
_moneyLabel
)
{
_moneyLabel
=
[
GMLabel
labelWithTextColor
:
GMColorFF8C8D
fontSize
:
14
];
_moneyLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
fontSize
:
14
];
}
}
return
_moneyLabel
;
return
_moneyLabel
;
}
}
...
@@ -75,7 +76,7 @@
...
@@ -75,7 +76,7 @@
if
(
!
_payBtn
)
{
if
(
!
_payBtn
)
{
_payBtn
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
_payBtn
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
[
_payBtn
addTarget
:
self
action
:
@selector
(
payBtnClick
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
[
_payBtn
addTarget
:
self
action
:
@selector
(
payBtnClick
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
[
_payBtn
setBackgroundColor
:
GMColorFF8C8D
forState
:(
UIControlStateNormal
)];
[
_payBtn
setBackgroundColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:(
UIControlStateNormal
)];
[
_payBtn
setTitle
:
@"立即支付"
forState
:(
UIControlStateNormal
)];
[
_payBtn
setTitle
:
@"立即支付"
forState
:(
UIControlStateNormal
)];
[
_payBtn
.
titleLabel
setFont
:[
UIFont
gmBoldFont
:
16
]];
[
_payBtn
.
titleLabel
setFont
:[
UIFont
gmBoldFont
:
16
]];
_payBtn
.
layer
.
cornerRadius
=
20
.
f
;
_payBtn
.
layer
.
cornerRadius
=
20
.
f
;
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMToFaceOrderHeaderView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMToFaceOrderHeaderView.h"
#import "GMToFaceOrderHeaderView.h"
#import "GMLibraryHeader.h"
@interface
GMToFaceOrderHeaderView
()
@interface
GMToFaceOrderHeaderView
()
@property
(
nonatomic
,
strong
)
UIImageView
*
headerIcon
;
@property
(
nonatomic
,
strong
)
UIImageView
*
headerIcon
;
...
@@ -35,7 +36,7 @@
...
@@ -35,7 +36,7 @@
NSRange
range
=
[
self
.
payLabel
.
text
rangeOfString
:
@"/"
];
NSRange
range
=
[
self
.
payLabel
.
text
rangeOfString
:
@"/"
];
range
=
NSMakeRange
(
range
.
location
,
self
.
payLabel
.
text
.
length
-
range
.
location
);
range
=
NSMakeRange
(
range
.
location
,
self
.
payLabel
.
text
.
length
-
range
.
location
);
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
self
.
payLabel
.
text
];
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
self
.
payLabel
.
text
];
[
attribute
addAttributes
:@{
NSForegroundColorAttributeName
:
ALColor999999
}
range
:
range
];
[
attribute
addAttributes
:@{
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x999999
)
}
range
:
range
];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
10
]}
range
:
NSMakeRange
(
0
,
1
)];
[
attribute
addAttributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
10
]}
range
:
NSMakeRange
(
0
,
1
)];
self
.
payLabel
.
attributedText
=
attribute
;
self
.
payLabel
.
attributedText
=
attribute
;
}
}
...
@@ -87,26 +88,26 @@
...
@@ -87,26 +88,26 @@
}
}
-
(
GMLabel
*
)
titleLabel
{
-
(
GMLabel
*
)
titleLabel
{
if
(
!
_titleLabel
)
{
if
(
!
_titleLabel
)
{
_titleLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
17
];
_titleLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
17
];
}
}
return
_titleLabel
;
return
_titleLabel
;
}
}
-
(
GMLabel
*
)
organizationLabel
{
-
(
GMLabel
*
)
organizationLabel
{
if
(
!
_organizationLabel
)
{
if
(
!
_organizationLabel
)
{
_organizationLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
13
];
_organizationLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
13
];
}
}
return
_organizationLabel
;
return
_organizationLabel
;
}
}
-
(
GMLabel
*
)
moneyLabel
{
-
(
GMLabel
*
)
moneyLabel
{
if
(
!
_moneyLabel
)
{
if
(
!
_moneyLabel
)
{
_moneyLabel
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
10
];
_moneyLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
10
];
_moneyLabel
.
text
=
@"金额:"
;
_moneyLabel
.
text
=
@"金额:"
;
}
}
return
_moneyLabel
;
return
_moneyLabel
;
}
}
-
(
GMLabel
*
)
payLabel
{
-
(
GMLabel
*
)
payLabel
{
if
(
!
_payLabel
)
{
if
(
!
_payLabel
)
{
_payLabel
=
[
GMLabel
labelWithTextColor
:
GMColorFF5963
fontSize
:
16
];
_payLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0xFF5963
)
fontSize
:
16
];
}
}
return
_payLabel
;
return
_payLabel
;
}
}
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMToFacePayPopView.m
View file @
14d10884
...
@@ -12,6 +12,10 @@
...
@@ -12,6 +12,10 @@
#import "GMToFacePayViewModel.h"
#import "GMToFacePayViewModel.h"
#import "GMPayResultModel.h"
#import "GMPayResultModel.h"
#import "GMThirdPartyDefine.h"
#import "GMThirdPartyDefine.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
#import <GMBase/GMBaseTool.h>
@interface
GMToFacePayPopView
()
@interface
GMToFacePayPopView
()
@property
(
nonatomic
,
strong
)
GMLabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
GMLabel
*
titleLabel
;
...
@@ -68,13 +72,13 @@
...
@@ -68,13 +72,13 @@
}
}
-
(
void
)
setNotification
{
-
(
void
)
setNotification
{
//支付宝支付成功
//支付宝支付成功
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
ORDER_PAY_SUCCESS
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
@"order_pay_success"
object
:
nil
];
//支付宝支付失败
//支付宝支付失败
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
ORDER_PAY_FAIL
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
@"order_pay_fail"
object
:
nil
];
//微信支付成功
//微信支付成功
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
kWechatPaySuccess
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
@"kWechatPaySuccess"
object
:
nil
];
//微信支付失败
//微信支付失败
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
kWechatPayFail
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
@"kWechatPayFail"
object
:
nil
];
//从后台回到前台
//从后台回到前台
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
enterForground
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
enterForground
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
}
}
...
@@ -123,6 +127,13 @@
...
@@ -123,6 +127,13 @@
//这个set方法只会走一次,所以放在这里不会有问题
//这个set方法只会走一次,所以放在这里不会有问题
[
self
pvPhoboMethod
];
[
self
pvPhoboMethod
];
}
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
-
(
void
)
selectPayTypeMethod
:
(
UIGestureRecognizer
*
)
gesture
{
-
(
void
)
selectPayTypeMethod
:
(
UIGestureRecognizer
*
)
gesture
{
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
.
orderModel
.
paymentChannels
enumerateObjectsUsingBlock
:
^
(
GMToFacePayTypeModel
*
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
[
self
.
orderModel
.
paymentChannels
enumerateObjectsUsingBlock
:
^
(
GMToFacePayTypeModel
*
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
...
@@ -141,15 +152,15 @@
...
@@ -141,15 +152,15 @@
self
.
viewModel
.
paymentAmount
=
self
.
orderModel
.
paymentAmount
;
self
.
viewModel
.
paymentAmount
=
self
.
orderModel
.
paymentAmount
;
//目的是防止重复点击,所以必须要网络请求回来之后才可再次点击
//目的是防止重复点击,所以必须要网络请求回来之后才可再次点击
self
.
footerView
.
isCanClick
=
NO
;
self
.
footerView
.
isCanClick
=
NO
;
[
AppDelegate
.
visibleController
showLoading
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
showLoading
:
nil
];
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
.
viewModel
excuteToFacePayCompleteBlock
:
^
(
id
responseObject
)
{
[
self
.
viewModel
excuteToFacePayCompleteBlock
:
^
(
id
responseObject
)
{
weakSelf
.
footerView
.
isCanClick
=
YES
;
weakSelf
.
footerView
.
isCanClick
=
YES
;
[
AppDelegate
.
visibleController
hideLoading
];
[
[
GMBaseTool
getCurrentViewController
]
hideLoading
];
}
failedBlock
:
^
(
NSString
*
message
)
{
}
failedBlock
:
^
(
NSString
*
message
)
{
//支付参数获取失败 则可以重新支付
//支付参数获取失败 则可以重新支付
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
[
AppDelegate
.
visibleController
hideLoading
];
[
[
GMBaseTool
getCurrentViewController
]
hideLoading
];
weakSelf
.
footerView
.
isCanClick
=
YES
;
weakSelf
.
footerView
.
isCanClick
=
YES
;
}];
}];
}
}
...
@@ -179,20 +190,20 @@
...
@@ -179,20 +190,20 @@
weakSelf
.
paiedIsFinish
=
NO
;
weakSelf
.
paiedIsFinish
=
NO
;
NSNumber
*
status
=
responseObject
.
data
[
@"order_status"
];
NSNumber
*
status
=
responseObject
.
data
[
@"order_status"
];
if
([
status
integerValue
]
==
2
)
{
if
([
status
integerValue
]
==
2
)
{
[
AppDelegate
.
visibleController
toast
:
@"支付成功,不要走开,立即进入视频面诊连线"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"支付成功,不要走开,立即进入视频面诊连线"
];
//回调到信息卡页面去做一些操作
//回调到信息卡页面去做一些操作
if
(
weakSelf
.
PaySuccessBlock
)
{
if
(
weakSelf
.
PaySuccessBlock
)
{
weakSelf
.
PaySuccessBlock
();
weakSelf
.
PaySuccessBlock
();
[
weakSelf
hide
];
[
weakSelf
hide
];
}
}
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
responseObject
.
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
responseObject
.
message
];
}
}
}
failBlock
:
^
(
NSString
*
message
)
{
}
failBlock
:
^
(
NSString
*
message
)
{
weakSelf
.
paiedIsFinish
=
NO
;
weakSelf
.
paiedIsFinish
=
NO
;
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
}];
}];
}
}
...
@@ -200,10 +211,10 @@
...
@@ -200,10 +211,10 @@
-
(
void
)
orderPayFail
:
(
NSNotification
*
)
noti
{
-
(
void
)
orderPayFail
:
(
NSNotification
*
)
noti
{
self
.
paiedIsFail
=
YES
;
self
.
paiedIsFail
=
YES
;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
f
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
f
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
AppDelegate
.
visibleController
showWarning
:
@"支付失败"
];
[
[
GMBaseTool
getCurrentViewController
]
showWarning
:
@"支付失败"
];
self
.
paiedIsFail
=
NO
;
self
.
paiedIsFail
=
NO
;
});
});
[
AppDelegate
.
visibleController
hideLoading
];
[
[
GMBaseTool
getCurrentViewController
]
hideLoading
];
self
.
footerView
.
isCanClick
=
YES
;
self
.
footerView
.
isCanClick
=
YES
;
}
}
#pragma mark - notification
#pragma mark - notification
...
@@ -233,19 +244,19 @@
...
@@ -233,19 +244,19 @@
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
NSNumber
*
status
=
responseObject
.
data
[
@"order_status"
];
NSNumber
*
status
=
responseObject
.
data
[
@"order_status"
];
if
([
status
integerValue
]
==
2
)
{
if
([
status
integerValue
]
==
2
)
{
[
AppDelegate
.
visibleController
toast
:
@"支付成功,不要走开,立即进入视频面诊连线"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"支付成功,不要走开,立即进入视频面诊连线"
];
//回调到信息卡页面去做一些操作
//回调到信息卡页面去做一些操作
if
(
weakSelf
.
PaySuccessBlock
)
{
if
(
weakSelf
.
PaySuccessBlock
)
{
weakSelf
.
PaySuccessBlock
();
weakSelf
.
PaySuccessBlock
();
[
weakSelf
hide
];
[
weakSelf
hide
];
}
}
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
responseObject
.
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
responseObject
.
message
];
}
}
}
failBlock
:
^
(
NSString
*
message
)
{
}
failBlock
:
^
(
NSString
*
message
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
}];
}];
});
});
}
}
...
@@ -273,7 +284,7 @@
...
@@ -273,7 +284,7 @@
}
}
-
(
GMLabel
*
)
titleLabel
{
-
(
GMLabel
*
)
titleLabel
{
if
(
!
_titleLabel
)
{
if
(
!
_titleLabel
)
{
_titleLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
22
.
5
];
_titleLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
22
.
5
];
_titleLabel
.
font
=
[
UIFont
gmBoldFont
:
22
.
5
];
_titleLabel
.
font
=
[
UIFont
gmBoldFont
:
22
.
5
];
_titleLabel
.
text
=
@"请选择支付方式"
;
_titleLabel
.
text
=
@"请选择支付方式"
;
}
}
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMToFacePaySectionHeaderView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMToFacePaySectionHeaderView.h"
#import "GMToFacePaySectionHeaderView.h"
@import
GMKit
;
@interface
GMToFacePaySectionHeaderView
()
@interface
GMToFacePaySectionHeaderView
()
@property
(
nonatomic
,
strong
)
UIView
*
labelView
;
@property
(
nonatomic
,
strong
)
UIView
*
labelView
;
...
@@ -49,21 +50,21 @@
...
@@ -49,21 +50,21 @@
-
(
UIView
*
)
grayView
{
-
(
UIView
*
)
grayView
{
if
(
!
_grayView
)
{
if
(
!
_grayView
)
{
_grayView
=
[[
UIView
alloc
]
init
];
_grayView
=
[[
UIView
alloc
]
init
];
_grayView
.
backgroundColor
=
GMColorF7F6FA
;
_grayView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xF7F6FA
)
;
}
}
return
_grayView
;
return
_grayView
;
}
}
-
(
UIView
*
)
lineView
{
-
(
UIView
*
)
lineView
{
if
(
!
_lineView
)
{
if
(
!
_lineView
)
{
_lineView
=
[[
UIView
alloc
]
init
];
_lineView
=
[[
UIView
alloc
]
init
];
_lineView
.
backgroundColor
=
GMColorE5E5E5
;
_lineView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xE5E5E5
)
;
}
}
return
_lineView
;
return
_lineView
;
}
}
-
(
UIView
*
)
labelView
{
-
(
UIView
*
)
labelView
{
if
(
!
_labelView
)
{
if
(
!
_labelView
)
{
_labelView
=
[[
UIView
alloc
]
init
];
_labelView
=
[[
UIView
alloc
]
init
];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
15
];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
15
];
label
.
text
=
@"请选择支付方式"
;
label
.
text
=
@"请选择支付方式"
;
[
_labelView
addSubview
:
label
];
[
_labelView
addSubview
:
label
];
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
label
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMToFacePayTypeCell.m
View file @
14d10884
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
//
//
#import "GMToFacePayTypeCell.h"
#import "GMToFacePayTypeCell.h"
@import
GMBase
;
@import
SDWebImage
;
@interface
GMToFacePayTypeCell
()
@interface
GMToFacePayTypeCell
()
@property
(
strong
,
nonatomic
)
UIImageView
*
payWayImage
;
@property
(
strong
,
nonatomic
)
UIImageView
*
payWayImage
;
@property
(
strong
,
nonatomic
)
GMLabel
*
payName
;
@property
(
strong
,
nonatomic
)
GMLabel
*
payName
;
...
@@ -30,7 +31,7 @@
...
@@ -30,7 +31,7 @@
[
self
.
payWayImage
sd_setImageWithURL
:[
NSURL
URLWithString
:
typeModel
.
icon
]];
[
self
.
payWayImage
sd_setImageWithURL
:[
NSURL
URLWithString
:
typeModel
.
icon
]];
self
.
payDesc
.
text
=
typeModel
.
desc
;
self
.
payDesc
.
text
=
typeModel
.
desc
;
self
.
payName
.
text
=
typeModel
.
title
;
self
.
payName
.
text
=
typeModel
.
title
;
self
.
payDesc
.
textColor
=
typeModel
.
recommend
?
GMColorFF5963
:
GMColor999999
;
self
.
payDesc
.
textColor
=
typeModel
.
recommend
?
RGBCOLOR_HEX
(
0xFF5963
):
RGBCOLOR_HEX
(
0x999999
)
;
self
.
recommendIcon
.
hidden
=
!
typeModel
.
recommend
;
self
.
recommendIcon
.
hidden
=
!
typeModel
.
recommend
;
}
}
-
(
void
)
setUI
{
-
(
void
)
setUI
{
...
@@ -82,13 +83,13 @@
...
@@ -82,13 +83,13 @@
}
}
-
(
GMLabel
*
)
payName
{
-
(
GMLabel
*
)
payName
{
if
(
!
_payName
)
{
if
(
!
_payName
)
{
_payName
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
14
];
_payName
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
14
];
}
}
return
_payName
;
return
_payName
;
}
}
-
(
GMLabel
*
)
payDesc
{
-
(
GMLabel
*
)
payDesc
{
if
(
!
_payDesc
)
{
if
(
!
_payDesc
)
{
_payDesc
=
[
GMLabel
labelWithTextColor
:
GMColorFF5963
fontSize
:
12
];
_payDesc
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0xFF5963
)
fontSize
:
12
];
}
}
return
_payDesc
;
return
_payDesc
;
}
}
...
...
GMAILab/Classes/ToFace/ToFaceOrder/ViewController/GMToFaceOrderViewController.m
View file @
14d10884
...
@@ -13,9 +13,13 @@
...
@@ -13,9 +13,13 @@
#import "GMToFaceOrderFooterView.h"
#import "GMToFaceOrderFooterView.h"
#import "GMToFacePayViewModel.h"
#import "GMToFacePayViewModel.h"
#import "GMPayResultModel.h"
#import "GMPayResultModel.h"
#import "NSString+jsonData.h"
#import "GMThirdPartyDefine.h"
#import "GMThirdPartyDefine.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
#import <GMBase/GMBaseTool.h>
#import "NSString+AIJsonData.h"
@import
GMNetworking
;
@interface
GMToFaceOrderViewController
()
@interface
GMToFaceOrderViewController
()
@property
(
nonatomic
,
strong
)
GMToFacePayViewModel
*
payViewModel
;
@property
(
nonatomic
,
strong
)
GMToFacePayViewModel
*
payViewModel
;
/** 头部视图 */
/** 头部视图 */
...
@@ -66,15 +70,17 @@
...
@@ -66,15 +70,17 @@
self
.
extraParam
=
[
NSString
convertToBriefJsonString
:
param
];
self
.
extraParam
=
[
NSString
convertToBriefJsonString
:
param
];
self
.
businessId
=
self
.
orderModel
.
orderNo
;
self
.
businessId
=
self
.
orderModel
.
orderNo
;
}
}
-
(
void
)
setNotification
{
-
(
void
)
setNotification
{
//支付宝支付成功
//支付宝支付成功
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
ORDER_PAY_SUCCESS
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
@"order_pay_success"
object
:
nil
];
//支付宝支付失败
//支付宝支付失败
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
ORDER_PAY_FAIL
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
@"order_pay_fail"
object
:
nil
];
//微信支付成功
//微信支付成功
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
kWechatPaySuccess
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPaySuccess
:
)
name
:
@"kWechatPaySuccess"
object
:
nil
];
//微信支付失败
//微信支付失败
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
kWechatPayFail
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
orderPayFail
:
)
name
:
@"kWechatPayFail"
object
:
nil
];
//从后台回到前台
//从后台回到前台
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
enterForground
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
enterForground
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
}
}
...
@@ -122,7 +128,7 @@
...
@@ -122,7 +128,7 @@
-
(
UIView
*
)
tableView
:
(
UITableView
*
)
tableView
viewForFooterInSection
:
(
NSInteger
)
section
{
-
(
UIView
*
)
tableView
:
(
UITableView
*
)
tableView
viewForFooterInSection
:
(
NSInteger
)
section
{
UIView
*
backView
=
[[
UIView
alloc
]
init
];
UIView
*
backView
=
[[
UIView
alloc
]
init
];
backView
.
backgroundColor
=
UIColor
.
whiteColor
;
backView
.
backgroundColor
=
UIColor
.
whiteColor
;
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
GMColor999999
fontSize
:
11
];
GMLabel
*
label
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
11
];
label
.
frame
=
CGRectMake
(
15
,
28
,
MAINSCREEN_WIDTH
-
15
,
12
);
label
.
frame
=
CGRectMake
(
15
,
28
,
MAINSCREEN_WIDTH
-
15
,
12
);
label
.
text
=
@"为避免订单失效,建议您在3分钟内完成支付"
;
label
.
text
=
@"为避免订单失效,建议您在3分钟内完成支付"
;
[
backView
addSubview
:
label
];
[
backView
addSubview
:
label
];
...
@@ -143,7 +149,7 @@
...
@@ -143,7 +149,7 @@
}]];
}]];
UIAlertAction
*
action
=
alert
.
actions
.
firstObject
;
UIAlertAction
*
action
=
alert
.
actions
.
firstObject
;
//这个key是用 runtime属性列表Ivar遍历得到的
//这个key是用 runtime属性列表Ivar遍历得到的
[
action
setValue
:
GMColor282828
forKey
:
@"titleTextColor"
];
[
action
setValue
:
RGBCOLOR_HEX
(
0x282828
)
forKey
:
@"titleTextColor"
];
[
self
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
[
self
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
}
//页面按钮的点击埋点
//页面按钮的点击埋点
...
@@ -163,7 +169,7 @@
...
@@ -163,7 +169,7 @@
[
GMNetworking
requestOCWithApi
:
API_ORDER_CANCEL
method
:
GMHTTPMethodPost
parameters
:
@{
@"order_no"
:
self
.
orderModel
.
orderNo
}
completion
:^
(
GMResponseOC
*
_Nonnull
responseObject
)
{
[
GMNetworking
requestOCWithApi
:
API_ORDER_CANCEL
method
:
GMHTTPMethodPost
parameters
:
@{
@"order_no"
:
self
.
orderModel
.
orderNo
}
completion
:^
(
GMResponseOC
*
_Nonnull
responseObject
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
[
GMHudModule
toastInView
:[
UIApplication
sharedApplication
].
keyWindow
text
:
responseObject
.
message
];
[
GMHudModule
toastInView
:[
UIApplication
sharedApplication
].
keyWindow
text
:
responseObject
.
message
];
[
AppDelegate
.
visibleController
popViewControllerAnimated
:
YES
completion
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
popViewControllerAnimated
:
YES
completion
:
nil
];
}];
}];
}
}
#pragma mark - 点击 "立即支付"
#pragma mark - 点击 "立即支付"
...
...
GMAILab/Classes/ToFace/ToFaceOrder/ViewController/GMTofaceOrderDetailViewController.m
View file @
14d10884
...
@@ -9,9 +9,13 @@
...
@@ -9,9 +9,13 @@
#import "GMTofaceOrderDetailViewController.h"
#import "GMTofaceOrderDetailViewController.h"
#import "GMComplaintObject.h"
#import "GMComplaintObject.h"
#import "GMComplaintResultView.h"
#import "GMComplaintResultView.h"
#import "Gengmei-Swift.h"
//
#import "Gengmei-Swift.h"
#import "GMEndConsultView.h"
#import "GMEndConsultView.h"
#import "RequestHeader.h"
#import "GMToFaceNetworking.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <WebKit/WebKit.h>
@import
GMHud
;
@interface
GMTofaceOrderDetailViewController
()
<
WKWebViewDelegate
>
@interface
GMTofaceOrderDetailViewController
()
<
WKWebViewDelegate
>
@property
(
nonatomic
,
strong
)
GMComplaintObject
*
complaintObject
;
@property
(
nonatomic
,
strong
)
GMComplaintObject
*
complaintObject
;
...
@@ -44,7 +48,7 @@
...
@@ -44,7 +48,7 @@
-
(
void
)
viewComplaint
:
(
NSString
*
)
jsonString
{
-
(
void
)
viewComplaint
:
(
NSString
*
)
jsonString
{
NSString
*
diagnosisId
=
SafeString
(
jsonString
);
NSString
*
diagnosisId
=
SafeString
(
jsonString
);
[
GMHudModule
showLoading
:
nil
];
[
GMHudModule
showLoading
:
nil
];
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceComplaintGetDiagnosis_id
:
diagnosisId
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceComplaintGetDiagnosis_id
:
diagnosisId
SuccessBlock
:
^
(
id
response
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
GMComplaintInterfaceObject
*
model
=
[[
GMComplaintInterfaceObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMComplaintInterfaceObject
*
model
=
[[
GMComplaintInterfaceObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
self
.
complaintObject
.
report_detail
=
model
.
complaint
.
content
;
self
.
complaintObject
.
report_detail
=
model
.
complaint
.
content
;
...
@@ -54,10 +58,10 @@
...
@@ -54,10 +58,10 @@
self
.
complaintObject
.
custom_url
=
model
.
custom_url
;
self
.
complaintObject
.
custom_url
=
model
.
custom_url
;
self
.
complaintObject
.
status
=
model
.
status
;
self
.
complaintObject
.
status
=
model
.
status
;
GMComplaintResultView
*
view
=
[[
GMComplaintResultView
alloc
]
initWithType
:
self
.
complaintObject
.
status
dictModel
:
self
.
complaintObject
];
GMComplaintResultView
*
view
=
[[
GMComplaintResultView
alloc
]
initWithType
:
self
.
complaintObject
.
status
dictModel
:
self
.
complaintObject
];
[[
AppDelegate
shareInstance
].
window
addSubview
:
view
];
[[
GMBaseTool
mainWindow
]
addSubview
:
view
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
}];
}];
}
}
#pragma mark - 去投诉
#pragma mark - 去投诉
...
@@ -70,7 +74,7 @@
...
@@ -70,7 +74,7 @@
NSString
*
jsStr
=
[
NSString
stringWithFormat
:
@"window.gm&&window.gm.pack&&window.gm.pack.run('notificReportState')"
];
NSString
*
jsStr
=
[
NSString
stringWithFormat
:
@"window.gm&&window.gm.pack&&window.gm.pack.run('notificReportState')"
];
[
self
.
webCompent
.
webView
evaluateJavaScript
:
jsStr
completionHandler
:
nil
];
[
self
.
webCompent
.
webView
evaluateJavaScript
:
jsStr
completionHandler
:
nil
];
};
};
[
AppDelegate
.
navigation
.
view
addSubview
:
view
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
view
];
}
}
-
(
GMComplaintObject
*
)
complaintObject
{
-
(
GMComplaintObject
*
)
complaintObject
{
...
...
GMAILab/Classes/ToFace/ToFaceOrder/ViewModel/GMToFacePayViewModel.h
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
@import
GMNetService
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
typedef
NS_ENUM
(
NSInteger
,
GMToFacePayType
)
{
typedef
NS_ENUM
(
NSInteger
,
GMToFacePayType
)
{
/** 支付宝 */
/** 支付宝 */
...
...
GMAILab/Classes/ToFace/ToFaceOrder/ViewModel/GMToFacePayViewModel.m
View file @
14d10884
...
@@ -10,10 +10,16 @@
...
@@ -10,10 +10,16 @@
#import <AlipaySDK/AlipaySDK.h>
#import <AlipaySDK/AlipaySDK.h>
#import "WXApiObject.h"
#import "WXApiObject.h"
#import "WXApi.h"
#import "WXApi.h"
#import "GMNotificationName.h"
#import "AppDelegate.h"
#import "GMPayResultModel.h"
#import "GMPayResultModel.h"
#import "GMThirdPartyDefine.h"
#import "GMThirdPartyDefine.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
#import <GMBase/GMBaseTool.h>
/*** @brief 订单支付部分*/
#define ORDER_PAY_SUCCESS @"order_pay_success"
//订单支付成功
#define ORDER_PAY_FAIL @"order_pay_fail"
@interface
GMToFacePayViewModel
()
@interface
GMToFacePayViewModel
()
...
@@ -25,11 +31,11 @@
...
@@ -25,11 +31,11 @@
*/
*/
-
(
void
)
excuteToFacePayCompleteBlock
:(
HttpSuccessBlock
)
successBlock
failedBlock
:(
HttpFailedBlock
)
failedBlock
{
-
(
void
)
excuteToFacePayCompleteBlock
:(
HttpSuccessBlock
)
successBlock
failedBlock
:(
HttpFailedBlock
)
failedBlock
{
if
(
self
.
payType
==
GMToFacePayTypeAlipay
&&
!
[[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
@"alipay://"
]])
{
if
(
self
.
payType
==
GMToFacePayTypeAlipay
&&
!
[[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
@"alipay://"
]])
{
[
AppDelegate
.
visibleController
toast
:
@"请安装支付宝"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"请安装支付宝"
];
return
;
return
;
}
}
if
(
self
.
payType
==
GMToFacePayTypeWechat
&&
!
[
WXApi
isWXAppInstalled
])
{
if
(
self
.
payType
==
GMToFacePayTypeWechat
&&
!
[
WXApi
isWXAppInstalled
])
{
[
AppDelegate
.
visibleController
toast
:
@"请安装微信"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"请安装微信"
];
return
;
return
;
}
}
NSString
*
channel
;
NSString
*
channel
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/manager/GMAppCameraAndMicrophone.m
View file @
14d10884
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
//
//
#import "GMAppCameraAndMicrophone.h"
#import "GMAppCameraAndMicrophone.h"
#import <GMBase/GMBaseTool.h>
@implementation
GMAppCameraAndMicrophone
@implementation
GMAppCameraAndMicrophone
/// 相机权限
/// 相机权限
...
@@ -66,7 +68,8 @@
...
@@ -66,7 +68,8 @@
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
@"设置"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
@"设置"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
}]];
}]];
[
AppDelegate
.
visibleController
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
UIViewController
*
vc
=
[
GMBaseTool
getCurrentViewController
];
[
vc
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
}
+
(
void
)
showCameraAlert
{
+
(
void
)
showCameraAlert
{
...
@@ -76,7 +79,9 @@
...
@@ -76,7 +79,9 @@
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
@"设置"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
@"设置"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
}]];
}]];
[
AppDelegate
.
visibleController
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
UIViewController
*
vc
=
[
GMBaseTool
getCurrentViewController
];
[
vc
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
}
@end
@end
GMAILab/Classes/ToFace/VideoTelephone/manager/GMDoctorVideoTelephoneLogin.m
View file @
14d10884
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#import "GMEndConsultView.h"
#import "GMEndConsultView.h"
#import "GMAppCameraAndMicrophone.h"
#import "GMAppCameraAndMicrophone.h"
#import "GMVideoPhobos.h"
#import "GMVideoPhobos.h"
#import <GMBase/GMBaseTool.h>
@import
GMHud
;
@import
GMRouter
;
static
GMDoctorVideoTelephoneLogin
*
loginManager
=
nil
;
static
GMDoctorVideoTelephoneLogin
*
loginManager
=
nil
;
@interface
GMDoctorVideoTelephoneLogin
()
<
GMTelephoneViewDelegate
,
TTTRtcEngineDelegate
,
GMVideoTelephoneWindowDelegate
>
@interface
GMDoctorVideoTelephoneLogin
()
<
GMTelephoneViewDelegate
,
TTTRtcEngineDelegate
,
GMVideoTelephoneWindowDelegate
>
...
@@ -90,7 +94,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
...
@@ -90,7 +94,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
#pragma mark - 初始化直播间
#pragma mark - 初始化直播间
-
(
void
)
doctorLoginVideoRoomModel
:
(
GMVideoTelephoneModel
*
)
model
{
-
(
void
)
doctorLoginVideoRoomModel
:
(
GMVideoTelephoneModel
*
)
model
{
_uid
=
GMLoginManager
.
shareInstance
.
user
.
userId
;
_uid
=
(
NSInteger
)[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_userId"
];
;
_channelId
=
model
.
channelId
;
_channelId
=
model
.
channelId
;
_pushURL
=
model
.
streamUrl
;
_pushURL
=
model
.
streamUrl
;
...
@@ -168,7 +172,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
...
@@ -168,7 +172,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
}
}
NSString
*
button_name
=
status
?
@"answer"
:
@"cancel"
;
NSString
*
button_name
=
status
?
@"answer"
:
@"cancel"
;
UIViewController
*
vc
=
AppDelegate
.
visibleController
.
navigationController
.
viewControllers
.
lastObject
;
UIViewController
*
vc
=
[
GMBaseTool
getCurrentViewController
]
.
navigationController
.
viewControllers
.
lastObject
;
NSString
*
referrer
=
vc
.
pageName
;
NSString
*
referrer
=
vc
.
pageName
;
[
Phobos
track
:
@"on_click_button"
attributes
:@{
[
Phobos
track
:
@"on_click_button"
attributes
:@{
@"page_name"
:
@"video_face_consultation_doctor"
,
@"page_name"
:
@"video_face_consultation_doctor"
,
...
@@ -256,7 +260,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
...
@@ -256,7 +260,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:
TTManager
.
totalTime
>
180
?
GMEndConsultViewTypeReport
:
GMEndConsultViewTypeDefault
starNum
:
0
];
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:
TTManager
.
totalTime
>
180
?
GMEndConsultViewTypeReport
:
GMEndConsultViewTypeDefault
starNum
:
0
];
view
.
complaintType
=
GMComplaintTypeDoctor
;
view
.
complaintType
=
GMComplaintTypeDoctor
;
view
.
recordId
=
TTManager
.
consultationRecordId
;
view
.
recordId
=
TTManager
.
consultationRecordId
;
[
AppDelegate
.
navigation
.
view
addSubview
:
view
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
view
];
if
(
TTManager
.
totalTime
>
180
)
{
if
(
TTManager
.
totalTime
>
180
)
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
@"doctor_finshed_video"
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
@"doctor_finshed_video"
object
:
nil
];
}
}
...
...
GMAILab/Classes/ToFace/VideoTelephone/manager/GMNimChannelManager.m
View file @
14d10884
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#import "GMNimChannelManager.h"
#import "GMNimChannelManager.h"
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonDigest.h>
@import
GMRouter
;
@implementation
GMNimChannelManager
@implementation
GMNimChannelManager
+
(
instancetype
)
shareInstance
{
+
(
instancetype
)
shareInstance
{
static
dispatch_once_t
onceToken
;
static
dispatch_once_t
onceToken
;
...
@@ -167,7 +167,8 @@
...
@@ -167,7 +167,8 @@
/// @param resultBlock 结果
/// @param resultBlock 结果
-
(
void
)
doCallWithAccountId
:
(
NSString
*
)
accountId
customInfo
:
(
NSString
*
)
customInfo
resultBlock
:
(
nonnull
NIMResultBlock
)
resultBlock
{
-
(
void
)
doCallWithAccountId
:
(
NSString
*
)
accountId
customInfo
:
(
NSString
*
)
customInfo
resultBlock
:
(
nonnull
NIMResultBlock
)
resultBlock
{
NIMSignalingCallRequest
*
request
=
[[
NIMSignalingCallRequest
alloc
]
init
];
NIMSignalingCallRequest
*
request
=
[[
NIMSignalingCallRequest
alloc
]
init
];
request
.
uid
=
[
GMLoginManager
shareInstance
].
user
.
userId
;
NSInteger
user
=
(
NSInteger
)[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_userId"
];
request
.
uid
=
user
;
request
.
accountId
=
accountId
;
request
.
accountId
=
accountId
;
request
.
requestId
=
[
self
createRequestId
];
request
.
requestId
=
[
self
createRequestId
];
request
.
customInfo
=
customInfo
;
request
.
customInfo
=
customInfo
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/manager/GMRtcManager.m
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMRtcManager.h"
#import "GMRtcManager.h"
#import "GMFaceHeader.h"
@implementation
GMRtcManager
:
NSObject
@implementation
GMRtcManager
:
NSObject
static
id
_manager
;
static
id
_manager
;
...
@@ -45,7 +45,7 @@ static id _manager;
...
@@ -45,7 +45,7 @@ static id _manager;
_localProfile
=
TTTRtc_VideoProfile_Default
;
_localProfile
=
TTTRtc_VideoProfile_Default
;
_cdnProfile
=
TTTRtc_VideoProfile_Default
;
_cdnProfile
=
TTTRtc_VideoProfile_Default
;
// 杀死app 需要退出
// 杀死app 需要退出
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
closeRoom
)
name
:
GM_CLOSE_APP
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
closeRoom
)
name
:
@"gm_close_app"
object
:
nil
];
}
}
return
self
;
return
self
;
}
}
...
...
GMAILab/Classes/ToFace/VideoTelephone/manager/GMUserVideoTelephoneLogin.m
View file @
14d10884
...
@@ -11,14 +11,16 @@
...
@@ -11,14 +11,16 @@
#import "GMUserVideoTelephoneWindow.h"
#import "GMUserVideoTelephoneWindow.h"
#import "GMVideoTelephoneRequestTool.h"
#import "GMVideoTelephoneRequestTool.h"
#import "GMTelephoneAudioPlay.h"
#import "GMTelephoneAudioPlay.h"
#import "GMLoginManager.h"
#import <GMPublicNomalHUD.h>
#import "GMAppCameraAndMicrophone.h"
#import "GMAppCameraAndMicrophone.h"
#import "GMVideoPhobos.h"
#import "GMVideoPhobos.h"
#import "GMSureOrderPopView.h"
#import "GMSureOrderPopView.h"
#import "GMToFaceOrderInfoModel.h"
#import "GMToFaceOrderInfoModel.h"
#import "GMNimChannelManager.h"
#import "GMNimChannelManager.h"
#import "NSDictionary+json.h"
#import "NSDictionary+json.h"
#import "GMToFaceNetworking.h"
#import <GMBase/GMBaseTool.h>
static
GMUserVideoTelephoneLogin
*
loginManager
=
nil
;
static
GMUserVideoTelephoneLogin
*
loginManager
=
nil
;
...
@@ -63,7 +65,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
...
@@ -63,7 +65,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
self
.
logoHud
=
[[
GMPublicNomalHUD
alloc
]
init
];
self
.
logoHud
=
[[
GMPublicNomalHUD
alloc
]
init
];
self
.
logoHud
.
frame
=
CGRectMake
(
0
,
0
,
100
,
100
);
self
.
logoHud
.
frame
=
CGRectMake
(
0
,
0
,
100
,
100
);
self
.
logoHud
.
hidden
=
YES
;
self
.
logoHud
.
hidden
=
YES
;
self
.
logoHud
.
center
=
AppDelegate
.
visibleController
.
view
.
center
;
self
.
logoHud
.
center
=
[
GMBaseTool
getCurrentViewController
]
.
view
.
center
;
}
}
return
self
;
return
self
;
}
}
...
@@ -76,7 +78,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
...
@@ -76,7 +78,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
return
;
return
;
}
}
[
AppDelegate
.
visibleController
.
view
addSubview
:
self
.
logoHud
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
self
.
logoHud
];
self
.
logoHud
.
hidden
=
NO
;
self
.
logoHud
.
hidden
=
NO
;
_clientRole
=
TTTRtc_ClientRole_Anchor
;
_clientRole
=
TTTRtc_ClientRole_Anchor
;
_extensionDict
=
extentsionDict
;
_extensionDict
=
extentsionDict
;
...
@@ -101,7 +103,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
...
@@ -101,7 +103,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
//如果相机或是麦克风权限必须获取才能视频通话
//如果相机或是麦克风权限必须获取才能视频通话
return
;
return
;
}
}
[
AppDelegate
.
visibleController
.
view
addSubview
:
self
.
logoHud
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
self
.
logoHud
];
_clientRole
=
TTTRtc_ClientRole_Broadcaster
;
_clientRole
=
TTTRtc_ClientRole_Broadcaster
;
_extensionDict
=
extentsionDict
;
_extensionDict
=
extentsionDict
;
TTManager
=
[
GMRtcManager
sharedRtcManager
];
TTManager
=
[
GMRtcManager
sharedRtcManager
];
...
@@ -112,7 +114,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
...
@@ -112,7 +114,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
#pragma mark - 初始化直播间
#pragma mark - 初始化直播间
-
(
void
)
userLoginVideoRoomModel
:
(
GMVideoTelephoneModel
*
)
model
{
-
(
void
)
userLoginVideoRoomModel
:
(
GMVideoTelephoneModel
*
)
model
{
_uid
=
GMLoginManager
.
shareInstance
.
user
.
userId
;
_uid
=
(
NSInteger
)[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_userId"
]
;
_channelId
=
model
.
channelId
;
_channelId
=
model
.
channelId
;
_pushURL
=
model
.
streamUrl
;
_pushURL
=
model
.
streamUrl
;
_neteaseModel
=
model
.
neteaseIm
;
_neteaseModel
=
model
.
neteaseIm
;
...
@@ -160,7 +162,6 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
...
@@ -160,7 +162,6 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
@"consultation_record_id"
:
TTManager
.
consultationRecordId
@"consultation_record_id"
:
TTManager
.
consultationRecordId
};
};
[[
GMNimChannelManager
shareInstance
]
doInviteJoinWithChannelId
:
_neteaseModel
.
channelId
accountId
:
_neteaseModel
.
toAccountId
customInfo
:
[
NSDictionary
dictionaryToJson
:
customInfo
]
resultBlock
:^
(
BOOL
isSuccess
)
{
[[
GMNimChannelManager
shareInstance
]
doInviteJoinWithChannelId
:
_neteaseModel
.
channelId
accountId
:
_neteaseModel
.
toAccountId
customInfo
:
[
NSDictionary
dictionaryToJson
:
customInfo
]
resultBlock
:^
(
BOOL
isSuccess
)
{
debugLog
(
@"doInviteJoinWithChannelId %d"
,
isSuccess
?
1
:
0
);
}];
}];
}
}
}];
}];
...
@@ -230,16 +231,16 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
...
@@ -230,16 +231,16 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
NSString
*
doctorId
=
counsellorType
==
1
?
TTManager
.
vidoeTelephoneModel
.
counsellorInfo
.
doctorId
:
TTManager
.
vidoeTelephoneModel
.
counsellorInfo
.
id
;
NSString
*
doctorId
=
counsellorType
==
1
?
TTManager
.
vidoeTelephoneModel
.
counsellorInfo
.
doctorId
:
TTManager
.
vidoeTelephoneModel
.
counsellorInfo
.
id
;
[
self
clickConfireBtnPhobo
:
counsellorType
consultationType
:
consultationType
doctorId
:
doctorId
];
[
self
clickConfireBtnPhobo
:
counsellorType
consultationType
:
consultationType
doctorId
:
doctorId
];
//确认订单
//确认订单
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceInfoSureOrder
:
self
.
messageDict
[
@"order_no"
]
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceInfoSureOrder
:
self
.
messageDict
[
@"order_no"
]
SuccessBlock
:
^
(
id
response
)
{
GMToFaceOrderInfoModel
*
infoModel
=
[[
GMToFaceOrderInfoModel
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMToFaceOrderInfoModel
*
infoModel
=
[[
GMToFaceOrderInfoModel
alloc
]
initWithDictionary
:
response
error
:
nil
];
infoModel
.
consultationRecordId
=
TTManager
.
consultationRecordId
;
infoModel
.
consultationRecordId
=
TTManager
.
consultationRecordId
;
GMSureOrderPopView
*
popView
=
[[
GMSureOrderPopView
alloc
]
init
];
GMSureOrderPopView
*
popView
=
[[
GMSureOrderPopView
alloc
]
init
];
popView
.
isCloseBtnHidden
=
YES
;
popView
.
isCloseBtnHidden
=
YES
;
popView
.
infoModel
=
infoModel
;
popView
.
infoModel
=
infoModel
;
[
popView
clickConfireBtnPhobo
:
counsellorType
consultationType
:
consultationType
doctorId
:
doctorId
];
[
popView
clickConfireBtnPhobo
:
counsellorType
consultationType
:
consultationType
doctorId
:
doctorId
];
[[
AppDelegate
shareInstance
].
window
addSubview
:
popView
];
[[
GMBaseTool
mainWindow
]
addSubview
:
popView
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
}];
}];
}
}
...
...
GMAILab/Classes/ToFace/VideoTelephone/manager/GMVideoPhobos.m
View file @
14d10884
...
@@ -7,6 +7,9 @@
...
@@ -7,6 +7,9 @@
//
//
#import "GMVideoPhobos.h"
#import "GMVideoPhobos.h"
@import
GMFoundation
;
@import
GMPhobos
;
@import
GMBase
;
@implementation
GMVideoPhobos
@implementation
GMVideoPhobos
/**
/**
...
...
GMAILab/Classes/ToFace/VideoTelephone/manager/GMVideoTelephoneRequestTool.m
View file @
14d10884
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
//
//
#import "GMVideoTelephoneRequestTool.h"
#import "GMVideoTelephoneRequestTool.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
@implementation
GMVideoTelephoneRequestTool
@implementation
GMVideoTelephoneRequestTool
...
...
GMAILab/Classes/ToFace/VideoTelephone/model/GMConsultationInfoModel.h
View file @
14d10884
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
//
//
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
GMConsultationInfoModel
@end
@protocol
GMConsultationInfoModel
@end
...
...
GMAILab/Classes/ToFace/VideoTelephone/model/GMRecommendShopingModel.h
View file @
14d10884
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMRecommendShopingModel
:
GMObject
@interface
GMRecommendShopingModel
:
GMObject
...
...
GMAILab/Classes/ToFace/VideoTelephone/model/GMTelephoneRecommodWelfareModel.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/VideoTelephone/model/GMTelphoneStatusModel.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/VideoTelephone/model/GMUserInfoModel.h
View file @
14d10884
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
//
//
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@protocol
GMUserInfoModel
@end
@protocol
GMUserInfoModel
@end
...
...
GMAILab/Classes/ToFace/VideoTelephone/model/GMVideoTelephoneModel.h
View file @
14d10884
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#import "GMUserInfoModel.h"
#import "GMUserInfoModel.h"
#import "GMConsultationInfoModel.h"
#import "GMConsultationInfoModel.h"
@import
GMBase
;
@class
GMTelephoneDoctorModel
;
@class
GMTelephoneDoctorModel
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMAISearchNavigationView.h
0 → 100644
View file @
14d10884
//
// GMSearchNavigationView.h
// Gengmei
//
// Created by ioszhb on 2019/2/1.
// Copyright © 2019 更美互动信息科技有限公司. All rights reserved.
//
#import "GMLibraryHeader.h"
@protocol
GMSearchNavigationViewDelegate
;
@interface
GMAISearchNavigationView
:
GMView
@property
(
nonatomic
,
assign
)
id
<
GMSearchNavigationViewDelegate
>
delegate
;
@property
(
nonatomic
,
assign
)
BOOL
showCancelButton
;
@property
(
nonatomic
,
strong
)
UITextField
*
textField
;
-
(
void
)
setShowCancelButton
:(
BOOL
)
showCancelButton
animated
:(
BOOL
)
animated
;
/**
* @brief 重了写该方法,以让搜索栏开始、停止输入
*
*/
-
(
BOOL
)
becomeFirstResponder
;
-
(
BOOL
)
resignFirstResponder
;
@end
@protocol
GMSearchNavigationViewDelegate
<
NSObject
>
-
(
void
)
searchNavigationCancelButtonClick
;
@end
GMAILab/Classes/ToFace/VideoTelephone/view/GMAISearchNavigationView.m
0 → 100644
View file @
14d10884
//
// GMAISearchNavigationView.m
// Gengmei
//
// Created by ioszhb on 2019/2/1.
// Copyright © 2019 更美互动信息科技有限公司. All rights reserved.
//
#import "GMAISearchNavigationView.h"
@interface
GMAISearchNavigationView
()
<
UITextFieldDelegate
>
@property
(
nonatomic
,
strong
)
GMButton
*
cancelButton
;
/// textFiledCover
@property
(
nonatomic
,
strong
)
GMView
*
textCoverView
;
@end
@implementation
GMAISearchNavigationView
-
(
void
)
setup
{
[
super
setup
];
[
self
setupSubviews
];
[
self
setupConstraints
];
}
-
(
void
)
setupSubviews
{
[
self
addSubview
:
self
.
textField
];
[
self
addSubview
:
self
.
cancelButton
];
[
self
.
textField
addSubview
:
self
.
textCoverView
];
}
-
(
void
)
setupConstraints
{
[
self
.
textField
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
6
);
make
.
bottom
.
mas_equalTo
(
-
6
);
make
.
left
.
mas_equalTo
(
20
);
}];
[
self
.
cancelButton
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
.
textField
.
mas_right
).
offset
(
20
);
make
.
right
.
mas_equalTo
(
-
20
);
make
.
top
.
mas_equalTo
(
0
);
make
.
bottom
.
mas_equalTo
(
0
);
make
.
width
.
mas_equalTo
(
32
);
}];
[
self
.
textCoverView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
edges
.
mas_equalTo
(
0
);
}];
}
-
(
void
)
updateSuberConstraints
{
[
self
.
cancelButton
mas_updateConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
mas_equalTo
(
_showCancelButton
?
-
20
:
0
);
make
.
width
.
mas_equalTo
(
_showCancelButton
?
32
:
0
);
}];
}
#pragma mark - Setter
-
(
void
)
setShowCancelButton
:
(
BOOL
)
showCancelButton
{
[
self
setShowCancelButton
:
showCancelButton
animated
:
YES
];
}
-
(
void
)
setShowCancelButton
:
(
BOOL
)
showCancelButton
animated
:
(
BOOL
)
animated
{
_showCancelButton
=
showCancelButton
;
[
self
updateSuberConstraints
];
if
(
animated
)
{
[
UIView
animateWithDuration
:
0
.
2
animations
:
^
{
[
self
layoutIfNeeded
];
}];
}
}
#pragma mark - Action
-
(
void
)
cancelAction
{
if
([
self
.
delegate
respondsToSelector
:
@selector
(
searchNavigationCancelButtonClick
)])
{
[
self
.
delegate
searchNavigationCancelButtonClick
];
}
}
/// 手动点击开始文本编辑
-
(
void
)
beiginTextEdit
{
[
Phobos
track
:
@"on_click_navbar_search"
attributes
:@{
@"page_name"
:
self
.
pageName
}];
[
self
.
textField
becomeFirstResponder
];
}
#pragma mark - 重写
-
(
BOOL
)
resignFirstResponder
{
self
.
showCancelButton
=
NO
;
[
_textField
resignFirstResponder
];
return
[
super
resignFirstResponder
];
}
-
(
BOOL
)
becomeFirstResponder
{
self
.
showCancelButton
=
YES
;
[
_textField
becomeFirstResponder
];
return
[
super
becomeFirstResponder
];
}
#pragma mark - getter subviews
-
(
UITextField
*
)
textField
{
if
(
!
_textField
)
{
_textField
=
[
UITextField
new
];
_textField
.
delegate
=
self
;
_textField
.
backgroundColor
=
UIColor
.
background
;
_textField
.
enablesReturnKeyAutomatically
=
NO
;
_textField
.
returnKeyType
=
UIReturnKeySearch
;
_textField
.
clearButtonMode
=
UITextFieldViewModeWhileEditing
;
_textField
.
layer
.
cornerRadius
=
16
;
_textField
.
layer
.
masksToBounds
=
YES
;
_textField
.
attributedPlaceholder
=
[[
NSAttributedString
alloc
]
initWithString
:
@"搜索项目、美购、医生"
attributes
:@{
NSFontAttributeName:
[
UIFont
systemFontOfSize
:
14
],
NSForegroundColorAttributeName:
UIColor
.
auxiliaryTextLight
}];
_textField
.
hasCloseButton
=
YES
;
UIImage
*
imge
=
[
UIImage
imageNamed
:
@"home_new_search"
];
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
30
,
30
)];
UIImageView
*
leftView
=
[[
UIImageView
alloc
]
initWithImage
:
imge
];
leftView
.
image
=
imge
;
leftView
.
frame
=
CGRectMake
(
0
,
0
,
imge
.
size
.
width
,
imge
.
size
.
height
);
leftView
.
center
=
view
.
center
;
[
view
addSubview
:
leftView
];
_textField
.
leftView
=
view
;
_textField
.
leftViewMode
=
UITextFieldViewModeAlways
;
_textField
.
font
=
[
UIFont
gmFont
:
14
];
_textField
.
textColor
=
[
UIColor
blackColor
];
}
return
_textField
;
}
-
(
GMButton
*
)
cancelButton
{
if
(
!
_cancelButton
)
{
_cancelButton
=
[
GMButton
new
];
_cancelButton
.
backgroundColor
=
[
UIColor
whiteColor
];
[
_cancelButton
addTarget
:
self
action
:
@selector
(
cancelAction
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_cancelButton
setTitle
:
@"取消"
forState
:
UIControlStateNormal
];
[
_cancelButton
setTitleColor
:
UIColor
.
headlineText
forState
:
UIControlStateNormal
];
_cancelButton
.
titleLabel
.
font
=
[
UIFont
gmFont
:
15
];
}
return
_cancelButton
;
}
-
(
GMView
*
)
textCoverView
{
if
(
!
_textCoverView
)
{
_textCoverView
=
[
GMView
new
];
_textCoverView
.
userInteractionEnabled
=
YES
;
_textCoverView
.
backgroundColor
=
[
UIColor
clearColor
];
UITapGestureRecognizer
*
tapGesture
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
beiginTextEdit
)];
[
_textCoverView
addGestureRecognizer
:
tapGesture
];
}
return
_textCoverView
;
}
@end
GMAILab/Classes/ToFace/VideoTelephone/view/GMDoctorRecommendShoppingView.h
View file @
14d10884
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#import "GMVideoTelephoneModel.h"
#import "GMVideoTelephoneModel.h"
#import <GMKit/GMView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMDoctorRecommendShoppingView.m
View file @
14d10884
...
@@ -9,12 +9,14 @@
...
@@ -9,12 +9,14 @@
#import "GMDoctorRecommendShoppingView.h"
#import "GMDoctorRecommendShoppingView.h"
#import "GMDoctorShoppingViewCell.h"
#import "GMDoctorShoppingViewCell.h"
#import "GMDoctorShopingViewSelectedCell.h"
#import "GMDoctorShopingViewSelectedCell.h"
#import "GMSearchNavigationView.h"
#import "GM
AI
SearchNavigationView.h"
#import "GMRecommendShopingModel.h"
#import "GMRecommendShopingModel.h"
#import "GMRtcManager.h"
#import "GMRtcManager.h"
#import "GMCommonEmptyView.h"
#import "GM
ToFace
CommonEmptyView.h"
#import "GMContextualAcitonImage.h"
#import "GMContextualAcitonImage.h"
#import <GMKit/GMView.h>
#import "RequestHeader.h"
@import
GMNetworking
;
@protocol
GMShoppingTitleView1Delegate
<
NSObject
>
@protocol
GMShoppingTitleView1Delegate
<
NSObject
>
-
(
void
)
shoppingTitleView1TureBtnClick
;
-
(
void
)
shoppingTitleView1TureBtnClick
;
...
@@ -159,8 +161,8 @@
...
@@ -159,8 +161,8 @@
@interface
GMDoctorRecommendShoppingView
()
<
UITableViewDelegate
,
UITableViewDataSource
,
UITextFieldDelegate
,
GMShoppingTitleViewDelegate
,
GMShoppingTitleView1Delegate
>
@interface
GMDoctorRecommendShoppingView
()
<
UITableViewDelegate
,
UITableViewDataSource
,
UITextFieldDelegate
,
GMShoppingTitleViewDelegate
,
GMShoppingTitleView1Delegate
>
@property
(
nonatomic
,
strong
)
GMTableView
*
tableView
;
@property
(
nonatomic
,
strong
)
GMTableView
*
tableView
;
@property
(
nonatomic
,
strong
)
GMSearchNavigationView
*
searchNavigationView
;
@property
(
nonatomic
,
strong
)
GM
AI
SearchNavigationView
*
searchNavigationView
;
@property
(
nonatomic
,
strong
)
GMCommonEmptyView
*
emptyView
;
@property
(
nonatomic
,
strong
)
GM
ToFace
CommonEmptyView
*
emptyView
;
@property
(
nonatomic
,
strong
)
GMShoppingTitleView
*
titltView
;
@property
(
nonatomic
,
strong
)
GMShoppingTitleView
*
titltView
;
@property
(
nonatomic
,
strong
)
GMShoppingTitleView1
*
titltView1
;
@property
(
nonatomic
,
strong
)
GMShoppingTitleView1
*
titltView1
;
@property
(
nonatomic
,
assign
)
GMShoppingViewSelecteType
seletedType
;
@property
(
nonatomic
,
assign
)
GMShoppingViewSelecteType
seletedType
;
...
@@ -468,15 +470,15 @@
...
@@ -468,15 +470,15 @@
}
}
-
(
void
)
addemptyView
{
-
(
void
)
addemptyView
{
_emptyView
=
[[
GMCommonEmptyView
alloc
]
initWithFrame
:
CGRectZero
];
_emptyView
=
[[
GM
ToFace
CommonEmptyView
alloc
]
initWithFrame
:
CGRectZero
];
_emptyView
.
hidden
=
YES
;
_emptyView
.
hidden
=
YES
;
_emptyView
.
emptyLabel
.
text
=
@"你的推荐带空空如也"
;
_emptyView
.
emptyLabel
.
text
=
@"你的推荐带空空如也"
;
[
self
addSubview
:
_emptyView
];
[
self
addSubview
:
_emptyView
];
}
}
-
(
GMSearchNavigationView
*
)
searchNavigationView
{
-
(
GM
AI
SearchNavigationView
*
)
searchNavigationView
{
if
(
!
_searchNavigationView
)
{
if
(
!
_searchNavigationView
)
{
_searchNavigationView
=
[
GMSearchNavigationView
new
];
_searchNavigationView
=
[
GM
AI
SearchNavigationView
new
];
_searchNavigationView
.
textField
.
delegate
=
self
;
_searchNavigationView
.
textField
.
delegate
=
self
;
_searchNavigationView
.
hidden
=
YES
;
_searchNavigationView
.
hidden
=
YES
;
_searchNavigationView
.
textField
.
placeholder
=
@"请输入美购名称"
;
_searchNavigationView
.
textField
.
placeholder
=
@"请输入美购名称"
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMDoctorShopingViewSelectedCell.h
View file @
14d10884
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Created by 刘鹿杰的mac on 2020/2/25.
// Created by 刘鹿杰的mac on 2020/2/25.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMLibraryHeader.h"
@class
GMRecommendShopingModel
;
@class
GMRecommendShopingModel
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMDoctorShopingViewSelectedCell.m
View file @
14d10884
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
#import "GMDoctorShopingViewSelectedCell.h"
#import "GMDoctorShopingViewSelectedCell.h"
#import "GMRecommendShopingModel.h"
#import "GMRecommendShopingModel.h"
@interface
GMDoctorShopingViewSelectedCell
()
@interface
GMDoctorShopingViewSelectedCell
()
@property
(
nonatomic
,
strong
)
GMButton
*
seleBtn
;
@property
(
nonatomic
,
strong
)
GMButton
*
seleBtn
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMDoctorShoppingViewCell.h
View file @
14d10884
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Created by 刘鹿杰的mac on 2020/2/24.
// Created by 刘鹿杰的mac on 2020/2/24.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMLibraryHeader.h"
@class
GMRecommendShopingModel
;
@class
GMRecommendShopingModel
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMDoctorTelephoneFunctionView.m
View file @
14d10884
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#import "GMDoctorTelephoneFunctionView.h"
#import "GMDoctorTelephoneFunctionView.h"
#import "GMTelephoneProxy.h"
#import "GMTelephoneProxy.h"
@import
GMBase
;
@implementation
GMDoctorTelephoneFunctionView
@implementation
GMDoctorTelephoneFunctionView
{
{
UIButton
*
shoppingBtn
;
//购物
UIButton
*
shoppingBtn
;
//购物
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMLinkPromptView.h
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#import "GMLibraryHeader.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMLinkPromptView
:
UIView
@interface
GMLinkPromptView
:
UIView
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMTelephoneAttentionView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMTelephoneAttentionView.h"
#import "GMTelephoneAttentionView.h"
#import "GMLibraryHeader.h"
@implementation
GMTelephoneAttentionView
@implementation
GMTelephoneAttentionView
{
{
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMTelephoneBtnView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMTelephoneBtnView.h"
#import "GMTelephoneBtnView.h"
#import "GMLibraryHeader.h"
@implementation
GMTelephoneBtnView
@implementation
GMTelephoneBtnView
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMTelephoneShoppingEmptyView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMTelephoneShoppingEmptyView.h"
#import "GMTelephoneShoppingEmptyView.h"
#import "GMLibraryHeader.h"
@implementation
GMTelephoneShoppingEmptyView
@implementation
GMTelephoneShoppingEmptyView
{
{
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMTelephoneView.m
View file @
14d10884
...
@@ -9,9 +9,11 @@
...
@@ -9,9 +9,11 @@
#import "GMTelephoneView.h"
#import "GMTelephoneView.h"
#import "GMTelephoneBtnView.h"
#import "GMTelephoneBtnView.h"
#import "GMVideoTelephoneRequestTool.h"
#import "GMVideoTelephoneRequestTool.h"
#import "UITabBar+
ViewConstant
.h"
#import "UITabBar+
BottomSafe
.h"
#import "GMUserFillMessageView.h"
#import "GMUserFillMessageView.h"
#import "GMVideoPhobos.h"
#import "GMVideoPhobos.h"
#import "GMLibraryHeader.h"
@implementation
GMTelephoneView
@implementation
GMTelephoneView
{
{
GMTelephoneBtnView
*
jieting
;
GMTelephoneBtnView
*
jieting
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMUserFillMessageView.m
View file @
14d10884
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
//
//
#import "GMUserFillMessageView.h"
#import "GMUserFillMessageView.h"
#import "UITabBar+
ViewConstant
.h"
#import "UITabBar+
BottomSafe
.h"
#import "GMLibraryHeader.h"
@implementation
GMUserFillMessageView
@implementation
GMUserFillMessageView
{
{
UIImageView
*
_iconImgV
;
UIImageView
*
_iconImgV
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMUserTelephoneFunctionView.m
View file @
14d10884
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#import "GMUserTelephoneFunctionView.h"
#import "GMUserTelephoneFunctionView.h"
#import "GMTelephoneProxy.h"
#import "GMTelephoneProxy.h"
@import
GMKit
;
@implementation
GMUserTelephoneFunctionView
@implementation
GMUserTelephoneFunctionView
{
{
UIButton
*
shoppingBtn
;
//购物
UIButton
*
shoppingBtn
;
//购物
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMVideoTelephoneRecommendShoppingView.m
View file @
14d10884
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#import "GMVideoTelephoneRecommodWelfareTableViewCell.h"
#import "GMVideoTelephoneRecommodWelfareTableViewCell.h"
#import "GMTelephoneShoppingEmptyView.h"
#import "GMTelephoneShoppingEmptyView.h"
#import "GMVideoTelephoneRequestTool.h"
#import "GMVideoTelephoneRequestTool.h"
#import "GMLibraryHeader.h"
@interface
GMVideoTelephoneRecommendShoppingView
()
<
UITableViewDelegate
,
UITableViewDataSource
>
@interface
GMVideoTelephoneRecommendShoppingView
()
<
UITableViewDelegate
,
UITableViewDataSource
>
{
{
...
...
GMAILab/Classes/ToFace/VideoTelephone/view/GMVideoTelephoneRecommodWelfareTableViewCell.m
View file @
14d10884
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
//
//
#import "GMVideoTelephoneRecommodWelfareTableViewCell.h"
#import "GMVideoTelephoneRecommodWelfareTableViewCell.h"
@import
GMBase
;
@import
SDWebImage
;
@implementation
GMVideoTelephoneRecommodWelfareTableViewCell
@implementation
GMVideoTelephoneRecommodWelfareTableViewCell
{
{
UIImageView
*
_iconImg
;
UIImageView
*
_iconImg
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/window/GMUserVideoTelephoneWindow.m
View file @
14d10884
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
#import "GMLinkPromptView.h"
#import "GMLinkPromptView.h"
#import "GMTelephoneAudioPlay.h"
#import "GMTelephoneAudioPlay.h"
#import "GMVideoPhobos.h"
#import "GMVideoPhobos.h"
#import <GMBase/GMBaseTool.h>
@interface
GMUserVideoTelephoneWindow
()
<
TTTRtcEngineDelegate
,
GMTelephoneFunctionViewDelegate
,
GMRecommendShoppingDelegate
,
GMTelephoneAttentionViewDelegate
>
@interface
GMUserVideoTelephoneWindow
()
<
TTTRtcEngineDelegate
,
GMTelephoneFunctionViewDelegate
,
GMRecommendShoppingDelegate
,
GMTelephoneAttentionViewDelegate
>
{
{
...
@@ -193,11 +196,6 @@
...
@@ -193,11 +196,6 @@
#pragma mark - 点击美购进入美购详情
#pragma mark - 点击美购进入美购详情
-
(
void
)
selectedIndex
:
(
NSInteger
)
index
welfareId
:
(
NSString
*
)
welfareId
{
-
(
void
)
selectedIndex
:
(
NSInteger
)
index
welfareId
:
(
NSString
*
)
welfareId
{
[
self
windowMini
];
[
self
windowMini
];
GMWelfareDetailGrayController
*
vc
=
[
GMWelfareDetailGrayController
new
];
//@"5708692"
vc
.
welfareId
=
welfareId
;
vc
.
referer
=
self
.
pageName
;
vc
.
customRefererLink
=
self
.
pageName
;
[
Phobos
track
:
@"welfare_multiattribute_click_add"
attributes
:@{
[
Phobos
track
:
@"welfare_multiattribute_click_add"
attributes
:@{
@"page_name"
:
self
.
pageName
,
@"page_name"
:
self
.
pageName
,
@"referrer_tab_name"
:
SafeString
(
self
.
referrerTabName
),
@"referrer_tab_name"
:
SafeString
(
self
.
referrerTabName
),
...
@@ -205,7 +203,8 @@
...
@@ -205,7 +203,8 @@
@"doctor_id"
:
SafeString
(
_TTManager
.
vidoeTelephoneModel
.
counsellorInfo
.
doctorId
)
,
@"doctor_id"
:
SafeString
(
_TTManager
.
vidoeTelephoneModel
.
counsellorInfo
.
doctorId
)
,
@"referrer"
:
self
.
referer
,
@"referrer"
:
self
.
referer
,
}];
}];
[
AppDelegate
.
visibleController
.
navigationController
pushViewController
:
vc
animated
:
YES
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"gengmei://service?service_id=%@&referer=%@&customRefererLink=%@"
,
welfareId
,
self
.
pageName
,
self
.
pageName
];
[[
GMRouter
sharedInstance
]
pushScheme
:
url
];
}
}
#pragma mark - 关闭购物页面
#pragma mark - 关闭购物页面
...
@@ -353,8 +352,8 @@
...
@@ -353,8 +352,8 @@
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
@"继续等待"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{}]];
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
@"继续等待"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{}]];
UIAlertAction
*
action
=
alert
.
actions
.
firstObject
;
UIAlertAction
*
action
=
alert
.
actions
.
firstObject
;
//这个key是用 runtime属性列表Ivar遍历得到的
//这个key是用 runtime属性列表Ivar遍历得到的
[
action
setValue
:
GMColor282828
forKey
:
@"titleTextColor"
];
[
action
setValue
:
RGBCOLOR_HEX
(
0x282828
)
forKey
:
@"titleTextColor"
];
[
AppDelegate
.
visibleController
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
}
#pragma mark - 退出房间 yes 主动离线 no 被动
#pragma mark - 退出房间 yes 主动离线 no 被动
...
@@ -375,7 +374,7 @@
...
@@ -375,7 +374,7 @@
GMTelphoneStatusModel
*
model
=
message
[
@"model"
];
GMTelphoneStatusModel
*
model
=
message
[
@"model"
];
_TTManager
.
totalTime
=
[
model
.
callDuration
intValue
];
_TTManager
.
totalTime
=
[
model
.
callDuration
intValue
];
if
(
_TTManager
.
totalTime
==
0
&&
status
)
{
//没有接通并主动离开的时候会退款
if
(
_TTManager
.
totalTime
==
0
&&
status
)
{
//没有接通并主动离开的时候会退款
[
AppDelegate
.
visibleController
toast
:
@"视频面诊已取消,本次视频面诊订单金额将原路退还至您的账户中"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"视频面诊已取消,本次视频面诊订单金额将原路退还至您的账户中"
];
}
}
}
}
if
([
self
.
delgate
respondsToSelector
:
@selector
(
nomalExitRoom
)])
{
if
([
self
.
delgate
respondsToSelector
:
@selector
(
nomalExitRoom
)])
{
...
...
GMAILab/Classes/ToFace/VideoTelephone/window/GMVideoTelephoneWindow.h
View file @
14d10884
...
@@ -9,8 +9,6 @@
...
@@ -9,8 +9,6 @@
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#import "GMAVRegionView.h"
#import "GMAVRegionView.h"
#import "GMRtcManager.h"
#import "GMRtcManager.h"
#import "GMWelfareDetailGrayController.h"
#import "AppDelegate.h"
#import "GMVideoTelephoneRequestTool.h"
#import "GMVideoTelephoneRequestTool.h"
@import
CoreTelephony
;
@import
CoreTelephony
;
...
...
GMAILab/Classes/ToFace/VideoTelephone/window/GMVideoTelephoneWindow.m
View file @
14d10884
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
//
//
#import "GMVideoTelephoneWindow.h"
#import "GMVideoTelephoneWindow.h"
#import "AppDelegate+AppInit.h"
#import <GMBase/GMBaseTool.h>
@import
GMHud
;
@interface
GMVideoTelephoneWindow
()
@interface
GMVideoTelephoneWindow
()
@end
@end
...
@@ -19,7 +21,7 @@
...
@@ -19,7 +21,7 @@
self
=
[
super
initWithFrame
:
frame
];
self
=
[
super
initWithFrame
:
frame
];
if
(
self
)
{
if
(
self
)
{
self
.
layer
.
masksToBounds
=
YES
;
self
.
layer
.
masksToBounds
=
YES
;
UIViewController
*
vc
=
AppDelegate
.
visibleController
.
navigationController
.
viewControllers
.
lastObject
;
UIViewController
*
vc
=
[
GMBaseTool
getCurrentViewController
]
.
navigationController
.
viewControllers
.
lastObject
;
self
.
referer
=
vc
.
pageName
;
self
.
referer
=
vc
.
pageName
;
self
.
referrerTabName
=
vc
.
tabName
;
self
.
referrerTabName
=
vc
.
tabName
;
...
@@ -27,10 +29,7 @@
...
@@ -27,10 +29,7 @@
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
userExitTime
)
name
:
@"gm_telephone_cancal"
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
userExitTime
)
name
:
@"gm_telephone_cancal"
object
:
nil
];
//网络发生变化
//网络发生变化
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
netWorkingChanged
:
)
name
:
@"gm_networkingChang"
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
netWorkingChanged
:
)
name
:
@"gm_networkingChang"
object
:
nil
];
//当用手机网络进入直播间时
if
([
AppDelegate
shareInstance
].
preNetworkStatus
==
1
)
{
[
GMHudModule
showWarning
:
@"当前为非WiFi环境,请注意流量消耗!"
];
}
}
}
return
self
;
return
self
;
...
...
GMAILab/Classes/ToFace/Waiting/GMNoticeInfoObject.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by yefengming on 2020/3/10.
// Created by yefengming on 2020/3/10.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/Waiting/GMVideoWaitingView.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by yefengming on 2020/3/6.
// Created by yefengming on 2020/3/6.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMPopupBgView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/Waiting/GMVideoWaitingView.m
View file @
14d10884
...
@@ -8,9 +8,12 @@
...
@@ -8,9 +8,12 @@
#import "GMVideoWaitingView.h"
#import "GMVideoWaitingView.h"
#import "GMWaitingSuccessView.h"
#import "GMWaitingSuccessView.h"
#import "UIImage+WebP.h"
#import "GMNoticeInfoObject.h"
#import "GMNoticeInfoObject.h"
#import "GMVideoPhobos.h"
#import "GMVideoPhobos.h"
#import "GMLibraryHeader.h"
#import <GMBase/GMBaseTool.h>
#define centerPoint CGPointMake(MAINSCREEN_WIDTH / 2, MAINSCREEN_HEIGHT / 2)
#define centerPoint CGPointMake(MAINSCREEN_WIDTH / 2, MAINSCREEN_HEIGHT / 2)
#define circleAnimaitionTime 2
#define circleAnimaitionTime 2
#define fromRadius sqrtf((centerPoint.x * centerPoint.x) + (centerPoint.y * centerPoint.y))
#define fromRadius sqrtf((centerPoint.x * centerPoint.x) + (centerPoint.y * centerPoint.y))
...
@@ -42,13 +45,13 @@
...
@@ -42,13 +45,13 @@
self
.
animationView
.
hidden
=
NO
;
self
.
animationView
.
hidden
=
NO
;
self
.
topLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
self
.
topLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
self
.
topLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
topLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
topLabel
.
text
=
@"正在匹配"
;
self
.
topLabel
.
text
=
@"正在匹配"
;
self
.
topLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
topLabel
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
.
container
addSubview
:
self
.
topLabel
];
[
self
.
container
addSubview
:
self
.
topLabel
];
self
.
bottomLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
self
.
bottomLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
self
.
bottomLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
bottomLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
bottomLabel
.
text
=
@"60s"
;
self
.
bottomLabel
.
text
=
@"60s"
;
[
self
.
container
addSubview
:
self
.
bottomLabel
];
[
self
.
container
addSubview
:
self
.
bottomLabel
];
...
@@ -56,13 +59,13 @@
...
@@ -56,13 +59,13 @@
self
.
cancelBtn
=
[[
GMButton
alloc
]
init
];
self
.
cancelBtn
=
[[
GMButton
alloc
]
init
];
[
self
.
cancelBtn
setTitle
:
@"取消连线"
forState
:
UIControlStateNormal
];
[
self
.
cancelBtn
setTitle
:
@"取消连线"
forState
:
UIControlStateNormal
];
[
self
.
cancelBtn
setTitleColor
:
UIColor
.
whiteColor
forState
:
UIControlStateNormal
];
[
self
.
cancelBtn
setTitleColor
:
UIColor
.
whiteColor
forState
:
UIControlStateNormal
];
self
.
cancelBtn
.
backgroundColor
=
GMColorCCCCCC
;
self
.
cancelBtn
.
backgroundColor
=
RGBCOLOR_HEX
(
0xCCCCCC
)
;
self
.
cancelBtn
.
layer
.
cornerRadius
=
23
;
self
.
cancelBtn
.
layer
.
cornerRadius
=
23
;
self
.
cancelBtn
.
layer
.
masksToBounds
=
YES
;
self
.
cancelBtn
.
layer
.
masksToBounds
=
YES
;
[
self
.
container
addSubview
:
self
.
cancelBtn
];
[
self
.
container
addSubview
:
self
.
cancelBtn
];
[
self
.
cancelBtn
addTarget
:
self
action
:
@selector
(
cancelBtnClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
cancelBtn
addTarget
:
self
action
:
@selector
(
cancelBtnClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
self
.
infoLabel
=
[
GMLabel
labelWithTextColor
:
GMColor464646
fontSize
:
14
];
self
.
infoLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x464646
)
fontSize
:
14
];
self
.
infoLabel
.
text
=
@"正在全力为您匹配"
;
self
.
infoLabel
.
text
=
@"正在全力为您匹配"
;
self
.
infoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
infoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
.
container
addSubview
:
self
.
infoLabel
];
[
self
.
container
addSubview
:
self
.
infoLabel
];
...
@@ -104,6 +107,15 @@
...
@@ -104,6 +107,15 @@
make
.
centerX
.
mas_equalTo
(
0
);
make
.
centerX
.
mas_equalTo
(
0
);
}];
}];
}
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
-
(
void
)
startShowPhotoAnimation
{
-
(
void
)
startShowPhotoAnimation
{
CGPathRef
fromPath
=
_maskLayer
.
path
;
CGPathRef
fromPath
=
_maskLayer
.
path
;
CGPathRef
toPath
=
[
UIBezierPath
bezierPathWithArcCenter
:
centerPoint
radius
:
toRadius
startAngle
:
0
endAngle
:
2
*
M_PI
clockwise
:
YES
].
CGPath
;
CGPathRef
toPath
=
[
UIBezierPath
bezierPathWithArcCenter
:
centerPoint
radius
:
toRadius
startAngle
:
0
endAngle
:
2
*
M_PI
clockwise
:
YES
].
CGPath
;
...
@@ -167,7 +179,7 @@
...
@@ -167,7 +179,7 @@
self
.
currentTime
--
;
self
.
currentTime
--
;
if
(
self
.
currentTime
%
5
==
0
)
{
if
(
self
.
currentTime
%
5
==
0
)
{
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION_DISPATCH_INFO
method
:
GMHTTPMethodGet
parameters
:
nil
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
[
GMNetworking
requestOCWithApi
:
@"/api/consultation_counsel/get_current_dispatch_info"
method
:
GMHTTPMethodGet
parameters
:
nil
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
if
(
response
.
data
[
@"notice_info"
])
{
if
(
response
.
data
[
@"notice_info"
])
{
[
weakSelf
showSuccessView
];
[
weakSelf
showSuccessView
];
weakSelf
.
successView
.
object
=
[[
GMNoticeInfoObject
alloc
]
initWithDictionary
:
response
.
data
[
@"notice_info"
]
error
:
nil
];
weakSelf
.
successView
.
object
=
[[
GMNoticeInfoObject
alloc
]
initWithDictionary
:
response
.
data
[
@"notice_info"
]
error
:
nil
];
...
@@ -182,7 +194,7 @@
...
@@ -182,7 +194,7 @@
}
else
{
}
else
{
NSString
*
str
=
self
.
counsellorType
==
1
?
@"医生"
:
@"面诊师"
;
NSString
*
str
=
self
.
counsellorType
==
1
?
@"医生"
:
@"面诊师"
;
str
=
[
NSString
stringWithFormat
:
@"抱歉,暂无%@接单,请稍后再试,本次视频面诊订单金额将原路退还至您的账户中"
,
str
];
str
=
[
NSString
stringWithFormat
:
@"抱歉,暂无%@接单,请稍后再试,本次视频面诊订单金额将原路退还至您的账户中"
,
str
];
[
AppDelegate
.
visibleController
toast
:
str
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
str
];
[
self
invalidateCountDownTimer
];
[
self
invalidateCountDownTimer
];
[
self
cancelDispatch
];
[
self
cancelDispatch
];
[
self
hide
];
[
self
hide
];
...
@@ -193,7 +205,7 @@
...
@@ -193,7 +205,7 @@
}
}
-
(
void
)
cancelDispatch
{
-
(
void
)
cancelDispatch
{
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION_CANCEL_DISPATCH
method
:
GMHTTPMethodPost
parameters
:
nil
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
[
GMNetworking
requestOCWithApi
:
@"/api/consultation_counsel/cancel_dispatch"
method
:
GMHTTPMethodPost
parameters
:
nil
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
}];
}];
}
}
...
@@ -209,7 +221,7 @@
...
@@ -209,7 +221,7 @@
}
rightAlertAction
:^
{
}
rightAlertAction
:^
{
}];
}];
[
AppDelegate
.
visibleController
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
[
[
GMBaseTool
getCurrentViewController
]
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
}
}
}
}
...
@@ -227,7 +239,7 @@
...
@@ -227,7 +239,7 @@
}
}
-
(
void
)
waitViewHide
{
-
(
void
)
waitViewHide
{
[
AppDelegate
.
visibleController
toast
:
@"取消派单成功,本次视频面诊订单金额将原路退还至您的账户中"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"取消派单成功,本次视频面诊订单金额将原路退还至您的账户中"
];
[
self
invalidateCountDownTimer
];
[
self
invalidateCountDownTimer
];
[
self
removeAnimation
];
[
self
removeAnimation
];
[
self
hide
];
[
self
hide
];
...
@@ -244,7 +256,7 @@
...
@@ -244,7 +256,7 @@
-
(
GMWaitingSuccessView
*
)
successView
{
-
(
GMWaitingSuccessView
*
)
successView
{
if
(
!
_successView
)
{
if
(
!
_successView
)
{
_successView
=
[[
GMWaitingSuccessView
alloc
]
init
];
_successView
=
[[
GMWaitingSuccessView
alloc
]
init
];
[
AppDelegate
.
visibleController
.
view
addSubview
:
_successView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
_successView
];
}
}
return
_successView
;
return
_successView
;
}
}
...
...
GMAILab/Classes/ToFace/Waiting/GMWaitingSuccessView.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMNoticeInfoObject.h"
#import "GMNoticeInfoObject.h"
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/Waiting/GMWaitingSuccessView.m
View file @
14d10884
...
@@ -7,9 +7,12 @@
...
@@ -7,9 +7,12 @@
//
//
#import "GMWaitingSuccessView.h"
#import "GMWaitingSuccessView.h"
#import "Gengmei-Swift.h"
#import "GMUserVideoTelephoneLogin.h"
#import "GMUserVideoTelephoneLogin.h"
#import "GMLibraryHeader.h"
//#import <GMBase/GMBase-Swift.h>
#import <GMBaseSwift/GMBaseSwift-Swift.h>
//@import GMBaseSwift
@import
GMBaseSwift
;
@interface
GMWaitingSuccessView
()
@interface
GMWaitingSuccessView
()
{
{
NSTimer
*
_timer
;
NSTimer
*
_timer
;
...
@@ -40,21 +43,21 @@
...
@@ -40,21 +43,21 @@
self
.
doctorView
.
layer
.
masksToBounds
=
YES
;
self
.
doctorView
.
layer
.
masksToBounds
=
YES
;
[
self
.
container
addSubview
:
self
.
doctorView
];
[
self
.
container
addSubview
:
self
.
doctorView
];
self
.
nameLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
self
.
nameLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
self
.
nameLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
nameLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
[
self
.
container
addSubview
:
self
.
nameLabel
];
[
self
.
container
addSubview
:
self
.
nameLabel
];
self
.
infoLabel
=
[
GMLabel
labelWithTextColor
:
ALColor8E8E8E
fontSize
:
12
];
self
.
infoLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x8E8E8E
)
fontSize
:
12
];
[
self
.
container
addSubview
:
self
.
infoLabel
];
[
self
.
container
addSubview
:
self
.
infoLabel
];
self
.
hospitalLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
self
.
hospitalLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
self
.
hospitalLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
hospitalLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
[
self
.
container
addSubview
:
self
.
hospitalLabel
];
[
self
.
container
addSubview
:
self
.
hospitalLabel
];
self
.
rateLabel
=
[
GMLabel
labelWithTextColor
:
ALColor8E8E8E
fontSize
:
12
];
self
.
rateLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x8E8E8E
)
fontSize
:
12
];
[
self
.
container
addSubview
:
self
.
rateLabel
];
[
self
.
container
addSubview
:
self
.
rateLabel
];
self
.
projectLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
13
];
self
.
projectLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
13
];
self
.
projectLabel
.
text
=
@"擅长项目:"
;
self
.
projectLabel
.
text
=
@"擅长项目:"
;
[
self
.
container
addSubview
:
self
.
projectLabel
];
[
self
.
container
addSubview
:
self
.
projectLabel
];
...
@@ -64,17 +67,17 @@
...
@@ -64,17 +67,17 @@
[
self
.
container
addSubview
:
self
.
iconView
];
[
self
.
container
addSubview
:
self
.
iconView
];
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
@"- 匹配成功 -"
];
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
@"- 匹配成功 -"
];
[
attribute
addAttribute
:
NSForegroundColorAttributeName
value
:
GMColor4ABAB4
range
:
NSMakeRange
(
0
,
1
)];
[
attribute
addAttribute
:
NSForegroundColorAttributeName
value
:
RGBCOLOR_HEX
(
0x4ABAB4
)
range
:
NSMakeRange
(
0
,
1
)];
[
attribute
addAttribute
:
NSForegroundColorAttributeName
value
:
GMColor4ABAB4
range
:
NSMakeRange
(
7
,
1
)];
[
attribute
addAttribute
:
NSForegroundColorAttributeName
value
:
RGBCOLOR_HEX
(
0x4ABAB4
)
range
:
NSMakeRange
(
7
,
1
)];
self
.
successLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
self
.
successLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
self
.
successLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
successLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
successLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
successLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
self
.
successLabel
.
attributedText
=
attribute
;
self
.
successLabel
.
attributedText
=
attribute
;
[
self
.
container
addSubview
:
self
.
successLabel
];
[
self
.
container
addSubview
:
self
.
successLabel
];
NSMutableAttributedString
*
attribute2
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
@"5S 后开启摄像头进行视频通话
\n
建议您选择安静、光线充足的环境"
];
NSMutableAttributedString
*
attribute2
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
@"5S 后开启摄像头进行视频通话
\n
建议您选择安静、光线充足的环境"
];
[
attribute2
addAttribute
:
NSForegroundColorAttributeName
value
:
GMColor4ABAB4
range
:
NSMakeRange
(
0
,
2
)];
[
attribute2
addAttribute
:
NSForegroundColorAttributeName
value
:
RGBCOLOR_HEX
(
0x4ABAB4
)
range
:
NSMakeRange
(
0
,
2
)];
self
.
successInfoLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
14
];
self
.
successInfoLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
14
];
self
.
successInfoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
successInfoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
self
.
successInfoLabel
.
numberOfLines
=
0
;
self
.
successInfoLabel
.
numberOfLines
=
0
;
self
.
successInfoLabel
.
attributedText
=
attribute2
;
self
.
successInfoLabel
.
attributedText
=
attribute2
;
...
@@ -84,7 +87,7 @@
...
@@ -84,7 +87,7 @@
label
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEF8F7
);
label
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEF8F7
);
label
.
textAlignment
=
NSTextAlignmentCenter
;
label
.
textAlignment
=
NSTextAlignmentCenter
;
label
.
font
=
[
UIFont
gmFont
:
11
];
label
.
font
=
[
UIFont
gmFont
:
11
];
label
.
textColor
=
GMColor4DBBB5
;
label
.
textColor
=
RGBCOLOR_HEX
(
0x4DBBB5
)
;
label
.
paddingEdge
=
UIEdgeInsetsMake
(
1
,
11
,
1
,
11
);
label
.
paddingEdge
=
UIEdgeInsetsMake
(
1
,
11
,
1
,
11
);
label
.
layer
.
cornerRadius
=
ONE_PIXEL
+
1
;
label
.
layer
.
cornerRadius
=
ONE_PIXEL
+
1
;
label
.
layer
.
masksToBounds
=
YES
;
label
.
layer
.
masksToBounds
=
YES
;
...
@@ -153,7 +156,13 @@
...
@@ -153,7 +156,13 @@
selector
:
@selector
(
didBecomeActive
)
selector
:
@selector
(
didBecomeActive
)
name
:
UIApplicationDidBecomeActiveNotification
object
:
nil
];
name
:
UIApplicationDidBecomeActiveNotification
object
:
nil
];
}
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
-
(
void
)
didBecomeActive
{
-
(
void
)
didBecomeActive
{
[
self
invalidateCountDownTimer
];
[
self
invalidateCountDownTimer
];
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
...
@@ -178,22 +187,22 @@
...
@@ -178,22 +187,22 @@
NSMutableAttributedString
*
content
=
[[
NSMutableAttributedString
alloc
]
init
];
NSMutableAttributedString
*
content
=
[[
NSMutableAttributedString
alloc
]
init
];
// 0:不显示1: 好评率 + 接通率 2: 好评率 + 有效面诊人数
// 0:不显示1: 好评率 + 接通率 2: 好评率 + 有效面诊人数
if
(
_object
.
showType
==
1
)
{
if
(
_object
.
showType
==
1
)
{
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
@"好评率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
@"好评率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
likeRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor7DC6CC
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
likeRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x7DC6CC
)
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 接通率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 接通率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContentC
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
connectRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor7DC6CC
}];
NSAttributedString
*
subContentC
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
connectRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x7DC6CC
)
}];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContentB
];
[
content
appendAttributedString
:
subContentB
];
[
content
appendAttributedString
:
subContentC
];
[
content
appendAttributedString
:
subContentC
];
return
content
;
return
content
;
}
else
{
}
else
{
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
@"好评率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
@"好评率:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
likeRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor7DC6CC
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
likeRate
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x7DC6CC
)
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 有效面诊:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
@" 有效面诊:"
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContentC
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
consultPeopleNumber
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
GMColor7DC6CC
}];
NSAttributedString
*
subContentC
=
[[
NSAttributedString
alloc
]
initWithString
:
SafeString
(
_object
.
consultPeopleNumber
)
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmFont
:
12
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x7DC6CC
)
}];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContentB
];
[
content
appendAttributedString
:
subContentB
];
...
@@ -214,7 +223,7 @@
...
@@ -214,7 +223,7 @@
-
(
void
)
updateCountDown
{
-
(
void
)
updateCountDown
{
if
(
currentTime
>=
0
)
{
if
(
currentTime
>=
0
)
{
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@"%dS 后开启摄像头进行视频通话
\n
建议您选择安静、光线充足的环境"
,
currentTime
]];
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@"%dS 后开启摄像头进行视频通话
\n
建议您选择安静、光线充足的环境"
,
currentTime
]];
[
attribute
addAttribute
:
NSForegroundColorAttributeName
value
:
GMColor4ABAB4
range
:
NSMakeRange
(
0
,
2
)];
[
attribute
addAttribute
:
NSForegroundColorAttributeName
value
:
RGBCOLOR_HEX
(
0x4ABAB4
)
range
:
NSMakeRange
(
0
,
2
)];
self
.
successInfoLabel
.
attributedText
=
attribute
;
self
.
successInfoLabel
.
attributedText
=
attribute
;
currentTime
--
;
currentTime
--
;
}
else
{
}
else
{
...
...
GMAILab/Classes/ToFace/WorkingTable/Model/GMComplaintObject.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by zhouLiang on 2020/2/22.
// Created by zhouLiang on 2020/2/22.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
// 从杜欣前端给传的数据 --- 投诉结果
// 从杜欣前端给传的数据 --- 投诉结果
@interface
GMComplaintObject
:
GMObject
@interface
GMComplaintObject
:
GMObject
...
...
GMAILab/Classes/ToFace/WorkingTable/Model/GMDispatchWaitingGrabObject.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/Model/GMEditQuesPartModel.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by Locus on 2020/2/19.
// Created by Locus on 2020/2/19.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/Model/GMEditQuesPartModel.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMEditQuesPartModel.h"
#import "GMEditQuesPartModel.h"
#import "GMLibraryHeader.h"
@implementation
GMEditQuesPartDetailModel
@implementation
GMEditQuesPartDetailModel
...
...
GMAILab/Classes/ToFace/WorkingTable/Model/GMStarWithContentObject.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by zhouLiang on 2020/2/22.
// Created by zhouLiang on 2020/2/22.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
@protocol
GMStarInfoObject
@end
@protocol
GMStarInfoObject
@end
@interface
GMStarInfoObject
:
GMObject
@interface
GMStarInfoObject
:
GMObject
...
...
GMAILab/Classes/ToFace/WorkingTable/Model/GMWorkTableObject.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMDiagnosisWorkingTableSwitch.h"
#import "GMDiagnosisWorkingTableSwitch.h"
@import
GMBase
;
@protocol
GMWorkTableNotifyObject
@end
@protocol
GMWorkTableNotifyObject
@end
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMCommonTipAlertView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMPopupBgView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMCommonTipAlertView.m
View file @
14d10884
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
#import "GMCommonTipAlertView.h"
#import "GMCommonTipAlertView.h"
#import "UIView+CornerRadius.h"
#import "UIView+CornerRadius.h"
#import <GMBase/GMBaseTool.h>
@import
GMBase
;
@import
GMFoundation
;
@interface
GMCommonTipAlertView
()
@interface
GMCommonTipAlertView
()
@property
(
nonatomic
,
strong
)
GMLabel
*
title
;
@property
(
nonatomic
,
strong
)
GMLabel
*
title
;
@property
(
nonatomic
,
strong
)
GMLabel
*
contentLabel
;
@property
(
nonatomic
,
strong
)
GMLabel
*
contentLabel
;
...
@@ -38,7 +41,7 @@ static GMCommonTipAlertView *_alertView = nil;
...
@@ -38,7 +41,7 @@ static GMCommonTipAlertView *_alertView = nil;
}];
}];
_title
=
[[
GMLabel
alloc
]
init
];
_title
=
[[
GMLabel
alloc
]
init
];
_title
.
textColor
=
GMColor282828
;
_title
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_title
.
textAlignment
=
NSTextAlignmentCenter
;
_title
.
textAlignment
=
NSTextAlignmentCenter
;
_title
.
font
=
[
UIFont
gmBoldFont
:
18
];
_title
.
font
=
[
UIFont
gmBoldFont
:
18
];
[
_title
setContentHuggingPriority
:
UILayoutPriorityRequired
forAxis
:
UILayoutConstraintAxisHorizontal
];
[
_title
setContentHuggingPriority
:
UILayoutPriorityRequired
forAxis
:
UILayoutConstraintAxisHorizontal
];
...
@@ -46,7 +49,7 @@ static GMCommonTipAlertView *_alertView = nil;
...
@@ -46,7 +49,7 @@ static GMCommonTipAlertView *_alertView = nil;
[
_contentView
addSubview
:
_title
];
[
_contentView
addSubview
:
_title
];
_contentLabel
=
[[
GMLabel
alloc
]
init
];
_contentLabel
=
[[
GMLabel
alloc
]
init
];
_contentLabel
.
textColor
=
GMColor282828
;
_contentLabel
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_contentLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_contentLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_contentLabel
.
font
=
[
UIFont
gmFont
:
17
];
_contentLabel
.
font
=
[
UIFont
gmFont
:
17
];
_contentLabel
.
numberOfLines
=
0
;
_contentLabel
.
numberOfLines
=
0
;
...
@@ -66,7 +69,7 @@ static GMCommonTipAlertView *_alertView = nil;
...
@@ -66,7 +69,7 @@ static GMCommonTipAlertView *_alertView = nil;
_leftBtn
=
[
UIButton
new
];
_leftBtn
=
[
UIButton
new
];
_leftBtn
.
titleLabel
.
font
=
[
UIFont
gmFont
:
16
];
_leftBtn
.
titleLabel
.
font
=
[
UIFont
gmFont
:
16
];
[
_leftBtn
setTitleColor
:
ALColor999999
forState
:
UIControlStateNormal
];
[
_leftBtn
setTitleColor
:
RGBCOLOR_HEX
(
0x999999
)
forState
:
UIControlStateNormal
];
[
_contentView
addSubview
:
_leftBtn
];
[
_contentView
addSubview
:
_leftBtn
];
[
_leftBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_leftBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
mas_equalTo
(
44
);
make
.
height
.
mas_equalTo
(
44
);
...
@@ -87,7 +90,7 @@ static GMCommonTipAlertView *_alertView = nil;
...
@@ -87,7 +90,7 @@ static GMCommonTipAlertView *_alertView = nil;
_rightBtn
=
[
UIButton
new
];
_rightBtn
=
[
UIButton
new
];
_rightBtn
.
titleLabel
.
font
=
[
UIFont
gmFont
:
16
];
_rightBtn
.
titleLabel
.
font
=
[
UIFont
gmFont
:
16
];
[
_rightBtn
setTitleColor
:
GMColor4ABAB4
forState
:
UIControlStateNormal
];
[
_rightBtn
setTitleColor
:
RGBCOLOR_HEX
(
0x4ABAB4
)
forState
:
UIControlStateNormal
];
[
_contentView
addSubview
:
_rightBtn
];
[
_contentView
addSubview
:
_rightBtn
];
[
_rightBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_rightBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
mas_equalTo
(
44
);
make
.
height
.
mas_equalTo
(
44
);
...
@@ -150,7 +153,7 @@ static GMCommonTipAlertView *_alertView = nil;
...
@@ -150,7 +153,7 @@ static GMCommonTipAlertView *_alertView = nil;
[
_alertView
.
rightBtn
addTarget
:
target
action
:
rightAction
forControlEvents
:
UIControlEventTouchUpInside
];
[
_alertView
.
rightBtn
addTarget
:
target
action
:
rightAction
forControlEvents
:
UIControlEventTouchUpInside
];
[
_alertView
.
leftBtn
addTarget
:
target
action
:
leftAction
forControlEvents
:
UIControlEventTouchUpInside
];
[
_alertView
.
leftBtn
addTarget
:
target
action
:
leftAction
forControlEvents
:
UIControlEventTouchUpInside
];
[
_alertView
updateConstraints
];
[
_alertView
updateConstraints
];
[
AppDelegate
.
navigation
.
view
addSubview
:
_alertView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
_alertView
];
}
}
+
(
void
)
hideAtertView
{
+
(
void
)
hideAtertView
{
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMComplaintResultView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMComplaintObject.h"
#import "GMComplaintObject.h"
#import <GMKit/GMView.h>
typedef
NS_ENUM
(
NSInteger
,
GMComplaintResultViewType
)
{
typedef
NS_ENUM
(
NSInteger
,
GMComplaintResultViewType
)
{
/// 投诉审核中
/// 投诉审核中
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMComplaintResultView.m
View file @
14d10884
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
#import "GMComplaintResultView.h"
#import "GMComplaintResultView.h"
#import "NSAttributedString+YYText.h"
#import "NSAttributedString+YYText.h"
#import "YYLabel.h"
#import "YYLabel.h"
#import "GMCustomerServiceDetailViewController.h"
@import
GMRouter
;
//#import "GMCustomerServiceDetailViewController.h"
@interface
GMComplaintResultCellView
:
UIView
@interface
GMComplaintResultCellView
:
UIView
@property
(
nonatomic
,
strong
)
GMLabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
GMLabel
*
titleLabel
;
...
@@ -63,7 +64,7 @@
...
@@ -63,7 +64,7 @@
}
}
-
(
GMLabel
*
)
titleLabel
{
-
(
GMLabel
*
)
titleLabel
{
if
(
!
_titleLabel
)
{
if
(
!
_titleLabel
)
{
_titleLabel
=
[
GMLabel
labelWithTextColor
:
ALColor666666
fontSize
:
14
];
_titleLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x666666
)
fontSize
:
14
];
_titleLabel
.
font
=
[
UIFont
gmBoldFont
:
14
];
_titleLabel
.
font
=
[
UIFont
gmBoldFont
:
14
];
_titleLabel
.
textAlignment
=
NSTextAlignmentLeft
;
_titleLabel
.
textAlignment
=
NSTextAlignmentLeft
;
}
}
...
@@ -71,14 +72,14 @@
...
@@ -71,14 +72,14 @@
}
}
-
(
GMLabel
*
)
rightLabel
{
-
(
GMLabel
*
)
rightLabel
{
if
(
!
_rightLabel
)
{
if
(
!
_rightLabel
)
{
_rightLabel
=
[
GMLabel
labelWithTextColor
:
ALColor999999
fontSize
:
11
];
_rightLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x999999
)
fontSize
:
11
];
_rightLabel
.
textAlignment
=
NSTextAlignmentRight
;
_rightLabel
.
textAlignment
=
NSTextAlignmentRight
;
}
}
return
_rightLabel
;
return
_rightLabel
;
}
}
-
(
GMLabel
*
)
contentLabel
{
-
(
GMLabel
*
)
contentLabel
{
if
(
!
_contentLabel
)
{
if
(
!
_contentLabel
)
{
_contentLabel
=
[
GMLabel
labelWithTextColor
:
ALColor666666
fontSize
:
13
];
_contentLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x666666
)
fontSize
:
13
];
_contentLabel
.
numberOfLines
=
0
;
_contentLabel
.
numberOfLines
=
0
;
}
}
return
_contentLabel
;
return
_contentLabel
;
...
@@ -113,6 +114,13 @@
...
@@ -113,6 +114,13 @@
}
}
return
self
;
return
self
;
}
}
-
(
void
)
containerRectCorner
:(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
-
(
void
)
setup
{
-
(
void
)
setup
{
[
super
setup
];
[
super
setup
];
[
self
setUI
];
[
self
setUI
];
...
@@ -176,14 +184,14 @@
...
@@ -176,14 +184,14 @@
if
(
self
.
type
==
GMComplaintResultViewTypeInAudit
)
{
if
(
self
.
type
==
GMComplaintResultViewTypeInAudit
)
{
self
.
resultCell
.
rightLabel
.
text
=
@"审核处理中"
;
self
.
resultCell
.
rightLabel
.
text
=
@"审核处理中"
;
self
.
resultCell
.
rightLabel
.
textColor
=
GMColorFF2F4F
;
self
.
resultCell
.
rightLabel
.
textColor
=
RGBCOLOR_HEX
(
0xFF2F4F
)
;
}
}
self
.
titleLabel
.
text
=
self
.
textArray
[
self
.
type
];
self
.
titleLabel
.
text
=
self
.
textArray
[
self
.
type
];
}
}
-
(
UIView
*
)
grayLineView
{
-
(
UIView
*
)
grayLineView
{
if
(
!
_grayLineView
)
{
if
(
!
_grayLineView
)
{
_grayLineView
=
[[
UIView
alloc
]
init
];
_grayLineView
=
[[
UIView
alloc
]
init
];
_grayLineView
.
backgroundColor
=
GMColorEEEEEE
;
_grayLineView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEEEEE
)
;
_grayLineView
.
layer
.
cornerRadius
=
2
.
5
f
;
_grayLineView
.
layer
.
cornerRadius
=
2
.
5
f
;
_grayLineView
.
layer
.
masksToBounds
=
YES
;
_grayLineView
.
layer
.
masksToBounds
=
YES
;
}
}
...
@@ -230,7 +238,7 @@
...
@@ -230,7 +238,7 @@
if
(
!
_callPhoneLabel
)
{
if
(
!
_callPhoneLabel
)
{
NSMutableAttributedString
*
text
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
@"如你对处理结果有异议,可联系客服"
];
NSMutableAttributedString
*
text
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
@"如你对处理结果有异议,可联系客服"
];
text
.
yy_font
=
[
UIFont
gmFont
:
11
];
text
.
yy_font
=
[
UIFont
gmFont
:
11
];
text
.
yy_color
=
ALColor999999
;
text
.
yy_color
=
RGBCOLOR_HEX
(
0x999999
)
;
[
text
yy_setUnderlineStyle
:
NSUnderlineStyleSingle
range
:
NSMakeRange
(
12
,
4
)];
[
text
yy_setUnderlineStyle
:
NSUnderlineStyleSingle
range
:
NSMakeRange
(
12
,
4
)];
[
text
yy_setUnderlineColor
:[
UIColor
colorWithHex
:
0x4DBBB5
]
range
:
NSMakeRange
(
12
,
4
)];
[
text
yy_setUnderlineColor
:[
UIColor
colorWithHex
:
0x4DBBB5
]
range
:
NSMakeRange
(
12
,
4
)];
[
text
yy_setTextHighlightRange
:
NSMakeRange
(
12
,
4
)
color
:[
UIColor
colorWithHex
:
0x4DBBB5
]
backgroundColor
:
[
UIColor
clearColor
]
tapAction
:^
(
UIView
*
_Nonnull
containerView
,
NSAttributedString
*
_Nonnull
text
,
NSRange
range
,
CGRect
rect
)
{
[
text
yy_setTextHighlightRange
:
NSMakeRange
(
12
,
4
)
color
:[
UIColor
colorWithHex
:
0x4DBBB5
]
backgroundColor
:
[
UIColor
clearColor
]
tapAction
:^
(
UIView
*
_Nonnull
containerView
,
NSAttributedString
*
_Nonnull
text
,
NSRange
range
,
CGRect
rect
)
{
...
@@ -246,7 +254,7 @@
...
@@ -246,7 +254,7 @@
-
(
UIView
*
)
lineView
{
-
(
UIView
*
)
lineView
{
if
(
!
_lineView
)
{
if
(
!
_lineView
)
{
_lineView
=
[[
UIView
alloc
]
init
];
_lineView
=
[[
UIView
alloc
]
init
];
_lineView
.
backgroundColor
=
ALColorF8F8F8
;
_lineView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xF8F8F8
)
;
}
}
return
_lineView
;
return
_lineView
;
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDiagnosisDispatchInfoView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDiagnosisDispatchInfoView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMDiagnosisDispatchInfoView.h"
#import "GMDiagnosisDispatchInfoView.h"
@import
GMBase
;
@implementation
GMDiagnosisDispatchInfoView
@implementation
GMDiagnosisDispatchInfoView
-
(
void
)
setup
{
-
(
void
)
setup
{
...
@@ -23,7 +24,7 @@
...
@@ -23,7 +24,7 @@
_locationLabel
=
[[
UILabel
alloc
]
init
];
_locationLabel
=
[[
UILabel
alloc
]
init
];
_locationLabel
.
text
=
@"北京"
;
_locationLabel
.
text
=
@"北京"
;
_locationLabel
.
textColor
=
ALColor282828
;
_locationLabel
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_locationLabel
.
font
=
[
UIFont
gmBoldFont
:
14
];
_locationLabel
.
font
=
[
UIFont
gmBoldFont
:
14
];
[
self
addSubview
:
_locationLabel
];
[
self
addSubview
:
_locationLabel
];
[
_locationLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_locationLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
@@ -34,7 +35,7 @@
...
@@ -34,7 +35,7 @@
_infoLabel
=
[[
UILabel
alloc
]
init
];
_infoLabel
=
[[
UILabel
alloc
]
init
];
_infoLabel
.
text
=
@"女,22岁,没做过医美"
;
_infoLabel
.
text
=
@"女,22岁,没做过医美"
;
_infoLabel
.
textColor
=
ALColor282828
;
_infoLabel
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_infoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_infoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_infoLabel
.
font
=
[
UIFont
gmBoldFont
:
14
];
_infoLabel
.
font
=
[
UIFont
gmBoldFont
:
14
];
[
self
addSubview
:
_infoLabel
];
[
self
addSubview
:
_infoLabel
];
...
@@ -46,7 +47,7 @@
...
@@ -46,7 +47,7 @@
_projectLabel
=
[[
UILabel
alloc
]
init
];
_projectLabel
=
[[
UILabel
alloc
]
init
];
_projectLabel
.
text
=
@"咨询项目:皮肤美容 | 面部轮廓 | 眼部"
;
_projectLabel
.
text
=
@"咨询项目:皮肤美容 | 面部轮廓 | 眼部"
;
_projectLabel
.
textColor
=
ALColor282828
;
_projectLabel
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_projectLabel
.
font
=
[
UIFont
gmFont
:
13
];
_projectLabel
.
font
=
[
UIFont
gmFont
:
13
];
[
self
addSubview
:
_projectLabel
];
[
self
addSubview
:
_projectLabel
];
[
_projectLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_projectLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDiagnosisWorkingTableChooseIdentityView.h
View file @
14d10884
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Created by Jessica on 2020/2/19.
// Created by Jessica on 2020/2/19.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMKit
;
@protocol
GMDiagnosisWorkingTableChooseIdentityViewDelegate
<
NSObject
>
@protocol
GMDiagnosisWorkingTableChooseIdentityViewDelegate
<
NSObject
>
// 点击
// 点击
-
(
void
)
openWorkTableDidclickedWithTags
:
(
NSArray
*
)
tags
;
-
(
void
)
openWorkTableDidclickedWithTags
:
(
NSArray
*
)
tags
;
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDiagnosisWorkingTableChooseIdentityView.m
View file @
14d10884
...
@@ -8,9 +8,13 @@
...
@@ -8,9 +8,13 @@
#import "GMDiagnosisWorkingTableChooseIdentityView.h"
#import "GMDiagnosisWorkingTableChooseIdentityView.h"
#import "UIView+CornerRadius.h"
#import "UIView+CornerRadius.h"
#import
<YYText.h>
#import
"YYText.h"
#import "NSString+CalculateSize.h"
#import "NSString+CalculateSize.h"
#import "WMTagObject.h"
#import "WMTagObject.h"
#import <GMBase/GMBaseTool.h>
#import <GMBaseWeb/GMWebutil.h>
@import
GMHud
;
@import
GMRouter
;
@implementation
GMChooseIdentityTagCell
@implementation
GMChooseIdentityTagCell
-
(
void
)
setup
{
-
(
void
)
setup
{
...
@@ -19,7 +23,7 @@
...
@@ -19,7 +23,7 @@
_contentBtn
.
userInteractionEnabled
=
NO
;
_contentBtn
.
userInteractionEnabled
=
NO
;
[
_contentBtn
setImage
:[
UIImage
imageNamed
:
@"wt_good_unselected_icon"
]
forState
:
UIControlStateNormal
];
[
_contentBtn
setImage
:[
UIImage
imageNamed
:
@"wt_good_unselected_icon"
]
forState
:
UIControlStateNormal
];
[
_contentBtn
setImage
:[
UIImage
imageNamed
:
@"wt_good_selected_icon"
]
forState
:
UIControlStateSelected
];
[
_contentBtn
setImage
:[
UIImage
imageNamed
:
@"wt_good_selected_icon"
]
forState
:
UIControlStateSelected
];
[
_contentBtn
setTitleColor
:
GMColor282828
forState
:
UIControlStateNormal
];
[
_contentBtn
setTitleColor
:
RGBCOLOR_HEX
(
0x282828
)
forState
:
UIControlStateNormal
];
_contentBtn
.
titleEdgeInsets
=
UIEdgeInsetsMake
(
0
,
6
,
0
,
0
);
_contentBtn
.
titleEdgeInsets
=
UIEdgeInsetsMake
(
0
,
6
,
0
,
0
);
_contentBtn
.
contentEdgeInsets
=
UIEdgeInsetsMake
(
6
,
12
,
6
,
12
);
_contentBtn
.
contentEdgeInsets
=
UIEdgeInsetsMake
(
6
,
12
,
6
,
12
);
_contentBtn
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentLeft
;
_contentBtn
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentLeft
;
...
@@ -57,7 +61,7 @@
...
@@ -57,7 +61,7 @@
}];
}];
_identityBtn
=
[
GMButton
new
];
_identityBtn
=
[
GMButton
new
];
[
_identityBtn
setTitleColor
:
ALColor282828
forState
:
UIControlStateNormal
];
[
_identityBtn
setTitleColor
:
RGBCOLOR_HEX
(
0x282828
)
forState
:
UIControlStateNormal
];
_identityBtn
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_identityBtn
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
[
_identityBtn
setImage
:[
UIImage
imageNamed
:
@"wt_identity"
]
forState
:
UIControlStateNormal
];
[
_identityBtn
setImage
:[
UIImage
imageNamed
:
@"wt_identity"
]
forState
:
UIControlStateNormal
];
[
_identityBtn
setImage
:[
UIImage
imageNamed
:
@"wt_identity_selected"
]
forState
:
UIControlStateSelected
];
[
_identityBtn
setImage
:[
UIImage
imageNamed
:
@"wt_identity_selected"
]
forState
:
UIControlStateSelected
];
...
@@ -122,7 +126,7 @@
...
@@ -122,7 +126,7 @@
[
_openBtn
setTitle
:
@"开启面诊"
forState
:
UIControlStateNormal
];
[
_openBtn
setTitle
:
@"开启面诊"
forState
:
UIControlStateNormal
];
_openBtn
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_openBtn
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_openBtn
.
userInteractionEnabled
=
NO
;
_openBtn
.
userInteractionEnabled
=
NO
;
[
_openBtn
setBackgroundColor
:
GMColorFF8C8D
forState
:
UIControlStateNormal
];
[
_openBtn
setBackgroundColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:
UIControlStateNormal
];
[
self
.
container
addSubview
:
_openBtn
];
[
self
.
container
addSubview
:
_openBtn
];
[
_openBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_openBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
mas_equalTo
(
45
);
make
.
height
.
mas_equalTo
(
45
);
...
@@ -151,7 +155,7 @@
...
@@ -151,7 +155,7 @@
_projectLabel
=
[[
UILabel
alloc
]
init
];
_projectLabel
=
[[
UILabel
alloc
]
init
];
_projectLabel
.
text
=
@"擅长的项目(最多3个)"
;
_projectLabel
.
text
=
@"擅长的项目(最多3个)"
;
_projectLabel
.
textColor
=
ALColor282828
;
_projectLabel
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_projectLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_projectLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_projectLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
_projectLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
[
self
.
contentView
addSubview
:
_projectLabel
];
[
self
.
contentView
addSubview
:
_projectLabel
];
...
@@ -172,7 +176,7 @@
...
@@ -172,7 +176,7 @@
_tipLabel
=
[[
UILabel
alloc
]
init
];
_tipLabel
=
[[
UILabel
alloc
]
init
];
_tipLabel
.
text
=
@"温馨提示:"
;
_tipLabel
.
text
=
@"温馨提示:"
;
_tipLabel
.
textColor
=
ALColor282828
;
_tipLabel
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_tipLabel
.
textAlignment
=
NSTextAlignmentLeft
;
_tipLabel
.
textAlignment
=
NSTextAlignmentLeft
;
_tipLabel
.
font
=
[
UIFont
gmBoldFont
:
11
];
_tipLabel
.
font
=
[
UIFont
gmBoldFont
:
11
];
[
self
.
contentView
addSubview
:
_tipLabel
];
[
self
.
contentView
addSubview
:
_tipLabel
];
...
@@ -193,10 +197,11 @@
...
@@ -193,10 +197,11 @@
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
content
];
NSMutableAttributedString
*
attribute
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
content
];
attribute
.
yy_lineSpacing
=
6
;
attribute
.
yy_lineSpacing
=
6
;
attribute
.
yy_font
=
[
UIFont
gmFont
:
11
];
attribute
.
yy_font
=
[
UIFont
gmFont
:
11
];
attribute
.
yy_color
=
ALColor282828
;
attribute
.
yy_color
=
RGBCOLOR_HEX
(
0x282828
)
;
[
attribute
yy_setTextHighlightRange
:
privateRange
color
:
GMColorFF8C8D
backgroundColor
:
UIColor
.
whiteColor
tapAction
:^
(
UIView
*
_Nonnull
containerView
,
NSAttributedString
*
_Nonnull
text
,
NSRange
range
,
CGRect
rect
)
{
[
attribute
yy_setTextHighlightRange
:
privateRange
color
:
RGBCOLOR_HEX
(
0xFF8C8D
)
backgroundColor
:
UIColor
.
whiteColor
tapAction
:^
(
UIView
*
_Nonnull
containerView
,
NSAttributedString
*
_Nonnull
text
,
NSRange
range
,
CGRect
rect
)
{
// 视频面诊使用管理条例
// 视频面诊使用管理条例
NSString
*
url
=
[
NSString
stringWithFormat
:
@"gengmei://common_webview?url=%@/phantom/about/treatment_agreement"
,
GMServerDomains
.
apiHost
];
NSString
*
host
=
[
GMWebutil
getCurrentApiHost
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"gengmei://common_webview?url=%@/phantom/about/treatment_agreement"
,
host
];
[[
GMRouter
sharedInstance
]
pushScheme
:
url
];
[[
GMRouter
sharedInstance
]
pushScheme
:
url
];
}];
}];
self
.
contentLabel
.
attributedText
=
attribute
;
self
.
contentLabel
.
attributedText
=
attribute
;
...
@@ -220,10 +225,10 @@
...
@@ -220,10 +225,10 @@
-
(
void
)
isCanOpen
{
-
(
void
)
isCanOpen
{
if
(
_tagIds
.
count
==
0
)
{
if
(
_tagIds
.
count
==
0
)
{
_openBtn
.
userInteractionEnabled
=
NO
;
_openBtn
.
userInteractionEnabled
=
NO
;
[
_openBtn
setBackgroundColor
:
GMColorD5D5D5
forState
:
UIControlStateNormal
];
[
_openBtn
setBackgroundColor
:
RGBCOLOR_HEX
(
0xD5D5D5
)
forState
:
UIControlStateNormal
];
}
else
{
}
else
{
_openBtn
.
userInteractionEnabled
=
YES
;
_openBtn
.
userInteractionEnabled
=
YES
;
[
_openBtn
setBackgroundColor
:
GMColorFF8C8D
forState
:
UIControlStateNormal
];
[
_openBtn
setBackgroundColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:
UIControlStateNormal
];
}
}
}
}
...
@@ -312,7 +317,7 @@
...
@@ -312,7 +317,7 @@
[
_tagIds
removeObject
:
@
(
tagObject
.
tagId
)];
[
_tagIds
removeObject
:
@
(
tagObject
.
tagId
)];
}
}
}
else
if
(
!
tagObject
.
isSelected
&&
_tagIds
.
count
>=
3
)
{
}
else
if
(
!
tagObject
.
isSelected
&&
_tagIds
.
count
>=
3
)
{
[
AppDelegate
.
visibleController
toast
:
@"最多选择三个"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"最多选择三个"
];
}
}
[
cell
updateStatus
:
tagObject
.
isSelected
];
[
cell
updateStatus
:
tagObject
.
isSelected
];
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDiagnosisWorkingTableHeaderView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMWorkTableObject.h"
#import "GMWorkTableObject.h"
#import <GMKit/GMView.h>
@interface
GMServiceDataItemView
:
GMView
@interface
GMServiceDataItemView
:
GMView
@property
(
nonatomic
,
strong
)
UILabel
*
dataLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
dataLabel
;
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDiagnosisWorkingTableHeaderView.m
View file @
14d10884
...
@@ -9,8 +9,10 @@
...
@@ -9,8 +9,10 @@
#import "GMDiagnosisWorkingTableHeaderView.h"
#import "GMDiagnosisWorkingTableHeaderView.h"
#import "GMWoikingTableCollectionCell.h"
#import "GMWoikingTableCollectionCell.h"
#import "GMGMDiagnosisWorkingTableScrollView.h"
#import "GMGMDiagnosisWorkingTableScrollView.h"
#import "WMBrowserViewController.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
//#import "WMBrowserViewController.h"
@import
GMRouter
;
@interface
GMServiceDataItemView
()
@interface
GMServiceDataItemView
()
@property
(
nonatomic
,
strong
)
UILabel
*
line
;
@property
(
nonatomic
,
strong
)
UILabel
*
line
;
@end
@end
...
@@ -19,7 +21,7 @@
...
@@ -19,7 +21,7 @@
-
(
void
)
setup
{
-
(
void
)
setup
{
[
super
setup
];
[
super
setup
];
_dataLabel
=
[[
UILabel
alloc
]
init
];
_dataLabel
=
[[
UILabel
alloc
]
init
];
_dataLabel
.
textColor
=
ALColor282828
;
_dataLabel
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_dataLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_dataLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_dataLabel
.
font
=
[
UIFont
gmBoldFont
:
21
];
_dataLabel
.
font
=
[
UIFont
gmBoldFont
:
21
];
[
self
addSubview
:
_dataLabel
];
[
self
addSubview
:
_dataLabel
];
...
@@ -30,7 +32,7 @@
...
@@ -30,7 +32,7 @@
}];
}];
_descLabel
=
[[
UILabel
alloc
]
init
];
_descLabel
=
[[
UILabel
alloc
]
init
];
_descLabel
.
textColor
=
GMColor909399
;
_descLabel
.
textColor
=
RGBCOLOR_HEX
(
0x909399
)
;
_descLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_descLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_descLabel
.
font
=
[
UIFont
gmFont
:
11
];
_descLabel
.
font
=
[
UIFont
gmFont
:
11
];
[
self
addSubview
:
_descLabel
];
[
self
addSubview
:
_descLabel
];
...
@@ -41,7 +43,7 @@
...
@@ -41,7 +43,7 @@
}];
}];
_line
=
[[
UILabel
alloc
]
init
];
_line
=
[[
UILabel
alloc
]
init
];
_line
.
backgroundColor
=
GMColorEEEEEE
;
_line
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEEEEE
)
;
[
self
addSubview
:
_line
];
[
self
addSubview
:
_line
];
[
_line
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_line
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
mas_equalTo
(
self
.
mas_centerY
);
make
.
centerY
.
mas_equalTo
(
self
.
mas_centerY
);
...
@@ -92,7 +94,7 @@
...
@@ -92,7 +94,7 @@
_dataDesc
=
[[
UILabel
alloc
]
init
];
_dataDesc
=
[[
UILabel
alloc
]
init
];
_dataDesc
.
text
=
@"服务数据"
;
_dataDesc
.
text
=
@"服务数据"
;
_dataDesc
.
textColor
=
ALColor282828
;
_dataDesc
.
textColor
=
RGBCOLOR_HEX
(
0x282828
)
;
_dataDesc
.
textAlignment
=
NSTextAlignmentCenter
;
_dataDesc
.
textAlignment
=
NSTextAlignmentCenter
;
_dataDesc
.
font
=
[
UIFont
gmBoldFont
:
16
];
_dataDesc
.
font
=
[
UIFont
gmBoldFont
:
16
];
[
self
addSubview
:
_dataDesc
];
[
self
addSubview
:
_dataDesc
];
...
@@ -105,7 +107,7 @@
...
@@ -105,7 +107,7 @@
_desc
=
[[
UILabel
alloc
]
init
];
_desc
=
[[
UILabel
alloc
]
init
];
_desc
.
text
=
@"(当天)"
;
_desc
.
text
=
@"(当天)"
;
_desc
.
textColor
=
GMColor909399
;
_desc
.
textColor
=
RGBCOLOR_HEX
(
0x909399
)
;
_desc
.
textAlignment
=
NSTextAlignmentCenter
;
_desc
.
textAlignment
=
NSTextAlignmentCenter
;
_desc
.
font
=
[
UIFont
gmFont
:
14
];
_desc
.
font
=
[
UIFont
gmFont
:
14
];
[
self
addSubview
:
_desc
];
[
self
addSubview
:
_desc
];
...
@@ -128,7 +130,7 @@
...
@@ -128,7 +130,7 @@
_desc1
=
[[
UILabel
alloc
]
init
];
_desc1
=
[[
UILabel
alloc
]
init
];
_desc1
.
text
=
@"明细"
;
_desc1
.
text
=
@"明细"
;
_desc1
.
textColor
=
GMColor909399
;
_desc1
.
textColor
=
RGBCOLOR_HEX
(
0x909399
)
;
_desc1
.
textAlignment
=
NSTextAlignmentRight
;
_desc1
.
textAlignment
=
NSTextAlignmentRight
;
_desc1
.
font
=
[
UIFont
gmFont
:
14
];
_desc1
.
font
=
[
UIFont
gmFont
:
14
];
[
self
addSubview
:
_desc1
];
[
self
addSubview
:
_desc1
];
...
@@ -177,7 +179,7 @@
...
@@ -177,7 +179,7 @@
_bottomLabel
=
[[
UILabel
alloc
]
init
];
_bottomLabel
=
[[
UILabel
alloc
]
init
];
_bottomLabel
.
text
=
@"公告区"
;
_bottomLabel
.
text
=
@"公告区"
;
_bottomLabel
.
textColor
=
GMColor909399
;
_bottomLabel
.
textColor
=
RGBCOLOR_HEX
(
0x909399
)
;
_bottomLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_bottomLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_bottomLabel
.
font
=
[
UIFont
gmBoldFont
:
12
];
_bottomLabel
.
font
=
[
UIFont
gmBoldFont
:
12
];
[
self
addSubview
:
_bottomLabel
];
[
self
addSubview
:
_bottomLabel
];
...
@@ -189,7 +191,7 @@
...
@@ -189,7 +191,7 @@
}];
}];
_leftLine
=
[[
UILabel
alloc
]
init
];
_leftLine
=
[[
UILabel
alloc
]
init
];
_leftLine
.
backgroundColor
=
GMColorEEEEEE
;
_leftLine
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEEEEE
)
;
[
self
addSubview
:
_leftLine
];
[
self
addSubview
:
_leftLine
];
[
_leftLine
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_leftLine
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
mas_equalTo
(
_bottomLabel
.
mas_centerY
);
make
.
centerY
.
mas_equalTo
(
_bottomLabel
.
mas_centerY
);
...
@@ -199,7 +201,7 @@
...
@@ -199,7 +201,7 @@
}];
}];
_rightLine
=
[[
UILabel
alloc
]
init
];
_rightLine
=
[[
UILabel
alloc
]
init
];
_rightLine
.
backgroundColor
=
GMColorEEEEEE
;
_rightLine
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEEEEE
)
;
[
self
addSubview
:
_rightLine
];
[
self
addSubview
:
_rightLine
];
[
_rightLine
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_rightLine
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
mas_equalTo
(
_bottomLabel
.
mas_centerY
);
make
.
centerY
.
mas_equalTo
(
_bottomLabel
.
mas_centerY
);
...
@@ -311,10 +313,10 @@
...
@@ -311,10 +313,10 @@
-
(
NSMutableAttributedString
*
)
scrollItemStr
:
(
NSString
*
)
string
leftStr
:
(
NSString
*
)
leftStr
rightStr
:
(
NSString
*
)
rightStr
{
-
(
NSMutableAttributedString
*
)
scrollItemStr
:
(
NSString
*
)
string
leftStr
:
(
NSString
*
)
leftStr
rightStr
:
(
NSString
*
)
rightStr
{
NSMutableAttributedString
*
content
=
[[
NSMutableAttributedString
alloc
]
init
];
NSMutableAttributedString
*
content
=
[[
NSMutableAttributedString
alloc
]
init
];
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
leftStr
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentA
=
[[
NSAttributedString
alloc
]
initWithString
:
leftStr
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
string
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
NSForegroundColorAttributeName
:
GMColorFF8C8D
}];
NSAttributedString
*
subContent
=
[[
NSAttributedString
alloc
]
initWithString
:
string
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0xFF8C8D
)
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
rightStr
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
NSForegroundColorAttributeName
:
GMColor282828
}];
NSAttributedString
*
subContentB
=
[[
NSAttributedString
alloc
]
initWithString
:
rightStr
attributes
:@{
NSFontAttributeName
:
[
UIFont
gmBoldFont
:
15
],
NSForegroundColorAttributeName
:
RGBCOLOR_HEX
(
0x282828
)
}];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContentA
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContent
];
[
content
appendAttributedString
:
subContentB
];
[
content
appendAttributedString
:
subContentB
];
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDiagnosisWorkingTableSwitch.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by Jessica on 2020/2/19.
// Created by Jessica on 2020/2/19.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
typedef
NS_ENUM
(
NSInteger
,
DiagnosisWorkingTableSwitchStatus
)
{
typedef
NS_ENUM
(
NSInteger
,
DiagnosisWorkingTableSwitchStatus
)
{
DiagnosisWorkingTableSwitchStatusOff
=
1
,
// 关闭 (可以开启)
DiagnosisWorkingTableSwitchStatusOff
=
1
,
// 关闭 (可以开启)
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMDoctorConsultatioPromptView.m
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMDoctorConsultatioPromptView.h"
#import "GMDoctorConsultatioPromptView.h"
@import
GMBase
;
@implementation
GMDoctorConsultatioPromptView
@implementation
GMDoctorConsultatioPromptView
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
-
(
instancetype
)
initWithFrame
:(
CGRect
)
frame
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMEditQuesPartCell.h
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMEditQuesPartModel.h"
#import "GMEditQuesPartModel.h"
#import "GMLibraryHeader.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMEditQuesPartCell
:
GMTableViewCell
@interface
GMEditQuesPartCell
:
GMTableViewCell
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMEditQuesPartSelectView.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMEditQuesPartModel.h"
#import "GMEditQuesPartModel.h"
#import <GMKit/GMView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMEditQuesPartSelectView.m
View file @
14d10884
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
#import "GMEditQuesPartSelectView.h"
#import "GMEditQuesPartSelectView.h"
#import "GMEditQuesPartController.h"
#import "GMEditQuesPartController.h"
#import <GMBase/GMBaseTool.h>
@interface
GMEditQuesPartSelectCell
:
GMTableViewCell
@interface
GMEditQuesPartSelectCell
:
GMTableViewCell
...
@@ -121,7 +123,7 @@
...
@@ -121,7 +123,7 @@
[
_selectArray
addObject
:
cell
.
model
];
[
_selectArray
addObject
:
cell
.
model
];
cell
.
selectButton
.
selected
=
YES
;
cell
.
selectButton
.
selected
=
YES
;
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
@"最多选3个"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"最多选3个"
];
}
}
}
}
}
}
...
@@ -244,7 +246,7 @@
...
@@ -244,7 +246,7 @@
if
(
!
_confirmButton
)
{
if
(
!
_confirmButton
)
{
_confirmButton
=
[
GMButton
buttonWithType
:
UIButtonTypeCustom
];
_confirmButton
=
[
GMButton
buttonWithType
:
UIButtonTypeCustom
];
[
_confirmButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
[
_confirmButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
[
_confirmButton
setTitleColor
:
GMColorFF8C8D
forState
:
UIControlStateNormal
];
[
_confirmButton
setTitleColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:
UIControlStateNormal
];
[
_confirmButton
addTarget
:
self
action
:
@selector
(
confirmButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_confirmButton
addTarget
:
self
action
:
@selector
(
confirmButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
_confirmButton
.
titleLabel
.
font
=
[
UIFont
gmFont
:
14
];
_confirmButton
.
titleLabel
.
font
=
[
UIFont
gmFont
:
14
];
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMEditQuesSuggestCell.h
View file @
14d10884
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Created by Locus on 2020/2/19.
// Created by Locus on 2020/2/19.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMLibraryHeader.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMEditQuesSuggestCell
:
GMTableViewCell
@interface
GMEditQuesSuggestCell
:
GMTableViewCell
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMEndConsultView.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMStarWithContentObject.h"
#import "GMStarWithContentObject.h"
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMEndConsultView.m
View file @
14d10884
...
@@ -8,6 +8,13 @@
...
@@ -8,6 +8,13 @@
#import "GMEndConsultView.h"
#import "GMEndConsultView.h"
#import "GMEditQuesPartController.h"
#import "GMEditQuesPartController.h"
#import "RequestHeader.h"
#import "GMToFaceNetworking.h"
#import <GMBase/GMBaseTool.h>
@import
GMNetworking
;
@import
MBProgressHUD
;
@interface
GMEndConsultView
()
<
UITextViewDelegate
>
@interface
GMEndConsultView
()
<
UITextViewDelegate
>
...
@@ -47,6 +54,13 @@
...
@@ -47,6 +54,13 @@
[
self
setLayout
];
[
self
setLayout
];
[
self
containerRectCorner
:
self
.
container
];
[
self
containerRectCorner
:
self
.
container
];
}
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
-
(
void
)
setUI
{
-
(
void
)
setUI
{
self
.
animationType
=
GMPopupAnimationTypeFlipFromBottom
;
self
.
animationType
=
GMPopupAnimationTypeFlipFromBottom
;
[
self
.
container
addSubview
:
self
.
grayLineView
];
[
self
.
container
addSubview
:
self
.
grayLineView
];
...
@@ -275,10 +289,10 @@
...
@@ -275,10 +289,10 @@
weakSelf
.
evaluateFinish
(
1
,
0
,
@""
);
weakSelf
.
evaluateFinish
(
1
,
0
,
@""
);
}
}
if
(
weakSelf
.
complaintType
==
GMComplaintTypeUser
)
{
if
(
weakSelf
.
complaintType
==
GMComplaintTypeUser
)
{
[
GMHudModule
toastInView
:[
AppDelegate
shareInstance
].
window
text
:
@"投诉意见提交成功"
];
[
GMHudModule
toastInView
:[
GMBaseTool
mainWindow
]
text
:
@"投诉意见提交成功"
];
}
}
}
else
{
}
else
{
[
GMHudModule
toastInView
:[
AppDelegate
shareInstance
].
window
text
:
response
.
message
];
[
GMHudModule
toastInView
:[
GMBaseTool
mainWindow
]
text
:
response
.
message
];
}
}
}];
}];
}
}
...
@@ -287,32 +301,32 @@
...
@@ -287,32 +301,32 @@
[
self
showLoading
];
[
self
showLoading
];
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
if
(
self
.
starNum
<=
0
)
{
if
(
self
.
starNum
<=
0
)
{
[
GMHudModule
toastInView
:[
AppDelegate
shareInstance
].
window
text
:
@"请选择1-5星进行评价"
];
[
GMHudModule
toastInView
:[
GMBaseTool
mainWindow
]
text
:
@"请选择1-5星进行评价"
];
return
;
return
;
}
}
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceEvaluateDiagnosis_id
:
self
.
recordId
star
:
self
.
starNum
SuccessBlock
:^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceEvaluateDiagnosis_id
:
self
.
recordId
star
:
self
.
starNum
SuccessBlock
:^
(
id
response
)
{
if
(
weakSelf
.
evaluateFinish
&&
weakSelf
.
starNum
>=
1
)
{
if
(
weakSelf
.
evaluateFinish
&&
weakSelf
.
starNum
>=
1
)
{
GMStarInfoObject
*
object
=
weakSelf
.
starContentArray
[
weakSelf
.
starNum
-
1
];
GMStarInfoObject
*
object
=
weakSelf
.
starContentArray
[
weakSelf
.
starNum
-
1
];
weakSelf
.
evaluateFinish
(
0
,
weakSelf
.
starNum
,
object
.
descrip
);
weakSelf
.
evaluateFinish
(
0
,
weakSelf
.
starNum
,
object
.
descrip
);
}
}
[
weakSelf
hideLoading
];
[
weakSelf
hideLoading
];
[
weakSelf
hide
];
[
weakSelf
hide
];
[
GMHudModule
toastInView
:[
AppDelegate
shareInstance
].
window
text
:
@"感谢您的评价~"
];
[
GMHudModule
toastInView
:[
GMBaseTool
mainWindow
]
text
:
@"感谢您的评价~"
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
weakSelf
hideLoading
];
[
weakSelf
hideLoading
];
[
weakSelf
hide
];
[
weakSelf
hide
];
[
GMHudModule
toastInView
:[
AppDelegate
shareInstance
].
window
text
:
message
];
[
GMHudModule
toastInView
:[
GMBaseTool
mainWindow
]
text
:
message
];
}];
}];
}
}
-
(
void
)
confirmButtonClick
{
-
(
void
)
confirmButtonClick
{
if
(
self
.
type
==
GMEndConsultViewTypeReport
)
{
if
(
self
.
type
==
GMEndConsultViewTypeReport
)
{
GMEditQuesPartController
*
vc
=
[
GMEditQuesPartController
new
];
GMEditQuesPartController
*
vc
=
[
GMEditQuesPartController
new
];
vc
.
viewModel
.
recordId
=
self
.
recordId
;
vc
.
viewModel
.
recordId
=
self
.
recordId
;
[
AppDelegate
.
navigation
pushViewController
:
vc
animated
:
YES
];
[
[
GMBaseTool
getNavigation
]
pushViewController
:
vc
animated
:
YES
];
[
self
hide
];
[
self
hide
];
}
else
if
(
self
.
type
==
GMEndConsultViewTypeDoctorComplaint
||
self
.
type
==
GMEndConsultViewTypeUserComplaint
)
{
}
else
if
(
self
.
type
==
GMEndConsultViewTypeDoctorComplaint
||
self
.
type
==
GMEndConsultViewTypeUserComplaint
)
{
if
(
self
.
textView
.
text
.
length
<
10
)
{
if
(
self
.
textView
.
text
.
length
<
10
)
{
[
AppDelegate
.
visibleController
toast
:
@"请填写您的投诉原因,至少10个字"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"请填写您的投诉原因,至少10个字"
];
}
else
{
}
else
{
[
self
complaint
];
[
self
complaint
];
}
}
...
@@ -365,7 +379,7 @@
...
@@ -365,7 +379,7 @@
-
(
UIView
*
)
grayLineView
{
-
(
UIView
*
)
grayLineView
{
if
(
!
_grayLineView
)
{
if
(
!
_grayLineView
)
{
_grayLineView
=
[[
UIView
alloc
]
init
];
_grayLineView
=
[[
UIView
alloc
]
init
];
_grayLineView
.
backgroundColor
=
GMColorEEEEEE
;
_grayLineView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEEEEE
)
;
_grayLineView
.
layer
.
cornerRadius
=
2
.
5
f
;
_grayLineView
.
layer
.
cornerRadius
=
2
.
5
f
;
_grayLineView
.
layer
.
masksToBounds
=
YES
;
_grayLineView
.
layer
.
masksToBounds
=
YES
;
}
}
...
@@ -387,7 +401,7 @@
...
@@ -387,7 +401,7 @@
_confirmButton
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
17
];
_confirmButton
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
17
];
[
_confirmButton
setTitle
:
@"保存"
forState
:
UIControlStateNormal
];
[
_confirmButton
setTitle
:
@"保存"
forState
:
UIControlStateNormal
];
[
_confirmButton
setTitleColor
:
UIColor
.
whiteColor
forState
:
UIControlStateNormal
];
[
_confirmButton
setTitleColor
:
UIColor
.
whiteColor
forState
:
UIControlStateNormal
];
[
_confirmButton
setBackgroundColor
:
GMColorFF8C8D
forState
:
UIControlStateNormal
];
[
_confirmButton
setBackgroundColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:
UIControlStateNormal
];
[
_confirmButton
addTarget
:
self
action
:
@selector
(
confirmButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_confirmButton
addTarget
:
self
action
:
@selector
(
confirmButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
}
return
_confirmButton
;
return
_confirmButton
;
...
@@ -419,7 +433,7 @@
...
@@ -419,7 +433,7 @@
_complaintUserButton
=
[
GMButton
buttonWithType
:
UIButtonTypeCustom
];
_complaintUserButton
=
[
GMButton
buttonWithType
:
UIButtonTypeCustom
];
_complaintUserButton
.
titleLabel
.
font
=
[
UIFont
gmFont
:
13
];
_complaintUserButton
.
titleLabel
.
font
=
[
UIFont
gmFont
:
13
];
[
_complaintUserButton
setTitle
:
@"我要投诉>"
forState
:
UIControlStateNormal
];
[
_complaintUserButton
setTitle
:
@"我要投诉>"
forState
:
UIControlStateNormal
];
[
_complaintUserButton
setTitleColor
:
GMColorFF8C8D
forState
:
UIControlStateNormal
];
[
_complaintUserButton
setTitleColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:
UIControlStateNormal
];
[
_complaintUserButton
addTarget
:
self
action
:
@selector
(
complaintUserButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_complaintUserButton
addTarget
:
self
action
:
@selector
(
complaintUserButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
}
return
_complaintUserButton
;
return
_complaintUserButton
;
...
@@ -463,14 +477,14 @@
...
@@ -463,14 +477,14 @@
}
}
-
(
GMLabel
*
)
bottomLabel
{
-
(
GMLabel
*
)
bottomLabel
{
if
(
!
_bottomLabel
)
{
if
(
!
_bottomLabel
)
{
_bottomLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
14
];
_bottomLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
14
];
_bottomLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_bottomLabel
.
textAlignment
=
NSTextAlignmentCenter
;
}
}
return
_bottomLabel
;
return
_bottomLabel
;
}
}
-
(
GMLabel
*
)
tipLabel
{
-
(
GMLabel
*
)
tipLabel
{
if
(
!
_tipLabel
)
{
if
(
!
_tipLabel
)
{
_tipLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
11
];
_tipLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
11
];
_tipLabel
.
text
=
@"请详细填写您需要申诉的问题,审核通过后将会为您安排退款"
;
_tipLabel
.
text
=
@"请详细填写您需要申诉的问题,审核通过后将会为您安排退款"
;
}
}
return
_tipLabel
;
return
_tipLabel
;
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGMDiagnosisWorkingTableScrollView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
@protocol
GMGMDiagnosisWorkingTableScrollViewDelegate
<
NSObject
>
@protocol
GMGMDiagnosisWorkingTableScrollViewDelegate
<
NSObject
>
//0:数据明细 1:提示view
//0:数据明细 1:提示view
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGMDiagnosisWorkingTableScrollView.m
View file @
14d10884
...
@@ -7,9 +7,12 @@
...
@@ -7,9 +7,12 @@
//
//
#import "GMGMDiagnosisWorkingTableScrollView.h"
#import "GMGMDiagnosisWorkingTableScrollView.h"
#import "GM
Weak
Proxy.h"
#import "GM
Telephone
Proxy.h"
#import "GMMissUsersTipView.h"
#import "GMMissUsersTipView.h"
#import "GMTelephoneProxy.h"
#import <GMBase/GMBaseTool.h>
@import
MJRefresh
;
#define kTop 21
#define kTop 21
@implementation
GMScrollItemView
@implementation
GMScrollItemView
...
@@ -123,7 +126,7 @@
...
@@ -123,7 +126,7 @@
}
else
{
}
else
{
[
self
invalidateTimer
];
// 暂停滚动
[
self
invalidateTimer
];
// 暂停滚动
// 弹出提示气泡
// 弹出提示气泡
[
AppDelegate
.
navigation
.
view
addSubview
:
self
.
tipView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
self
.
tipView
];
}
}
}
}
}
}
...
@@ -164,7 +167,7 @@
...
@@ -164,7 +167,7 @@
[
self
invalidateTimer
];
[
self
invalidateTimer
];
}
}
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
5
.
f
target
:[
GM
Weak
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
updateScrolling
)
userInfo
:
nil
repeats
:
YES
];
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
5
.
f
target
:[
GM
Telephone
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
updateScrolling
)
userInfo
:
nil
repeats
:
YES
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSDefaultRunLoopMode
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSDefaultRunLoopMode
];
}
}
...
@@ -189,7 +192,6 @@
...
@@ -189,7 +192,6 @@
}
}
-
(
void
)
dealloc
{
-
(
void
)
dealloc
{
debugLog
(
@"%s"
,
__func__
);
[
self
invalidateTimer
];
[
self
invalidateTimer
];
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "Lottie.h"
#import "Lottie.h"
#import "GMLibraryHeader.h"
@interface
GMGrabLoadingAnimaitionView
:
GMView
@interface
GMGrabLoadingAnimaitionView
:
GMView
@property
(
nonatomic
,
strong
)
LOTAnimationView
*
animationView
;
@property
(
nonatomic
,
strong
)
LOTAnimationView
*
animationView
;
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabLoadingView.m
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMGrabLoadingView.h"
#import "GMGrabLoadingView.h"
#import "GM
Weak
Proxy.h"
#import "GM
Telephone
Proxy.h"
@interface
GMGrabLoadingAnimaitionView
()
@interface
GMGrabLoadingAnimaitionView
()
@property
(
nonatomic
,
strong
)
UILabel
*
textLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
textLabel
;
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
_timerLabel
.
text
=
@"3"
;
_timerLabel
.
text
=
@"3"
;
_timerLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_timerLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_timerLabel
.
backgroundColor
=
UIColor
.
whiteColor
;
_timerLabel
.
backgroundColor
=
UIColor
.
whiteColor
;
_timerLabel
.
textColor
=
GMColor4DBBB5
;
_timerLabel
.
textColor
=
RGBCOLOR_HEX
(
0x4DBBB5
)
;
_timerLabel
.
font
=
[
UIFont
gmBoldFont
:
70
];
_timerLabel
.
font
=
[
UIFont
gmBoldFont
:
70
];
_timerLabel
.
layer
.
masksToBounds
=
YES
;
_timerLabel
.
layer
.
masksToBounds
=
YES
;
_timerLabel
.
layer
.
cornerRadius
=
50
;
_timerLabel
.
layer
.
cornerRadius
=
50
;
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
self
.
taskId
=
UIBackgroundTaskInvalid
;
self
.
taskId
=
UIBackgroundTaskInvalid
;
}];
}];
}
}
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
1
target
:[
GM
Weak
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
countDownAction
)
userInfo
:
nil
repeats
:
YES
];
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
1
target
:[
GM
Telephone
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
countDownAction
)
userInfo
:
nil
repeats
:
YES
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSDefaultRunLoopMode
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSDefaultRunLoopMode
];
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGrabedListCell.h
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMDiagnosisDispatchInfoView.h"
#import "GMDiagnosisDispatchInfoView.h"
#import "GMLibraryHeader.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMGrabedListCell
:
GMTableViewCell
@interface
GMGrabedListCell
:
GMTableViewCell
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGradientProgressView.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMGradientProgressView.m
View file @
14d10884
...
@@ -7,6 +7,9 @@
...
@@ -7,6 +7,9 @@
//
//
#import "GMGradientProgressView.h"
#import "GMGradientProgressView.h"
#import "GMLibraryHeader.h"
// 颜色
#define GMColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
@interface
GMGradientProgressView
()
@interface
GMGradientProgressView
()
@property
(
nonatomic
,
strong
)
CALayer
*
bgLayer
;
@property
(
nonatomic
,
strong
)
CALayer
*
bgLayer
;
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMIsDoctorPopupView.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by zhouLiang on 2020/2/22.
// Created by zhouLiang on 2020/2/22.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
@interface
GMIsDoctorPopupView
:
GMPopupBgView
@interface
GMIsDoctorPopupView
:
GMPopupBgView
/**
/**
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMIsDoctorPopupView.m
View file @
14d10884
...
@@ -8,6 +8,12 @@
...
@@ -8,6 +8,12 @@
#import "GMIsDoctorPopupView.h"
#import "GMIsDoctorPopupView.h"
#import "GMEndConsultView.h"
#import "GMEndConsultView.h"
#import "GMToFaceNetworking.h"
#import <GMBase/GMBaseTool.h>
@import
GMKit
;
@import
GMHud
;
@interface
GMIsDoctorPopupView
()
@interface
GMIsDoctorPopupView
()
@property
(
nonatomic
,
strong
)
UIView
*
grayLineView
;
@property
(
nonatomic
,
strong
)
UIView
*
grayLineView
;
...
@@ -33,6 +39,13 @@
...
@@ -33,6 +39,13 @@
[
self
setLayout
];
[
self
setLayout
];
[
self
containerRectCorner
:
self
.
container
];
[
self
containerRectCorner
:
self
.
container
];
}
}
-
(
void
)
containerRectCorner
:
(
UIView
*
)
view
{
UIBezierPath
*
maskPath
=
[
UIBezierPath
bezierPathWithRoundedRect
:
view
.
bounds
byRoundingCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
cornerRadii
:
CGSizeMake
(
12
,
12
)];
CAShapeLayer
*
maskLayer
=
[[
CAShapeLayer
alloc
]
init
];
maskLayer
.
frame
=
view
.
bounds
;
maskLayer
.
path
=
maskPath
.
CGPath
;
view
.
layer
.
mask
=
maskLayer
;
}
-
(
void
)
setUI
{
-
(
void
)
setUI
{
[
self
.
container
addSubview
:
self
.
grayLineView
];
[
self
.
container
addSubview
:
self
.
grayLineView
];
[
self
.
container
addSubview
:
self
.
titleLabel
];
[
self
.
container
addSubview
:
self
.
titleLabel
];
...
@@ -75,7 +88,7 @@
...
@@ -75,7 +88,7 @@
//判断是否是医生本人
//判断是否是医生本人
[
self
showLoading
];
[
self
showLoading
];
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceIsSureDoctor
:
sender
.
tag
diagnosis_id
:
self
.
diagnosisId
SuccessBlock
:^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceIsSureDoctor
:
sender
.
tag
diagnosis_id
:
self
.
diagnosisId
SuccessBlock
:^
(
id
response
)
{
[
weakSelf
hideLoading
];
[
weakSelf
hideLoading
];
[
weakSelf
hide
];
[
weakSelf
hide
];
[
weakSelf
evaluateDoctor
];
[
weakSelf
evaluateDoctor
];
...
@@ -89,12 +102,12 @@
...
@@ -89,12 +102,12 @@
#pragma mark - 评价医生
#pragma mark - 评价医生
-
(
void
)
evaluateDoctor
{
-
(
void
)
evaluateDoctor
{
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceEvaluateItemDiagnosis_id
:
weakSelf
.
diagnosisId
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceEvaluateItemDiagnosis_id
:
weakSelf
.
diagnosisId
SuccessBlock
:
^
(
id
response
)
{
GMStarWithContentObject
*
starContentModel
=
[[
GMStarWithContentObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMStarWithContentObject
*
starContentModel
=
[[
GMStarWithContentObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:(
GMEndConsultViewTypeGrayStar
)
starNum
:
0
];
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:(
GMEndConsultViewTypeGrayStar
)
starNum
:
0
];
view
.
recordId
=
weakSelf
.
diagnosisId
;
view
.
recordId
=
weakSelf
.
diagnosisId
;
view
.
starContentArray
=
starContentModel
.
evaluates
;
view
.
starContentArray
=
starContentModel
.
evaluates
;
[[
AppDelegate
shareInstance
].
window
addSubview
:
view
];
[[
GMBaseTool
mainWindow
]
addSubview
:
view
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}];
}];
...
@@ -118,7 +131,7 @@
...
@@ -118,7 +131,7 @@
-
(
UIView
*
)
grayLineView
{
-
(
UIView
*
)
grayLineView
{
if
(
!
_grayLineView
)
{
if
(
!
_grayLineView
)
{
_grayLineView
=
[[
UIView
alloc
]
init
];
_grayLineView
=
[[
UIView
alloc
]
init
];
_grayLineView
.
backgroundColor
=
GMColorEEEEEE
;
_grayLineView
.
backgroundColor
=
RGBCOLOR_HEX
(
0xEEEEEE
)
;
_grayLineView
.
layer
.
cornerRadius
=
2
.
5
f
;
_grayLineView
.
layer
.
cornerRadius
=
2
.
5
f
;
_grayLineView
.
layer
.
masksToBounds
=
YES
;
_grayLineView
.
layer
.
masksToBounds
=
YES
;
}
}
...
@@ -126,7 +139,7 @@
...
@@ -126,7 +139,7 @@
}
}
-
(
GMLabel
*
)
titleLabel
{
-
(
GMLabel
*
)
titleLabel
{
if
(
!
_titleLabel
)
{
if
(
!
_titleLabel
)
{
_titleLabel
=
[
GMLabel
labelWithTextColor
:
GMColor282828
fontSize
:
16
];
_titleLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x282828
)
fontSize
:
16
];
_titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_titleLabel
.
text
=
@"本次视频面诊是否为医生本人?"
;
_titleLabel
.
text
=
@"本次视频面诊是否为医生本人?"
;
}
}
...
@@ -146,7 +159,7 @@
...
@@ -146,7 +159,7 @@
_sureButton
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
_sureButton
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
_sureButton
.
tag
=
1
;
_sureButton
.
tag
=
1
;
[
_sureButton
setTitle
:
@"是"
forState
:(
UIControlStateNormal
)];
[
_sureButton
setTitle
:
@"是"
forState
:(
UIControlStateNormal
)];
[
_sureButton
setBackgroundColor
:
GMColor4DBBB5
forState
:(
UIControlStateNormal
)];
[
_sureButton
setBackgroundColor
:
RGBCOLOR_HEX
(
0x4DBBB5
)
forState
:(
UIControlStateNormal
)];
[
_sureButton
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_sureButton
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_sureButton
addTarget
:
self
action
:
@selector
(
judgeIsDoctorMethod
:
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
[
_sureButton
addTarget
:
self
action
:
@selector
(
judgeIsDoctorMethod
:
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
_sureButton
.
layer
.
cornerRadius
=
22
.
5
f
;
_sureButton
.
layer
.
cornerRadius
=
22
.
5
f
;
...
@@ -159,7 +172,7 @@
...
@@ -159,7 +172,7 @@
_negateButton
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
_negateButton
=
[
GMButton
buttonWithType
:(
UIButtonTypeCustom
)];
_negateButton
.
tag
=
0
;
_negateButton
.
tag
=
0
;
[
_negateButton
setTitle
:
@"不是"
forState
:(
UIControlStateNormal
)];
[
_negateButton
setTitle
:
@"不是"
forState
:(
UIControlStateNormal
)];
[
_negateButton
setBackgroundColor
:
GMColorD8D8D8
forState
:(
UIControlStateNormal
)];
[
_negateButton
setBackgroundColor
:
RGBCOLOR_HEX
(
0xD8D8D8
)
forState
:(
UIControlStateNormal
)];
[
_negateButton
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_negateButton
setTitleColor
:
UIColor
.
whiteColor
forState
:(
UIControlStateNormal
)];
[
_negateButton
addTarget
:
self
action
:
@selector
(
judgeIsDoctorMethod
:
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
[
_negateButton
addTarget
:
self
action
:
@selector
(
judgeIsDoctorMethod
:
)
forControlEvents
:
(
UIControlEventTouchUpInside
)];
_negateButton
.
layer
.
cornerRadius
=
22
.
5
f
;
_negateButton
.
layer
.
cornerRadius
=
22
.
5
f
;
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMMissUsersTipView.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by Jessica on 2020/2/20.
// Created by Jessica on 2020/2/20.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMPopupBgView.h>
@protocol
GMMissUsersTipViewHideDelegate
<
NSObject
>
@protocol
GMMissUsersTipViewHideDelegate
<
NSObject
>
// 隐藏
// 隐藏
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMMissUsersTipView.m
View file @
14d10884
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
//
//
#import "GMMissUsersTipView.h"
#import "GMMissUsersTipView.h"
#import "GMLibraryHeader.h"
@interface
GMMissUsersTipView
()
@interface
GMMissUsersTipView
()
@property
(
nonatomic
,
strong
)
GMImageView
*
imageView
;
@property
(
nonatomic
,
strong
)
GMImageView
*
imageView
;
@property
(
nonatomic
,
strong
)
GMLabel
*
contentLabel
;
@property
(
nonatomic
,
strong
)
GMLabel
*
contentLabel
;
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMOnlineStatusView.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by Jessica on 2020/2/18.
// Created by Jessica on 2020/2/18.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMView.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMOnlineStatusView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMOnlineStatusView.h"
#import "GMOnlineStatusView.h"
@import
GMBase
;
@interface
GMOnlineStatusView
()
@interface
GMOnlineStatusView
()
@property
(
nonatomic
,
copy
)
NSString
*
desc
;
@property
(
nonatomic
,
copy
)
NSString
*
desc
;
...
@@ -25,7 +26,7 @@
...
@@ -25,7 +26,7 @@
[
super
setup
];
[
super
setup
];
UILabel
*
statusLabel
=
[[
UILabel
alloc
]
init
];
UILabel
*
statusLabel
=
[[
UILabel
alloc
]
init
];
statusLabel
.
backgroundColor
=
GMColor20BDBB
;
statusLabel
.
backgroundColor
=
RGBCOLOR_HEX
(
0x20BDBB
)
;
statusLabel
.
layer
.
cornerRadius
=
2
+
ONE_PIXEL
;
statusLabel
.
layer
.
cornerRadius
=
2
+
ONE_PIXEL
;
statusLabel
.
layer
.
masksToBounds
=
YES
;
statusLabel
.
layer
.
masksToBounds
=
YES
;
[
self
addSubview
:
statusLabel
];
[
self
addSubview
:
statusLabel
];
...
@@ -38,7 +39,7 @@
...
@@ -38,7 +39,7 @@
_descLabel
=
[[
UILabel
alloc
]
init
];
_descLabel
=
[[
UILabel
alloc
]
init
];
_descLabel
.
font
=
[
UIFont
gmFont
:
11
];
_descLabel
.
font
=
[
UIFont
gmFont
:
11
];
_descLabel
.
textColor
=
ALColor999999
;
_descLabel
.
textColor
=
RGBCOLOR_HEX
(
0x999999
)
;
_descLabel
.
text
=
self
.
desc
;
_descLabel
.
text
=
self
.
desc
;
[
self
addSubview
:
_descLabel
];
[
self
addSubview
:
_descLabel
];
[
_descLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_descLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMWaitingGrabListCell.m
View file @
14d10884
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
//
//
#import "GMWaitingGrabListCell.h"
#import "GMWaitingGrabListCell.h"
#import "GMWeakProxy.h"
#import "GMTelephoneProxy.h"
@import
GMBase
;
@interface
GMWaitingGrabListCell
()
{
@interface
GMWaitingGrabListCell
()
{
GMImageView
*
_bgImage
;
GMImageView
*
_bgImage
;
...
@@ -126,7 +127,7 @@
...
@@ -126,7 +127,7 @@
// // 这句话重点,加这行代码可以让程序在后台运行一段时间
// // 这句话重点,加这行代码可以让程序在后台运行一段时间
// [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:nil];
// [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:nil];
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
0
.
1
target
:[
GM
Weak
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
updateProgress
)
userInfo
:
nil
repeats
:
YES
];
self
.
timer
=
[
NSTimer
timerWithTimeInterval
:
0
.
1
target
:[
GM
Telephone
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
updateProgress
)
userInfo
:
nil
repeats
:
YES
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSRunLoopCommonModes
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
timer
forMode
:
NSRunLoopCommonModes
];
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMWoikingTableCollectionCell.h
View file @
14d10884
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Created by Jessica on 2020/2/18.
// Created by Jessica on 2020/2/18.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMKit/GMCollectionViewCell.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMWoikingTableCollectionCell
:
GMCollectionViewCell
@interface
GMWoikingTableCollectionCell
:
GMCollectionViewCell
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMWoikingTableCollectionCell.m
View file @
14d10884
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
//
//
#import "GMWoikingTableCollectionCell.h"
#import "GMWoikingTableCollectionCell.h"
@import
Masonry
;
@import
GMBase
;
@implementation
GMWoikingTableCollectionCell
@implementation
GMWoikingTableCollectionCell
-
(
void
)
setup
{
-
(
void
)
setup
{
[
super
setup
];
[
super
setup
];
...
@@ -20,7 +21,7 @@
...
@@ -20,7 +21,7 @@
make
.
size
.
mas_equalTo
(
CGSizeMake
(
45
,
45
));
make
.
size
.
mas_equalTo
(
CGSizeMake
(
45
,
45
));
}];
}];
_infoLabel
=
[
GMLabel
labelWithTextColor
:
ALColor464646
fontSize
:
14
];
_infoLabel
=
[
GMLabel
labelWithTextColor
:
RGBCOLOR_HEX
(
0x464646
)
fontSize
:
14
];
_infoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_infoLabel
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
addSubview
:
_infoLabel
];
[
self
addSubview
:
_infoLabel
];
[
_infoLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_infoLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
@@ -33,7 +34,7 @@
...
@@ -33,7 +34,7 @@
_badge
.
textAlignment
=
NSTextAlignmentCenter
;
_badge
.
textAlignment
=
NSTextAlignmentCenter
;
_badge
.
layer
.
masksToBounds
=
YES
;
_badge
.
layer
.
masksToBounds
=
YES
;
_badge
.
layer
.
cornerRadius
=
8
;
_badge
.
layer
.
cornerRadius
=
8
;
_badge
.
backgroundColor
=
GMColorFF4F5F
;
_badge
.
backgroundColor
=
RGBCOLOR_HEX
(
0xFF4F5F
)
;
[
self
addSubview
:
_badge
];
[
self
addSubview
:
_badge
];
[
_badge
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_badge
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_icon
.
mas_top
);
make
.
top
.
mas_equalTo
(
_icon
.
mas_top
);
...
...
GMAILab/Classes/ToFace/WorkingTable/View/GMWorkingTableCell.h
View file @
14d10884
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMKit
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMBusinessReportListController.m
View file @
14d10884
...
@@ -7,11 +7,15 @@
...
@@ -7,11 +7,15 @@
//
//
#import "GMBusinessReportListController.h"
#import "GMBusinessReportListController.h"
#import "Gengmei-Swift.h"
//
#import "Gengmei-Swift.h"
#import "GMEndConsultView.h"
#import "GMEndConsultView.h"
#import "GMComplaintResultView.h"
#import "GMComplaintResultView.h"
#import "GMComplaintObject.h"
#import "GMComplaintObject.h"
#import "RequestHeader.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <GMFoundation/GMFoundation-umbrella.h>
@import
GMNetworking
;
@import
WebKit
.
WKWebView
;
@interface
GMBusinessReportListController
()
<
WKWebViewDelegate
>
@interface
GMBusinessReportListController
()
<
WKWebViewDelegate
>
@end
@end
...
@@ -30,7 +34,7 @@
...
@@ -30,7 +34,7 @@
self
.
navigationBar
.
isShowShadow
=
YES
;
self
.
navigationBar
.
isShowShadow
=
YES
;
self
.
path
=
API_TREETMENT_BUSINESS_REPORT_LIST
;
self
.
path
=
API_TREETMENT_BUSINESS_REPORT_LIST
;
[
self
reloadURL
];
[
self
reloadURL
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
editQuesPartFinish
)
name
:
GM_WORKING_EDIT_QUESTION_PART_NOTIFICATION
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
editQuesPartFinish
)
name
:
@"gm_working_edit_question_part_notification"
object
:
nil
];
}
}
-
(
void
)
editQuesPartFinish
{
-
(
void
)
editQuesPartFinish
{
...
@@ -58,11 +62,11 @@
...
@@ -58,11 +62,11 @@
NSString
*
jsStr
=
[
NSString
stringWithFormat
:
@"window.gm&&window.gm.pack&&window.gm.pack.run('notificReportState','%@')"
,
[
NSString
convertToBriefJsonString
:
params
]];
NSString
*
jsStr
=
[
NSString
stringWithFormat
:
@"window.gm&&window.gm.pack&&window.gm.pack.run('notificReportState','%@')"
,
[
NSString
convertToBriefJsonString
:
params
]];
[
self
.
webCompent
.
webView
evaluateJavaScript
:
jsStr
completionHandler
:
nil
];
[
self
.
webCompent
.
webView
evaluateJavaScript
:
jsStr
completionHandler
:
nil
];
};
};
[
AppDelegate
.
navigation
.
view
addSubview
:
view
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
view
];
}
else
{
}
else
{
GMComplaintObject
*
dictModel
=
[[
GMComplaintObject
alloc
]
initWithDictionary
:
complaint
error
:
nil
];
GMComplaintObject
*
dictModel
=
[[
GMComplaintObject
alloc
]
initWithDictionary
:
complaint
error
:
nil
];
GMComplaintResultView
*
view
=
[[
GMComplaintResultView
alloc
]
initWithType
:
complaintStatus
dictModel
:
dictModel
];
GMComplaintResultView
*
view
=
[[
GMComplaintResultView
alloc
]
initWithType
:
complaintStatus
dictModel
:
dictModel
];
[
AppDelegate
.
navigation
.
view
addSubview
:
view
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
view
];
}
}
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMBusinessReportResultController.m
View file @
14d10884
...
@@ -7,10 +7,16 @@
...
@@ -7,10 +7,16 @@
//
//
#import "GMBusinessReportResultController.h"
#import "GMBusinessReportResultController.h"
#import "Gengmei-Swift.h"
#import "GMUploadImagesManager.h"
#import "QiniuSDK.h"
#import "QiniuSDK.h"
#import "RequestHeader.h"
#import "GMAIUploadImagesManager.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
#import <GMbase/GMBaseTool.h>
@import
GMHud
;
@import
GMNetworking
;
@import
GMFoundation
;
@import
GMAlbum
;
@interface
GMBusinessReportResultController
()
<
WKWebViewDelegate
>
@interface
GMBusinessReportResultController
()
<
WKWebViewDelegate
>
@property
(
nonatomic
,
strong
)
UIImage
*
shareImage
;
@property
(
nonatomic
,
strong
)
UIImage
*
shareImage
;
...
@@ -50,8 +56,8 @@
...
@@ -50,8 +56,8 @@
self
.
recordId
=
SafeString
(
dict
[
@"recordId"
]);
self
.
recordId
=
SafeString
(
dict
[
@"recordId"
]);
self
.
shareUserId
=
SafeString
(
dict
[
@"userId"
]);
self
.
shareUserId
=
SafeString
(
dict
[
@"userId"
]);
self
.
shareImage
=
[
UIImage
imageWithData
:[[
NSData
alloc
]
initWithBase64EncodedString
:
imageString
options
:
NSDataBase64DecodingIgnoreUnknownCharacters
]];
self
.
shareImage
=
[
UIImage
imageWithData
:[[
NSData
alloc
]
initWithBase64EncodedString
:
imageString
options
:
NSDataBase64DecodingIgnoreUnknownCharacters
]];
__block
NSString
*
key
=
[[
GMUploadImagesManager
shareInstance
]
createImagePath
];
__block
NSString
*
key
=
[[
GM
AI
UploadImagesManager
shareInstance
]
createImagePath
];
[[
GMUploadImagesManager
shareInstance
]
getTokenWithType
:
GMTokenTypeImage
resultBlock
:
^
(
BOOL
result
,
NSString
*
message
)
{
[[
GM
AI
UploadImagesManager
shareInstance
]
getTokenWithType
:
GMTokenTypeImage
resultBlock
:
^
(
BOOL
result
,
NSString
*
message
)
{
if
(
result
)
{
if
(
result
)
{
NSData
*
imageData
=
UIImageJPEGRepresentation
(
self
.
shareImage
,
1
);
NSData
*
imageData
=
UIImageJPEGRepresentation
(
self
.
shareImage
,
1
);
QNUploadManager
*
upManager
=
[[
QNUploadManager
alloc
]
init
];
QNUploadManager
*
upManager
=
[[
QNUploadManager
alloc
]
init
];
...
@@ -77,9 +83,9 @@
...
@@ -77,9 +83,9 @@
[
GMNetworking
requestOCWithApi
:
API_DOCTOR_SEND_REPORT_MESSAGE
method
:
GMHTTPMethodPost
parameters
:
params
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
[
GMNetworking
requestOCWithApi
:
API_DOCTOR_SEND_REPORT_MESSAGE
method
:
GMHTTPMethodPost
parameters
:
params
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
if
(
response
.
isSuccess
)
{
if
(
response
.
isSuccess
)
{
[
AppDelegate
.
visibleController
toast
:
@"发送成功"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"发送成功"
];
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
response
.
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
response
.
message
];
}
}
}];
}];
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMDiagnosisDispatchContainerViewController.h
View file @
14d10884
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Created by Jessica on 2020/3/6.
// Created by Jessica on 2020/3/6.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import <GMBase/WMBaseViewController.h>
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMDiagnosisDispatchContainerViewController
:
WMBaseViewController
@interface
GMDiagnosisDispatchContainerViewController
:
WMBaseViewController
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMDiagnosisDispatchContainerViewController.m
View file @
14d10884
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#import "GMWaitingGrabListViewController.h"
#import "GMWaitingGrabListViewController.h"
#import "GMGrabedListViewController.h"
#import "GMGrabedListViewController.h"
#import "GMDoctorConsultatioPromptView.h"
#import "GMDoctorConsultatioPromptView.h"
#import <GMBase/GMBaseTool.h>
@interface
GMDiagnosisDispatchContainerViewController
()
<
GMCustomNavigationAnimationProtocol
>
@interface
GMDiagnosisDispatchContainerViewController
()
<
GMCustomNavigationAnimationProtocol
>
@property
(
nonatomic
,
strong
)
GMSegmentViewWithRedBadge
*
segment
;
@property
(
nonatomic
,
strong
)
GMSegmentViewWithRedBadge
*
segment
;
...
@@ -81,7 +82,7 @@
...
@@ -81,7 +82,7 @@
}
}
-
(
void
)
rightButtonClicked
:
(
OCNavigationBarButton
*
)
button
{
-
(
void
)
rightButtonClicked
:
(
OCNavigationBarButton
*
)
button
{
[
AppDelegate
.
visibleController
.
navigationController
popViewControllerAnimated
:
YES
];
[
[
GMBaseTool
getCurrentViewController
]
.
navigationController
popViewControllerAnimated
:
YES
];
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMDiagnosisWorkingTableViewController.m
View file @
14d10884
...
@@ -14,9 +14,11 @@
...
@@ -14,9 +14,11 @@
#import "GMDiagnosisWorkingTableChooseIdentityView.h"
#import "GMDiagnosisWorkingTableChooseIdentityView.h"
#import "WMTagObject.h"
#import "WMTagObject.h"
#import "UIAlertController+gm.h"
#import "UIAlertController+gm.h"
#import "UIView+GMExtension.h"
//
#import "UIView+GMExtension.h"
#import "GMCommonTipAlertView.h"
#import "GMCommonTipAlertView.h"
#import "AppDelegate+RemotePush.h"
#import "GMLibraryHeader.h"
#import <AVFoundation/AVFoundation.h>
#import <GMBase/GMBaseTool.h>
@interface
GMDiagnosisWorkingTableViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
,
GMDiagnosisWorkingTableSwitchDelegate
,
GMDiagnosisWorkingTableChooseIdentityViewDelegate
>
{
@interface
GMDiagnosisWorkingTableViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
,
GMDiagnosisWorkingTableSwitchDelegate
,
GMDiagnosisWorkingTableChooseIdentityViewDelegate
>
{
GMDiagnosisWorkingTableSwitch
*
_switchView
;
GMDiagnosisWorkingTableSwitch
*
_switchView
;
...
@@ -82,7 +84,7 @@
...
@@ -82,7 +84,7 @@
-
(
void
)
fetchData
{
-
(
void
)
fetchData
{
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
.
viewModel
fetchWorkBenchHomeData
:
^
(
APIStatusCode
apiStatus
,
NSString
*
message
)
{
[
self
.
viewModel
fetchWorkBenchHomeData
:
^
(
APIStatusCode
apiStatus
,
NSString
*
message
)
{
[
AppDelegate
.
visibleController
hideLoading
];
[
[
GMBaseTool
getCurrentViewController
]
hideLoading
];
if
(
APIStatusCodeFailed
==
apiStatus
)
{
// 失败
if
(
APIStatusCodeFailed
==
apiStatus
)
{
// 失败
[
weakSelf
showEmptyView
:
GMEmptyViewTypeException
];
[
weakSelf
showEmptyView
:
GMEmptyViewTypeException
];
...
@@ -166,13 +168,13 @@
...
@@ -166,13 +168,13 @@
}
}
weakSelf
.
statusView
.
hidden
=
YES
;
weakSelf
.
statusView
.
hidden
=
YES
;
}
failBlock
:
^
(
NSString
*
message
)
{
}
failBlock
:
^
(
NSString
*
message
)
{
[
weakSelf
.
view
showImageHUDText
:
message
];
[
GMHudModule
showWarning
:
message
];
}];
}];
}
else
{
// 开启
}
else
{
// 开启
// 1. 判断权限
// 1. 判断权限
if
([
self
necessaryAuthority
])
{
if
([
self
necessaryAuthority
])
{
// 通知权限
// 通知权限
[
[
AppDelegate
shareInstance
]
userIsAllowPush
:
^
(
BOOL
status
)
{
[
GMBaseTool
userIsAllowPush
:
^
(
BOOL
status
)
{
if
(
!
status
)
{
// 未开通知
if
(
!
status
)
{
// 未开通知
[
GMCommonTipAlertView
showAtertWithTitle
:
@""
content
:
@"为了及时收到用户的呼叫提醒,需先开启系统通知"
leftBtnText
:
@"以后再说"
rightBtnText
:
@"立即打开"
leftAction
:
@selector
(
cancelAction
:
)
rightAction
:
@selector
(
gotoSetting
:
)
target
:
weakSelf
];
[
GMCommonTipAlertView
showAtertWithTitle
:
@""
content
:
@"为了及时收到用户的呼叫提醒,需先开启系统通知"
leftBtnText
:
@"以后再说"
rightBtnText
:
@"立即打开"
leftAction
:
@selector
(
cancelAction
:
)
rightAction
:
@selector
(
gotoSetting
:
)
target
:
weakSelf
];
}
else
{
}
else
{
...
@@ -187,7 +189,7 @@
...
@@ -187,7 +189,7 @@
NSDictionary
*
data
=
response
.
data
;
NSDictionary
*
data
=
response
.
data
;
weakSelf
.
chooseIdentityView
.
tagsArray
=
[
WMTagObject
arrayOfModelsFromDictionaries
:
data
[
@"good_at_list"
]
error
:
NULL
];
weakSelf
.
chooseIdentityView
.
tagsArray
=
[
WMTagObject
arrayOfModelsFromDictionaries
:
data
[
@"good_at_list"
]
error
:
NULL
];
}
failBlock
:
^
(
NSString
*
message
)
{
}
failBlock
:
^
(
NSString
*
message
)
{
[
weakSelf
.
view
showImageHUDText
:
message
];
[
GMHudModule
showWarning
:
message
];
}];
}];
}
}
}
}
...
@@ -222,7 +224,7 @@
...
@@ -222,7 +224,7 @@
weakSelf
.
OpenSuccessBlock
(
YES
);
weakSelf
.
OpenSuccessBlock
(
YES
);
}
}
}
failBlock
:
^
(
NSString
*
message
)
{
}
failBlock
:
^
(
NSString
*
message
)
{
[
weakSelf
.
view
showImageHUDText
:
message
];
[
GMHudModule
showWarning
:
message
];
}];
}];
}
}
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMEditQuesPartController.h
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMEditQuesPartViewModel.h"
#import "GMEditQuesPartViewModel.h"
#import "GMLibraryHeader.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
GMEditQuesPartController
:
WMBaseListViewController
@interface
GMEditQuesPartController
:
WMBaseListViewController
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMEditQuesPartController.m
View file @
14d10884
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
#import "GMEditQuesPartSelectView.h"
#import "GMEditQuesPartSelectView.h"
#import "GMCommonTipAlertView.h"
#import "GMCommonTipAlertView.h"
#import <GMBase/GMBaseTool.h>
@interface
GMEditQuesPartController
()
<
GMEditQuesPartSelectViewDelegate
>
@interface
GMEditQuesPartController
()
<
GMEditQuesPartSelectViewDelegate
>
@property
(
nonatomic
,
strong
)
GMEditQuesPartCell
*
sectionTagCell
;
@property
(
nonatomic
,
strong
)
GMEditQuesPartCell
*
sectionTagCell
;
...
@@ -97,7 +99,7 @@
...
@@ -97,7 +99,7 @@
[
self
toast
:
@"请先选择改善诉求"
];
[
self
toast
:
@"请先选择改善诉求"
];
}
else
{
}
else
{
[
self
.
selectView
selectType
:
type
title
:
cell
.
titleLabel
.
text
];
[
self
.
selectView
selectType
:
type
title
:
cell
.
titleLabel
.
text
];
[
AppDelegate
.
navigation
.
view
addSubview
:
self
.
selectView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
self
.
selectView
];
}
}
}
}
}
}
...
@@ -164,7 +166,7 @@
...
@@ -164,7 +166,7 @@
_saveButton
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
17
];
_saveButton
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
17
];
[
_saveButton
setTitle
:
@"保存"
forState
:
UIControlStateNormal
];
[
_saveButton
setTitle
:
@"保存"
forState
:
UIControlStateNormal
];
[
_saveButton
setTitleColor
:
UIColor
.
whiteColor
forState
:
UIControlStateNormal
];
[
_saveButton
setTitleColor
:
UIColor
.
whiteColor
forState
:
UIControlStateNormal
];
[
_saveButton
setBackgroundColor
:
GMColorFF8C8D
forState
:
UIControlStateNormal
];
[
_saveButton
setBackgroundColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:
UIControlStateNormal
];
[
_saveButton
addTarget
:
self
action
:
@selector
(
save
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_saveButton
addTarget
:
self
action
:
@selector
(
save
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
}
return
_saveButton
;
return
_saveButton
;
...
@@ -174,12 +176,12 @@
...
@@ -174,12 +176,12 @@
if
(
!
_deleteButton
)
{
if
(
!
_deleteButton
)
{
_deleteButton
=
[
GMButton
buttonWithType
:
UIButtonTypeCustom
];
_deleteButton
=
[
GMButton
buttonWithType
:
UIButtonTypeCustom
];
_deleteButton
.
layer
.
borderWidth
=
1
.
5
;
_deleteButton
.
layer
.
borderWidth
=
1
.
5
;
_deleteButton
.
layer
.
borderColor
=
GMColorFF8C8D
.
CGColor
;
_deleteButton
.
layer
.
borderColor
=
RGBCOLOR_HEX
(
0xFF8C8D
)
.
CGColor
;
_deleteButton
.
layer
.
cornerRadius
=
22
.
5
;
_deleteButton
.
layer
.
cornerRadius
=
22
.
5
;
_deleteButton
.
layer
.
masksToBounds
=
YES
;
_deleteButton
.
layer
.
masksToBounds
=
YES
;
_deleteButton
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
17
];
_deleteButton
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
17
];
[
_deleteButton
setTitle
:
@"删除"
forState
:
UIControlStateNormal
];
[
_deleteButton
setTitle
:
@"删除"
forState
:
UIControlStateNormal
];
[
_deleteButton
setTitleColor
:
GMColorFF8C8D
forState
:
UIControlStateNormal
];
[
_deleteButton
setTitleColor
:
RGBCOLOR_HEX
(
0xFF8C8D
)
forState
:
UIControlStateNormal
];
[
_deleteButton
addTarget
:
self
action
:
@selector
(
deleteButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_deleteButton
addTarget
:
self
action
:
@selector
(
deleteButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
}
return
_deleteButton
;
return
_deleteButton
;
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMGrabedListViewController.m
View file @
14d10884
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#import "GMGrabedListViewController.h"
#import "GMGrabedListViewController.h"
#import "GMGrabedListCell.h"
#import "GMGrabedListCell.h"
#import "GMFooterView.h"
//
#import "GMFooterView.h"
@interface
GMGrabedListViewController
()
@interface
GMGrabedListViewController
()
@end
@end
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMWaitingGrabListViewController.m
View file @
14d10884
...
@@ -11,8 +11,10 @@
...
@@ -11,8 +11,10 @@
#import "GMGrabLoadingView.h"
#import "GMGrabLoadingView.h"
#import "GMDoctorVideoTelephoneLogin.h"
#import "GMDoctorVideoTelephoneLogin.h"
#import "GMDispatchWaitingGrabObject.h"
#import "GMDispatchWaitingGrabObject.h"
#import "GM
Weak
Proxy.h"
#import "GM
Telephone
Proxy.h"
#import "GMVideoPhobos.h"
#import "GMVideoPhobos.h"
#import <GMBase/GMBaseTool.h>
@interface
GMWaitingGrabListViewController
()
@interface
GMWaitingGrabListViewController
()
@property
(
nonatomic
,
strong
)
GMGrabLoadingView
*
loadingView
;
@property
(
nonatomic
,
strong
)
GMGrabLoadingView
*
loadingView
;
...
@@ -62,7 +64,7 @@
...
@@ -62,7 +64,7 @@
-
(
void
)
setupTimer
{
-
(
void
)
setupTimer
{
// 本页面在进入页面后的每5刷新一次,页面可见时刷新即可
// 本页面在进入页面后的每5刷新一次,页面可见时刷新即可
self
.
getDateTimer
=
[
NSTimer
timerWithTimeInterval
:
5
target
:[
GM
Weak
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
fetchListData
)
userInfo
:
nil
repeats
:
YES
];
self
.
getDateTimer
=
[
NSTimer
timerWithTimeInterval
:
5
target
:[
GM
Telephone
Proxy
proxyWithTarget
:
self
]
selector
:
@selector
(
fetchListData
)
userInfo
:
nil
repeats
:
YES
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
getDateTimer
forMode
:
NSDefaultRunLoopMode
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
self
.
getDateTimer
forMode
:
NSDefaultRunLoopMode
];
}
}
...
@@ -73,7 +75,7 @@
...
@@ -73,7 +75,7 @@
-
(
void
)
addNotificationObserver
{
-
(
void
)
addNotificationObserver
{
// 收到通知刷新数据
// 收到通知刷新数据
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
headerRereshing
)
name
:
NEED_REFRESH_DISPATCH
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
headerRereshing
)
name
:
@"need_refresh_dispatch"
object
:
nil
];
// 在应用进入前台时,刷新一下数据,保证倒计时准确
// 在应用进入前台时,刷新一下数据,保证倒计时准确
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
headerRereshing
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
headerRereshing
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
}
}
...
@@ -182,7 +184,7 @@
...
@@ -182,7 +184,7 @@
// 判断权限
// 判断权限
if
([
weakSelf
necessaryAuthority
])
{
if
([
weakSelf
necessaryAuthority
])
{
// 点击「抢单」按钮后,出现「抢单loading」页
// 点击「抢单」按钮后,出现「抢单loading」页
[
AppDelegate
.
visibleController
.
view
addSubview
:
weakSelf
.
loadingView
];
[
[
GMBaseTool
getCurrentViewController
]
.
view
addSubview
:
weakSelf
.
loadingView
];
[
weakSelf
.
loadingView
showLoading
:
YES
];
[
weakSelf
.
loadingView
showLoading
:
YES
];
[
weakSelf
.
viewModel
grabOrderWithTaskId
:
object
.
dispatchTaskId
successBlock
:
^
(
id
responseObject
)
{
[
weakSelf
.
viewModel
grabOrderWithTaskId
:
object
.
dispatchTaskId
successBlock
:
^
(
id
responseObject
)
{
GMResponseOC
*
response
=
(
GMResponseOC
*
)
responseObject
;
GMResponseOC
*
response
=
(
GMResponseOC
*
)
responseObject
;
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMDiagnosisWorkingTableViewModel.m
View file @
14d10884
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
//
//
#import "GMDiagnosisWorkingTableViewModel.h"
#import "GMDiagnosisWorkingTableViewModel.h"
#import "RequestHeader.h"
@import
GMNetworking
;
@import
GMFoundation
;
@implementation
GMDiagnosisWorkingTableViewModel
@implementation
GMDiagnosisWorkingTableViewModel
-
(
void
)
startConsultationWithSuccessBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
-
(
void
)
startConsultationWithSuccessBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
//构造参数
//构造参数
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMEditQuesPartViewModel.m
View file @
14d10884
...
@@ -8,8 +8,13 @@
...
@@ -8,8 +8,13 @@
#import "GMEditQuesPartViewModel.h"
#import "GMEditQuesPartViewModel.h"
#import "GMBusinessReportListController.h"
#import "GMBusinessReportListController.h"
#import "WMBrowserViewController.h"
#import <GMBase/GMBaseTool.h>
//#import "WMBrowserViewController.h"
#import "RequestHeader.h"
@import
GMHud
;
@import
GMRouter
;
@import
GMFoundation
;
@import
GMNetworking
;
@implementation
GMEditQuesPartViewModel
@implementation
GMEditQuesPartViewModel
-
(
instancetype
)
init
{
-
(
instancetype
)
init
{
...
@@ -50,15 +55,16 @@
...
@@ -50,15 +55,16 @@
}
}
}
}
}];
}];
}
}
-
(
void
)
saveQuesPart
{
-
(
void
)
saveQuesPart
{
if
(
!
self
.
editModel
.
sectionTag
)
{
if
(
!
self
.
editModel
.
sectionTag
)
{
[
AppDelegate
.
visibleController
toast
:
@"请先选择问题部位"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"请先选择问题部位"
];
}
else
if
(
self
.
editModel
.
improveAppeals
.
count
==
0
)
{
}
else
if
(
self
.
editModel
.
improveAppeals
.
count
==
0
)
{
[
AppDelegate
.
visibleController
toast
:
@"请先选择改善诉求"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"请先选择改善诉求"
];
}
else
if
(
self
.
editModel
.
suitProjects
.
count
==
0
)
{
}
else
if
(
self
.
editModel
.
suitProjects
.
count
==
0
)
{
[
AppDelegate
.
visibleController
toast
:
@"请先选择适应项目"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"请先选择适应项目"
];
}
else
{
}
else
{
NSString
*
api
=
[
self
.
editModel
.
reportitemId
isNonEmpty
]
?
API_QUESTION_PART_EDIT
:
API_QUESTION_PART_ADD
;
NSString
*
api
=
[
self
.
editModel
.
reportitemId
isNonEmpty
]
?
API_QUESTION_PART_EDIT
:
API_QUESTION_PART_ADD
;
NSMutableDictionary
*
params
=
[
NSMutableDictionary
new
];
NSMutableDictionary
*
params
=
[
NSMutableDictionary
new
];
...
@@ -68,61 +74,58 @@
...
@@ -68,61 +74,58 @@
[
params
setValue
:
self
.
editModel
.
improveAppealIdsStr
forKey
:
@"improve_appeals"
];
[
params
setValue
:
self
.
editModel
.
improveAppealIdsStr
forKey
:
@"improve_appeals"
];
[
params
setValue
:
self
.
editModel
.
suitProjectIdsStr
forKey
:
@"suit_projects"
];
[
params
setValue
:
self
.
editModel
.
suitProjectIdsStr
forKey
:
@"suit_projects"
];
[
params
setValue
:
self
.
editModel
.
otherSuggestions
forKey
:
@"other_suggestions"
];
[
params
setValue
:
self
.
editModel
.
otherSuggestions
forKey
:
@"other_suggestions"
];
UIViewController
*
currentVC
=
[
GMBaseTool
getCurrentViewController
];
[
GMNetworking
requestOCWithApi
:
api
method
:
GMHTTPMethodPost
parameters
:
params
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
[
GMNetworking
requestOCWithApi
:
api
method
:
GMHTTPMethodPost
parameters
:
params
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
if
(
response
.
isSuccess
)
{
if
(
response
.
isSuccess
)
{
[
self
editQuesPartFinish
];
[
self
editQuesPartFinish
];
if
([
self
isFromReportDetail
])
{
if
([
self
isFromReportDetail
])
{
[
AppDelegate
.
visibleController
popViewControllerAnimated
:
YES
completion
:
^
{
[
currentVC
popViewControllerAnimated
:
YES
completion
:
^
{
[
AppDelegate
.
visibleController
toast
:[
self
.
editModel
.
reportitemId
isNonEmpty
]
?
@"保存成功"
:
@"添加成功"
];
[
currentVC
toast
:[
self
.
editModel
.
reportitemId
isNonEmpty
]
?
@"保存成功"
:
@"添加成功"
];
}];
}];
}
else
{
}
else
{
[
AppDelegate
.
visibleController
popViewControllerAnimated
:
NO
completion
:
nil
];
[
currentVC
popViewControllerAnimated
:
NO
completion
:
nil
];
[[
GMRouter
sharedInstance
]
pushScheme
:
response
.
data
[
@"gm_url"
]];
[[
GMRouter
sharedInstance
]
pushScheme
:
response
.
data
[
@"gm_url"
]];
}
}
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
response
.
message
];
[
currentVC
toast
:
response
.
message
];
}
}
}];
}];
}
}
}
}
-
(
void
)
deleteQuesPart
{
-
(
void
)
deleteQuesPart
{
UIViewController
*
currentVC
=
[
GMBaseTool
getCurrentViewController
];
[
GMNetworking
requestOCWithApi
:
API_QUESTION_PART_DELETE
method
:
GMHTTPMethodPost
parameters
:
@{
@"reportitem_id"
:
SafeString
(
self
.
editModel
.
reportitemId
)}
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
[
GMNetworking
requestOCWithApi
:
API_QUESTION_PART_DELETE
method
:
GMHTTPMethodPost
parameters
:
@{
@"reportitem_id"
:
SafeString
(
self
.
editModel
.
reportitemId
)}
completion
:^
(
GMResponseOC
*
_Nonnull
response
)
{
if
(
response
.
isSuccess
)
{
if
(
response
.
isSuccess
)
{
[
self
editQuesPartFinish
];
[
self
editQuesPartFinish
];
[
AppDelegate
.
visibleController
popViewControllerAnimated
:
YES
completion
:
^
{
[
currentVC
popViewControllerAnimated
:
YES
completion
:
^
{
[
AppDelegate
.
visibleController
toast
:
@"删除成功"
];
[
currentVC
toast
:
@"删除成功"
];
}];
}];
}
else
{
}
else
{
[
AppDelegate
.
visibleController
toast
:
response
.
message
];
[
currentVC
toast
:
response
.
message
];
}
}
}];
}];
}
}
//TODO: 待测试
-
(
BOOL
)
isFromReportDetail
{
-
(
BOOL
)
isFromReportDetail
{
NSArray
<
__kindof
UIViewController
*>
*
viewControllers
=
AppDelegate
.
visibleController
.
navigationController
.
viewControllers
;
BOOL
isDetail
=
[[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_isFromReportDetail"
]
boolValue
];
if
(
viewControllers
.
count
>
1
)
{
return
isDetail
;
UIViewController
*
preVC
=
viewControllers
[
viewControllers
.
count
-
2
];
if
([
preVC
isKindOfClass
:[
WMBrowserViewController
class
]])
{
if
([((
WMBrowserViewController
*
)
preVC
).
fullURL
containsString
:
API_TREETMENT_BUSINESS_REPORT_DETAIL
])
{
return
YES
;
}
}
}
return
NO
;
}
}
-
(
void
)
editQuesPartFinish
{
-
(
void
)
editQuesPartFinish
{
NSArray
<
__kindof
UIViewController
*>
*
viewControllers
=
AppDelegate
.
visibleController
.
navigationController
.
viewControllers
;
[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_editQuesPartFinish"
];
if
(
viewControllers
.
count
>
1
)
{
// NSArray<__kindof UIViewController *> *viewControllers = [GMBaseTool getCurrentViewController].navigationController.viewControllers;
UIViewController
*
preVC
=
viewControllers
[
viewControllers
.
count
-
2
];
// if (viewControllers.count > 1) {
if
([
preVC
isKindOfClass
:[
GMBusinessReportListController
class
]])
{
// UIViewController *preVC = viewControllers[viewControllers.count - 2];
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
GM_WORKING_EDIT_QUESTION_PART_NOTIFICATION
object
:
nil
];
// if ([preVC isKindOfClass:[GMBusinessReportListController class]]) {
}
else
if
([
preVC
isKindOfClass
:[
WMBrowserViewController
class
]])
{
// [[NSNotificationCenter defaultCenter] postNotificationName:GM_WORKING_EDIT_QUESTION_PART_NOTIFICATION object:nil];
[((
WMBrowserViewController
*
)
preVC
)
reloadURL
];
// } else if ([preVC isKindOfClass:[WMBrowserViewController class]]) {
}
// [((WMBrowserViewController *)preVC) reloadURL];
}
// }
// }
}
}
@end
@end
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMGrabedListViewModel.m
View file @
14d10884
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
//
//
#import "GMGrabedListViewModel.h"
#import "GMGrabedListViewModel.h"
#import "RequestHeader.h"
@import
GMNetworking
;
@implementation
GMGrabedListViewModel
@implementation
GMGrabedListViewModel
-
(
instancetype
)
init
{
-
(
instancetype
)
init
{
self
=
[
super
init
];
self
=
[
super
init
];
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMWaitingGrabViewModel.m
View file @
14d10884
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
#import "GMWaitingGrabViewModel.h"
#import "GMWaitingGrabViewModel.h"
@import
GMNetworking
;
@implementation
GMWaitingGrabViewModel
@implementation
GMWaitingGrabViewModel
-
(
void
)
handleHeaderRefreshing
{
-
(
void
)
handleHeaderRefreshing
{
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
NSMutableDictionary
*
parametes
=
[
NSMutableDictionary
dictionary
];
NSMutableDictionary
*
parametes
=
[
NSMutableDictionary
dictionary
];
parametes
[
@"dispatch_task_id"
]
=
SafeString
(
taskId
);
parametes
[
@"dispatch_task_id"
]
=
SafeString
(
taskId
);
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION_COUNSEL_JOIN_DISPATCH
method
:
GMHTTPMethodPost
parameters
:
parametes
completion
:^
(
GMResponseOC
*
responseObject
)
{
[
GMNetworking
requestOCWithApi
:
@"/api/consultation_counsel/workbench/join_dispatch"
method
:
GMHTTPMethodPost
parameters
:
parametes
completion
:^
(
GMResponseOC
*
responseObject
)
{
if
(
responseObject
.
isSuccess
)
{
if
(
responseObject
.
isSuccess
)
{
successBlock
(
responseObject
);
successBlock
(
responseObject
);
}
else
{
}
else
{
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
[
self
.
dataArray
removeAllObjects
];
[
self
.
dataArray
removeAllObjects
];
}
}
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
GMNetworking
requestOCWithApi
:
API_CONSULTATION_COUNSEL_CURRENT_DISPATCH
method
:
GMHTTPMethodGet
parameters
:
nil
completion
:^
(
GMResponseOC
*
response
)
{
[
GMNetworking
requestOCWithApi
:
@"/api/consultation_counsel/workbench/current_dispatch_task_list"
method
:
GMHTTPMethodGet
parameters
:
nil
completion
:^
(
GMResponseOC
*
response
)
{
[
weakSelf
converseListResponse
:
response
];
[
weakSelf
converseListResponse
:
response
];
if
(
block
!=
nil
)
{
if
(
block
!=
nil
)
{
APIStatusCode
status
=
[
weakSelf
homeApiStatus
:
response
];
APIStatusCode
status
=
[
weakSelf
homeApiStatus
:
response
];
...
...
GMAILab/Classes/ToFace/diagnoseRecord/GMDiagnoseRecordWebViewController.m
View file @
14d10884
...
@@ -7,13 +7,20 @@
...
@@ -7,13 +7,20 @@
//
//
#import "GMDiagnoseRecordWebViewController.h"
#import "GMDiagnoseRecordWebViewController.h"
#import "Gengmei-Swift.h"
//
#import "Gengmei-Swift.h"
#import "GMEndConsultView.h"
#import "GMEndConsultView.h"
#import "GMComplaintObject.h"
#import "GMComplaintObject.h"
#import "GMComplaintResultView.h"
#import "GMComplaintResultView.h"
#import "GMSureOrderPopView.h"
#import "GMSureOrderPopView.h"
#import "GMToFaceOrderInfoModel.h"
#import "GMToFaceOrderInfoModel.h"
#import "GMToFaceNetworking.h"
#import "NSString+AIJsonData.h"
#import <GMBase/GMBase-Swift.h>
#import "RequestHeader.h"
#import <GMBaseWeb/GMBaseWeb-Swift.h>
@import
GMBase
;
@import
WebKit
.
WKWebView
;
@interface
GMViewEvaluateModel
:
GMObject
@interface
GMViewEvaluateModel
:
GMObject
//面诊id
//面诊id
@property
(
nonatomic
,
copy
)
NSString
*
consultationId
;
@property
(
nonatomic
,
copy
)
NSString
*
consultationId
;
...
@@ -37,12 +44,15 @@
...
@@ -37,12 +44,15 @@
-
(
void
)
initController
{
-
(
void
)
initController
{
[
super
initController
];
[
super
initController
];
self
.
path
=
API_USER_RECORD_LIST_V4
;
self
.
path
=
API_USER_RECORD_LIST_V4
;
self
.
businessId
=
[
NSString
stringWithFormat
:
@"%ld"
,
GMLoginManager
.
shareInstance
.
user
.
userId
];
//TODO: 待测试
NSInteger
userId
=
(
NSInteger
)[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_userId"
];
self
.
businessId
=
[
NSString
stringWithFormat
:
@"%ld"
,
userId
];
self
.
pageName
=
@"video_face_consultation_order_record"
;
self
.
pageName
=
@"video_face_consultation_order_record"
;
}
}
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
}
}
-
(
void
)
backAction
:
(
OCNavigationBarButton
*
)
button
{
-
(
void
)
backAction
:
(
OCNavigationBarButton
*
)
button
{
...
@@ -70,12 +80,12 @@
...
@@ -70,12 +80,12 @@
consultView
.
desc
=
model
.
desc
;
consultView
.
desc
=
model
.
desc
;
consultView
.
showComplaint
=
model
.
showComplaint
;
consultView
.
showComplaint
=
model
.
showComplaint
;
consultView
.
recordId
=
model
.
consultationId
;
consultView
.
recordId
=
model
.
consultationId
;
[[
AppDelegate
shareInstance
].
window
addSubview
:
consultView
];
[[
GMBaseTool
mainWindow
]
addSubview
:
consultView
];
}
else
{
}
else
{
[
GMHudModule
showLoading
:
nil
];
[
GMHudModule
showLoading
:
nil
];
//获取每个星级对应的评价
//获取每个星级对应的评价
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceEvaluateItemDiagnosis_id
:
model
.
consultationId
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceEvaluateItemDiagnosis_id
:
model
.
consultationId
SuccessBlock
:
^
(
id
response
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
GMStarWithContentObject
*
starContentModel
=
[[
GMStarWithContentObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMStarWithContentObject
*
starContentModel
=
[[
GMStarWithContentObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:
type
starNum
:
0
];
GMEndConsultView
*
view
=
[[
GMEndConsultView
alloc
]
initWithType
:
type
starNum
:
0
];
...
@@ -98,10 +108,10 @@
...
@@ -98,10 +108,10 @@
view
.
showComplaint
=
model
.
showComplaint
;
view
.
showComplaint
=
model
.
showComplaint
;
view
.
recordId
=
model
.
consultationId
;
view
.
recordId
=
model
.
consultationId
;
view
.
starContentArray
=
starContentModel
.
evaluates
;
view
.
starContentArray
=
starContentModel
.
evaluates
;
[[
AppDelegate
shareInstance
].
window
addSubview
:
view
];
[[
GMBaseTool
mainWindow
]
addSubview
:
view
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
[
AppDelegate
.
visibleController
toast
:
@"获取评价内容失败"
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
@"获取评价内容失败"
];
}];
}];
}
}
}
}
...
@@ -110,7 +120,7 @@
...
@@ -110,7 +120,7 @@
NSString
*
diagonosisId
=
SafeString
(
jsonString
);
NSString
*
diagonosisId
=
SafeString
(
jsonString
);
[
GMHudModule
showLoading
:
nil
];
[
GMHudModule
showLoading
:
nil
];
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceComplaintGetDiagnosis_id
:
diagonosisId
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceComplaintGetDiagnosis_id
:
diagonosisId
SuccessBlock
:
^
(
id
response
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
GMComplaintInterfaceObject
*
model
=
[[
GMComplaintInterfaceObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMComplaintInterfaceObject
*
model
=
[[
GMComplaintInterfaceObject
alloc
]
initWithDictionary
:
response
error
:
nil
];
weakSelf
.
complaintObject
.
report_detail
=
model
.
complaint
.
content
;
weakSelf
.
complaintObject
.
report_detail
=
model
.
complaint
.
content
;
...
@@ -120,10 +130,10 @@
...
@@ -120,10 +130,10 @@
weakSelf
.
complaintObject
.
custom_url
=
model
.
custom_url
;
weakSelf
.
complaintObject
.
custom_url
=
model
.
custom_url
;
weakSelf
.
complaintObject
.
status
=
model
.
status
;
weakSelf
.
complaintObject
.
status
=
model
.
status
;
GMComplaintResultView
*
view
=
[[
GMComplaintResultView
alloc
]
initWithType
:
weakSelf
.
complaintObject
.
status
dictModel
:
weakSelf
.
complaintObject
];
GMComplaintResultView
*
view
=
[[
GMComplaintResultView
alloc
]
initWithType
:
weakSelf
.
complaintObject
.
status
dictModel
:
weakSelf
.
complaintObject
];
[[
AppDelegate
shareInstance
].
window
addSubview
:
view
];
[[
GMBaseTool
mainWindow
]
addSubview
:
view
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
[
GMHudModule
hideLoading
];
[
GMHudModule
hideLoading
];
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
}];
}];
}
}
#pragma mark - 面诊订单列表调起确认订单弹窗
#pragma mark - 面诊订单列表调起确认订单弹窗
...
@@ -138,7 +148,7 @@
...
@@ -138,7 +148,7 @@
//确认订单
//确认订单
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
showLoading
:
nil
];
[
self
showLoading
:
nil
];
[[
GM
InterfaceNetwork
shareInstance
]
excuteToFaceInfoSureOrder
:
SafeString
(
orderNo
)
SuccessBlock
:
^
(
id
response
)
{
[[
GM
ToFaceNetworking
shareInstance
]
excuteToFaceInfoSureOrder
:
SafeString
(
orderNo
)
SuccessBlock
:
^
(
id
response
)
{
[
weakSelf
hideLoading
];
[
weakSelf
hideLoading
];
weakSelf
.
isSureOrder
=
NO
;
weakSelf
.
isSureOrder
=
NO
;
GMToFaceOrderInfoModel
*
infoModel
=
[[
GMToFaceOrderInfoModel
alloc
]
initWithDictionary
:
response
error
:
nil
];
GMToFaceOrderInfoModel
*
infoModel
=
[[
GMToFaceOrderInfoModel
alloc
]
initWithDictionary
:
response
error
:
nil
];
...
@@ -153,11 +163,11 @@
...
@@ -153,11 +163,11 @@
[
weakSelf
.
webCompent
.
webView
evaluateJavaScript
:
jsStr
completionHandler
:
nil
];
[
weakSelf
.
webCompent
.
webView
evaluateJavaScript
:
jsStr
completionHandler
:
nil
];
};
};
popView
.
infoModel
=
infoModel
;
popView
.
infoModel
=
infoModel
;
[[
AppDelegate
shareInstance
].
window
addSubview
:
popView
];
[[
GMBaseTool
mainWindow
]
addSubview
:
popView
];
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
}
failureBlock
:^
(
NSInteger
errorCode
,
NSString
*
message
)
{
weakSelf
.
isSureOrder
=
NO
;
weakSelf
.
isSureOrder
=
NO
;
[
weakSelf
hideLoading
];
[
weakSelf
hideLoading
];
[
AppDelegate
.
visibleController
toast
:
message
];
[
[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
}];
}];
}
}
-
(
GMComplaintObject
*
)
complaintObject
{
-
(
GMComplaintObject
*
)
complaintObject
{
...
...
GMAILab/Classes/ToFace/playback/GMPlayBackWelfareCell.h
View file @
14d10884
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
// Created by yefengming on 2020/2/22.
// Created by yefengming on 2020/2/22.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMLibraryHeader.h"
#import "GMWelfare
Detail
Object.h"
#import "GMWelfare
Service
Object.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/playback/GMPlayBackWelfareView.h
View file @
14d10884
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMWelfareDetailObject.h"
//#import "GMWelfareDetailObject.h"
#import "GMLibraryHeader.h"
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/playback/GMPlayBackWelfareView.m
View file @
14d10884
...
@@ -8,11 +8,11 @@
...
@@ -8,11 +8,11 @@
#import "GMPlayBackWelfareView.h"
#import "GMPlayBackWelfareView.h"
#import "GMPlayBackWelfareCell.h"
#import "GMPlayBackWelfareCell.h"
#import "GMCommonEmptyView.h"
#import "GM
ToFace
CommonEmptyView.h"
@interface
GMPlayBackWelfareView
()
<
UITableViewDelegate
,
UITableViewDataSource
>
@interface
GMPlayBackWelfareView
()
<
UITableViewDelegate
,
UITableViewDataSource
>
@property
(
nonatomic
,
strong
)
GMTableView
*
tableView
;
@property
(
nonatomic
,
strong
)
GMTableView
*
tableView
;
@property
(
nonatomic
,
strong
)
GMCommonEmptyView
*
emptyView
;
@property
(
nonatomic
,
strong
)
GM
ToFace
CommonEmptyView
*
emptyView
;
@property
(
nonatomic
,
strong
)
GMButton
*
closeBtn
;
@property
(
nonatomic
,
strong
)
GMButton
*
closeBtn
;
@end
@end
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
make
.
right
.
mas_equalTo
(
-
20
);
make
.
right
.
mas_equalTo
(
-
20
);
}];
}];
_emptyView
=
[[
GMCommonEmptyView
alloc
]
initWithFrame
:
CGRectZero
];
_emptyView
=
[[
GM
ToFace
CommonEmptyView
alloc
]
initWithFrame
:
CGRectZero
];
_emptyView
.
hidden
=
YES
;
_emptyView
.
hidden
=
YES
;
_emptyView
.
emptyLabel
.
text
=
@"你的推荐带空空如也"
;
_emptyView
.
emptyLabel
.
text
=
@"你的推荐带空空如也"
;
[
self
.
container
addSubview
:
_emptyView
];
[
self
.
container
addSubview
:
_emptyView
];
...
...
GMAILab/Classes/ToFace/playback/GMVideoInfoView.h
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMVideoPlayBackObject.h"
#import "GMVideoPlayBackObject.h"
#import <GMKit/GMView.h>
@class
GMVideoInfoView
;
@class
GMVideoInfoView
;
@protocol
GMVideoInfoViewDelegate
<
NSObject
>
@protocol
GMVideoInfoViewDelegate
<
NSObject
>
...
...
GMAILab/Classes/ToFace/playback/GMVideoInfoView.m
View file @
14d10884
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
#import "GMVideoInfoView.h"
#import "GMVideoInfoView.h"
#import "GMLibraryHeader.h"
@interface
GMVideoInfoView
()
@interface
GMVideoInfoView
()
@property
(
nonatomic
,
strong
)
GMImageView
*
topView
;
@property
(
nonatomic
,
strong
)
GMImageView
*
topView
;
...
@@ -49,7 +50,7 @@
...
@@ -49,7 +50,7 @@
make
.
left
.
mas_equalTo
(
_iconView
.
mas_right
).
offset
(
12
);
make
.
left
.
mas_equalTo
(
_iconView
.
mas_right
).
offset
(
12
);
}];
}];
_infoLabel
=
[
GMLabel
labelWithTextAlignment
:
NSTextAlignmentLeft
backgroundColor
:[
UIColor
clearColor
]
textColor
:
GMColorC3C2C4
fontSize
:
12
];
_infoLabel
=
[
GMLabel
labelWithTextAlignment
:
NSTextAlignmentLeft
backgroundColor
:[
UIColor
clearColor
]
textColor
:
RGBCOLOR_HEX
(
0xC3C2C4
)
fontSize
:
12
];
[
self
addSubview
:
_infoLabel
];
[
self
addSubview
:
_infoLabel
];
[
_infoLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
_infoLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
bottom
.
mas_equalTo
(
_iconView
).
offset
(
-
8
);
make
.
bottom
.
mas_equalTo
(
_iconView
).
offset
(
-
8
);
...
...
GMAILab/Classes/ToFace/playback/GMVideoPlayBackObject.h
View file @
14d10884
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
// Created by yefengming on 2020/2/21.
// Created by yefengming on 2020/2/21.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
...
GMAILab/Classes/ToFace/playback/GMVideoPlayBackViewController.h
View file @
14d10884
...
@@ -6,18 +6,18 @@
...
@@ -6,18 +6,18 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
//
//
#import "GMPlayBackView.h"
//
#import "GMPlayBackView.h"
#import <PLPlayerKit/PLPlayerKit.h>
#import <PLPlayerKit/PLPlayerKit.h>
#import "GMLiveWelfareView.h"
#import "GMLiveWelfareView.h"
#import "GMVideoPlayBackToolBar.h"
#import "GMVideoPlayBackToolBar.h"
#import "GMVideoInfoView.h"
#import "GMVideoInfoView.h"
#import "GMLiveAvatarPopView.h"
//
#import "GMLiveAvatarPopView.h"
#import "GMPlayer.h"
#import "GM
Face
Player.h"
#import "GMFloatWindowProtocol.h"
#import "GMFloatWindowProtocol.h"
#import "GMVideoPlayBackViewModel.h"
#import "GMVideoPlayBackViewModel.h"
#import "GMPlayBackWelfareView.h"
#import "GMPlayBackWelfareView.h"
@class
GMPlayer
;
@class
GM
Face
Player
;
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
...
@@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
strong
)
GMPlayBackWelfareView
*
welfareView
;
@property
(
nonatomic
,
strong
)
GMPlayBackWelfareView
*
welfareView
;
@property
(
nonatomic
,
strong
,
readonly
)
GMVideoInfoView
*
infoView
;
@property
(
nonatomic
,
strong
,
readonly
)
GMVideoInfoView
*
infoView
;
@property
(
nonatomic
,
strong
,
readonly
)
GMVideoPlayBackToolBar
*
toolBar
;
@property
(
nonatomic
,
strong
,
readonly
)
GMVideoPlayBackToolBar
*
toolBar
;
@property
(
nonatomic
,
strong
,
readonly
)
GMPlayer
*
player
;
@property
(
nonatomic
,
strong
,
readonly
)
GM
Face
Player
*
player
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
GMAILab/Classes/ToFace/playback/GMVideoPlayBackViewController.m
View file @
14d10884
...
@@ -8,15 +8,14 @@
...
@@ -8,15 +8,14 @@
#import "GMVideoPlayBackViewController.h"
#import "GMVideoPlayBackViewController.h"
#import <GMFoundation/NSObject+KeyboardAnimation.h>
#import <GMFoundation/NSObject+KeyboardAnimation.h>
#import "GMLoginManager.h"
#import "GMFloatWindow.h"
#import "GMFloatWindow.h"
#import "GMConversationDetailController.h"
#import "Gengmei-Swift
.h"
//#import "GMConversationDetailController
.h"
#import "GMPlayBackController+ZoomAnimation
.h"
//#import "Gengmei-Swift
.h"
#import "GMWelfareDetailGrayController
.h"
//#import "GMPlayBackController+ZoomAnimation
.h"
@interface
GMVideoPlayBackViewController
()
<
PLPlayerDelegate
,
GMVideoPlayBackToolBarDelegate
,
GMVideoInfoViewDelegate
,
GMPlayerDelegate
,
GMPlayBackWelfareViewDelegate
>
@interface
GMVideoPlayBackViewController
()
<
PLPlayerDelegate
,
GMVideoPlayBackToolBarDelegate
,
GMVideoInfoViewDelegate
,
GMPlayerDelegate
,
GMPlayBackWelfareViewDelegate
>
@property
(
nonatomic
,
strong
)
GMPlayer
*
player
;
@property
(
nonatomic
,
strong
)
GM
Face
Player
*
player
;
@property
(
nonatomic
,
assign
)
CGFloat
playerProgress
;
@property
(
nonatomic
,
assign
)
CGFloat
playerProgress
;
@property
(
nonatomic
,
strong
)
GMView
*
beijingView
;
@property
(
nonatomic
,
strong
)
GMView
*
beijingView
;
@property
(
nonatomic
,
strong
)
GMButton
*
pauseBtn
;
@property
(
nonatomic
,
strong
)
GMButton
*
pauseBtn
;
...
@@ -39,7 +38,7 @@
...
@@ -39,7 +38,7 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
view
.
backgroundColor
=
GMColor333333
;
self
.
view
.
backgroundColor
=
RGBCOLOR_HEX
(
0x333333
)
;
[
self
setupCustomView
];
[
self
setupCustomView
];
[
self
setupConstraints
];
[
self
setupConstraints
];
__weak
__typeof
(
self
)
weakSelf
=
self
;
__weak
__typeof
(
self
)
weakSelf
=
self
;
...
@@ -56,7 +55,7 @@
...
@@ -56,7 +55,7 @@
}
}
-
(
void
)
closePlayer
{
-
(
void
)
closePlayer
{
[[
AppDelegate
shareInstance
].
videoFloatView
expandAction
:[
AppDelegate
shareInstance
].
videoFloatView
.
tapGesture
];
[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_closePlayer"
];
}
}
-
(
void
)
updateInfoView
{
-
(
void
)
updateInfoView
{
...
@@ -67,7 +66,7 @@
...
@@ -67,7 +66,7 @@
[[
AVAudioSession
sharedInstance
]
setCategory
:
AVAudioSessionCategoryPlayback
error
:
nil
];
[[
AVAudioSession
sharedInstance
]
setCategory
:
AVAudioSessionCategoryPlayback
error
:
nil
];
PLPlayerOption
*
option
=
[
PLPlayerOption
defaultOption
];
PLPlayerOption
*
option
=
[
PLPlayerOption
defaultOption
];
[
option
setOptionValue
:
@10
forKey
:
PLPlayerOptionKeyTimeoutIntervalForMediaPackets
];
[
option
setOptionValue
:
@10
forKey
:
PLPlayerOptionKeyTimeoutIntervalForMediaPackets
];
_player
=
[
GMPlayer
playerWithURL
:[
NSURL
URLWithString
:
self
.
viewModel
.
playBackObject
.
videoInfo
.
playUrl
]
option
:
option
];
_player
=
[
GM
Face
Player
playerWithURL
:[
NSURL
URLWithString
:
self
.
viewModel
.
playBackObject
.
videoInfo
.
playUrl
]
option
:
option
];
_player
.
delegate
=
self
;
_player
.
delegate
=
self
;
_player
.
progressDelegate
=
self
;
_player
.
progressDelegate
=
self
;
_player
.
delegateQueue
=
dispatch_get_main_queue
();
_player
.
delegateQueue
=
dispatch_get_main_queue
();
...
@@ -194,8 +193,7 @@
...
@@ -194,8 +193,7 @@
-
(
void
)
closePlaybackView
{
-
(
void
)
closePlaybackView
{
[
_player
pauseTimer
];
[
_player
pauseTimer
];
[[
AppDelegate
shareInstance
].
videoFloatView
hide
];
[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_closePlaybackView"
];
[
AppDelegate
shareInstance
].
videoFloatView
=
nil
;
}
}
-
(
void
)
dealloc
{
-
(
void
)
dealloc
{
...
@@ -240,7 +238,9 @@
...
@@ -240,7 +238,9 @@
-
(
void
)
zoomClick
{
-
(
void
)
zoomClick
{
[
self
hideOtherViews
];
[
self
hideOtherViews
];
[[
AppDelegate
shareInstance
].
videoFloatView
videoZoomToSmall
];
[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_videoZoomToSmall"
];
// [[AppDelegate shareInstance].videoFloatView videoZoomToSmall];
}
}
-
(
void
)
welfareClick
{
-
(
void
)
welfareClick
{
...
@@ -346,11 +346,12 @@
...
@@ -346,11 +346,12 @@
#pragma mark - GMLiveWelfareViewDelegate
#pragma mark - GMLiveWelfareViewDelegate
-
(
void
)
didSelectedWelfareView
:
(
GMPlayBackWelfareView
*
)
welFareView
obj
:
(
GMWelfareServiceObject
*
)
obj
{
-
(
void
)
didSelectedWelfareView
:
(
GMPlayBackWelfareView
*
)
welFareView
obj
:
(
GMWelfareServiceObject
*
)
obj
{
[
self
hideOtherViews
];
[
self
hideOtherViews
];
[[
AppDelegate
shareInstance
].
videoFloatView
videoZoomToSmall
];
[[
GMRouter
sharedInstance
]
pushScheme
:
@"gengmei://gm_videoZoomToSmall"
];
//跳转到美购详情
//跳转到美购详情
GMWelfareDetailGrayController
*
controller
=
[[
GMWelfareDetailGrayController
alloc
]
init
];
controller
.
welfareId
=
obj
.
serviceId
;
NSString
*
url
=
[
NSString
stringWithFormat
:
@"gengmei://service?service_id=%@"
,
obj
.
serviceId
]
;
[
AppDelegate
.
navigation
pushViewController
:
controller
animated
:
YES
];
[
[
GMRouter
sharedInstance
]
pushScheme
:
url
];
}
}
#pragma mark - GMFloatWindowProtocol
#pragma mark - GMFloatWindowProtocol
...
...
GMAILab/Classes/ToFace/playback/GMVideoPlayBackViewModel.m
View file @
14d10884
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
//
//
#import "GMVideoPlayBackViewModel.h"
#import "GMVideoPlayBackViewModel.h"
#import "RequestHeader.h"
@import
GMNetworking
;
@implementation
GMVideoPlayBackViewModel
@implementation
GMVideoPlayBackViewModel
...
...
GMAILab/Classes/ToFace/source/telephoneDoctor.aiff
0 → 100644
View file @
14d10884
File added
GMAILab/Classes/ToFace/source/videoTelephone.aiff
0 → 100644
View file @
14d10884
File added
GMAILab/Classes/ToFace/source/videoTelephone.mp3
0 → 100644
View file @
14d10884
File added
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