Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
bp
ShenghuoquanBusiness
Commits
3e2a7717
Commit
3e2a7717
authored
Jul 17, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix SHQBD-798 个人认证、企业认证页面返回时清空内存中的认证数据
parent
b537ef75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
LifeAccountEnterpriseAuthActivity.kt
.../newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
+4
-0
LifeAccountPersonalAuthActivity.kt
...an/newscontent/ui/auth/LifeAccountPersonalAuthActivity.kt
+15
-1
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
View file @
3e2a7717
...
...
@@ -394,6 +394,8 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
override
fun
onDoBack
()
{
// 返回上一步/上一页
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
0
)
{
// 清空内存中的认证数据
clearLifeAccountAuthData
()
// 当前是第一个fragment 则退出当前activity
XPageManager
.
pop
(
null
)
}
else
{
...
...
@@ -410,6 +412,8 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
override
fun
onBackPressed
()
{
// 返回上一步/上一页
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
0
)
{
// 清空内存中的认证数据
clearLifeAccountAuthData
()
// 当前是第一个fragment 则退出当前activity
XPageManager
.
pop
(
null
)
}
else
{
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountPersonalAuthActivity.kt
View file @
3e2a7717
...
...
@@ -17,6 +17,7 @@ import com.yidian.shenghuoquan.newscontent.http.httpbean.AuthAuthenticationBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthPersonalCompleteBean
import
com.yidian.shenghuoquan.newscontent.ui.dialog.HintDialog
import
com.yidian.shenghuoquan.newscontent.utils.StorageUtil
import
com.yidian.shenghuoquan.newscontent.widget.CommonTopBarView
import
com.yidian.xarc.xevent.XBaseEvent
import
com.yidian.xarc.xevent.XEventManager
import
com.yidian.xpage.XPageManager
...
...
@@ -30,7 +31,7 @@ import org.greenrobot.eventbus.ThreadMode
*/
class
LifeAccountPersonalAuthActivity
:
BaseActivity
<
ActivityLifeAccountPersonalAuthBinding
>(),
View
.
OnClickListener
,
CompoundButton
.
OnCheckedChangeListener
,
IAuthPersonalCompleteCallback
,
HintDialog
.
OnHintOptionCallback
,
IUserLogoutCallBack
{
IAuthPersonalCompleteCallback
,
HintDialog
.
OnHintOptionCallback
,
IUserLogoutCallBack
,
CommonTopBarView
.
OnCommonTopBarBackCallback
{
companion
object
{
// 认证数据
...
...
@@ -86,6 +87,7 @@ class LifeAccountPersonalAuthActivity :
}
private
fun
initListener
()
{
viewBind
.
bvTopBar
.
setOnCommonTopBarCallback
(
this
,
null
)
viewBind
.
svOccupation
.
setOnClickListener
(
this
)
viewBind
.
tvNext
.
setOnClickListener
(
this
)
}
...
...
@@ -220,4 +222,16 @@ class LifeAccountPersonalAuthActivity :
XPageManager
.
push
(
XRouterPathConstants
.
LOGIN_LIFE_CIRCLE
,
null
)
}
override
fun
onDoBack
()
{
// 清空内存中的认证数据
clearLifeAccountAuthData
()
XPageManager
.
pop
(
null
)
}
override
fun
onBackPressed
()
{
// 清空内存中的认证数据
clearLifeAccountAuthData
()
XPageManager
.
pop
(
null
)
}
}
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