Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
4f958200
Commit
4f958200
authored
Feb 01, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改心理咨询马甲包不默认勾选不要登录
parent
bd81936d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
config.gradle
config.gradle
+1
-1
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+15
-7
No files found.
config.gradle
View file @
4f958200
...
...
@@ -8,7 +8,7 @@ ext {
"m-confide"
:
"0.0.48.91"
,
"m-consultant"
:
"0.0.59.40"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.4
1
"
,
"m-user"
:
"0.0.60.4
2
"
,
"m-home"
:
"0.0.22.51"
,
"m-im"
:
"0.0.18.30"
,
"m-dynamic"
:
"0.0.7.13"
,
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
4f958200
...
...
@@ -435,16 +435,24 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
}
//微信登录
iv_weixin
.
setOnClickListener
{
mPresenter
.
loginByThird
(
this
,
SHARE_MEDIA
.
WEIXIN
)
if
(
iv_select_protocol
.
visibility
==
View
.
VISIBLE
&&
!
isAgreeProtocol
){
ToastUtil
.
toastShort
(
"请您先同意壹点灵《用户使用协议》、《隐私保护政策》,才能登录使用"
)
return
@setOnClickListener
}
else
{
mPresenter
.
loginByThird
(
this
,
SHARE_MEDIA
.
WEIXIN
)
}
}
//QQ 登录
iv_qq
.
setOnClickListener
{
val
config
=
UMShareConfig
()
config
.
isNeedAuthOnGetUserInfo
(
true
)
UMShareAPI
.
get
(
this
).
setShareConfig
(
config
)
mPresenter
.
loginByThird
(
this
,
SHARE_MEDIA
.
QQ
)
if
(
iv_select_protocol
.
visibility
==
View
.
VISIBLE
&&
!
isAgreeProtocol
){
ToastUtil
.
toastShort
(
"请您先同意壹点灵《用户使用协议》、《隐私保护政策》,才能登录使用"
)
return
@setOnClickListener
}
else
{
val
config
=
UMShareConfig
()
config
.
isNeedAuthOnGetUserInfo
(
true
)
UMShareAPI
.
get
(
this
).
setShareConfig
(
config
)
mPresenter
.
loginByThird
(
this
,
SHARE_MEDIA
.
QQ
)
}
}
ll_country
.
setOnClickListener
{
val
intent
=
Intent
(
this
,
CountryListActivity
::
class
.
java
)
...
...
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