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
ebde0e39
Commit
ebde0e39
authored
Jun 04, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决心理咨询fragment初始化activity问题
parent
fa974dc6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
9 deletions
+23
-9
config.gradle
config.gradle
+4
-4
YdlHomeFragment.kt
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+6
-2
InputPassWordActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
+4
-0
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+6
-3
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+3
-0
No files found.
config.gradle
View file @
ebde0e39
...
...
@@ -8,8 +8,8 @@ ext {
"m-confide"
:
"0.0.49.09"
,
"m-consultant"
:
"0.0.59.79"
,
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.3
4
"
,
"m-home"
:
"0.0.22.6
2
"
,
"m-user"
:
"0.0.61.3
6
"
,
"m-home"
:
"0.0.22.6
3
"
,
"m-im"
:
"0.0.19.20"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.8"
,
...
...
@@ -91,8 +91,8 @@ ext {
"m-confide"
:
"0.0.49.09"
,
"m-consultant"
:
"0.0.59.79"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.3
4
"
,
"m-home"
:
"0.0.22.6
2
"
,
"m-user"
:
"0.0.61.3
6
"
,
"m-home"
:
"0.0.22.6
3
"
,
"m-im"
:
"0.0.19.20"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
ebde0e39
package
com.yidianling.home.ui.fragment
import
android.app.Dialog
import
android.content.Context
import
android.text.TextUtils
import
android.view.View
import
androidx.core.content.ContextCompat
import
androidx.fragment.app.FragmentActivity
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import
com.alibaba.android.arouter.facade.annotation.Route
...
...
@@ -50,8 +52,8 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
IHomeContract
.
View
,
SwipeRefreshLayout
.
OnRefreshListener
{
var
mActivity
=
a
ctivity
var
mContext
=
c
ontext
private
lateinit
var
mActivity
:
FragmentA
ctivity
private
lateinit
var
mContext
:
C
ontext
private
var
adapter
:
YdlHomeAdapter
?
=
null
private
var
homeEvent
:
HomeImpl
?
=
null
...
...
@@ -89,6 +91,8 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
}
override
fun
initDataAndEvent
()
{
mActivity
=
requireActivity
()
mContext
=
requireContext
()
homeEvent
=
HomeImpl
(
mActivity
!!
,
this
)
initView
()
initAdapter
()
...
...
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
View file @
ebde0e39
...
...
@@ -21,6 +21,7 @@ import com.yidianling.common.tools.RxKeyboardTool
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.R
import
com.yidianling.user.StatusUtils
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.ui.login.contract.IInputPassWordContract
import
com.yidianling.user.ui.login.presenter.InputPassWordPresenterImpl
...
...
@@ -151,6 +152,7 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
UserBIConstants
.
POSITION_PHONE_REGISTER_CLICK
,
25
)
if
(
OneKeyLoginHelp
.
openInstallKey
.
isNotEmpty
()
&&
StatusUtils
.
isUseOpenInstall
)
{
ActionCountUtils
.
baiduCount
(
UserBIConstants
.
APP_REGISTER_PAGE
,
UserBIConstants
.
POSITION_PHONE_REGISTER_CLICK
,
...
...
@@ -161,6 +163,8 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
OpenInstall
.
reportRegister
();
}
}
private
fun
setClickEvent
()
{
et_input_password
.
addTextChangedListener
(
object
:
TextWatcher
{
...
...
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
ebde0e39
...
...
@@ -20,7 +20,6 @@ import com.meituan.android.walle.WalleChannelReader
import
com.mobile.auth.gatewayauth.*
import
com.mobile.auth.gatewayauth.model.TokenRet
import
com.tbruyelle.rxpermissions2.RxPermissions
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.utils.JPushUtils
...
...
@@ -87,7 +86,7 @@ object OneKeyLoginHelp {
it
.
setAuthSDKInfo
(
YDL_USER_APP_KEY
)
}
else
if
(
appType
==
YDL_EXPERT_APP
)
{
it
.
setAuthSDKInfo
(
YDL_EXPERT_APP_KEY
)
}
else
if
(
appType
==
YDL_XINLIZIXUN_APP
)
{
}
else
if
(
appType
==
YDL_XINLIZIXUN_APP
)
{
it
.
setAuthSDKInfo
(
YDL_XINLIZIXUN_APP_KEY
)
}
...
...
@@ -108,8 +107,10 @@ object OneKeyLoginHelp {
if
(!
checkBoxHidden
)
{
mPrivacyBeforeText
=
"同意"
}
if
(
appType
==
YDL_USER_APP
)
{
getOpenInstallKey
()
}
}
/**
* 检查认证环境
...
...
@@ -452,8 +453,10 @@ object OneKeyLoginHelp {
25
,
openInstallKey
)
if
(
OneKeyLoginHelp
.
openInstallKey
.
isNotEmpty
()
&&
StatusUtils
.
isUseOpenInstall
)
{
// 用户注册成功后调用
OpenInstall
.
reportRegister
();
OpenInstall
.
reportRegister
()
}
}
else
{
ActionCountUtils
.
countUid
(
UserBIConstants
.
POSITION_LOGIN_SUCCESS_CLICK
,
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
ebde0e39
...
...
@@ -40,6 +40,7 @@ import com.yidianling.common.tools.RxKeyboardTool
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.R
import
com.yidianling.user.StatusUtils
import
com.yidianling.user.UserHelper
import
com.yidianling.user.UserHelper.isLogin
import
com.yidianling.user.api.bean.UserResponseBean
...
...
@@ -188,9 +189,11 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
25
,
OneKeyLoginHelp
.
openInstallKey
)
if
(
OneKeyLoginHelp
.
openInstallKey
.
isNotEmpty
()
&&
StatusUtils
.
isUseOpenInstall
)
{
// 用户注册成功后调用
OpenInstall
.
reportRegister
();
}
}
private
fun
initAuthHelper
()
{
...
...
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