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
db4b861a
Commit
db4b861a
authored
Jun 24, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix SHQBD-226 企业认证审核驳回修改完成后跳过创建生活号流程,直接进入商户管理中心
parent
f263f264
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
3 deletions
+36
-3
LifeAccountEnterpriseAuthCompleteActivity.kt
...tent/ui/auth/LifeAccountEnterpriseAuthCompleteActivity.kt
+36
-3
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountEnterpriseAuthCompleteActivity.kt
View file @
db4b861a
...
...
@@ -6,7 +6,10 @@ import com.yidian.common.XRouterPathConstants
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.R
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountEnterpriseAuthCompleteBinding
import
com.yidian.shenghuoquan.newscontent.utils.SensitiveInfoUtil
import
com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.callback.IGetLifeAccountListCallback
import
com.yidian.shenghuoquan.newscontent.http.httpbean.LifeAccountItemBean
import
com.yidian.shenghuoquan.newscontent.ui.center.MerchantCenterActivity
import
com.yidian.xpage.XPageManager
/**
...
...
@@ -15,7 +18,7 @@ import com.yidian.xpage.XPageManager
* description: 生活号企业认证提交成功页面
*/
class
LifeAccountEnterpriseAuthCompleteActivity
:
BaseActivity
<
ActivityLifeAccountEnterpriseAuthCompleteBinding
>(),
View
.
OnClickListener
{
BaseActivity
<
ActivityLifeAccountEnterpriseAuthCompleteBinding
>(),
View
.
OnClickListener
,
IGetLifeAccountListCallback
{
companion
object
{
const
val
REGISTRATION_NAME
=
"registrationName"
...
...
@@ -55,6 +58,10 @@ class LifeAccountEnterpriseAuthCompleteActivity :
private
fun
initView
()
{
// 此页面不可返回
viewBind
.
bvTopBar
.
setBackVisibility
(
false
)
// 认证修改和正常认证显示不同入口文案
viewBind
.
tvCreateLifeAccount
.
text
=
if
(
params
?.
get
(
EXTRA_IS_AUTH_MODIFY
)
?.
let
{
it
as
Boolean
}
==
true
)
resources
.
getText
(
R
.
string
.
enter_life_account
)
else
resources
.
getText
(
R
.
string
.
create_life_account
)
}
private
fun
initListener
()
{
...
...
@@ -74,7 +81,12 @@ class LifeAccountEnterpriseAuthCompleteActivity :
override
fun
onClick
(
v
:
View
?)
{
if
(
v
?.
id
==
R
.
id
.
tv_create_life_account
)
{
// 跳转创建生活号页面
if
(
params
?.
get
(
EXTRA_IS_AUTH_MODIFY
)
?.
let
{
it
as
Boolean
}
==
true
)
{
// 认证修改 请求生活号列表 跳转商户管理中心
ApiService
.
getLifeAccountList
(
this
)
return
}
// 正常认证 跳转创建生活号页面
XPageManager
.
push
(
XRouterPathConstants
.
LIFE_ACCOUNT_CREATE
,
hashMapOf
(
...
...
@@ -90,4 +102,25 @@ class LifeAccountEnterpriseAuthCompleteActivity :
override
fun
onBackPressed
()
{
// 禁止back event
}
override
fun
getLifeAccountListSuccess
(
result
:
ArrayList
<
LifeAccountItemBean
.
Response
>?)
{
// 生活号列表请求成功
val
curLifeAccountId
=
params
?.
get
(
EXTRA_LIFE_ACCOUNT_ID
)
result
?.
forEach
{
if
(
it
.
life_account_id
==
curLifeAccountId
)
{
XPageManager
.
push
(
XRouterPathConstants
.
MERCHANT_CENTER
,
hashMapOf
(
Pair
(
MerchantCenterActivity
.
EXTRA_IS_MULTI
,
result
.
size
>
1
),
Pair
(
MerchantCenterActivity
.
EXTRA_LIFE_ACCOUNT_INFO
,
it
)
)
)
XPageManager
.
pop
(
null
)
}
}
}
override
fun
getLifeAccountListFailure
(
message
:
String
?)
{
}
}
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