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
0ca752d3
Commit
0ca752d3
authored
Nov 21, 2019
by
徐健
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
8817ed2c
f56ff6ec
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
138 additions
and
101 deletions
+138
-101
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+6
-0
config.gradle
config.gradle
+3
-3
ConnectParamJava.kt
m-confide/src/main/java/com/ydl/confide/home/bean/ConnectParamJava.kt
+4
-1
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+3
-1
consult_fillter_bg.9.png
m-consultant/src/main/res/drawable-xhdpi/consult_fillter_bg.9.png
+0
-0
consultant_bg_radius_line_gray_16.xml
m-consultant/src/main/res/drawable/consultant_bg_radius_line_gray_16.xml
+2
-1
consultant_activity_expert_search_list.xml
m-consultant/src/main/res/layout/consultant_activity_expert_search_list.xml
+1
-0
consultant_expert_search_item_view.xml
m-consultant/src/main/res/layout/consultant_expert_search_item_view.xml
+6
-14
consultant_layout_search_content.xml
m-consultant/src/main/res/layout/consultant_layout_search_content.xml
+68
-66
consultant_layout_search_toolbar.xml
m-consultant/src/main/res/layout/consultant_layout_search_toolbar.xml
+4
-2
InputPassWordActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
+12
-1
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+17
-9
VerificationCodeActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/VerificationCodeActivity.kt
+12
-3
No files found.
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
0ca752d3
...
@@ -13,6 +13,8 @@ import android.util.Log
...
@@ -13,6 +13,8 @@ import android.util.Log
import
com.alibaba.android.arouter.launcher.ARouter
import
com.alibaba.android.arouter.launcher.ARouter
import
com.tbruyelle.rxpermissions2.RxPermissions
import
com.tbruyelle.rxpermissions2.RxPermissions
import
com.umeng.analytics.MobclickAgent
import
com.umeng.analytics.MobclickAgent
import
com.umeng.commonsdk.framework.UMModuleRegister.getAppContext
import
com.ydl.audioim.YDLavManager
import
com.ydl.component.music.MusicPlayActivity
import
com.ydl.component.music.MusicPlayActivity
import
com.ydl.component.mvp.DemoContract
import
com.ydl.component.mvp.DemoContract
import
com.ydl.component.mvp.DemoPresenter
import
com.ydl.component.mvp.DemoPresenter
...
@@ -61,6 +63,9 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
...
@@ -61,6 +63,9 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
}
}
override
fun
initDataAndEvent
()
{
override
fun
initDataAndEvent
()
{
YDLavManager
.
instances
.
init
(
this
,
"3387e9b251f3491e9221a9877e8f7830"
)
bindService
()
bindService
()
reLoadData
()
reLoadData
()
requestPermission
()
requestPermission
()
...
@@ -94,6 +99,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
...
@@ -94,6 +99,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
startActivity
(
Intent
(
this
,
TestHomeActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
TestHomeActivity
::
class
.
java
))
}
}
bt_to_confide
.
setOnClickListener
{
bt_to_confide
.
setOnClickListener
{
YDLavManager
.
instances
.
login
(
"1193016"
)
startActivity
(
Intent
(
this
,
ConfideHomeActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
ConfideHomeActivity
::
class
.
java
))
}
}
bt_to_muse
.
setOnClickListener
{
bt_to_muse
.
setOnClickListener
{
...
...
config.gradle
View file @
0ca752d3
ext
{
ext
{
kotlin_version
=
"1.3.21"
kotlin_version
=
"1.3.21"
dev_mode
=
tru
e
dev_mode
=
fals
e
ydl_app
=
[
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
appName
:
"心理咨询壹点灵"
,
...
@@ -42,13 +42,13 @@ ext {
...
@@ -42,13 +42,13 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.
18
"
,
"m-confide"
:
"0.0.
20
"
,
"m-consultant"
:
"0.0.34"
,
"m-consultant"
:
"0.0.34"
,
"m-course"
:
"0.0.17"
,
"m-course"
:
"0.0.17"
,
"m-fm"
:
"0.0.15"
,
"m-fm"
:
"0.0.15"
,
"m-muse"
:
"0.0.11"
,
"m-muse"
:
"0.0.11"
,
"m-tests"
:
"0.0.10"
,
"m-tests"
:
"0.0.10"
,
"m-user"
:
"0.0.3
0
"
,
"m-user"
:
"0.0.3
1
"
,
//-------------- 业务模块 API 层 --------------
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.1"
,
"m-audioim-api"
:
"0.0.1"
,
...
...
m-confide/src/main/java/com/ydl/confide/home/bean/ConnectParamJava.kt
View file @
0ca752d3
...
@@ -12,11 +12,14 @@ class ConnectParamJava : BaseCommand {
...
@@ -12,11 +12,14 @@ class ConnectParamJava : BaseCommand {
var
id
:
String
=
"0"
//倾诉id
var
id
:
String
=
"0"
//倾诉id
var
type
:
String
=
"1"
//1 走AxB 2双呼 3声网
var
type
:
String
=
"1"
//1 走AxB 2双呼 3声网
var
callType
:
Int
?
=
null
//
constructor
()
:
super
()
constructor
()
:
super
()
constructor
(
id
:
String
,
type
:
String
)
:
super
()
{
constructor
(
id
:
String
,
type
:
String
,
callType
:
Int
?
)
:
super
()
{
this
.
id
=
id
this
.
id
=
id
this
.
type
=
type
this
.
type
=
type
this
.
callType
=
callType
}
}
}
}
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
0ca752d3
...
@@ -29,6 +29,7 @@ import com.ydl.ydlcommon.base.config.HttpConfig
...
@@ -29,6 +29,7 @@ import com.ydl.ydlcommon.base.config.HttpConfig
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.ydl.ydlcommon.ui.LogoLoadingView
import
com.ydl.ydlcommon.ui.LogoLoadingView
import
com.ydl.ydlcommon.utils.BuryPointUtils
import
com.ydl.ydlcommon.utils.BuryPointUtils
import
com.ydl.ydlcommon.utils.DisplayUtils
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.ydl.ydlcommon.utils.remind.ToastHelper
...
@@ -72,7 +73,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
...
@@ -72,7 +73,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override
fun
initDataAndEvent
()
{
override
fun
initDataAndEvent
()
{
var
statusBarHeight
=
StatusBarUtils
.
getStatusBarHeight
(
context
);
var
statusBarHeight
=
StatusBarUtils
.
getStatusBarHeight
(
context
);
rootView
.
setPadding
(
0
,
statusBarHeight
,
0
,
0
)
rootView
.
setPadding
(
0
,
statusBarHeight
,
0
,
0
)
btn_back
?.
visibility
=
View
.
INVISIBLE
btn_back
.
visibility
=
View
.
GONE
title_layout
.
setPadding
(
DisplayUtils
.
dp2px
(
context
,
15
),
0
,
0
,
0
)
initViews
()
initViews
()
initData
()
initData
()
}
}
...
...
m-consultant/src/main/res/drawable-xhdpi/consult_fillter_bg.9.png
0 → 100644
View file @
0ca752d3
1.91 KB
m-consultant/src/main/res/drawable/consultant_bg_radius_line_gray_16.xml
View file @
0ca752d3
...
@@ -3,6 +3,6 @@
...
@@ -3,6 +3,6 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
tools:ignore=
"MissingDefaultResource"
>
tools:ignore=
"MissingDefaultResource"
>
<corners
android:radius=
"
16
dp"
/>
<corners
android:radius=
"
90
dp"
/>
<solid
android:color=
"@color/platform_color_F7F7F7"
/>
<solid
android:color=
"@color/platform_color_F7F7F7"
/>
</shape>
</shape>
\ No newline at end of file
m-consultant/src/main/res/layout/consultant_activity_expert_search_list.xml
View file @
0ca752d3
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
<include
...
...
m-consultant/src/main/res/layout/consultant_expert_search_item_view.xml
View file @
0ca752d3
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/platform_dp_15"
android:layout_marginTop=
"@dimen/platform_dp_15"
android:padding=
"0.5dp"
android:background=
"@drawable/consultant_bg_radius_line_gray_05"
android:background=
"@drawable/consultant_bg_radius_line_gray_05"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<android.support.v7.widget.CardView
<android.support.v7.widget.CardView
...
@@ -39,9 +38,7 @@
...
@@ -39,9 +38,7 @@
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
android:layout_alignBottom=
"@+id/cvHead"
android:layout_alignBottom=
"@+id/cvHead"
app:srcCompat=
"@drawable/consultant_online_yue"
app:srcCompat=
"@drawable/consultant_online_yue"
android:layout_marginLeft=
"@dimen/platform_dp_2"
tools:visibility=
"visible"
tools:visibility=
"visible"
android:layout_marginBottom=
"@dimen/platform_dp_05"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
@@ -53,9 +50,7 @@
...
@@ -53,9 +50,7 @@
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
android:layout_alignBottom=
"@+id/cvHead"
android:layout_alignBottom=
"@+id/cvHead"
app:srcCompat=
"@drawable/consultant_online_server"
app:srcCompat=
"@drawable/consultant_online_server"
android:layout_marginLeft=
"@dimen/platform_dp_2"
tools:visibility=
"visible"
tools:visibility=
"visible"
android:layout_marginBottom=
"@dimen/platform_dp_05"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
@@ -79,7 +74,6 @@
...
@@ -79,7 +74,6 @@
android:layout_toRightOf=
"@+id/tvName"
android:layout_toRightOf=
"@+id/tvName"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/platform_dp_2"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingLeft=
"10dp"
android:paddingLeft=
"10dp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
...
@@ -93,34 +87,32 @@
...
@@ -93,34 +87,32 @@
android:layout_width=
"42dp"
android:layout_width=
"42dp"
android:layout_height=
"12dp"
android:layout_height=
"12dp"
android:layout_marginStart=
"@dimen/platform_dp_4"
android:layout_marginStart=
"@dimen/platform_dp_4"
android:layout_marginRight=
"4dp"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<!--公益图标-->
<!--公益图标-->
<ImageView
<ImageView
android:id=
"@+id/imgServiceFree"
android:id=
"@+id/imgServiceFree"
android:layout_width=
"26dp"
android:layout_width=
"26dp"
android:layout_height=
"@dimen/platform_dp_12"
android:layout_height=
"@dimen/platform_dp_12"
android:layout_margin
Left=
"@dimen/platform_dp_4
"
android:layout_margin
Right=
"4dp
"
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
tools:background=
"@drawable/consultant_service_free"
tools:background=
"@drawable/consultant_service_free"
/>
android:layout_marginStart=
"@dimen/platform_dp_4"
/>
<!--新驻图标-->
<!--新驻图标-->
<ImageView
<ImageView
android:id=
"@+id/imgNewEnter"
android:id=
"@+id/imgNewEnter"
android:layout_width=
"26dp"
android:layout_width=
"26dp"
android:layout_height=
"@dimen/platform_dp_12"
android:layout_height=
"@dimen/platform_dp_12"
android:layout_margin
Left=
"@dimen/platform_dp_4
"
android:layout_margin
Right=
"4dp
"
android:scaleType=
"fitCenter"
android:scaleType=
"fitCenter"
tools:background=
"@drawable/consultant_new_enter"
tools:background=
"@drawable/consultant_new_enter"
/>
android:layout_marginStart=
"@dimen/platform_dp_4"
/>
<!--优质图标-->
<!--优质图标-->
<ImageView
<ImageView
android:id=
"@+id/imgAbilityLevel"
android:id=
"@+id/imgAbilityLevel"
android:layout_width=
"26dp"
android:layout_width=
"26dp"
android:layout_height=
"@dimen/platform_dp_12"
android:layout_height=
"@dimen/platform_dp_12"
android:layout_margin
Left=
"@dimen/platform_dp_4
"
android:layout_margin
Right=
"4dp
"
android:scaleType=
"fitCenter"
android:scaleType=
"fitCenter"
tools:background=
"@drawable/consultant_expert_search_shixi"
tools:background=
"@drawable/consultant_expert_search_shixi"
android:layout_marginStart=
"@dimen/platform_dp_4"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
...
...
m-consultant/src/main/res/layout/consultant_layout_search_content.xml
View file @
0ca752d3
...
@@ -12,76 +12,79 @@
...
@@ -12,76 +12,79 @@
android:id=
"@+id/scroll"
android:id=
"@+id/scroll"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<!--筛选框-->
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/platform_white"
android:orientation=
"horizontal"
>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvSubject"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_theme"
/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvArea"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_area"
/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvSort"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_sort"
/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvFilter"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_filter"
/>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/lin_filter2"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingLeft=
"10dp"
android:orientation=
"vertical"
>
android:paddingBottom=
"10dp"
<!--筛选框-->
android:orientation=
"horizontal"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/platform_white"
android:orientation=
"horizontal"
>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvSubject"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_theme"
/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvArea"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_area"
/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvSort"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_sort"
/>
<com.ydl.ydlcommon.view.DrawableRightTextView
android:id=
"@+id/tvFilter"
style=
"@style/consultant_FilterTextViewStyle"
android:layout_width=
"0dp"
android:layout_weight=
"1"
android:width=
"0dp"
android:textColor=
"@color/platform_color_242424"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"@string/platform_filter"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/lin_filter2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingLeft=
"10dp"
android:paddingBottom=
"10dp"
android:orientation=
"horizontal"
>
</LinearLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"6dp"
android:background=
"@drawable/consult_fillter_bg"
/>
</LinearLayout>
</LinearLayout>
<View
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
android:background=
"@color/platform_line"
/>
</LinearLayout>
</com.yidianling.consultant.ui.view.DisInterceptNestedScrollView>
</com.yidianling.consultant.ui.view.DisInterceptNestedScrollView>
...
@@ -93,7 +96,7 @@
...
@@ -93,7 +96,7 @@
android:id=
"@+id/viewSep2"
android:id=
"@+id/viewSep2"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:background=
"@color/
platform_divide_color
"
android:background=
"@color/
transparent
"
/>
/>
<android.support.v4.widget.SwipeRefreshLayout
<android.support.v4.widget.SwipeRefreshLayout
...
@@ -170,7 +173,6 @@
...
@@ -170,7 +173,6 @@
android:id=
"@+id/viewDim"
android:id=
"@+id/viewDim"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@id/viewSep2"
android:background=
"#40000000"
android:background=
"#40000000"
android:visibility=
"invisible"
/>
android:visibility=
"invisible"
/>
</RelativeLayout>
</RelativeLayout>
...
...
m-consultant/src/main/res/layout/consultant_layout_search_toolbar.xml
View file @
0ca752d3
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:background=
"@color/white"
app:layout_collapseMode=
"pin"
>
app:layout_collapseMode=
"pin"
>
...
@@ -29,9 +30,10 @@
...
@@ -29,9 +30,10 @@
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<ImageView
<ImageView
android:layout_width=
"
wrap_content
"
android:layout_width=
"
12dp
"
android:layout_height=
"
match_parent
"
android:layout_height=
"
12dp
"
android:layout_marginLeft=
"12dp"
android:layout_marginLeft=
"12dp"
android:layout_gravity=
"center_vertical"
android:src=
"@drawable/consultant_icon_search_zixun"
/>
android:src=
"@drawable/consultant_icon_search_zixun"
/>
<TextView
<TextView
...
...
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
View file @
0ca752d3
...
@@ -19,6 +19,9 @@ import com.yidianling.common.tools.ToastUtil
...
@@ -19,6 +19,9 @@ import com.yidianling.common.tools.ToastUtil
import
com.yidianling.user.R
import
com.yidianling.user.R
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.route.UserIn
import
com.yidianling.user.route.UserIn
import
com.yidianling.user.safePrivate.FingerPrintCheckActivity
import
com.yidianling.user.safePrivate.FingerPrintUtil
import
com.yidianling.user.safePrivate.HandUnlockCheckActivity
import
com.yidianling.user.ui.login.contract.IInputPassWordContract
import
com.yidianling.user.ui.login.contract.IInputPassWordContract
import
com.yidianling.user.ui.login.presenter.InputPassWordPresenterImpl
import
com.yidianling.user.ui.login.presenter.InputPassWordPresenterImpl
import
kotlinx.android.synthetic.main.user_activity_input_password.*
import
kotlinx.android.synthetic.main.user_activity_input_password.*
...
@@ -282,7 +285,12 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
...
@@ -282,7 +285,12 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
var
flag
=
0
var
flag
=
0
//判断stack中activity是否属于登录相关的三个页面
//判断stack中activity是否属于登录相关的三个页面
for
(
activity
in
ActivityManager
.
getInstance
().
getActivitys
())
{
for
(
activity
in
ActivityManager
.
getInstance
().
getActivitys
())
{
if
(
activity
is
RegisterAndLoginActivity
||
activity
is
VerificationCodeActivity
||
activity
is
InputPassWordActivity
)
{
if
(
activity
is
RegisterAndLoginActivity
||
activity
is
VerificationCodeActivity
||
activity
is
InputPassWordActivity
||
activity
is
FingerPrintCheckActivity
||
activity
is
HandUnlockCheckActivity
)
{
flag
++
flag
++
}
}
}
}
...
@@ -291,6 +299,9 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
...
@@ -291,6 +299,9 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
FingerPrintCheckActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
HandUnlockCheckActivity
::
class
.
java
)
FingerPrintUtil
.
instance
().
setCurrentUnLockTime
(
System
.
currentTimeMillis
())
}
else
{
}
else
{
ActivityManager
.
finishAll
()
ActivityManager
.
finishAll
()
startActivity
(
UserIn
.
mainIntent
(
this
))
startActivity
(
UserIn
.
mainIntent
(
this
))
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
0ca752d3
...
@@ -44,6 +44,9 @@ import com.yidianling.user.http.request.BindPhoneJavaParam
...
@@ -44,6 +44,9 @@ import com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.http.request.PhoneLoginAutoParam
import
com.yidianling.user.http.request.PhoneLoginAutoParam
import
com.yidianling.user.http.response.ChcekPhoneResponeBean
import
com.yidianling.user.http.response.ChcekPhoneResponeBean
import
com.yidianling.user.route.UserIn
import
com.yidianling.user.route.UserIn
import
com.yidianling.user.safePrivate.FingerPrintCheckActivity
import
com.yidianling.user.safePrivate.FingerPrintUtil
import
com.yidianling.user.safePrivate.HandUnlockCheckActivity
import
com.yidianling.user.ui.CountryListActivity
import
com.yidianling.user.ui.CountryListActivity
import
com.yidianling.user.ui.login.contract.ILoginContract
import
com.yidianling.user.ui.login.contract.ILoginContract
import
com.yidianling.user.ui.login.presenter.LoginPresenterImpl
import
com.yidianling.user.ui.login.presenter.LoginPresenterImpl
...
@@ -450,9 +453,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
...
@@ -450,9 +453,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
tv_reg_title
.
text
=
"手机号绑定"
tv_reg_title
.
text
=
"手机号绑定"
tv_protocol
.
visibility
=
View
.
GONE
tv_protocol
.
visibility
=
View
.
GONE
}
else
{
}
else
{
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
finishPrePage
()
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
if
(
isFromGuide
)
{
if
(
isFromGuide
)
{
startActivity
(
UserIn
.
mainIntent
(
this
))
startActivity
(
UserIn
.
mainIntent
(
this
))
}
}
...
@@ -527,9 +528,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
...
@@ -527,9 +528,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
bind_phone
=
1
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
bind_phone
=
1
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
phone
=
userPhoneNumber
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
phone
=
userPhoneNumber
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
finishPrePage
()
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
}
}
/**
/**
...
@@ -559,13 +558,22 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
...
@@ -559,13 +558,22 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
ActivityManager
.
finishAll
()
ActivityManager
.
finishAll
()
startActivity
(
UserIn
.
mainIntent
(
this
))
startActivity
(
UserIn
.
mainIntent
(
this
))
}
else
{
}
else
{
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
finishPrePage
()
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
}
}
},
3000
)
},
3000
)
}
}
private
fun
finishPrePage
()
{
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
//关闭手势解锁页面与指纹解锁页面
ActivityManager
.
getInstance
().
finishActivity
(
FingerPrintCheckActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
HandUnlockCheckActivity
::
class
.
java
)
FingerPrintUtil
.
instance
().
setCurrentUnLockTime
(
System
.
currentTimeMillis
())
}
override
fun
onBackPressed
()
{
override
fun
onBackPressed
()
{
//当前stack只有一个activity,说明被挤掉线的
//当前stack只有一个activity,说明被挤掉线的
...
...
m-user/src/main/java/com/yidianling/user/ui/login/VerificationCodeActivity.kt
View file @
0ca752d3
...
@@ -10,10 +10,8 @@ import android.view.View
...
@@ -10,10 +10,8 @@ import android.view.View
import
com.ydl.ydlcommon.base.BaseMvpActivity
import
com.ydl.ydlcommon.base.BaseMvpActivity
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.YDLCacheUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.actionutil.BIConstants
import
com.yidianling.common.tools.RxKeyboardTool
import
com.yidianling.common.tools.RxKeyboardTool
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.user.R
import
com.yidianling.user.R
...
@@ -21,6 +19,9 @@ import com.yidianling.user.UserHelper
...
@@ -21,6 +19,9 @@ import com.yidianling.user.UserHelper
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.http.request.BindPhoneJavaParam
import
com.yidianling.user.route.UserIn
import
com.yidianling.user.route.UserIn
import
com.yidianling.user.safePrivate.FingerPrintCheckActivity
import
com.yidianling.user.safePrivate.FingerPrintUtil
import
com.yidianling.user.safePrivate.HandUnlockCheckActivity
import
com.yidianling.user.ui.login.contract.IVerificationCodeContract
import
com.yidianling.user.ui.login.contract.IVerificationCodeContract
import
com.yidianling.user.ui.login.presenter.VerificationCodePresenterImpl
import
com.yidianling.user.ui.login.presenter.VerificationCodePresenterImpl
import
io.reactivex.Observable
import
io.reactivex.Observable
...
@@ -280,7 +281,12 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View,
...
@@ -280,7 +281,12 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View,
var
flag
=
0
var
flag
=
0
//判断stack中activity是否属于登录相关的三个页面
//判断stack中activity是否属于登录相关的三个页面
for
(
activity
in
ActivityManager
.
getInstance
().
getActivitys
())
{
for
(
activity
in
ActivityManager
.
getInstance
().
getActivitys
())
{
if
(
activity
is
RegisterAndLoginActivity
||
activity
is
VerificationCodeActivity
||
activity
is
InputPassWordActivity
)
{
if
(
activity
is
RegisterAndLoginActivity
||
activity
is
VerificationCodeActivity
||
activity
is
InputPassWordActivity
||
activity
is
FingerPrintCheckActivity
||
activity
is
HandUnlockCheckActivity
)
{
flag
++
flag
++
}
}
}
}
...
@@ -289,6 +295,9 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View,
...
@@ -289,6 +295,9 @@ class VerificationCodeActivity : BaseMvpActivity<IVerificationCodeContract.View,
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
VerificationCodeActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
InputPassWordActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
RegisterAndLoginActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
FingerPrintCheckActivity
::
class
.
java
)
ActivityManager
.
getInstance
().
finishActivity
(
HandUnlockCheckActivity
::
class
.
java
)
FingerPrintUtil
.
instance
().
setCurrentUnLockTime
(
System
.
currentTimeMillis
())
}
else
{
}
else
{
ActivityManager
.
finishAll
()
ActivityManager
.
finishAll
()
startActivity
(
UserIn
.
mainIntent
(
this
))
startActivity
(
UserIn
.
mainIntent
(
this
))
...
...
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