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