Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMAILab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMAILab
Commits
8a72c0bc
Commit
8a72c0bc
authored
Jul 21, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【视频面诊】到店预约功能
parent
bd4cf773
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
392 additions
and
69 deletions
+392
-69
Podfile
Example/Podfile
+2
-2
Podfile.lock
Example/Podfile.lock
+67
-64
GMBasicInfoCardView.m
...lasses/ToFace/ToFaceDoctorList/View/GMBasicInfoCardView.m
+1
-1
GMSureOrderPopView.m
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.m
+16
-1
GMTofaceOrderDetailViewController.m
...eOrder/ViewController/GMTofaceOrderDetailViewController.m
+1
-0
GMBookConsultInfoModel.h
...lasses/ToFace/WorkingTable/Model/GMBookConsultInfoModel.h
+23
-0
GMBookConsultInfoModel.m
...lasses/ToFace/WorkingTable/Model/GMBookConsultInfoModel.m
+12
-0
GMBookReachStoreConsultView.h
...es/ToFace/WorkingTable/View/GMBookReachStoreConsultView.h
+19
-0
GMBookReachStoreConsultView.m
...es/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
+195
-0
GMBusinessReportResultController.m
...ngTable/ViewController/GMBusinessReportResultController.m
+1
-1
GMBookConsultViewModel.h
...es/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.h
+22
-0
GMBookConsultViewModel.m
...es/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
+33
-0
No files found.
Example/Podfile
View file @
8a72c0bc
...
...
@@ -15,10 +15,10 @@ target 'GMAILab_Example' do
# pod 'GMBaseWeb', :git => 'git@git.wanmeizhensuo.com:gengmeiios/GMBaseWeb.git', :commit => '0752677'
#9e91ae1
pod
'GMBase'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMBase.git'
,
:commit
=>
'9e91ae1'
pod
'GMBaseSwift'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git'
,
:commit
=>
'b54da90
'
pod
'GMBaseSwift'
,
'3.4.2
'
pod
'GMAlbum'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMAlbum.git'
,
:commit
=>
'31dcd07'
pod
'Qiniu'
,
'7.2.6'
pod
'GMBaseWeb'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMBaseWeb.git'
,
:commit
=>
'
c3ca876
'
pod
'GMBaseWeb'
,
:git
=>
'git@git.wanmeizhensuo.com:gengmeiios/GMBaseWeb.git'
,
:commit
=>
'
9554b01
'
# s.dependency 'GMBaseSwift','3.4.0'
...
...
Example/Podfile.lock
View file @
8a72c0bc
PODS:
- AFNetworking (
3.1.0
):
- AFNetworking/NSURLSession (=
3.1.0
)
- AFNetworking/Reachability (=
3.1.0
)
- AFNetworking/Security (=
3.1.0
)
- AFNetworking/Serialization (=
3.1.0
)
- AFNetworking/UIKit (=
3.1.0
)
- AFNetworking/NSURLSession (
3.1.0
):
- AFNetworking (
4.0.1
):
- AFNetworking/NSURLSession (=
4.0.1
)
- AFNetworking/Reachability (=
4.0.1
)
- AFNetworking/Security (=
4.0.1
)
- AFNetworking/Serialization (=
4.0.1
)
- AFNetworking/UIKit (=
4.0.1
)
- AFNetworking/NSURLSession (
4.0.1
):
- AFNetworking/Reachability
- AFNetworking/Security
- AFNetworking/Serialization
- AFNetworking/Reachability (
3.1.0
)
- AFNetworking/Security (
3.1.0
)
- AFNetworking/Serialization (
3.1.0
)
- AFNetworking/UIKit (
3.1.0
):
- AFNetworking/Reachability (
4.0.1
)
- AFNetworking/Security (
4.0.1
)
- AFNetworking/Serialization (
4.0.1
)
- AFNetworking/UIKit (
4.0.1
):
- AFNetworking/NSURLSession
- Alamofire (4.7.0)
- AlipaySDK-iOS (15.6.8)
...
...
@@ -59,7 +59,7 @@ PODS:
- MBProgressHUD
- SDWebImage
- "UITableView+FDTemplateLayoutCell (= 1.4)"
- GMBaseSwift (3.4.
1
):
- GMBaseSwift (3.4.
2
):
- EVReflection (= 5.10.0)
- GM-Swift-Observable
- GMHud
...
...
@@ -67,10 +67,11 @@ PODS:
- GMNetworking
- GMPhobos
- GMRefresh
- SnapKit (= 4.
2
.0)
- GMBaseWeb (0.
1.0
):
- SnapKit (= 4.
0
.0)
- GMBaseWeb (0.
0.2
):
- GMAlbum
- GMBase
- GMBaseSwift
- GMCache
- GMFoundation
- GMHud
...
...
@@ -86,49 +87,56 @@ PODS:
- lottie-ios (= 2.5.2)
- MBProgressHUD (= 0.9.2)
- GMJSONModel (1.7.4)
- GMKit (1.2.7):
- GMKit/Category (= 1.2.7)
- GMKit/Color (= 1.2.7)
- GMKit/Constant (= 1.2.7)
- GMKit/FDFullscreenPopGesture (= 1.2.7)
- GMKit/Kit (= 1.2.7)
- GMKit/Protocol (= 1.2.7)
- GMKit (1.3.1):
- GMKit/Category (= 1.3.1)
- GMKit/Color (= 1.3.1)
- GMKit/Constant (= 1.3.1)
- GMKit/FDFullscreenPopGesture (= 1.3.1)
- GMKit/Kit (= 1.3.1)
- GMKit/Protocol (= 1.3.1)
- GMPhobos
- Masonry
- SDWebImage
- SnapKit
- GMKit/Category (1.2.7):
- GMKit/Color (= 1.2.7)
- GMKit/Constant (= 1.2.7)
- GMKit/Protocol (= 1.2.7)
- GMKit/Category (1.3.1):
- GMKit/Color (= 1.3.1)
- GMKit/Constant (= 1.3.1)
- GMKit/Protocol (= 1.3.1)
- GMPhobos
- Masonry
- SDWebImage
- SnapKit
- GMKit/Color (1.2.7):
- GMKit/Color (1.3.1):
- GMPhobos
- Masonry
- SDWebImage
- SnapKit
- GMKit/Constant (1.2.7):
- GMKit/Constant (1.3.1):
- GMPhobos
- Masonry
- SDWebImage
- SnapKit
- GMKit/FDFullscreenPopGesture (1.2.7):
- GMKit/FDFullscreenPopGesture (1.3.1):
- GMPhobos
- Masonry
- SDWebImage
- SnapKit
- GMKit/Kit (1.2.7):
- GMKit/Category (= 1.2.7)
- GMKit/Color (= 1.2.7)
- GMKit/Constant (= 1.2.7)
- GMKit/Protocol (= 1.2.7)
- GMKit/Kit (1.3.1):
- GMKit/Category (= 1.3.1)
- GMKit/Color (= 1.3.1)
- GMKit/Constant (= 1.3.1)
- GMKit/Protocol (= 1.3.1)
- GMPhobos
- Masonry
- SDWebImage
- SnapKit
- GMKit/Protocol (1.2.7):
- GMKit/Protocol (1.3.1):
- GMPhobos
- Masonry
- SDWebImage
- SnapKit
- GMNetService (1.0.
2
):
- AFNetworking
(= 3.1.0)
- GMNetService (1.0.
3
):
- AFNetworking
- GMNetworking (4.0.7):
- Alamofire (= 4.7.0)
- GMPhobos (2.0.5):
...
...
@@ -138,10 +146,10 @@ PODS:
- GMRefresh (1.0.10):
- GMPhobos
- MJRefresh
- GMRouter (0.1.
7
):
- GMRouter (0.1.
8
):
- GMPhobos
- MJExtension
- GMShareSDK (0.2.
1
):
- GMShareSDK (0.2.
2
):
- DouyinOpenSDK (= 1.4.1)
- GMFoundation
- GMJSONModel
...
...
@@ -159,7 +167,7 @@ PODS:
- MagicalRecord/Core (2.3.2)
- Masonry (1.1.0)
- MBProgressHUD (0.9.2)
- MJExtension (3.2.
1
)
- MJExtension (3.2.
2
)
- MJRefresh (3.4.3)
- NIMSDK (7.5.0)
- PLMediaStreamingKit (3.0.0):
...
...
@@ -169,10 +177,10 @@ PODS:
- PLPlayerKit/iphoneos (= 3.4.3)
- PLPlayerKit/iphoneos (3.4.3)
- Qiniu (7.2.6)
- SDWebImage (5.8.
0
):
- SDWebImage/Core (= 5.8.
0
)
- SDWebImage/Core (5.8.
0
)
- SnapKit (4.
2
.0)
- SDWebImage (5.8.
4
):
- SDWebImage/Core (= 5.8.
4
)
- SDWebImage/Core (5.8.
4
)
- SnapKit (4.
0
.0)
- TMCache (2.1.0)
- "UITableView+FDTemplateLayoutCell (1.4)"
- WechatOpenSDK (1.8.6.2)
...
...
@@ -183,14 +191,15 @@ DEPENDENCIES:
- GMAILab (from `../`)
- "GMAlbum (from `git@git.wanmeizhensuo.com:gengmeiios/GMAlbum.git`, commit `31dcd07`)"
- "GMBase (from `git@git.wanmeizhensuo.com:gengmeiios/GMBase.git`, commit `9e91ae1`)"
-
"GMBaseSwift (from `git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git`, commit `b54da90`)"
- "GMBaseWeb (from `git@git.wanmeizhensuo.com:gengmeiios/GMBaseWeb.git`, commit `
c3ca876
`)"
-
GMBaseSwift (= 3.4.2)
- "GMBaseWeb (from `git@git.wanmeizhensuo.com:gengmeiios/GMBaseWeb.git`, commit `
9554b01
`)"
- "GMPhobos (from `git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git`, commit `ed24e93`)"
- Qiniu (= 7.2.6)
SPEC REPOS:
"git@git.wanmeizhensuo.com:gengmeiios/GMSpecs.git":
- GM-Swift-Observable
- GMBaseSwift
- GMCache
- GMFoundation
- GMHud
...
...
@@ -237,11 +246,8 @@ EXTERNAL SOURCES:
GMBase:
:commit: 9e91ae1
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBase.git"
GMBaseSwift:
:commit: b54da90
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git"
GMBaseWeb:
:commit:
c3ca876
:commit:
9554b01
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBaseWeb.git"
GMPhobos:
:commit: ed24e93
...
...
@@ -254,18 +260,15 @@ CHECKOUT OPTIONS:
GMBase:
:commit: 9e91ae1
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBase.git"
GMBaseSwift:
:commit: b54da90
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBaseSwift.git"
GMBaseWeb:
:commit:
c3ca876
:commit:
9554b01
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMBaseWeb.git"
GMPhobos:
:commit: ed24e93
:git: "git@git.wanmeizhensuo.com:gengmeiios/GMPhobos.git"
SPEC CHECKSUMS:
AFNetworking:
5e0e199f73d8626b11e79750991f5d173d1f8b67
AFNetworking:
7864c38297c79aaca1500c33288e429c3451fdce
Alamofire: 907e0a98eb68cdb7f9d1f541a563d6ac5dc77b25
AlipaySDK-iOS: 703a55774a37f412410ab04af96c011b91ec58cb
BDOpenSDKKit: 3fb530ce73f85a7d6ee69e7fd3d9158444c5bd09
...
...
@@ -275,39 +278,39 @@ SPEC CHECKSUMS:
GMAILab: c900b10ce5ceba6b5d24b2787b6661bbd766fa0e
GMAlbum: d667396a6dab574a45af71dfebd1a75257c80192
GMBase: 358e72062cb0f64a57ff34ec181b20ad9973d79b
GMBaseSwift: 8
f327883b33ac24d0dcdb648ac3f9d6c57949ad5
GMBaseWeb:
4b374ec5a7afc59368eea5dc480f0e98129a9c69
GMBaseSwift: 8
2915eb16c9505ff19f66c85a2bbf5f7f50756f2
GMBaseWeb:
54568ee1ba785b9bc252f738cbb636247bb91721
GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMFoundation: e9f7fd9c6e5f133e09009b0ee5de4fce60ac5682
GMHud: feca48b3eda4f3a6f617f4bbaa3657316a245c1f
GMJSONModel: 5e81a98de668e9f93cf6ff77869f77b0d1a806be
GMKit:
410f4a2da98698ffe2e1e97043ea8f97ab8adb17
GMNetService: 7
c69e7981b4fac29657fad5fc86a0c453196b862
GMKit:
e97c521f3f54a3c1c43343254f2cd99d9fb27185
GMNetService: 7
8d729467b99b6ce9814d51efa4dcfa3ddebafe3
GMNetworking: 592b9b71f2a7d92203483276158ce3139ac789d2
GMPhobos: abab7c666c8a75549adea937e40e101d4d341b0d
GMRefresh: 11497a660eb14b1fda443bfe682910e0cc6031f4
GMRouter:
6f2c630e6d9f03d117ac39e5cdb1b522acf6ad65
GMShareSDK:
a0725e2848d043aec84e787f6d233ac1546c1661
GMRouter:
a8d1d6bea779954a2b5b6181763618e663baafff
GMShareSDK:
5a0fc06881021f0055841675bf748c01143acc2d
GMUtil: 194a8831e4311762c4b1ac1278281b456157f4ec
GPUImage: 733a5f0fab92df9de1c37ba9df520a833ccb406d
lottie-ios: 3fef45d3fabe63e3c7c2eb603dd64ddfffc73062
MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
MJExtension:
635f2c663dcb1bf76fa4b715b2570a5710aec545
MJExtension:
d9b9c74cbdeb724c1e9ecbb157b318276e62e876
MJRefresh: 53e3e3219f204425ee6d3e62e8733d3295944cd6
NIMSDK: a43eb9b8bf83ddb0338c51ae2d756b683edc0cb8
PLMediaStreamingKit: 3f4fafe3535de54a02c219f40331afa2b47592e0
PLPlayerKit: a44734dc78c1f8f9fb22c537fa1916612fa46b06
Qiniu: 9d1f20dcc348919972b4ee1b1272f9b9d4a7e69e
SDWebImage:
84000f962cbfa70c07f19d2234cbfcf5d779b5dc
SnapKit:
fe8a619752f3f27075cc9a90244d75c6c3f27e2a
SDWebImage:
cf6922231e95550934da2ada0f20f2becf2ceba9
SnapKit:
a42d492c16e80209130a3379f73596c3454b7694
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
"UITableView+FDTemplateLayoutCell": 234e1582bcc4e18461af91155123bb96538ed030
WechatOpenSDK: 8b3ba4239193d1112205c139c94e21934e8f369a
Weibo_SDK: 5a4d08f7e1fedbb635435e4585c8c0439c7da089
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849
PODFILE CHECKSUM:
800885c0f1101f82303285bc0062a63798f4782
f
PODFILE CHECKSUM:
cfc00708d341bbb73e9867a99840c08908fc589
f
COCOAPODS: 1.9.3
GMAILab/Classes/ToFace/ToFaceDoctorList/View/GMBasicInfoCardView.m
View file @
8a72c0bc
...
...
@@ -70,7 +70,7 @@
if
(
response
.
isSuccess
)
{
NSDictionary
*
dic
=
(
NSDictionary
*
)
response
.
data
;
BOOL
hasRecord
=
[
dic
.
allKeys
containsObject
:
@"has_record"
]
?
[
dic
[
@"has_record"
]
boolValue
]
:
NO
;
if
(
!
cardView
.
isDispatch
&&
[
dic
.
allKeys
containsObject
:
@"counsellor_type"
]
&&
dic
[
@"counsellor_type"
]
!=
NULL
)
{
if
(
!
cardView
.
isDispatch
&&
[
dic
.
allKeys
containsObject
:
@"counsellor_type"
]
&&
dic
[
@"counsellor_type"
]
!=
NULL
&&
!
[
dic
[
@"counsellor_type"
]
isEqual
:[
NSNull
null
]]
)
{
cardView
.
type
=
[
dic
[
@"counsellor_type"
]
integerValue
];
}
[
cardView
updateConstraintsWithHasRecord
:
hasRecord
];
...
...
GMAILab/Classes/ToFace/ToFaceOrder/View/GMSureOrderPopView.m
View file @
8a72c0bc
...
...
@@ -11,7 +11,9 @@
#import "GMStarWithContentObject.h"
#import "GMToFaceNetworking.h"
#import <GMBase/GMBaseTool.h>
#import "GMBookReachStoreConsultView.h"
#import "GMBookConsultViewModel.h"
#import "GMBookConsultInfoModel.h"
@interface
GMSureOrderPopView
()
@property
(
nonatomic
,
strong
)
GMLabel
*
topLabel
;
...
...
@@ -249,6 +251,19 @@
weakSelf
.
completeCallBack
(
2
,
evaluateStr
,
starNum
);
}
}
// 弹授权弹窗(视频面诊评价弹窗关闭后/视频面诊结束之后(通话时长小于30s,不弹弹窗))
[
GMBookConsultViewModel
bookConsultInfoWithSuccessBlock
:
^
(
id
responseObject
)
{
GMResponseOC
*
response
=
(
GMResponseOC
*
)
responseObject
;
NSDictionary
*
data
=
response
.
data
;
GMBookConsultInfoModel
*
info
=
[[
GMBookConsultInfoModel
alloc
]
initWithDictionary
:
data
error
:
NULL
];
info
.
recordId
=
self
.
infoModel
.
consultationRecordId
;
if
(
data
.
allKeys
.
count
>
0
)
{
[
GMBookReachStoreConsultView
showBookConsultPopViewWithObject
:
info
];
}
}
failBlock
:
^
(
NSString
*
message
)
{
}];
};
view
.
showComplaint
=
NO
;
view
.
recordId
=
self
.
infoModel
.
consultationRecordId
;
...
...
GMAILab/Classes/ToFace/ToFaceOrder/ViewController/GMTofaceOrderDetailViewController.m
View file @
8a72c0bc
...
...
@@ -13,6 +13,7 @@
#import "GMEndConsultView.h"
#import "RequestHeader.h"
#import "GMToFaceNetworking.h"
@import
GMBaseWeb
;
@import
GMHud
;
@interface
GMTofaceOrderDetailViewController
()
<
GMJSBridgeProtocol
>
...
...
GMAILab/Classes/ToFace/WorkingTable/Model/GMBookConsultInfoModel.h
0 → 100644
View file @
8a72c0bc
//
// GMBookConsultInfoModel.h
// GMAILab
//
// Created by Jessica on 2020/7/21.
//
#import <GMBase/GMObject.h>
NS_ASSUME_NONNULL_BEGIN
@interface
GMBookConsultInfoModel
:
GMObject
@property
(
nonatomic
,
assign
)
NSInteger
userId
;
@property
(
nonatomic
,
copy
)
NSString
*
prompt
;
@property
(
nonatomic
,
copy
)
NSString
*
imgUrl
;
@property
(
nonatomic
,
copy
)
NSString
*
subTitle
;
@property
(
nonatomic
,
copy
)
NSString
*
title
;
@property
(
nonatomic
,
copy
)
NSString
*
telephone
;
@property
(
nonatomic
,
copy
)
NSString
*
recordId
;
@property
(
nonatomic
,
assign
)
BOOL
hasPhone
;
@end
NS_ASSUME_NONNULL_END
GMAILab/Classes/ToFace/WorkingTable/Model/GMBookConsultInfoModel.m
0 → 100644
View file @
8a72c0bc
//
// GMBookConsultInfoModel.m
// GMAILab
//
// Created by Jessica on 2020/7/21.
//
#import "GMBookConsultInfoModel.h"
@implementation
GMBookConsultInfoModel
@end
GMAILab/Classes/ToFace/WorkingTable/View/GMBookReachStoreConsultView.h
0 → 100644
View file @
8a72c0bc
//
// GMBookReachStoreConsultView.h
// AFNetworking
//
// Created by Jessica on 2020/7/20.
//
#import <GMKit/GMPopupBgView.h>
#import "GMBookConsultInfoModel.h"
@import
GMBase
;
@import
GMHud
;
@import
GMRouter
;
@interface
GMBookReachStoreConsultView
:
GMPopupBgView
+
(
void
)
showBookConsultPopViewWithObject
:(
GMBookConsultInfoModel
*
)
model
;
@end
GMAILab/Classes/ToFace/WorkingTable/View/GMBookReachStoreConsultView.m
0 → 100644
View file @
8a72c0bc
//
// GMBookReachStoreConsultView.m
// AFNetworking
//
// Created by Jessica on 2020/7/20.
//
#import "GMBookReachStoreConsultView.h"
#import "GMBookConsultViewModel.h"
#import "GMLibraryHeader.h"
@interface
GMBookReachStoreConsultView
()
@property
(
nonatomic
,
strong
)
UIButton
*
authBtn
;
@property
(
nonatomic
,
strong
)
UILabel
*
phoneLabel
;
@property
(
nonatomic
,
strong
)
UIButton
*
cancelBtn
;
@property
(
nonatomic
,
strong
)
UIImageView
*
headerImageView
;
@property
(
nonatomic
,
strong
)
UIImageView
*
icon
;
@property
(
nonatomic
,
strong
)
UILabel
*
iconLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
tipLabel
;
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
copy
)
NSString
*
recordId
;
@property
(
nonatomic
,
assign
)
BOOL
isHadPhone
;
@end
@implementation
GMBookReachStoreConsultView
-
(
void
)
setup
{
[
super
setup
];
self
.
animationType
=
GMPopupAnimationTypeFlipFromBottom
;
self
.
container
.
backgroundColor
=
UIColor
.
whiteColor
;
[
self
.
container
mas_remakeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
mas_equalTo
(
0
);
make
.
height
.
mas_equalTo
(
267
+
UIView
.
safeAreaInsetsBottom
);
make
.
bottom
.
mas_equalTo
(
0
);
}];
self
.
container
.
frame
=
CGRectMake
(
0
,
MAINSCREEN_HEIGHT
-
267
-
UIView
.
safeAreaInsetsBottom
,
MAINSCREEN_WIDTH
,
267
+
UIView
.
safeAreaInsetsBottom
);
_headerImageView
=
[[
UIImageView
alloc
]
init
];
[
self
.
container
addSubview
:
_headerImageView
];
[
_headerImageView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
width
.
mas_equalTo
(
85
);
make
.
centerX
.
mas_equalTo
(
self
.
container
.
mas_centerX
);
make
.
centerY
.
mas_equalTo
(
self
.
container
.
mas_top
);
}];
_iconLabel
=
[[
UILabel
alloc
]
init
];
_iconLabel
.
textColor
=
UIColor
.
grayColor
;
_iconLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_iconLabel
.
font
=
[
UIFont
gmFont
:
14
];
[
self
addSubview
:
_iconLabel
];
[
_iconLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_headerImageView
.
mas_bottom
).
offset
(
1
);
make
.
centerX
.
mas_equalTo
(
_headerImageView
.
mas_centerX
);
make
.
height
.
mas_equalTo
(
19
);
}];
_icon
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"small_icon"
]];
[
self
.
container
addSubview
:
_icon
];
[
_icon
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
width
.
mas_equalTo
(
16
);
make
.
right
.
mas_equalTo
(
_iconLabel
.
mas_left
).
offset
(
-
5
);
make
.
centerY
.
mas_equalTo
(
_iconLabel
.
mas_centerY
);
}];
_titleLabel
=
[[
UILabel
alloc
]
init
];
_titleLabel
.
textColor
=
RGBCOLOR_HEX
(
0x464646
);
_titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_titleLabel
.
numberOfLines
=
0
;
_titleLabel
.
lineBreakMode
=
NSLineBreakByWordWrapping
;
_titleLabel
.
font
=
[
UIFont
gmBoldFont
:
18
];
[
self
.
container
addSubview
:
_titleLabel
];
[
_titleLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_iconLabel
.
mas_bottom
).
offset
(
14
);
make
.
centerX
.
mas_equalTo
(
_iconLabel
.
mas_centerX
);
make
.
left
.
mas_equalTo
(
35
);
make
.
right
.
mas_equalTo
(
-
35
);
}];
_cancelBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_cancelBtn
setBackgroundImage
:[
UIImage
imageNamed
:
@"clue_cancl"
]
forState
:
UIControlStateNormal
];
[
_cancelBtn
addTarget
:
self
action
:
@selector
(
cancelClicked
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
container
addSubview
:
_cancelBtn
];
_cancelBtn
.
layer
.
borderColor
=
UIColor
.
whiteColor
.
CGColor
;
[
_cancelBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
right
.
mas_equalTo
(
-
20
);
make
.
top
.
mas_equalTo
(
20
);
make
.
height
.
width
.
mas_equalTo
(
15
);
}];
_phoneLabel
=
[[
UILabel
alloc
]
init
];
_phoneLabel
.
backgroundColor
=
UIColor
.
background
;
_phoneLabel
.
textColor
=
UIColor
.
auxiliaryTextDark
;
_phoneLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_phoneLabel
.
layer
.
cornerRadius
=
7
;
_phoneLabel
.
layer
.
masksToBounds
=
YES
;
_phoneLabel
.
font
=
[
UIFont
gmFont
:
16
];
[
self
.
container
addSubview
:
_phoneLabel
];
[
_phoneLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
_titleLabel
.
mas_bottom
).
offset
(
25
);
make
.
centerX
.
mas_equalTo
(
_headerImageView
.
mas_centerX
);
make
.
height
.
mas_equalTo
(
37
);
make
.
left
.
mas_equalTo
(
self
.
container
.
mas_left
).
offset
(
35
);
make
.
right
.
mas_equalTo
(
self
.
container
.
mas_right
).
offset
(
-
35
);
}];
_authBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_authBtn
.
backgroundColor
=
RGBCOLOR_HEX
(
0x3AC3BD
);
_authBtn
.
layer
.
cornerRadius
=
7
;
_authBtn
.
layer
.
masksToBounds
=
YES
;
_authBtn
.
titleLabel
.
font
=
[
UIFont
gmBoldFont
:
16
];
[
_authBtn
setTitleColor
:
UIColor
.
whiteColor
forState
:
UIControlStateNormal
];
[
_authBtn
setTitle
:
@"一键授权(加密)"
forState
:
UIControlStateNormal
];
_authBtn
.
titleLabel
.
layer
.
shadowColor
=
[
UIColor
colorWithHexString
:
@"007872"
alpha
:
1
].
CGColor
;
//阴影的颜色
_authBtn
.
titleLabel
.
layer
.
shadowOpacity
=
1
.
0
f
;
//阴影的不透明度
_authBtn
.
titleLabel
.
layer
.
shadowOffset
=
CGSizeMake
(
0
.
0
f
,
1
.
5
f
);
//阴影的偏移量,这个很重要
_authBtn
.
titleLabel
.
layer
.
shadowRadius
=
0
.
5
f
;
//阴影的扩散半径,
[
_authBtn
addTarget
:
self
action
:
@selector
(
authClicked
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
addSubview
:
_authBtn
];
_authBtn
.
layer
.
borderColor
=
UIColor
.
whiteColor
.
CGColor
;
[
_authBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
_phoneLabel
.
mas_bottom
).
offset
(
12
);
make
.
centerX
.
mas_equalTo
(
0
);
make
.
height
.
mas_equalTo
(
40
);
make
.
left
.
mas_equalTo
(
self
.
container
.
mas_left
).
offset
(
35
);
make
.
right
.
mas_equalTo
(
self
.
container
.
mas_right
).
offset
(
-
35
);
}];
_tipLabel
=
[[
UILabel
alloc
]
init
];
_tipLabel
.
text
=
@"更美为您提供号码保护,对方看不到您的真实手机号"
;
_tipLabel
.
textColor
=
UIColor
.
grayColor
;
_tipLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_tipLabel
.
font
=
[
UIFont
gmFont
:
11
];
[
self
.
container
addSubview
:
_tipLabel
];
[
_tipLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
_authBtn
.
mas_bottom
).
offset
(
14
);
make
.
bottom
.
mas_equalTo
(
self
.
container
.
mas_bottom
).
offset
(
-
25
);
make
.
centerX
.
mas_equalTo
(
_headerImageView
.
mas_centerX
);
make
.
height
.
mas_equalTo
(
15
);
make
.
left
.
mas_equalTo
(
self
.
container
.
mas_left
).
offset
(
33
);
make
.
right
.
mas_equalTo
(
self
.
container
.
mas_right
).
offset
(
-
33
);
}];
[
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
)
authClicked
{
if
(
self
.
isHadPhone
)
{
__weak
typeof
(
self
)
weakSelf
=
self
;
[
GMBookConsultViewModel
bookConsultWithRecordId
:
SafeString
(
self
.
recordId
)
successBlock
:
^
(
id
responseObject
)
{
GMResponseOC
*
response
=
(
GMResponseOC
*
)
responseObject
;
NSDictionary
*
data
=
response
.
data
;
// 跳转发私信
[[
GMRouter
sharedInstance
]
pushScheme
:
SafeString
(
data
[
@"message_url"
])];
[
weakSelf
cancelClicked
];
}
failBlock
:^
(
NSString
*
message
)
{
[[
GMBaseTool
getCurrentViewController
]
toast
:
message
];
[
weakSelf
cancelClicked
];
}];
}
else
{
[[
GMBaseTool
getCurrentViewController
]
toast
:
@"请先在我的页面设置功能中绑定手机号"
];
[
self
cancelClicked
];
}
}
-
(
void
)
cancelClicked
{
[
self
removeFromSuperview
];
}
-
(
void
)
hide
{
// 点击其他部分不消失
}
+
(
void
)
showBookConsultPopViewWithObject
:
(
GMBookConsultInfoModel
*
)
model
{
// if (model) {
GMBookReachStoreConsultView
*
popView
=
[[
GMBookReachStoreConsultView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
MAINSCREEN_WIDTH
,
MAINSCREEN_HEIGHT
)];
popView
.
titleLabel
.
text
=
model
.
title
;
[
popView
.
headerImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
model
.
imgUrl
]];
popView
.
iconLabel
.
text
=
model
.
subTitle
;
popView
.
phoneLabel
.
text
=
model
.
telephone
;
popView
.
tipLabel
.
text
=
model
.
prompt
;
popView
.
recordId
=
model
.
recordId
;
popView
.
isHadPhone
=
model
.
hasPhone
;
[[
GMBaseTool
getCurrentViewController
].
view
addSubview
:
popView
];
// }
}
@end
GMAILab/Classes/ToFace/WorkingTable/ViewController/GMBusinessReportResultController.m
View file @
8a72c0bc
...
...
@@ -11,7 +11,7 @@
#import "RequestHeader.h"
#import "GMAIUploadImagesManager.h"
//#import "GMUploadImagesManager.h"
#import <GM
b
ase/GMBaseTool.h>
#import <GM
B
ase/GMBaseTool.h>
@import
GMBaseWeb
;
@import
GMHud
;
...
...
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.h
0 → 100644
View file @
8a72c0bc
//
// GMBookConsultViewModel.h
// AFNetworking
//
// Created by Jessica on 2020/7/20.
//
//#import <GMBase/GMBase.h>
//#import "GMNetworking/GMNetworking-Swift.h"
//#import "RequestHeader.h"
@import
GMNetworking
;
@import
GMBase
;
NS_ASSUME_NONNULL_BEGIN
@interface
GMBookConsultViewModel
:
WMFetchDataViewModel
// 获取弹窗
+
(
void
)
bookConsultInfoWithSuccessBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
+
(
void
)
bookConsultWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
;
@end
NS_ASSUME_NONNULL_END
GMAILab/Classes/ToFace/WorkingTable/ViewModel/GMBookConsultViewModel.m
0 → 100644
View file @
8a72c0bc
//
// GMBookConsultViewModel.m
// AFNetworking
//
// Created by Jessica on 2020/7/20.
//
#import "GMBookConsultViewModel.h"
@implementation
GMBookConsultViewModel
+
(
void
)
bookConsultInfoWithSuccessBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
[
GMNetworking
requestOCWithApi
:
@"/api/consultation_counsel/conuslt_user_appointment"
method
:
GMHTTPMethodGet
parameters
:
nil
completion
:^
(
GMResponseOC
*
responseObject
)
{
if
(
responseObject
.
isSuccess
)
{
successBlock
(
responseObject
);
}
else
{
failBlock
(
responseObject
.
message
);
}
}];
}
+
(
void
)
bookConsultWithRecordId
:(
NSString
*
)
recordId
successBlock
:(
HttpSuccessBlock
)
successBlock
failBlock
:(
HttpFailedBlock
)
failBlock
{
NSMutableDictionary
*
params
=
[
NSMutableDictionary
dictionary
];
[
params
setObject
:
SafeString
(
recordId
)
forKey
:
@"record_id"
];
[
params
setObject
:
SafeString
([
PhobosUtil
currentTime
])
forKey
:
@"appointment_time"
];
[
GMNetworking
requestOCWithApi
:
@"/api/sales_lead/consult_appointment"
method
:
GMHTTPMethodGet
parameters
:
@{}
completion
:^
(
GMResponseOC
*
responseObject
)
{
if
(
responseObject
.
isSuccess
)
{
successBlock
(
responseObject
);
}
else
{
failBlock
(
responseObject
.
message
);
}
}];
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment