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
71345a37
Commit
71345a37
authored
Dec 24, 2019
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页数据加载问题修复
parent
a31b3dac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
YdlHomeFragment.kt
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+12
-2
YdlHomeFragment.kt
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+13
-2
No files found.
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
71345a37
...
@@ -76,6 +76,11 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -76,6 +76,11 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
*/
*/
private
var
scrollListner
:
HomeConfideRecyleSuspendListener
?
=
null
private
var
scrollListner
:
HomeConfideRecyleSuspendListener
?
=
null
/**
* 如果是第一次加载,则调用所有接口进行刷新,否则,只调用咨询和倾诉接口
*/
private
var
isFromCreate
:
Boolean
=
true
override
fun
layoutResId
():
Int
{
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
home_fragment_home_module
return
R
.
layout
.
home_fragment_home_module
}
}
...
@@ -402,9 +407,14 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -402,9 +407,14 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
super
.
onResume
()
super
.
onResume
()
if
(
userVisibleHint
)
{
if
(
userVisibleHint
)
{
mPresenter
?.
getConsultData
(
consultLastSelectType
,
consultLastSelectPosition
)
if
(
isFromCreate
)
{
mPresenter
?.
getConfideData
(
confideLastSelectType
,
confideLastSelectPosition
)
isFromCreate
=
false
mPresenter
?.
loadHomeData
()
}
else
{
mPresenter
?.
getConsultData
(
consultLastSelectType
,
consultLastSelectPosition
)
mPresenter
?.
getConfideData
(
confideLastSelectType
,
confideLastSelectPosition
)
}
mPresenter
?.
prepareCoupon
(
activity
)
mPresenter
?.
prepareCoupon
(
activity
)
//走咨询助理浮层展示逻辑,是否展示由内部条件与接口判断
//走咨询助理浮层展示逻辑,是否展示由内部条件与接口判断
...
...
m-home/src/ydl/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
71345a37
...
@@ -86,6 +86,11 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -86,6 +86,11 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
private
var
searchContent
:
String
=
"搜索话题、咨询师姓名"
private
var
searchContent
:
String
=
"搜索话题、咨询师姓名"
/**
* 如果是第一次加载,则调用所有接口进行刷新,否则,只调用咨询和倾诉接口
*/
private
var
isFromCreate
:
Boolean
=
true
override
fun
layoutResId
():
Int
{
override
fun
layoutResId
():
Int
{
return
R
.
layout
.
home_fragment
return
R
.
layout
.
home_fragment
}
}
...
@@ -420,8 +425,14 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
...
@@ -420,8 +425,14 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
super
.
onResume
()
super
.
onResume
()
if
(
userVisibleHint
)
{
if
(
userVisibleHint
)
{
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
mPresenter
?.
getConsultData
(
consultLastSelectType
,
consultLastSelectPosition
)
mPresenter
?.
getConfideData
(
confideLastSelectType
,
confideLastSelectPosition
)
if
(
isFromCreate
)
{
isFromCreate
=
false
mPresenter
?.
loadHomeData
()
}
else
{
mPresenter
?.
getConsultData
(
consultLastSelectType
,
consultLastSelectPosition
)
mPresenter
?.
getConfideData
(
confideLastSelectType
,
confideLastSelectPosition
)
}
showConsultAssistantDialog
()
showConsultAssistantDialog
()
}
}
...
...
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