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
60906d1c
Commit
60906d1c
authored
Jul 01, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
华为隐私政策
parent
3f32dc77
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
11 deletions
+19
-11
config.gradle
config.gradle
+1
-1
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+10
-8
user_login_protocol_selected.png
m-user/src/main/res/drawable-xhdpi/user_login_protocol_selected.png
+0
-0
user_login_protocol_unselected.png
m-user/src/main/res/drawable-xhdpi/user_login_protocol_unselected.png
+0
-0
user_activity_register_and_login.xml
m-user/src/main/res/layout/user_activity_register_and_login.xml
+8
-2
No files found.
config.gradle
View file @
60906d1c
ext
{
kotlin_version
=
"1.3.21"
dev_mode
=
fals
e
dev_mode
=
tru
e
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
60906d1c
...
...
@@ -81,7 +81,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
private
var
countryCode
:
String
?
=
"0086"
//国家或地区手机区号
private
var
handler
:
Handler
?
=
null
private
var
isFromGuide
=
false
//是否来自启动页
private
var
isAgreeProtocol
=
tru
e
private
var
isAgreeProtocol
=
fals
e
companion
object
{
private
var
BIND_PHONE
=
"bind_phone"
//用于判断时候是绑定手机号
private
var
IS_FROM_GUIDE
=
"isFromGuide"
//是否来自启动页
...
...
@@ -368,12 +368,14 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
RxKeyboardTool
.
hideSoftInput
(
this
)
onBackPressed
()
}
iv_select_protocol
.
setOnClickListener
{
isAgreeProtocol
=!
isAgreeProtocol
if
(
isAgreeProtocol
){
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_selected
)
}
else
{
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
)
view_click
.
setOnClickListener
{
if
(
iv_select_protocol
.
visibility
==
View
.
VISIBLE
){
isAgreeProtocol
=!
isAgreeProtocol
if
(
isAgreeProtocol
){
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_selected
)
}
else
{
iv_select_protocol
.
setImageResource
(
R
.
drawable
.
user_login_protocol_unselected
)
}
}
}
//微信登录
...
...
@@ -397,7 +399,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
}
//下一步
iv_next
.
setOnClickListener
{
if
(!
isAgreeProtocol
){
if
(
iv_select_protocol
.
visibility
==
View
.
VISIBLE
&&
!
isAgreeProtocol
){
ToastUtil
.
toastShort
(
"请您先同意壹点灵《用户使用协议》、《隐私保护政策》,才能登录使用"
)
return
@setOnClickListener
}
...
...
m-user/src/main/res/drawable-xhdpi/user_login_protocol_selected.png
View replaced file @
3f32dc77
View file @
60906d1c
882 Bytes
|
W:
|
H:
957 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
m-user/src/main/res/drawable-xhdpi/user_login_protocol_unselected.png
View replaced file @
3f32dc77
View file @
60906d1c
660 Bytes
|
W:
|
H:
560 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
m-user/src/main/res/layout/user_activity_register_and_login.xml
View file @
60906d1c
...
...
@@ -47,6 +47,12 @@
android:textSize=
"28dp"
android:textStyle=
"bold"
/>
<View
android:id=
"@+id/view_click"
android:layout_width=
"30dp"
android:layout_below=
"@+id/tv_reg_title"
android:layout_marginLeft=
"20dp"
android:layout_height=
"30dp"
/>
<ImageView
android:id=
"@+id/iv_select_protocol"
...
...
@@ -56,7 +62,7 @@
android:layout_marginTop=
"6.5dp"
android:layout_alignBottom=
"@+id/tv_des"
android:layout_marginLeft=
"28dp"
android:src=
"@drawable/user_login_protocol_selected"
android:src=
"@drawable/user_login_protocol_
un
selected"
/>
<TextView
...
...
@@ -66,7 +72,7 @@
android:layout_below=
"@+id/tv_reg_title"
android:layout_toRightOf=
"@+id/iv_select_protocol"
android:layout_marginTop=
"6.5dp"
android:layout_marginStart=
"
8
dp"
android:layout_marginStart=
"
10
dp"
android:fontFamily=
"sans-serif-light"
android:text=
"同意"
android:textColor=
"#fdfdfe"
...
...
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