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
dd85215e
Commit
dd85215e
authored
Jul 16, 2019
by
邢超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码梳理
parent
919dfcdb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
8 deletions
+45
-8
QGSendMessageCodeManger.m
...in/Common/SendMessageCodeManger/QGSendMessageCodeManger.m
+1
-0
QGLoginTableViewCell.h
...GClasses/Login/Function/Login/View/QGLoginTableViewCell.h
+3
-1
QGLoginTableViewCell.m
...GClasses/Login/Function/Login/View/QGLoginTableViewCell.m
+1
-3
QGMainLoginViewController.m
...Function/Login/ViewController/QGMainLoginViewController.m
+27
-3
QGRegisterViewController.m
...erOrVerifyLogin/ViewController/QGRegisterViewController.m
+12
-0
QGAuthNetwork.m
...t/VirtualPayment/QGUtils/QGTool/QGNetwork/QGAuthNetwork.m
+1
-1
No files found.
VirtualPayment/VirtualPayment/QGClasses/Login/Common/SendMessageCodeManger/QGSendMessageCodeManger.m
View file @
dd85215e
...
@@ -179,6 +179,7 @@
...
@@ -179,6 +179,7 @@
//短信验证码
//短信验证码
NSMutableDictionary
*
paraDictM
=
[[
NSMutableDictionary
alloc
]
initWithCapacity
:
6
];
NSMutableDictionary
*
paraDictM
=
[[
NSMutableDictionary
alloc
]
initWithCapacity
:
6
];
[
paraDictM
setValue
:
self
.
phoneString
forKey
:
@"phoneNo"
];
[
paraDictM
setValue
:
self
.
phoneString
forKey
:
@"phoneNo"
];
[
paraDictM
setValue
:
@"VCC"
forKey
:
@"smsMerchant"
];
[
paraDictM
setValue
:[
NSNumber
numberWithInteger
:
registerFrom
.
integerValue
]
forKey
:
@"registerFrom"
];
[
paraDictM
setValue
:[
NSNumber
numberWithInteger
:
registerFrom
.
integerValue
]
forKey
:
@"registerFrom"
];
//量化派图形验证码验证
//量化派图形验证码验证
...
...
VirtualPayment/VirtualPayment/QGClasses/Login/Function/Login/View/QGLoginTableViewCell.h
View file @
dd85215e
...
@@ -7,12 +7,14 @@
...
@@ -7,12 +7,14 @@
//
//
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
#import "QGInputGroupView.h"
/**
/**
手机号输入cell高度63
手机号输入cell高度63
*/
*/
@interface
QGLoginTableViewCell
:
UITableViewCell
@interface
QGLoginTableViewCell
:
UITableViewCell
///手机号输入框
@property
(
nonatomic
,
strong
)
QGInputGroupView
*
phoneNumberinput
;
@property
(
nonatomic
,
copy
)
void
(
^
cellBlock
)(
NSString
*
phoneNumber
);
@property
(
nonatomic
,
copy
)
void
(
^
cellBlock
)(
NSString
*
phoneNumber
);
...
...
VirtualPayment/VirtualPayment/QGClasses/Login/Function/Login/View/QGLoginTableViewCell.m
View file @
dd85215e
...
@@ -7,12 +7,10 @@
...
@@ -7,12 +7,10 @@
//
//
#import "QGLoginTableViewCell.h"
#import "QGLoginTableViewCell.h"
#import "QGInputGroupView.h"
#import "QGBasicUITool.h"
#import "QGBasicUITool.h"
@interface
QGLoginTableViewCell
()
@interface
QGLoginTableViewCell
()
///手机号输入框
@property
(
nonatomic
,
strong
)
QGInputGroupView
*
phoneNumberinput
;
///分割线
///分割线
@property
(
nonatomic
,
strong
)
UIView
*
phoneUnderLine
;
@property
(
nonatomic
,
strong
)
UIView
*
phoneUnderLine
;
...
...
VirtualPayment/VirtualPayment/QGClasses/Login/Function/Login/ViewController/QGMainLoginViewController.m
View file @
dd85215e
...
@@ -71,7 +71,17 @@
...
@@ -71,7 +71,17 @@
//设置导航栏左右按钮
//设置导航栏左右按钮
[
self
customLeftBarButtonItemWithImgName
:
@"vc_close"
action
:
nil
];
[
self
customLeftBarButtonItemWithImgName
:
@"vc_close"
action
:
nil
];
[
self
custemRightBarButtonItemWithTitle
:
@"注册"
imageName
:
nil
action
:^
(
UIButton
*
_Nonnull
button
)
{
[
self
custemRightBarButtonItemWithTitle
:
@"注册"
imageName
:
nil
action
:^
(
UIButton
*
_Nonnull
button
)
{
[
Mediator
performTarget
:[
QGMediatorClassTools
QGClassNameWithHeaderType
:
QGHeaderTypeQGRegisterViewController
]
parameters
:
nil
handlerBlock
:
self
.
callBackBlock
];
[
Mediator
performTarget
:[
QGMediatorClassTools
QGClassNameWithHeaderType
:
QGHeaderTypeQGRegisterViewController
]
parameters
:@{
@"phone"
:
self
.
phoneString
}
handlerBlock
:^
(
NSString
*
tag
,
NSDictionary
*
parameters
)
{
if
(
parameters
)
{
self
.
phoneString
=
[
parameters
valueForKey
:
@"phone"
];
[
self
.
tableView
reloadData
];
}
if
(
self
.
callBackBlock
)
{
self
.
callBackBlock
(
tag
,
parameters
);
}
}];
}];
}];
...
@@ -398,6 +408,9 @@
...
@@ -398,6 +408,9 @@
QGLoginTableViewCell
*
cell
=
(
QGLoginTableViewCell
*
)[
self
getCellFromClassName
:
NSStringFromClass
([
QGLoginTableViewCell
class
])
dequeueTableView
:
tableView
];
QGLoginTableViewCell
*
cell
=
(
QGLoginTableViewCell
*
)[
self
getCellFromClassName
:
NSStringFromClass
([
QGLoginTableViewCell
class
])
dequeueTableView
:
tableView
];
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
cell
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
@weakify
(
self
)
@weakify
(
self
)
cell
.
phoneNumberinput
.
textField
.
text
=
self
.
phoneString
;
cell
.
cellBlock
=
^
(
NSString
*
phoneNumber
)
{
cell
.
cellBlock
=
^
(
NSString
*
phoneNumber
)
{
@strongify
(
self
)
@strongify
(
self
)
self
.
phoneString
=
phoneNumber
;
self
.
phoneString
=
phoneNumber
;
...
@@ -469,9 +482,20 @@
...
@@ -469,9 +482,20 @@
cell
.
cellBlock
=
^
(
LittleBtnType
btnType
)
{
//处理按钮点击逻辑
cell
.
cellBlock
=
^
(
LittleBtnType
btnType
)
{
//处理按钮点击逻辑
switch
(
btnType
)
{
switch
(
btnType
)
{
case
LittleBtnVerifyCode
:
case
LittleBtnVerifyCode
:
{
//验证码登录页面跳转
//验证码登录页面跳转
[
Mediator
performTarget
:[
QGMediatorClassTools
QGClassNameWithHeaderType
:
QGHeaderTypeQGRegisterViewController
]
parameters
:
nil
handlerBlock
:
self
.
callBackBlock
];
[
Mediator
performTarget
:[
QGMediatorClassTools
QGClassNameWithHeaderType
:
QGHeaderTypeQGRegisterViewController
]
parameters
:@{
@"phone"
:
self
.
phoneString
}
handlerBlock
:^
(
NSString
*
tag
,
NSDictionary
*
parameters
)
{
if
(
parameters
)
{
self
.
phoneString
=
[
parameters
valueForKey
:
@"phone"
];
[
self
.
tableView
reloadData
];
}
if
(
self
.
callBackBlock
)
{
self
.
callBackBlock
(
tag
,
parameters
);
}
}];
}
break
;
break
;
case
LittleBtnForgetPassword
:
case
LittleBtnForgetPassword
:
{
{
...
...
VirtualPayment/VirtualPayment/QGClasses/Login/Function/RegisterOrVerifyLogin/ViewController/QGRegisterViewController.m
View file @
dd85215e
...
@@ -38,6 +38,11 @@
...
@@ -38,6 +38,11 @@
return
YES
;
return
YES
;
}
}
-
(
void
)
transferParameters
:(
NSDictionary
*
)
param
{
self
.
phoneString
=
[
param
objectForKey
:
@"phone"
];
}
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
...
@@ -149,12 +154,15 @@
...
@@ -149,12 +154,15 @@
cell
=
[[
QGPhoneInputWithTitleCell
alloc
]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
@"phonecell"
cellTitle
:
@"手机号码"
placeHolder
:
@"请输入手机号码"
];
cell
=
[[
QGPhoneInputWithTitleCell
alloc
]
initWithStyle
:
UITableViewCellStyleDefault
reuseIdentifier
:
@"phonecell"
cellTitle
:
@"手机号码"
placeHolder
:
@"请输入手机号码"
];
}
}
cell
.
phoneNumberinput
.
textField
.
text
=
self
.
phoneString
;
cell
.
padding
=
40
.
f
;
cell
.
padding
=
40
.
f
;
@weakify
(
self
)
@weakify
(
self
)
cell
.
cellBlock
=
^
(
NSString
*
phoneNumber
)
{
cell
.
cellBlock
=
^
(
NSString
*
phoneNumber
)
{
@strongify
(
self
)
@strongify
(
self
)
self
.
phoneString
=
phoneNumber
;
self
.
phoneString
=
phoneNumber
;
self
.
callBackBlock
(
nil
,
@{
@"phone"
:
self
.
phoneString
});
if
(
self
.
phoneString
.
isNumber
&&
self
.
phoneString
.
length
==
11
&&
self
.
isSelect
)
{
if
(
self
.
phoneString
.
isNumber
&&
self
.
phoneString
.
length
==
11
&&
self
.
isSelect
)
{
self
.
changeButtonStatus
(
YES
);
self
.
changeButtonStatus
(
YES
);
}
else
{
}
else
{
...
@@ -186,6 +194,10 @@
...
@@ -186,6 +194,10 @@
[
cell
.
loginButton
setGradientButtonIsClickEnabled
:
ableClick
];
[
cell
.
loginButton
setGradientButtonIsClickEnabled
:
ableClick
];
};
};
if
(
self
.
phoneString
.
isNumber
&&
self
.
phoneString
.
length
==
11
&&
self
.
isSelect
)
{
[
cell
.
loginButton
setGradientButtonIsClickEnabled
:
YES
];
}
return
cell
;
return
cell
;
}
}
case
2
:
case
2
:
...
...
VirtualPayment/VirtualPayment/QGUtils/QGTool/QGNetwork/QGAuthNetwork.m
View file @
dd85215e
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
-
(
NSString
*
)
baseUrlString
-
(
NSString
*
)
baseUrlString
{
{
//
正式环境
//
正式环境
// return @"https://auth.quantgroup.cn/";
// return @"https://auth.quantgroup.cn/";
//测试环境
//测试环境
...
...
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