Commit 272d6069 authored by yinjiacheng's avatar yinjiacheng

fix SHQBD-210 商户管理中心企业员工角色下不展示管理服务模块

parent 86b7d40d
...@@ -42,6 +42,10 @@ object Constant { ...@@ -42,6 +42,10 @@ object Constant {
const val LIFE_ACCOUNT_TAG_AUDIT_UNDER = 5 // 审核中 const val LIFE_ACCOUNT_TAG_AUDIT_UNDER = 5 // 审核中
const val LIFE_ACCOUNT_TAG_AUTH_REJECT = 6 // 认证驳回 const val LIFE_ACCOUNT_TAG_AUTH_REJECT = 6 // 认证驳回
// 生活号角色
const val TYPE_ROLE_ADMIN = 1 // 超级管理员
const val TYPE_ROLE_ORDINARY = 2 // 非管理员
// 身份证、营业执照上传方式 // 身份证、营业执照上传方式
const val ITEM_TAKE_PHOTO = "拍照" const val ITEM_TAKE_PHOTO = "拍照"
const val ITEM_OPEN_ALBUM = "相册" const val ITEM_OPEN_ALBUM = "相册"
......
...@@ -259,10 +259,12 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(), ...@@ -259,10 +259,12 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
data.merchant_manager_center.items.let { data.merchant_manager_center.items.let {
(it as ArrayList<GetConfigListBean.Item>).iterator().apply { (it as ArrayList<GetConfigListBean.Item>).iterator().apply {
while (hasNext()) { while (hasNext()) {
// 个人认证不展示管理服务
val groupId = next().group_id val groupId = next().group_id
if (curLifeAccount.tag.tag_key == Constant.LIFE_ACCOUNT_TAG_PERSONAL_AUTH && groupId == Constant.MERCHANT_SERVICE_GROUP_MANAGEMENT) { if (groupId == Constant.MERCHANT_SERVICE_GROUP_MANAGEMENT) {
remove() // 个人认证或企业员工不展示管理服务
if (curLifeAccount.tag.tag_key == Constant.LIFE_ACCOUNT_TAG_PERSONAL_AUTH || curLifeAccount.role_type == Constant.TYPE_ROLE_ORDINARY) {
remove()
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment