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
d3c2bdec
Commit
d3c2bdec
authored
Jun 15, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 生活号基本信息页跳转生活号名称修改页
parent
9554bd68
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
MerchantInfoActivity.kt
...henghuoquan/newscontent/ui/center/MerchantInfoActivity.kt
+21
-0
LifeAccountLabelView.kt
...n/shenghuoquan/newscontent/widget/LifeAccountLabelView.kt
+1
-1
MerchantInfoView.kt
...idian/shenghuoquan/newscontent/widget/MerchantInfoView.kt
+2
-0
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/center/MerchantInfoActivity.kt
View file @
d3c2bdec
...
...
@@ -61,6 +61,9 @@ class MerchantInfoActivity : BaseActivity<ActivityMerchantInfoBinding>(), View.O
private
fun
initListener
()
{
viewBind
.
viewCommonHeader
.
ivBack
.
setOnClickListener
(
this
)
viewBind
.
ivLifeAccountName
.
setOnMerchantInfoViewListener
(
this
)
viewBind
.
ivLifeAccountAuth
.
setOnMerchantInfoViewListener
(
this
)
viewBind
.
ivLifeAccountAuthUpgrade
.
setOnMerchantInfoViewListener
(
this
)
}
private
fun
initData
()
{
...
...
@@ -113,6 +116,24 @@ class MerchantInfoActivity : BaseActivity<ActivityMerchantInfoBinding>(), View.O
override
fun
onEnterDetail
(
from
:
MerchantInfoView
)
{
// 进入生活号名称修改页或认证信息详情
if
(
from
==
viewBind
.
ivLifeAccountName
)
{
// 跳转生活号名称修改页
XPageManager
.
push
(
XRouterPathConstants
.
LIFE_ACCOUNT_MODIFY_NAME
,
hashMapOf
(
Pair
(
LifeAccountModifyNameActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
lifeAccountInfo
?.
life_account_id
),
Pair
(
LifeAccountModifyNameActivity
.
EXTRA_LIFE_ACCOUNT_NAME
,
lifeAccountInfo
?.
life_account_name
)
)
)
}
else
if
(
from
==
viewBind
.
ivLifeAccountAuth
)
{
// 跳转认证详情页
}
}
override
fun
onEnterAuth
(
from
:
MerchantInfoView
)
{
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountLabelView.kt
View file @
d3c2bdec
...
...
@@ -72,7 +72,7 @@ class LifeAccountLabelView @JvmOverloads constructor(
curLifeAccount
=
data
viewBinding
.
tvLifeAccountName
.
text
=
data
.
life_account_name
viewBinding
.
tvLifeAccountStatus
.
apply
{
when
(
data
.
life_account_status
)
{
when
(
data
.
life_account_
auth_
status
)
{
STATUS_LIFE_ACCOUNT_NOT_AUTH
->
{
// 未认证
setBackgroundResource
(
R
.
drawable
.
shape_life_account_status_unauth
)
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/MerchantInfoView.kt
View file @
d3c2bdec
...
...
@@ -30,6 +30,8 @@ class MerchantInfoView @JvmOverloads constructor(
viewBinding
.
tvTitle
.
text
=
typeArray
.
getString
(
R
.
styleable
.
MerchantInfoView_MerchantInfoView_name_text
)
typeArray
.
recycle
()
viewBinding
.
ivNext
.
setOnClickListener
(
this
)
viewBinding
.
tvAuth
.
setOnClickListener
(
this
)
}
/**
...
...
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