Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa-ios
提交
92738145
o2oa-ios
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa-ios
通知
5
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa-ios
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
92738145
编写于
6月 25, 2023
作者:
F
fancy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改密码后没有关系页面的 bug
上级
f24cb1f6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
6 deletion
+20
-6
O2Platform/App/Setting-设置/c/SPasswordChangeViewController.swift
...form/App/Setting-设置/c/SPasswordChangeViewController.swift
+20
-6
未找到文件。
O2Platform/App/Setting-设置/c/SPasswordChangeViewController.swift
浏览文件 @
92738145
...
...
@@ -69,8 +69,8 @@ class SPasswordChangeViewController: FormViewController {
return
}
if
newRow
.
value
!=
newConfirmRow
.
value
{
let
alert
=
UIAlertController
(
title
:
"提醒"
,
message
:
"
密码修改提示
"
,
preferredStyle
:
.
alert
)
alert
.
addAction
(
UIAlertAction
(
title
:
"
新密码与确认密码不一致,
请修改"
,
style
:
.
default
,
handler
:
nil
))
let
alert
=
UIAlertController
(
title
:
"提醒"
,
message
:
"
新密码与确认密码不一致
"
,
preferredStyle
:
.
alert
)
alert
.
addAction
(
UIAlertAction
(
title
:
"请修改"
,
style
:
.
default
,
handler
:
nil
))
self
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
}
else
{
//生成参数
...
...
@@ -81,12 +81,20 @@ class SPasswordChangeViewController: FormViewController {
AF
.
request
(
url
!
,
method
:
.
put
,
parameters
:
parameter
,
encoding
:
JSONEncoding
.
default
,
headers
:
nil
)
.
responseJSON
(
completionHandler
:
{
(
response
)
in
switch
response
.
result
{
case
.
success
(
let
val
):
let
type
=
JSON
(
val
)[
"type"
]
let
json
=
JSON
(
val
)
DDLogInfo
(
json
.
description
)
let
type
=
json
[
"type"
]
if
type
==
"success"
{
self
.
showSuccess
(
title
:
"修改成功"
)
}
else
{
DDLogError
(
JSON
(
val
)
.
description
)
self
.
showError
(
title
:
"修改失败"
)
self
.
closeSelf
()
}
else
{
let
n
=
json
[
"message"
]
DDLogInfo
(
n
.
description
)
if
let
message
=
n
.
string
{
self
.
showError
(
title
:
message
)
}
else
{
self
.
showError
(
title
:
"修改失败"
)
}
}
case
.
failure
(
let
err
):
DDLogError
(
err
.
localizedDescription
)
...
...
@@ -98,6 +106,12 @@ class SPasswordChangeViewController: FormViewController {
}
private
func
closeSelf
()
{
DispatchQueue
.
main
.
async
{
self
.
popVC
()
}
}
override
func
didReceiveMemoryWarning
()
{
super
.
didReceiveMemoryWarning
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录