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
bc50fdec
Commit
bc50fdec
authored
Jun 16, 2021
by
shiyuelong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://git.yidian-inc.com:8021/bp/ShenghuoquanBusiness
into dev
parents
51995fd2
a2ae69a4
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
12 deletions
+31
-12
MerchantSwitchAdapter.kt
...shenghuoquan/newscontent/adapter/MerchantSwitchAdapter.kt
+1
-1
AuthEnterpriseLegalIdentityCommitBean.kt
...nt/http/httpbean/AuthEnterpriseLegalIdentityCommitBean.kt
+1
-1
AuthIndividualBusinessCompleteBean.kt
...ntent/http/httpbean/AuthIndividualBusinessCompleteBean.kt
+1
-1
AuthPersonalCompleteBean.kt
...uan/newscontent/http/httpbean/AuthPersonalCompleteBean.kt
+1
-1
GetLifeAccountInfoByIdBean.kt
...n/newscontent/http/httpbean/GetLifeAccountInfoByIdBean.kt
+1
-1
LifeAccountItemBean.kt
...ghuoquan/newscontent/http/httpbean/LifeAccountItemBean.kt
+1
-1
AccountListDto.kt
...shenghuoquan/newscontent/personnel/bean/AccountListDto.kt
+2
-2
MerchantCenterActivity.kt
...nghuoquan/newscontent/ui/center/MerchantCenterActivity.kt
+20
-2
MerchantSwitchDialog.kt
...henghuoquan/newscontent/ui/center/MerchantSwitchDialog.kt
+1
-1
LifeAccountLabelView.kt
...n/shenghuoquan/newscontent/widget/LifeAccountLabelView.kt
+1
-1
view_life_account_personal_auth_info.xml
.../main/res/layout/view_life_account_personal_auth_info.xml
+1
-0
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/adapter/MerchantSwitchAdapter.kt
View file @
bc50fdec
...
@@ -17,7 +17,7 @@ import com.yidian.shenghuoquan.newscontent.http.httpbean.LifeAccountItemBean
...
@@ -17,7 +17,7 @@ import com.yidian.shenghuoquan.newscontent.http.httpbean.LifeAccountItemBean
* description: 商户切换主体
* description: 商户切换主体
*/
*/
class
MerchantSwitchAdapter
(
class
MerchantSwitchAdapter
(
private
val
curLifeAccountId
:
Lo
ng
,
private
val
curLifeAccountId
:
Stri
ng
,
data
:
List
<
LifeAccountItemBean
.
Response
>?
=
null
,
data
:
List
<
LifeAccountItemBean
.
Response
>?
=
null
,
val
listener
:
OnItemClickListener
?
=
null
val
listener
:
OnItemClickListener
?
=
null
)
:
)
:
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthEnterpriseLegalIdentityCommitBean.kt
View file @
bc50fdec
...
@@ -25,6 +25,6 @@ class AuthEnterpriseLegalIdentityCommitBean {
...
@@ -25,6 +25,6 @@ class AuthEnterpriseLegalIdentityCommitBean {
val
mobile
:
String
,
val
mobile
:
String
,
)
)
data class
Response
(
val
life_account_id
:
Lo
ng
)
data class
Response
(
val
life_account_id
:
Stri
ng
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthIndividualBusinessCompleteBean.kt
View file @
bc50fdec
...
@@ -9,6 +9,6 @@ class AuthIndividualBusinessCompleteBean {
...
@@ -9,6 +9,6 @@ class AuthIndividualBusinessCompleteBean {
data class
Request
(
val
record_id
:
Long
)
data class
Request
(
val
record_id
:
Long
)
data class
Response
(
val
life_account_id
:
Lo
ng
)
data class
Response
(
val
life_account_id
:
Stri
ng
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/AuthPersonalCompleteBean.kt
View file @
bc50fdec
...
@@ -7,5 +7,5 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
...
@@ -7,5 +7,5 @@ package com.yidian.shenghuoquan.newscontent.http.httpbean
*/
*/
class
AuthPersonalCompleteBean
(
val
request
:
Request
)
{
class
AuthPersonalCompleteBean
(
val
request
:
Request
)
{
data class
Request
(
val
mobile
:
String
,
val
life_account_id
:
Long
?)
data class
Request
(
val
mobile
:
String
,
val
life_account_id
:
Long
?)
data class
Response
(
val
life_account_id
:
Lo
ng
)
data class
Response
(
val
life_account_id
:
Stri
ng
)
}
}
\ No newline at end of file
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/GetLifeAccountInfoByIdBean.kt
View file @
bc50fdec
...
@@ -20,7 +20,7 @@ class GetLifeAccountInfoByIdBean {
...
@@ -20,7 +20,7 @@ class GetLifeAccountInfoByIdBean {
val
legal_person
:
String
,
val
legal_person
:
String
,
val
life_account_admin_id
:
Long
,
val
life_account_admin_id
:
Long
,
val
life_account_auth_status
:
Int
,
val
life_account_auth_status
:
Int
,
val
life_account_id
:
Lo
ng
,
val
life_account_id
:
Stri
ng
,
val
life_account_name
:
String
,
val
life_account_name
:
String
,
val
life_account_status
:
Int
,
val
life_account_status
:
Int
,
val
life_account_type
:
Int
,
val
life_account_type
:
Int
,
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/http/httpbean/LifeAccountItemBean.kt
View file @
bc50fdec
...
@@ -7,7 +7,7 @@ class LifeAccountItemBean(var response: Response) {
...
@@ -7,7 +7,7 @@ class LifeAccountItemBean(var response: Response) {
var
create_time
:
String
,
var
create_time
:
String
,
var
enterprise_audit_status
:
Int
,
var
enterprise_audit_status
:
Int
,
var
life_account_auth_status
:
Int
,
var
life_account_auth_status
:
Int
,
var
life_account_id
:
Lo
ng
,
var
life_account_id
:
Stri
ng
,
var
life_account_name
:
String
,
var
life_account_name
:
String
,
var
life_account_status
:
Int
,
var
life_account_status
:
Int
,
var
life_account_type
:
Int
,
var
life_account_type
:
Int
,
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/personnel/bean/AccountListDto.kt
View file @
bc50fdec
...
@@ -17,7 +17,7 @@ data class AccountListDto(
...
@@ -17,7 +17,7 @@ data class AccountListDto(
@Parcelize
@Parcelize
data class
AccountAdmin
(
data class
AccountAdmin
(
@SerializedName
(
"life_account_id"
)
@SerializedName
(
"life_account_id"
)
val
lifeAccountId
:
Lo
ng
?
=
null
,
val
lifeAccountId
:
Stri
ng
?
=
null
,
@SerializedName
(
"merchant_id"
)
@SerializedName
(
"merchant_id"
)
val
merchantId
:
Int
?
=
null
,
val
merchantId
:
Int
?
=
null
,
@SerializedName
(
"mobile"
)
@SerializedName
(
"mobile"
)
...
@@ -37,7 +37,7 @@ data class AccountAdmin(
...
@@ -37,7 +37,7 @@ data class AccountAdmin(
@Parcelize
@Parcelize
data class
AccountUser
(
data class
AccountUser
(
@SerializedName
(
"life_account_id"
)
@SerializedName
(
"life_account_id"
)
val
lifeAccountId
:
Lo
ng
?
=
null
,
val
lifeAccountId
:
Stri
ng
?
=
null
,
@SerializedName
(
"merchant_id"
)
@SerializedName
(
"merchant_id"
)
val
merchantId
:
Int
?
=
null
,
val
merchantId
:
Int
?
=
null
,
@SerializedName
(
"mobile"
)
@SerializedName
(
"mobile"
)
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/center/MerchantCenterActivity.kt
View file @
bc50fdec
...
@@ -8,6 +8,7 @@ import com.yidian.common.XRouterPathConstants
...
@@ -8,6 +8,7 @@ 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.adapter.MerchantServiceGroupAdapter
import
com.yidian.shenghuoquan.newscontent.adapter.MerchantServiceGroupAdapter
import
com.yidian.shenghuoquan.newscontent.constant.Constant
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityMerchantCenterBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityMerchantCenterBinding
import
com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.callback.IGetConfigListCallback
import
com.yidian.shenghuoquan.newscontent.http.callback.IGetConfigListCallback
...
@@ -16,6 +17,7 @@ import com.yidian.shenghuoquan.newscontent.http.callback.IGetLifeAccountListCall
...
@@ -16,6 +17,7 @@ import com.yidian.shenghuoquan.newscontent.http.callback.IGetLifeAccountListCall
import
com.yidian.shenghuoquan.newscontent.http.httpbean.GetConfigListBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.GetConfigListBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.GetLifeAccountInfoByIdBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.GetLifeAccountInfoByIdBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.LifeAccountItemBean
import
com.yidian.shenghuoquan.newscontent.http.httpbean.LifeAccountItemBean
import
com.yidian.shenghuoquan.newscontent.ui.dialog.MerchantCenterBottomHintDialog
import
com.yidian.shenghuoquan.newscontent.widget.LifeAccountLabelView
import
com.yidian.shenghuoquan.newscontent.widget.LifeAccountLabelView
import
com.yidian.xpage.XPageManager
import
com.yidian.xpage.XPageManager
...
@@ -84,6 +86,22 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
...
@@ -84,6 +86,22 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
// 请求功能入口配置清单
// 请求功能入口配置清单
ApiService
.
getConfigList
(
this
)
ApiService
.
getConfigList
(
this
)
// 判断是否提示升级企业认证或提示认证驳回
if
(
curLifeAccount
.
life_account_type
==
Constant
.
TYPE_LIFE_ACCOUNT_PERSONAL
)
{
// 当前是个人生活号 提示升级
MerchantCenterBottomHintDialog
(
this
,
MerchantCenterBottomHintDialog
.
TYPE_AUTH_UPGRADE
).
show
()
}
if
(
curLifeAccount
.
enterprise_audit_status
==
Constant
.
STATUS_AUDIT_REJECT
)
{
// 当前企业认证驳回 提示修改
MerchantCenterBottomHintDialog
(
this
,
MerchantCenterBottomHintDialog
.
TYPE_AUTH_REJECT
).
show
()
}
}
}
override
fun
getConfigListSuccess
(
result
:
GetConfigListBean
.
Response
?)
{
override
fun
getConfigListSuccess
(
result
:
GetConfigListBean
.
Response
?)
{
...
@@ -122,11 +140,11 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
...
@@ -122,11 +140,11 @@ class MerchantCenterActivity : BaseActivity<ActivityMerchantCenterBinding>(),
viewBind
.
lvLifeAccountLabel
.
setLifeAccountData
(
data
)
viewBind
.
lvLifeAccountLabel
.
setLifeAccountData
(
data
)
}
}
override
fun
onEnterLifeAccountInfo
(
lifeAccountId
:
Lo
ng
)
{
override
fun
onEnterLifeAccountInfo
(
lifeAccountId
:
Stri
ng
)
{
// 请求生活号详情接口
// 请求生活号详情接口
ApiService
.
getLifeAccountInfoById
(
ApiService
.
getLifeAccountInfoById
(
this
,
this
,
hashMapOf
(
Pair
(
PARAMS_LIFE_ACCOUNT_ID
,
lifeAccountId
.
toString
()
))
hashMapOf
(
Pair
(
PARAMS_LIFE_ACCOUNT_ID
,
lifeAccountId
))
)
)
}
}
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/center/MerchantSwitchDialog.kt
View file @
bc50fdec
...
@@ -19,7 +19,7 @@ import com.yidian.utils.DensityUtil
...
@@ -19,7 +19,7 @@ import com.yidian.utils.DensityUtil
*/
*/
class
MerchantSwitchDialog
(
class
MerchantSwitchDialog
(
context
:
Context
,
context
:
Context
,
private
val
curLifeAccountId
:
Lo
ng
,
private
val
curLifeAccountId
:
Stri
ng
,
val
data
:
List
<
LifeAccountItemBean
.
Response
>,
val
data
:
List
<
LifeAccountItemBean
.
Response
>,
val
callback
:
OnMerchantSwitchCallback
?
=
null
val
callback
:
OnMerchantSwitchCallback
?
=
null
)
:
BaseDialog
<
DialogMerchantSwitchBinding
>(
context
,
R
.
style
.
merchant_switch_dialog
),
)
:
BaseDialog
<
DialogMerchantSwitchBinding
>(
context
,
R
.
style
.
merchant_switch_dialog
),
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountLabelView.kt
View file @
bc50fdec
...
@@ -99,7 +99,7 @@ class LifeAccountLabelView @JvmOverloads constructor(
...
@@ -99,7 +99,7 @@ class LifeAccountLabelView @JvmOverloads constructor(
/**
/**
* 进入生活号基本信息
* 进入生活号基本信息
*/
*/
fun
onEnterLifeAccountInfo
(
lifeAccountId
:
Lo
ng
)
fun
onEnterLifeAccountInfo
(
lifeAccountId
:
Stri
ng
)
}
}
...
...
Components/newscontent/src/main/res/layout/view_life_account_personal_auth_info.xml
View file @
bc50fdec
...
@@ -127,6 +127,7 @@
...
@@ -127,6 +127,7 @@
android:layout_height=
"@dimen/dp59"
android:layout_height=
"@dimen/dp59"
android:layout_marginTop=
"@dimen/dp36"
android:layout_marginTop=
"@dimen/dp36"
android:background=
"@mipmap/icon_seal"
android:background=
"@mipmap/icon_seal"
android:layout_marginEnd=
"@dimen/dp1"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
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