Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Car-iOS-Merchant
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
张杰
Car-iOS-Merchant
Commits
9f7161a4
Commit
9f7161a4
authored
Mar 31, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码功能
parent
b9523645
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
Main.storyboard
Car/Base.lproj/Main.storyboard
+3
-3
ModifyPswTableViewController.m
...Class/Main/ViewControllers/ModifyPswTableViewController.m
+16
-16
URL.h
Car/URL.h
+1
-1
No files found.
Car/Base.lproj/Main.storyboard
View file @
9f7161a4
...
...
@@ -454,7 +454,7 @@
<rect
key=
"frame"
x=
"92"
y=
"21"
width=
"267"
height=
"47.5"
/>
<nil
key=
"textColor"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
<textInputTraits
key=
"textInputTraits"
secureTextEntry=
"YES"
/>
</textField>
</subviews>
<constraints>
...
...
@@ -518,7 +518,7 @@
<rect
key=
"frame"
x=
"92"
y=
"21"
width=
"267"
height=
"47.5"
/>
<nil
key=
"textColor"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
<textInputTraits
key=
"textInputTraits"
secureTextEntry=
"YES"
/>
</textField>
</subviews>
<constraints>
...
...
@@ -582,7 +582,7 @@
<rect
key=
"frame"
x=
"92"
y=
"21"
width=
"267"
height=
"47.5"
/>
<nil
key=
"textColor"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
<textInputTraits
key=
"textInputTraits"
secureTextEntry=
"YES"
/>
</textField>
</subviews>
<constraints>
...
...
Car/CodeClass/Main/ViewControllers/ModifyPswTableViewController.m
View file @
9f7161a4
...
...
@@ -42,22 +42,22 @@
-
(
void
)
httpChangePsw
{
ModifyPasswordRequest
*
param
=
[[
ModifyPasswordRequest
alloc
]
init
];
// param.userName = k
User.userName;
//
param.oldPassword = self.textFieldOldPsw.text;
//
param.fnewPassword = self.textFieldNewPsw.text;
//
[MBProgressHUD j_loading:@"修改中…"];
//
WS(weakSelf);
//
[kHttp POST:kModifyPswUrl parameters:[param toDictionary] complete:^(id _Nullable response, NSError * _Nullable error) {
//
[MBProgressHUD j_hideLoadingView];
//
if (kRsSuccess(response)) {
//
[MBProgressHUD j_success:@"密码修改成功!" complete:^{
//
[weakSelf.navigationController popViewControllerAnimated:YES];
//
}];
//
}else{
//
kShowRsMsg(response);
//
//
}
//
}];
param
.
userName
=
kGlobal
.
loginResult
.
merchant
User
.
userName
;
param
.
oldPassword
=
self
.
textFieldOldPsw
.
text
;
param
.
fnewPassword
=
self
.
textFieldNewPsw
.
text
;
[
MBProgressHUD
j_loading
:
@"修改中…"
];
WS
(
weakSelf
);
[
kHttp
POST
:
kModifyPswUrl
parameters
:[
param
toDictionary
]
complete
:^
(
id
_Nullable
response
,
NSError
*
_Nullable
error
)
{
[
MBProgressHUD
j_hideLoadingView
];
if
(
kRsSuccess
(
response
))
{
[
MBProgressHUD
j_success
:
@"密码修改成功!"
complete
:
^
{
[
weakSelf
.
navigationController
popViewControllerAnimated
:
YES
];
}];
}
else
{
kShowRsMsg
(
response
);
}
}];
}
...
...
Car/URL.h
View file @
9f7161a4
...
...
@@ -22,7 +22,7 @@ static NSString *const BASE_IP = @"http://whcar.gomoretech.com";
static
NSString
*
const
kLoginUrl
=
@"merchantUser/login"
;
static
NSString
*
const
kUpgradeUrl
=
@"merchantUser/getUpgrade"
;
static
NSString
*
const
kModifyPswUrl
=
@"
station
User/modifyPassword"
;
static
NSString
*
const
kModifyPswUrl
=
@"
merchant
User/modifyPassword"
;
static
NSString
*
const
kResetPswUrl
=
@"stationUser/resetPassword"
;
static
NSString
*
const
kGetUserInfoUrl
=
@"account/get"
;
...
...
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