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
7f18ade4
Commit
7f18ade4
authored
Jun 01, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 职业标签/商户类型选择
parent
940dfe45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
LifeAccountEnterpriseAuthActivity.kt
.../newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
+2
-2
LifeAccountAuthSelectView.kt
...nghuoquan/newscontent/widget/LifeAccountAuthSelectView.kt
+10
-3
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountEnterpriseAuthActivity.kt
View file @
7f18ade4
...
...
@@ -66,7 +66,7 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
}
else
{
viewBind
.
pvAuthProcess
.
setProcess
(--
viewBind
.
pvAuthProcess
.
curProcess
)
if
(
viewBind
.
pvAuthProcess
.
curProcess
==
0
)
{
viewBind
.
svMerchantType
.
visibility
=
View
.
VISIBLE
viewBind
.
svMerchantType
.
enableSelect
(
true
)
}
// 回退fragment
supportFragmentManager
.
beginTransaction
().
replace
(
...
...
@@ -89,7 +89,7 @@ class LifeAccountEnterpriseAuthActivity : BaseActivity<ActivityLifeAccountEnterp
R
.
id
.
btn_next
->
{
// TODO: 5/29/21 请求接口401 402
viewBind
.
pvAuthProcess
.
setProcess
(++
viewBind
.
pvAuthProcess
.
curProcess
)
viewBind
.
svMerchantType
.
visibility
=
View
.
GONE
viewBind
.
svMerchantType
.
enableSelect
(
false
)
supportFragmentManager
.
beginTransaction
()
.
replace
(
R
.
id
.
fragment_container
,
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountAuthSelectView.kt
View file @
7f18ade4
...
...
@@ -50,10 +50,17 @@ class LifeAccountAuthSelectView @JvmOverloads constructor(
return
viewBinding
.
tvContent
.
text
.
toString
()
}
/**
* 设置是否能选择 即是否可以弹出选择弹窗
* @param enable true为可选择 false为不可选择
*/
fun
enableSelect
(
enable
:
Boolean
)
{
isEnabled
=
enable
viewBinding
.
ivSelect
.
visibility
=
if
(
enable
)
View
.
VISIBLE
else
View
.
GONE
}
override
fun
onClick
(
v
:
View
?)
{
if
(
v
?.
id
==
R
.
id
.
iv_select
)
{
// TODO: 5/28/21 展示选择弹窗
}
}
interface
OnLifeAccountAuthSelectViewCallback
{
...
...
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