Commit 14d10884 authored by luyueming's avatar luyueming

需求提交

parent b178f3ac
...@@ -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
......
...@@ -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
......
...@@ -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 {
[[GMInterfaceNetwork shareInstance] excuteToFaceTabsDoctorsTabsId:self.tabId page:self.page SuccessBlock:^(id response) { [[GMToFaceNetworking 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];
......
...@@ -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
......
...@@ -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);
}]; }];
......
...@@ -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>
......
...@@ -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
......
//
// 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
//
// 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
...@@ -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];
......
...@@ -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
......
...@@ -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;
[[GMInterfaceNetwork shareInstance] excuteToFaceBlockInfoSuccessBlock:^(id response) { [[GMToFaceNetworking 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;
......
...@@ -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
......
...@@ -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 "GMWeakProxy.h" #import "GMTelephoneProxy.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:[GMWeakProxy proxyWithTarget:self] selector:@selector(nextPage) userInfo:nil repeats:YES]; self.timer = [NSTimer timerWithTimeInterval:10 target:[GMTelephoneProxy 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;
} }
......
...@@ -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;
......
...@@ -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.5f; _docTitleView.layer.cornerRadius = 7.5f;
_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.5f; corView.layer.cornerRadius = 7.5f;
...@@ -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;
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
// Copyright © 2020 更美互动信息科技有限公司. All rights reserved. // Copyright © 2020 更美互动信息科技有限公司. All rights reserved.
// //
#import "GMPagingViewController.h" #import "GMFacePagingViewController.h"
#import "GMToFaceDoctorListViewModel.h" #import "GMToFaceDoctorListViewModel.h"
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface GMToFaceContainerViewController : GMPagingViewController @interface GMToFaceContainerViewController : GMFacePagingViewController
@property (nonatomic, strong) GMToFaceDoctorListViewModel *viewModel; @property (nonatomic, strong) GMToFaceDoctorListViewModel *viewModel;
@end @end
......
...@@ -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;
[[GMInterfaceNetwork shareInstance] excuteToFaceRecommendDoctorsSuccessBlock:^(id response) { [[GMToFaceNetworking 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;
[[GMInterfaceNetwork shareInstance] excuteToFaceBlockInfoSuccessBlock:^(id response) { [[GMToFaceNetworking 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]) {
......
...@@ -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
...@@ -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 "GMToFaceCommonEmptyView.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) GMToFaceCommonEmptyView *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 = GMToFaceCommonEmptyViewTypeEmpty;
} }
[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 = GMToFaceCommonEmptyViewTypeError;
}]; }];
} }
- (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;
[[GMInterfaceNetwork shareInstance] excuteToFaceBlockInfoSuccessBlock:^(id response) { [[GMToFaceNetworking 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 { - (GMToFaceCommonEmptyView *)commonEmptyView {
if (!_commonEmptyView) { if (!_commonEmptyView) {
_commonEmptyView = [[GMCommonEmptyView alloc] init]; _commonEmptyView = [[GMToFaceCommonEmptyView alloc] init];
_commonEmptyView.delegate = self; _commonEmptyView.delegate = self;
_commonEmptyView.hidden = YES; _commonEmptyView.hidden = YES;
} }
......
...@@ -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
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
@import GMBase;
@interface GMToFaceOrderInfoModel : GMObject @interface GMToFaceOrderInfoModel : GMObject
......
...@@ -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;
......
...@@ -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;
......
...@@ -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
......
...@@ -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 {
[[GMInterfaceNetwork shareInstance] excuteToFaceSureOrder:self.infoModel.orderNo SuccessBlock:^(id response) { [[GMToFaceNetworking 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;
[[GMInterfaceNetwork shareInstance] excuteToFaceEvaluateItemDiagnosis_id:self.infoModel.consultationRecordId SuccessBlock:^(id response) { [[GMToFaceNetworking 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;
} }
......
...@@ -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;
......
...@@ -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;
} }
......
...@@ -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 = @"请选择支付方式";
} }
......
...@@ -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) {
......
...@@ -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;
} }
......
...@@ -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 - 点击 "立即支付"
......
...@@ -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];
[[GMInterfaceNetwork shareInstance] excuteToFaceComplaintGetDiagnosis_id:diagnosisId SuccessBlock:^(id response) { [[GMToFaceNetworking 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 {
......
...@@ -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) {
/** 支付宝 */ /** 支付宝 */
......
...@@ -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;
......
...@@ -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
...@@ -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];
} }
......
...@@ -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;
......
...@@ -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;
} }
......
...@@ -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];
//确认订单 //确认订单
[[GMInterfaceNetwork shareInstance] excuteToFaceInfoSureOrder:self.messageDict[@"order_no"] SuccessBlock:^(id response) { [[GMToFaceNetworking 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];
}]; }];
} }
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
// //
#import "GMVideoPhobos.h" #import "GMVideoPhobos.h"
@import GMFoundation;
@import GMPhobos;
@import GMBase;
@implementation GMVideoPhobos @implementation GMVideoPhobos
/** /**
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
// //
#import "GMVideoTelephoneRequestTool.h" #import "GMVideoTelephoneRequestTool.h"
#import "RequestHeader.h"
#import "GMLibraryHeader.h"
@implementation GMVideoTelephoneRequestTool @implementation GMVideoTelephoneRequestTool
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
//
// 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
//
// 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
...@@ -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
......
...@@ -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 "GMAISearchNavigationView.h"
#import "GMRecommendShopingModel.h" #import "GMRecommendShopingModel.h"
#import "GMRtcManager.h" #import "GMRtcManager.h"
#import "GMCommonEmptyView.h" #import "GMToFaceCommonEmptyView.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)GMAISearchNavigationView *searchNavigationView;
@property (nonatomic, strong)GMCommonEmptyView *emptyView; @property (nonatomic, strong)GMToFaceCommonEmptyView *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 = [[GMToFaceCommonEmptyView alloc] initWithFrame:CGRectZero];
_emptyView.hidden = YES; _emptyView.hidden = YES;
_emptyView.emptyLabel.text = @"你的推荐带空空如也"; _emptyView.emptyLabel.text = @"你的推荐带空空如也";
[self addSubview:_emptyView]; [self addSubview:_emptyView];
} }
- (GMSearchNavigationView *)searchNavigationView{ - (GMAISearchNavigationView *)searchNavigationView{
if (!_searchNavigationView) { if (!_searchNavigationView) {
_searchNavigationView = [GMSearchNavigationView new]; _searchNavigationView = [GMAISearchNavigationView new];
_searchNavigationView.textField.delegate = self; _searchNavigationView.textField.delegate = self;
_searchNavigationView.hidden = YES; _searchNavigationView.hidden = YES;
_searchNavigationView.textField.placeholder = @"请输入美购名称"; _searchNavigationView.textField.placeholder = @"请输入美购名称";
......
...@@ -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
......
...@@ -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;
......
...@@ -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
......
...@@ -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; //购物
......
...@@ -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
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "GMTelephoneAttentionView.h" #import "GMTelephoneAttentionView.h"
#import "GMLibraryHeader.h"
@implementation GMTelephoneAttentionView @implementation GMTelephoneAttentionView
{ {
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "GMTelephoneBtnView.h" #import "GMTelephoneBtnView.h"
#import "GMLibraryHeader.h"
@implementation GMTelephoneBtnView @implementation GMTelephoneBtnView
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "GMTelephoneShoppingEmptyView.h" #import "GMTelephoneShoppingEmptyView.h"
#import "GMLibraryHeader.h"
@implementation GMTelephoneShoppingEmptyView @implementation GMTelephoneShoppingEmptyView
{ {
......
...@@ -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;
......
...@@ -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;
......
...@@ -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; //购物
......
...@@ -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>
{ {
......
...@@ -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;
......
...@@ -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)]) {
......
...@@ -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;
......
...@@ -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;
......
...@@ -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
......
...@@ -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
......
...@@ -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;
} }
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "GMNoticeInfoObject.h" #import "GMNoticeInfoObject.h"
@import GMBase;
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
......
...@@ -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 {
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "GMEditQuesPartModel.h" #import "GMEditQuesPartModel.h"
#import "GMLibraryHeader.h"
@implementation GMEditQuesPartDetailModel @implementation GMEditQuesPartDetailModel
......
...@@ -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
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "GMDiagnosisWorkingTableSwitch.h" #import "GMDiagnosisWorkingTableSwitch.h"
@import GMBase;
@protocol GMWorkTableNotifyObject @end @protocol GMWorkTableNotifyObject @end
......
...@@ -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
......
...@@ -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 {
......
...@@ -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) {
/// 投诉审核中 /// 投诉审核中
......
...@@ -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.5f; _grayLineView.layer.cornerRadius = 2.5f;
_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;
} }
......
...@@ -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
......
...@@ -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) {
......
...@@ -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;
......
...@@ -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];
......
...@@ -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;
......
...@@ -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];
......
...@@ -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,// 关闭 (可以开启)
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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];
} }
......
...@@ -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
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "GMStarWithContentObject.h" #import "GMStarWithContentObject.h"
@import GMBase;
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
......
...@@ -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;
} }
[[GMInterfaceNetwork shareInstance] excuteToFaceEvaluateDiagnosis_id:self.recordId star:self.starNum SuccessBlock:^(id response) { [[GMToFaceNetworking 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.5f; _grayLineView.layer.cornerRadius = 2.5f;
_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;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment