Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VirtualCard-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
APP
VirtualCard-iOS
Commits
bfb0b34a
Commit
bfb0b34a
authored
May 26, 2020
by
IOS-张 博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页标签
parent
d5a5bd05
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
12 deletions
+47
-12
QGCardHomeModel.h
...nt/QGClasses/Card/Function/QGCard/Model/QGCardHomeModel.h
+3
-0
QGCardAccountBaseCell.m
...unction/QGCard/View/QGCardAccount/QGCardAccountBaseCell.m
+3
-0
QGCardAccountSegmentView.h
...tion/QGCard/View/QGCardAccount/QGCardAccountSegmentView.h
+3
-0
QGCardAccountSegmentView.m
...tion/QGCard/View/QGCardAccount/QGCardAccountSegmentView.m
+36
-0
QGBindingPhoneViewController.m
...indingPhone/ViewController/QGBindingPhoneViewController.m
+2
-12
No files found.
VirtualPayment/VirtualPayment/QGClasses/Card/Function/QGCard/Model/QGCardHomeModel.h
View file @
bfb0b34a
...
...
@@ -69,6 +69,9 @@ typedef NS_ENUM(NSUInteger, HomeCardHeaderType) {
*/
@property
(
nonatomic
,
strong
)
NSString
*
repayBillStatusEnumType
;
/// 消费返现比率 文案:消费返1%
@property
(
nonatomic
,
strong
)
NSString
*
costReturnCashRate
;
///是否有提额标识
@property
(
nonatomic
,
strong
)
NSString
*
isHasQuotaFlag
;
...
...
VirtualPayment/VirtualPayment/QGClasses/Card/Function/QGCard/View/QGCardAccount/QGCardAccountBaseCell.m
View file @
bfb0b34a
...
...
@@ -97,6 +97,9 @@
//2改变scollView展示的视图
self
.
segmentView
.
selectBlock
(
QGAccountSegmentViewSelectTypeSavings
);
//设置标签
self
.
segmentView
.
tagString
=
_dataModel
.
blankNote
.
costReturnCashRate
;
//设置账单和分期cell
[
self
resetBillAndTermWithBlankNote
:
_dataModel
.
blankNote
];
...
...
VirtualPayment/VirtualPayment/QGClasses/Card/Function/QGCard/View/QGCardAccount/QGCardAccountSegmentView.h
View file @
bfb0b34a
...
...
@@ -26,6 +26,9 @@ typedef void(^QAccountSegmentViewSelectBlock)(QGAccountSegmentViewSelectType sel
/// 选中的block
@property
(
nonatomic
,
copy
)
QAccountSegmentViewSelectBlock
selectBlock
;
/// 储蓄账户显示的标签
@property
(
nonatomic
,
strong
)
NSString
*
tagString
;
/// 外部选中事件
-
(
void
)
resetSelectButton
:(
QGAccountSegmentViewSelectType
)
selectType
;
@end
...
...
VirtualPayment/VirtualPayment/QGClasses/Card/Function/QGCard/View/QGCardAccount/QGCardAccountSegmentView.m
View file @
bfb0b34a
...
...
@@ -8,6 +8,7 @@
#import "QGCardAccountSegmentView.h"
#import "QGBasicUITool.h"
#import "QGDesignatedCornerView.h"
@interface
QGCardAccountSegmentView
()
...
...
@@ -19,6 +20,13 @@
/// 选中的按钮
@property
(
nonatomic
,
strong
)
UIButton
*
selectButton
;
/// 标签
@property
(
nonatomic
,
strong
)
QGDesignatedCornerView
*
tagView
;
/// 标签
@property
(
nonatomic
,
strong
)
UILabel
*
tagLabel
;
@end
@implementation
QGCardAccountSegmentView
...
...
@@ -56,6 +64,26 @@
//默认选中第一个
self
.
selectButton
=
self
.
creditButton
;
//红色小标签
self
.
tagView
=
[[
QGDesignatedCornerView
alloc
]
initWithRadius
:
4
corner
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
|
UIRectCornerBottomRight
];
self
.
tagView
.
backgroundColor
=
[
UIColor
colorWithHexString
:
@"FF2121"
];
[
self
addSubview
:
self
.
tagView
];
[
self
.
tagView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
height
.
mas_equalTo
(
11
);
make
.
right
.
mas_equalTo
(
self
.
savingsButton
.
mas_right
).
offset
(
10
);
make
.
bottom
.
mas_equalTo
(
self
.
savingsButton
.
mas_top
).
offset
(
7
);
}];
//标签label
self
.
tagLabel
=
[
UILabel
creatLabelWithSuperView
:
self
.
tagLabel
title
:
nil
titleFontSize
:
[
UIFont
qg_mediumFontOfSize
:
7
]
textColor
:
[
UIColor
whiteColor
]
alignment
:
NSTextAlignmentCenter
];
[
self
.
tagView
addSubview
:
self
.
tagLabel
];
[
self
.
tagLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
inset
(
4
);
make
.
top
.
bottom
.
inset
(
0
);
make
.
width
.
mas_lessThanOrEqualTo
(
220
);
}];
}
return
self
;
}
...
...
@@ -76,6 +104,14 @@
}
}
///设置标签
-
(
void
)
setTagString
:(
NSString
*
)
tagString
{
self
.
tagView
.
hidden
=
[
NSString
isEmpty
:
tagString
];
self
.
tagLabel
.
text
=
tagString
;
}
#pragma mark - Action
/// 信用账户和储蓄账户点击事件
-
(
void
)
buttonClick
:(
UIButton
*
)
button
...
...
VirtualPayment/VirtualPayment/QGClasses/Login/Function/QGBindingPhone/ViewController/QGBindingPhoneViewController.m
View file @
bfb0b34a
...
...
@@ -115,18 +115,8 @@
[
infoDic
setObject
:
IsStringNull
(
self
.
wechatInfoModel
.
unionid
)
forKey
:
@"unionId"
];
[
infoDic
setObject
:
IsStringNull
(
self
.
wechatInfoModel
.
nickname
)
forKey
:
@"nickName"
];
[
infoDic
setObject
:
IsStringNull
(
self
.
wechatInfoModel
.
headimgurl
)
forKey
:
@"headImgUrl"
];
//1 为男性,2 为女性
if
(
self
.
wechatInfoModel
.
sex
.
integerValue
==
1
)
{
[
infoDic
setObject
:
@"M"
forKey
:
@"sex"
];
}
else
if
(
self
.
wechatInfoModel
.
sex
.
integerValue
==
2
)
{
[
infoDic
setObject
:
@"F"
forKey
:
@"sex"
];
}
else
{
[
infoDic
setObject
:
@"N"
forKey
:
@"sex"
];
}
[
infoDic
setObject
:
IsStringNull
(
self
.
wechatInfoModel
.
sex
)
forKey
:
@"sex"
];
[
QGHUDManager
showHud
:
nil
];
[[
QGTalosNetwork
shareManager
]
POST
:
urlStr
parameters
:
infoDic
success
:^
(
id
_Nonnull
responseObject
)
{
[
QGHUDManager
hideHud
];
...
...
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