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
3cdf8fdf
Commit
3cdf8fdf
authored
Jun 23, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 企业审核认证驳回状态下修改认证资料传参标识
parent
6f73ad44
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
90 deletions
+108
-90
LifeAccountEnterpriseAuthActivity.kt
.../newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
+18
-2
LifeAccountEnterpriseAuthCompleteActivity.kt
...tent/ui/auth/LifeAccountEnterpriseAuthCompleteActivity.kt
+3
-1
MerchantCenterActivity.kt
...nghuoquan/newscontent/ui/center/MerchantCenterActivity.kt
+8
-11
MerchantInfoActivity.kt
...henghuoquan/newscontent/ui/center/MerchantInfoActivity.kt
+5
-2
MerchantCenterBottomHintDialog.kt
...n/newscontent/ui/dialog/MerchantCenterBottomHintDialog.kt
+74
-74
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
View file @
3cdf8fdf
...
@@ -43,6 +43,9 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -43,6 +43,9 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
// 认证数据
// 认证数据
const
val
EXTRA_AUTH_DATA
=
"authData"
const
val
EXTRA_AUTH_DATA
=
"authData"
// 是否审核驳回后修改认证
const
val
EXTRA_IS_AUTH_MODIFY
=
"isAuthModify"
}
}
private
val
fragmentList
:
ArrayList
<
Fragment
>
by
lazy
{
private
val
fragmentList
:
ArrayList
<
Fragment
>
by
lazy
{
...
@@ -79,6 +82,17 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -79,6 +82,17 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
}
}
}
}
/**
* 是否为认证驳回修改情况
*/
private
val
isAuthModify
by
lazy
{
intent
.
getSerializableExtra
(
XRouterPathConstants
.
ParamsKey
)
?.
let
{
(
it
as
HashMap
<*,
*>)[
EXTRA_IS_AUTH_MODIFY
]
?.
let
{
bool
->
bool
as
Boolean
}
?:
false
}
?:
false
}
/**
/**
* 上一次选择的商户类型
* 上一次选择的商户类型
*/
*/
...
@@ -310,7 +324,8 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -310,7 +324,8 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
Pair
(
Pair
(
LifeAccountEnterpriseAuthCompleteActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
LifeAccountEnterpriseAuthCompleteActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
result
?.
life_account_id
result
?.
life_account_id
)
),
Pair
(
LifeAccountEnterpriseAuthCompleteActivity
.
EXTRA_IS_AUTH_MODIFY
,
isAuthModify
)
)
)
)
)
XPageManager
.
pop
(
null
)
XPageManager
.
pop
(
null
)
...
@@ -346,7 +361,8 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
...
@@ -346,7 +361,8 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
Pair
(
Pair
(
LifeAccountEnterpriseAuthCompleteActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
LifeAccountEnterpriseAuthCompleteActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
result
?.
life_account_id
result
?.
life_account_id
)
),
Pair
(
LifeAccountEnterpriseAuthCompleteActivity
.
EXTRA_IS_AUTH_MODIFY
,
isAuthModify
)
)
)
)
)
XPageManager
.
pop
(
null
)
XPageManager
.
pop
(
null
)
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountEnterpriseAuthCompleteActivity.kt
View file @
3cdf8fdf
...
@@ -5,7 +5,6 @@ import android.view.View
...
@@ -5,7 +5,6 @@ import android.view.View
import
com.yidian.common.XRouterPathConstants
import
com.yidian.common.XRouterPathConstants
import
com.yidian.common.base.BaseActivity
import
com.yidian.common.base.BaseActivity
import
com.yidian.shenghuoquan.newscontent.R
import
com.yidian.shenghuoquan.newscontent.R
import
com.yidian.shenghuoquan.newscontent.constant.Constant
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountEnterpriseAuthCompleteBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountEnterpriseAuthCompleteBinding
import
com.yidian.shenghuoquan.newscontent.utils.SensitiveInfoUtil
import
com.yidian.shenghuoquan.newscontent.utils.SensitiveInfoUtil
import
com.yidian.xpage.XPageManager
import
com.yidian.xpage.XPageManager
...
@@ -24,6 +23,9 @@ class LifeAccountEnterpriseAuthCompleteActivity :
...
@@ -24,6 +23,9 @@ class LifeAccountEnterpriseAuthCompleteActivity :
const
val
ID_CARD_NAME
=
"idCardName"
const
val
ID_CARD_NAME
=
"idCardName"
const
val
ID_CARD_NUM
=
"idCardNum"
const
val
ID_CARD_NUM
=
"idCardNum"
const
val
EXTRA_LIFE_ACCOUNT_ID
=
"life_account_id"
const
val
EXTRA_LIFE_ACCOUNT_ID
=
"life_account_id"
// 是否审核驳回后修改认证
const
val
EXTRA_IS_AUTH_MODIFY
=
"isAuthModify"
}
}
/**
/**
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/center/MerchantCenterActivity.kt
View file @
3cdf8fdf
...
@@ -318,16 +318,11 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
...
@@ -318,16 +318,11 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
}
}
override
fun
onUpgradeEnterpriseAuth
()
{
override
fun
onUpgradeAuth
()
{
// 升级企业认证 先请求企业认证信息
// 由未认证升级认证 跳转认证首页
ApiService
.
authMerchantCheck
(
XPageManager
.
push
(
this
,
XRouterPathConstants
.
LIFE_ACCOUNT_AUTH
,
hashMapOf
(
hashMapOf
(
Pair
(
LifeAccountAuthActivity
.
EXTRA_PAGE_FROM
,
LifeAccountAuthActivity
.
FROM_AUTH
))
Pair
(
MerchantInfoActivity
.
PARAMS_LIFE_ACCOUNT_ID
,
curLifeAccount
.
life_account_id
)
)
)
)
}
}
...
@@ -352,7 +347,9 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
...
@@ -352,7 +347,9 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
Pair
(
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
LifeAccountEnterpriseAuthActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
curLifeAccount
.
life_account_id
curLifeAccount
.
life_account_id
),
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_AUTH_DATA
,
result
)
),
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_AUTH_DATA
,
result
),
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_IS_AUTH_MODIFY
,
curLifeAccount
.
enterprise_audit_status
==
Constant
.
STATUS_AUDIT_REJECT
)
)
)
)
)
}
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/center/MerchantInfoActivity.kt
View file @
3cdf8fdf
...
@@ -12,6 +12,7 @@ import com.yidian.shenghuoquan.newscontent.http.ApiService
...
@@ -12,6 +12,7 @@ import com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuthMerchantCheckCallback
import
com.yidian.shenghuoquan.newscontent.http.callback.IAuthMerchantCheckCallback
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthMerchantCheckBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.AuthMerchantCheckBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.GetLifeAccountInfoByIdBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.GetLifeAccountInfoByIdBean
import
com.yidian.shenghuoquan.newscontent.ui.auth.LifeAccountAuthActivity
import
com.yidian.shenghuoquan.newscontent.ui.auth.LifeAccountEnterpriseAuthActivity
import
com.yidian.shenghuoquan.newscontent.ui.auth.LifeAccountEnterpriseAuthActivity
import
com.yidian.shenghuoquan.newscontent.widget.MerchantInfoView
import
com.yidian.shenghuoquan.newscontent.widget.MerchantInfoView
import
com.yidian.xarc.xevent.XBaseEvent
import
com.yidian.xarc.xevent.XBaseEvent
...
@@ -161,7 +162,7 @@ class MerchantInfoActivity : BaseActivity<ActivityMerchantInfoBinding>(), Mercha
...
@@ -161,7 +162,7 @@ class MerchantInfoActivity : BaseActivity<ActivityMerchantInfoBinding>(), Mercha
// 未认证 进入认证流程首页 此处需要传参from控制认证流程首页返回按钮显示
// 未认证 进入认证流程首页 此处需要传参from控制认证流程首页返回按钮显示
XPageManager
.
push
(
XPageManager
.
push
(
XRouterPathConstants
.
LIFE_ACCOUNT_AUTH
,
XRouterPathConstants
.
LIFE_ACCOUNT_AUTH
,
hashMapOf
(
Pair
(
"from"
,
"auth"
))
hashMapOf
(
Pair
(
LifeAccountAuthActivity
.
EXTRA_PAGE_FROM
,
LifeAccountAuthActivity
.
FROM_AUTH
))
)
)
}
else
if
(
lifeAccountInfo
?.
audit_status
==
Constant
.
STATUS_AUDIT_REJECT
)
{
}
else
if
(
lifeAccountInfo
?.
audit_status
==
Constant
.
STATUS_AUDIT_REJECT
)
{
// 认证驳回 请求企业认证信息 此处为升级认证情况 需要传入生活号id
// 认证驳回 请求企业认证信息 此处为升级认证情况 需要传入生活号id
...
@@ -197,7 +198,9 @@ class MerchantInfoActivity : BaseActivity<ActivityMerchantInfoBinding>(), Mercha
...
@@ -197,7 +198,9 @@ class MerchantInfoActivity : BaseActivity<ActivityMerchantInfoBinding>(), Mercha
Pair
(
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
LifeAccountEnterpriseAuthActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
lifeAccountInfo
?.
life_account_id
lifeAccountInfo
?.
life_account_id
),
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_AUTH_DATA
,
result
)
),
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_AUTH_DATA
,
result
),
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_IS_AUTH_MODIFY
,
lifeAccountInfo
?.
audit_status
==
Constant
.
STATUS_AUDIT_REJECT
)
)
)
)
)
}
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/dialog/MerchantCenterBottomHintDialog.kt
View file @
3cdf8fdf
...
@@ -15,90 +15,90 @@ import com.yidian.utils.DensityUtil
...
@@ -15,90 +15,90 @@ import com.yidian.utils.DensityUtil
* description: 商户管理中心底部提示弹窗
* description: 商户管理中心底部提示弹窗
*/
*/
class
MerchantCenterBottomHintDialog
(
class
MerchantCenterBottomHintDialog
(
context
:
Context
,
context
:
Context
,
val
type
:
Int
,
val
type
:
Int
,
val
callback
:
OnMerchantCenterBottomHintCallback
?
=
null
val
callback
:
OnMerchantCenterBottomHintCallback
?
=
null
)
:
)
:
BaseDialog
<
DialogMerchantCenterBottomHintBinding
>(
BaseDialog
<
DialogMerchantCenterBottomHintBinding
>(
context
,
context
,
R
.
style
.
merchant_center_bottom_hint_dialog
R
.
style
.
merchant_center_bottom_hint_dialog
),
),
View
.
OnClickListener
{
View
.
OnClickListener
{
companion
object
{
companion
object
{
// 认证升级
// 认证升级
const
val
TYPE_AUTH_UPGRADE
=
1
const
val
TYPE_AUTH_UPGRADE
=
1
// 认证驳回
// 认证驳回
const
val
TYPE_AUTH_REJECT
=
2
const
val
TYPE_AUTH_REJECT
=
2
}
}
override
fun
createViewBinding
():
DialogMerchantCenterBottomHintBinding
{
override
fun
createViewBinding
():
DialogMerchantCenterBottomHintBinding
{
return
DialogMerchantCenterBottomHintBinding
.
inflate
(
layoutInflater
)
return
DialogMerchantCenterBottomHintBinding
.
inflate
(
layoutInflater
)
}
}
override
fun
initView
()
{
override
fun
initView
()
{
when
(
type
)
{
when
(
type
)
{
TYPE_AUTH_UPGRADE
->
{
TYPE_AUTH_UPGRADE
->
{
viewBinding
.
root
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_bottom_hint
)
viewBinding
.
root
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_bottom_hint
)
viewBinding
.
tvContent
.
text
=
viewBinding
.
tvContent
.
text
=
context
.
resources
.
getString
(
R
.
string
.
upgrade_auth
)
context
.
resources
.
getString
(
R
.
string
.
upgrade_auth
)
viewBinding
.
tvSubContent
.
text
=
viewBinding
.
tvSubContent
.
text
=
context
.
resources
.
getString
(
R
.
string
.
auth_merchant_description
)
context
.
resources
.
getString
(
R
.
string
.
auth_merchant_description
)
viewBinding
.
tvNext
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_common_btn
)
viewBinding
.
tvNext
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_common_btn
)
viewBinding
.
tvNext
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
color_FFFFFFFF
))
viewBinding
.
tvNext
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
color_FFFFFFFF
))
viewBinding
.
tvNext
.
text
=
context
.
resources
.
getString
(
R
.
string
.
immediate_upgrade
)
viewBinding
.
tvNext
.
text
=
context
.
resources
.
getString
(
R
.
string
.
immediate_upgrade
)
}
}
TYPE_AUTH_REJECT
->
{
TYPE_AUTH_REJECT
->
{
viewBinding
.
root
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_bottom_warn
)
viewBinding
.
root
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_bottom_warn
)
viewBinding
.
tvContent
.
text
=
viewBinding
.
tvContent
.
text
=
context
.
resources
.
getString
(
R
.
string
.
auth_apply_reject
)
context
.
resources
.
getString
(
R
.
string
.
auth_apply_reject
)
viewBinding
.
tvSubContent
.
text
=
viewBinding
.
tvSubContent
.
text
=
context
.
resources
.
getString
(
R
.
string
.
apply_auth_merchant_description
)
context
.
resources
.
getString
(
R
.
string
.
apply_auth_merchant_description
)
viewBinding
.
tvNext
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_modify_auth_btn
)
viewBinding
.
tvNext
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_modify_auth_btn
)
viewBinding
.
tvNext
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
color_FFFF3A3A
))
viewBinding
.
tvNext
.
setTextColor
(
context
.
resources
.
getColor
(
R
.
color
.
color_FFFF3A3A
))
viewBinding
.
tvNext
.
text
=
context
.
resources
.
getString
(
R
.
string
.
modify_auth
)
viewBinding
.
tvNext
.
text
=
context
.
resources
.
getString
(
R
.
string
.
modify_auth
)
}
}
}
}
}
}
override
fun
initListener
()
{
override
fun
initListener
()
{
viewBinding
.
tvNext
.
setOnClickListener
(
this
)
viewBinding
.
tvNext
.
setOnClickListener
(
this
)
}
}
override
fun
show
()
{
override
fun
show
()
{
super
.
show
()
super
.
show
()
window
?.
setGravity
(
Gravity
.
BOTTOM
)
window
?.
setGravity
(
Gravity
.
BOTTOM
)
val
params
=
window
?.
attributes
val
params
=
window
?.
attributes
params
?.
width
=
WindowManager
.
LayoutParams
.
MATCH_PARENT
params
?.
width
=
WindowManager
.
LayoutParams
.
MATCH_PARENT
params
?.
height
=
DensityUtil
.
dp2px
(
84f
)
params
?.
height
=
DensityUtil
.
dp2px
(
84f
)
window
?.
attributes
=
params
window
?.
attributes
=
params
}
}
override
fun
onClick
(
v
:
View
?)
{
override
fun
onClick
(
v
:
View
?)
{
if
(
v
?.
id
==
R
.
id
.
tv_next
)
{
if
(
v
?.
id
==
R
.
id
.
tv_next
)
{
when
(
type
)
{
when
(
type
)
{
TYPE_AUTH_UPGRADE
->
{
TYPE_AUTH_UPGRADE
->
{
// 升级企业认证
// 升级认证
callback
?.
onUpgradeEnterpriseAuth
()
callback
?.
onUpgradeAuth
()
}
}
TYPE_AUTH_REJECT
->
{
TYPE_AUTH_REJECT
->
{
// 修改企业认证
// 修改企业认证
callback
?.
onModifyEnterpriseAuth
()
callback
?.
onModifyEnterpriseAuth
()
}
}
}
}
}
}
}
}
interface
OnMerchantCenterBottomHintCallback
{
interface
OnMerchantCenterBottomHintCallback
{
/**
/**
* 升级企业
认证
* 由未认证升级
认证
*/
*/
fun
onUpgradeEnterpris
eAuth
()
fun
onUpgrad
eAuth
()
/**
/**
* 修改企业认证
* 修改企业认证
*/
*/
fun
onModifyEnterpriseAuth
()
fun
onModifyEnterpriseAuth
()
}
}
}
}
\ No newline at end of file
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