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
0b7c5ba2
Commit
0b7c5ba2
authored
Jun 15, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 个人认证成功跳转管理中心
parent
7340111b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
8 deletions
+35
-8
LifeAccountAuthActivity.kt
...enghuoquan/newscontent/ui/auth/LifeAccountAuthActivity.kt
+2
-0
LifeAccountPersonalAuthActivity.kt
...an/newscontent/ui/auth/LifeAccountPersonalAuthActivity.kt
+1
-0
LifeAccountPersonalAuthCompleteActivity.kt
...ontent/ui/auth/LifeAccountPersonalAuthCompleteActivity.kt
+29
-6
activity_life_account_personal_auth_complete.xml
...s/layout/activity_life_account_personal_auth_complete.xml
+3
-2
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountAuthActivity.kt
View file @
0b7c5ba2
...
@@ -85,6 +85,7 @@ class LifeAccountAuthActivity : BaseActivity<ActivityLifeAccountAuthBinding>(),
...
@@ -85,6 +85,7 @@ class LifeAccountAuthActivity : BaseActivity<ActivityLifeAccountAuthBinding>(),
XRouterPathConstants
.
LIFE_ACCOUNT_PERSONAL_AUTH
,
XRouterPathConstants
.
LIFE_ACCOUNT_PERSONAL_AUTH
,
hashMapOf
(
Pair
(
LifeAccountPersonalAuthActivity
.
EXTRA_AUTH_DATA
,
result
))
hashMapOf
(
Pair
(
LifeAccountPersonalAuthActivity
.
EXTRA_AUTH_DATA
,
result
))
)
)
finish
()
}
}
override
fun
authAuthenticationFailure
(
message
:
String
?)
{
override
fun
authAuthenticationFailure
(
message
:
String
?)
{
...
@@ -102,6 +103,7 @@ class LifeAccountAuthActivity : BaseActivity<ActivityLifeAccountAuthBinding>(),
...
@@ -102,6 +103,7 @@ class LifeAccountAuthActivity : BaseActivity<ActivityLifeAccountAuthBinding>(),
XRouterPathConstants
.
LIFE_ACCOUNT_ENTERPRISE_AUTH
,
XRouterPathConstants
.
LIFE_ACCOUNT_ENTERPRISE_AUTH
,
hashMapOf
(
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_AUTH_DATA
,
result
))
hashMapOf
(
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_AUTH_DATA
,
result
))
)
)
finish
()
}
}
override
fun
authMerchantCheckFailure
(
message
:
String
?)
{
override
fun
authMerchantCheckFailure
(
message
:
String
?)
{
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountPersonalAuthActivity.kt
View file @
0b7c5ba2
...
@@ -162,6 +162,7 @@ class LifeAccountPersonalAuthActivity :
...
@@ -162,6 +162,7 @@ class LifeAccountPersonalAuthActivity :
)
)
)
)
)
)
finish
()
}
}
override
fun
authPersonalCompleteFailure
(
message
:
String
?)
{
override
fun
authPersonalCompleteFailure
(
message
:
String
?)
{
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/ui/auth/LifeAccountPersonalAuthCompleteActivity.kt
View file @
0b7c5ba2
...
@@ -6,6 +6,10 @@ import com.yidian.common.XRouterPathConstants
...
@@ -6,6 +6,10 @@ 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.databinding.ActivityLifeAccountPersonalAuthCompleteBinding
import
com.yidian.shenghuoquan.newscontent.databinding.ActivityLifeAccountPersonalAuthCompleteBinding
import
com.yidian.shenghuoquan.newscontent.http.ApiService
import
com.yidian.shenghuoquan.newscontent.http.callback.IGetLifeAccountListCallback
import
com.yidian.shenghuoquan.newscontent.http.httpbean.LifeAccountItemBean
import
com.yidian.shenghuoquan.newscontent.ui.center.MerchantCenterActivity
import
com.yidian.xpage.XPageManager
import
com.yidian.xpage.XPageManager
/**
/**
...
@@ -14,7 +18,7 @@ import com.yidian.xpage.XPageManager
...
@@ -14,7 +18,7 @@ import com.yidian.xpage.XPageManager
* Describe: 个人认证成功页面 activity_life_account_personal_auth_complete
* Describe: 个人认证成功页面 activity_life_account_personal_auth_complete
*/
*/
class
LifeAccountPersonalAuthCompleteActivity
:
class
LifeAccountPersonalAuthCompleteActivity
:
BaseActivity
<
ActivityLifeAccountPersonalAuthCompleteBinding
>()
{
BaseActivity
<
ActivityLifeAccountPersonalAuthCompleteBinding
>()
,
IGetLifeAccountListCallback
{
companion
object
{
companion
object
{
const
val
OCCUPATION
=
"occupation"
const
val
OCCUPATION
=
"occupation"
...
@@ -57,10 +61,9 @@ class LifeAccountPersonalAuthCompleteActivity :
...
@@ -57,10 +61,9 @@ class LifeAccountPersonalAuthCompleteActivity :
}
}
private
fun
initListener
()
{
private
fun
initListener
()
{
viewBind
.
enterLifeAccount
.
setOnClickListener
{
viewBind
.
tvEnterMerchantCenter
.
setOnClickListener
{
// 跳转生活号管理首页
// 跳转商户管理中心 先请求生活号列表 带参跳转
XPageManager
.
push
(
XRouterPathConstants
.
MERCHANT_CENTER
,
null
)
ApiService
.
getLifeAccountList
(
this
)
finish
()
}
}
viewBind
.
upgradeEnterpriseAuth
.
setOnClickListener
{
viewBind
.
upgradeEnterpriseAuth
.
setOnClickListener
{
// 传入生活号id 请求企业认证升级相关接口用
// 传入生活号id 请求企业认证升级相关接口用
...
@@ -69,11 +72,31 @@ class LifeAccountPersonalAuthCompleteActivity :
...
@@ -69,11 +72,31 @@ class LifeAccountPersonalAuthCompleteActivity :
hashMapOf
(
hashMapOf
(
Pair
(
Pair
(
LifeAccountEnterpriseAuthActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
LifeAccountEnterpriseAuthActivity
.
EXTRA_LIFE_ACCOUNT_ID
,
params
[
LIFE_ACCOUNT_ID
]
as
Long
params
[
LIFE_ACCOUNT_ID
]
)
)
)
)
)
)
finish
()
finish
()
}
}
}
}
override
fun
getLifeAccountListSuccess
(
result
:
ArrayList
<
LifeAccountItemBean
.
Response
>?)
{
// 生活号列表请求成功
result
?.
forEach
{
if
(
it
.
life_account_id
==
params
[
LIFE_ACCOUNT_ID
])
{
XPageManager
.
push
(
XRouterPathConstants
.
MERCHANT_CENTER
,
hashMapOf
(
Pair
(
MerchantCenterActivity
.
EXTRA_IS_MULTI
,
result
.
size
>
1
),
Pair
(
MerchantCenterActivity
.
EXTRA_LIFE_ACCOUNT_INFO
,
it
)
)
)
finish
()
}
}
}
override
fun
getLifeAccountListFailure
(
message
:
String
?)
{
}
}
}
\ No newline at end of file
Components/newscontent/src/main/res/layout/activity_life_account_personal_auth_complete.xml
View file @
0b7c5ba2
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
android:background=
"@mipmap/icon_shop"
/>
android:background=
"@mipmap/icon_shop"
/>
<RelativeLayout
<RelativeLayout
android:id=
"@+id/
enter_life_account
"
android:id=
"@+id/
rl_personal_auth_info
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/icon_shop_root"
android:layout_below=
"@id/icon_shop_root"
...
@@ -188,9 +188,10 @@
...
@@ -188,9 +188,10 @@
</RelativeLayout>
</RelativeLayout>
<TextView
<TextView
android:id=
"@+id/tv_enter_merchant_center"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/
enter_life_account
"
android:layout_below=
"@id/
rl_personal_auth_info
"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:background=
"@drawable/shape_stroke2_radius18_skin_primary_1852f1"
android:background=
"@drawable/shape_stroke2_radius18_skin_primary_1852f1"
...
...
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