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
746cd71c
Commit
746cd71c
authored
Jun 16, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 商户管理中心和商户主体切换只区分个人认证和企业认证
parent
0b7c5ba2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
MerchantSwitchAdapter.kt
...shenghuoquan/newscontent/adapter/MerchantSwitchAdapter.kt
+2
-3
Constant.kt
.../com/yidian/shenghuoquan/newscontent/constant/Constant.kt
+4
-0
LifeAccountLabelView.kt
...n/shenghuoquan/newscontent/widget/LifeAccountLabelView.kt
+2
-3
dialog_merchant_switch.xml
...ewscontent/src/main/res/layout/dialog_merchant_switch.xml
+1
-1
colors.xml
Components/newscontent/src/main/res/values/colors.xml
+1
-0
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/adapter/MerchantSwitchAdapter.kt
View file @
746cd71c
...
...
@@ -53,9 +53,8 @@ class MerchantSwitchAdapter(
setBackgroundResource
(
R
.
drawable
.
shape_life_account_status_auth
)
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
color_FF1852F1
))
text
=
when
(
data
.
life_account_type
)
{
Constant
.
TYPE_AUTH_INDIVIDUAL_BUSINESS
->
resources
.
getString
(
R
.
string
.
individual_business
)
Constant
.
TYPE_AUTH_COMMON_ENTERPRISE
->
resources
.
getString
(
R
.
string
.
common_enterprise
)
Constant
.
TYPE_AUTH_PERSONAL
->
resources
.
getString
(
R
.
string
.
personal_auth
)
Constant
.
TYPE_LIFE_ACCOUNT_PERSONAL
->
resources
.
getString
(
R
.
string
.
personal_auth
)
Constant
.
TYPE_LIFE_ACCOUNT_ENTERPRISE
->
resources
.
getString
(
R
.
string
.
enterprise_auth
)
else
->
""
}
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/constant/Constant.kt
View file @
746cd71c
...
...
@@ -30,6 +30,10 @@ object Constant {
const
val
TYPE_INDIVIDUAL_BUSINESS
=
1
const
val
TYPE_COMMON_ENTERPRISE
=
2
// 生活号类型
const
val
TYPE_LIFE_ACCOUNT_PERSONAL
=
1
// 个人生活号
const
val
TYPE_LIFE_ACCOUNT_ENTERPRISE
=
2
// 企业生活号
// 身份证、营业执照上传方式
const
val
ITEM_TAKE_PHOTO
=
"拍照"
const
val
ITEM_OPEN_ALBUM
=
"相册"
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountLabelView.kt
View file @
746cd71c
...
...
@@ -62,9 +62,8 @@ class LifeAccountLabelView @JvmOverloads constructor(
setBackgroundResource
(
R
.
drawable
.
shape_life_account_status_auth
)
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
color_FF1852F1
))
text
=
when
(
data
.
life_account_type
)
{
Constant
.
TYPE_AUTH_INDIVIDUAL_BUSINESS
->
resources
.
getString
(
R
.
string
.
individual_business
)
Constant
.
TYPE_AUTH_COMMON_ENTERPRISE
->
resources
.
getString
(
R
.
string
.
common_enterprise
)
Constant
.
TYPE_AUTH_PERSONAL
->
resources
.
getString
(
R
.
string
.
personal_auth
)
Constant
.
TYPE_LIFE_ACCOUNT_PERSONAL
->
resources
.
getString
(
R
.
string
.
personal_auth
)
Constant
.
TYPE_LIFE_ACCOUNT_ENTERPRISE
->
resources
.
getString
(
R
.
string
.
enterprise_auth
)
else
->
""
}
}
...
...
Components/newscontent/src/main/res/layout/dialog_merchant_switch.xml
View file @
746cd71c
...
...
@@ -3,7 +3,7 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"
#
66000000"
>
android:background=
"
@color/color_
66000000"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_life_account"
...
...
Components/newscontent/src/main/res/values/colors.xml
View file @
746cd71c
...
...
@@ -60,4 +60,5 @@
<color
name=
"color_FFFFF3EE"
>
#FFFFF3EE
</color>
<color
name=
"color_FFE8F9D8"
>
#FFE8F9D8
</color>
<color
name=
"color_FF6BB81F"
>
#FF6BB81F
</color>
<color
name=
"color_66000000"
>
#66000000
</color>
</resources>
\ 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