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
2b733d9f
Commit
2b733d9f
authored
Dec 23, 2019
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级咨询模块
parent
50afbf70
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
66 additions
and
53 deletions
+66
-53
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+1
-1
config.gradle
config.gradle
+1
-1
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+1
-0
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+2
-0
ExpertSearchBigShotBean.java
m-consultant/src/main/java/com/yidianling/consultant/bean/ExpertSearchBigShotBean.java
+20
-20
ExpertSearchRecommandBean.java
m-consultant/src/main/java/com/yidianling/consultant/bean/ExpertSearchRecommandBean.java
+20
-20
RecommendItemView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendItemView.kt
+0
-1
RecommendListView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
+19
-10
consultant_expert_search_top_item_view.xml
m-consultant/src/main/res/layout/consultant_expert_search_top_item_view.xml
+2
-0
No files found.
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
2b733d9f
...
@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule {
...
@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule {
String
APP_DOMAIN
=
"https://api.github.com/"
;
String
APP_DOMAIN
=
"https://api.github.com/"
;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
// public static String appEnv = YDLConstants.ENV_TEST;
// public static String appEnv = YDLConstants.ENV_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_
PROD
;
public
static
String
appEnv
=
YDLConstants
.
ENV_
TEST
;
@Override
@Override
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
...
...
config.gradle
View file @
2b733d9f
...
@@ -44,7 +44,7 @@ ext {
...
@@ -44,7 +44,7 @@ ext {
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.41.2"
,
"m-confide"
:
"0.0.41.2"
,
"m-consultant"
:
"0.0.51.
6
"
,
"m-consultant"
:
"0.0.51.
11
"
,
"m-fm"
:
"0.0.23.4"
,
"m-fm"
:
"0.0.23.4"
,
"m-user"
:
"0.0.41.1"
,
"m-user"
:
"0.0.41.1"
,
"m-home"
:
"0.0.6.25"
,
"m-home"
:
"0.0.6.25"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
2b733d9f
...
@@ -1341,6 +1341,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
...
@@ -1341,6 +1341,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
override
fun
onRefresh
()
{
override
fun
onRefresh
()
{
refresh
(
false
)
refresh
(
false
)
recommendListView
.
requestData
()
}
}
//刷新列表
//刷新列表
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
2b733d9f
...
@@ -1278,6 +1278,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
...
@@ -1278,6 +1278,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override
fun
onRefresh
()
{
override
fun
onRefresh
()
{
refresh
(
false
)
refresh
(
false
)
recommendListView
.
requestData
()
}
}
//刷新列表
//刷新列表
...
...
m-consultant/src/main/java/com/yidianling/consultant/bean/ExpertSearchBigShotBean.java
View file @
2b733d9f
...
@@ -19,18 +19,18 @@ public class ExpertSearchBigShotBean {
...
@@ -19,18 +19,18 @@ public class ExpertSearchBigShotBean {
* topicImages : [{"id":88,"parentId":62,"iamgeType":2,"isShow":1,"createTime":"Dec 13, 2019 9:35:45 PM","updateTime":"Dec 16, 2019 4:31:42 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":133,"parentId":62,"iamgeType":1,"isShow":1,"createTime":"Dec 16, 2019 4:23:00 PM","updateTime":"Dec 16, 2019 4:34:48 PM","createrId":0,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":134,"parentId":62,"iamgeType":1,"isShow":1,"createTime":"Dec 16, 2019 4:28:03 PM","updateTime":"Dec 16, 2019 4:29:58 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":146,"parentId":62,"iamgeType":3,"isShow":1,"createTime":"Dec 16, 2019 4:32:15 PM","updateTime":"Dec 16, 2019 4:34:01 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"}]
* topicImages : [{"id":88,"parentId":62,"iamgeType":2,"isShow":1,"createTime":"Dec 13, 2019 9:35:45 PM","updateTime":"Dec 16, 2019 4:31:42 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":133,"parentId":62,"iamgeType":1,"isShow":1,"createTime":"Dec 16, 2019 4:23:00 PM","updateTime":"Dec 16, 2019 4:34:48 PM","createrId":0,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":134,"parentId":62,"iamgeType":1,"isShow":1,"createTime":"Dec 16, 2019 4:28:03 PM","updateTime":"Dec 16, 2019 4:29:58 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":146,"parentId":62,"iamgeType":3,"isShow":1,"createTime":"Dec 16, 2019 4:32:15 PM","updateTime":"Dec 16, 2019 4:34:01 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"}]
*/
*/
private
int
id
;
private
int
id
=
0
;
private
String
specialTopicName
;
private
String
specialTopicName
=
""
;
private
int
specialTopicType
;
private
int
specialTopicType
=
0
;
private
String
specialTopicTitle
;
private
String
specialTopicTitle
=
""
;
private
String
specialTopicSubhead
;
private
String
specialTopicSubhead
=
""
;
private
int
status
;
private
int
status
=
0
;
private
int
weight
;
private
int
weight
=
0
;
private
int
jumpWay
;
private
int
jumpWay
=
0
;
private
String
createTime
;
private
String
createTime
=
""
;
private
String
updateTime
;
private
String
updateTime
=
""
;
private
int
createrId
;
private
int
createrId
=
0
;
private
String
specialTopicUrl
;
private
String
specialTopicUrl
=
""
;
private
List
<
TopicImagesBean
>
topicImages
;
private
List
<
TopicImagesBean
>
topicImages
;
public
int
getId
()
{
public
int
getId
()
{
...
@@ -149,14 +149,14 @@ public class ExpertSearchBigShotBean {
...
@@ -149,14 +149,14 @@ public class ExpertSearchBigShotBean {
* imageUrl : https://pic.ydlcdn.com/6n5AcChhYa.png
* imageUrl : https://pic.ydlcdn.com/6n5AcChhYa.png
*/
*/
private
int
id
;
private
int
id
=
0
;
private
int
parentId
;
private
int
parentId
=
0
;
private
int
imageType
;
private
int
imageType
=
0
;
private
int
isShow
;
private
int
isShow
=
0
;
private
String
createTime
;
private
String
createTime
=
""
;
private
String
updateTime
;
private
String
updateTime
=
""
;
private
int
createrId
;
private
int
createrId
=
0
;
private
String
imageUrl
;
private
String
imageUrl
=
""
;
public
int
getId
()
{
public
int
getId
()
{
return
id
;
return
id
;
...
...
m-consultant/src/main/java/com/yidianling/consultant/bean/ExpertSearchRecommandBean.java
View file @
2b733d9f
...
@@ -20,18 +20,18 @@ public class ExpertSearchRecommandBean {
...
@@ -20,18 +20,18 @@ public class ExpertSearchRecommandBean {
* topicImages : [{"id":103,"parentId":68,"iamgeType":2,"isShow":1,"createTime":"Dec 13, 2019 9:35:47 PM","updateTime":"Dec 16, 2019 4:31:55 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":140,"parentId":68,"iamgeType":1,"isShow":1,"createTime":"Dec 16, 2019 4:28:05 PM","updateTime":"Dec 16, 2019 4:30:13 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":152,"parentId":68,"iamgeType":3,"isShow":1,"createTime":"Dec 16, 2019 4:32:18 PM","updateTime":"Dec 16, 2019 4:34:15 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"}]
* topicImages : [{"id":103,"parentId":68,"iamgeType":2,"isShow":1,"createTime":"Dec 13, 2019 9:35:47 PM","updateTime":"Dec 16, 2019 4:31:55 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":140,"parentId":68,"iamgeType":1,"isShow":1,"createTime":"Dec 16, 2019 4:28:05 PM","updateTime":"Dec 16, 2019 4:30:13 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"},{"id":152,"parentId":68,"iamgeType":3,"isShow":1,"createTime":"Dec 16, 2019 4:32:18 PM","updateTime":"Dec 16, 2019 4:34:15 PM","createrId":1,"imageUrl":"https://pic.ydlcdn.com/6n5AcChhYa.png"}]
*/
*/
private
int
id
;
private
int
id
=
0
;
private
String
specialTopicName
;
private
String
specialTopicName
=
""
;
private
int
specialTopicType
;
private
int
specialTopicType
=
0
;
private
String
specialTopicTitle
;
private
String
specialTopicTitle
=
""
;
private
String
specialTopicSubhead
;
private
String
specialTopicSubhead
=
""
;
private
int
status
;
private
int
status
=
0
;
private
int
weight
;
private
int
weight
=
0
;
private
int
jumpWay
;
private
int
jumpWay
=
0
;
private
String
createTime
;
private
String
createTime
=
""
;
private
String
updateTime
;
private
String
updateTime
=
""
;
private
int
createrId
;
private
int
createrId
=
0
;
private
String
specialTopicUrl
;
private
String
specialTopicUrl
=
""
;
private
List
<
TopicImagesBean
>
topicImages
;
private
List
<
TopicImagesBean
>
topicImages
;
public
int
getId
()
{
public
int
getId
()
{
...
@@ -150,14 +150,14 @@ public class ExpertSearchRecommandBean {
...
@@ -150,14 +150,14 @@ public class ExpertSearchRecommandBean {
* imageUrl : https://pic.ydlcdn.com/6n5AcChhYa.png
* imageUrl : https://pic.ydlcdn.com/6n5AcChhYa.png
*/
*/
private
int
id
;
private
int
id
=
0
;
private
int
parentId
;
private
int
parentId
=
0
;
private
int
imageType
;
private
int
imageType
=
0
;
private
int
isShow
;
private
int
isShow
=
0
;
private
String
createTime
;
private
String
createTime
=
""
;
private
String
updateTime
;
private
String
updateTime
=
""
;
private
int
createrId
;
private
int
createrId
=
0
;
private
String
imageUrl
;
private
String
imageUrl
=
""
;
public
int
getId
()
{
public
int
getId
()
{
return
id
;
return
id
;
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendItemView.kt
View file @
2b733d9f
...
@@ -54,7 +54,6 @@ class RecommendItemView : LinearLayout {
...
@@ -54,7 +54,6 @@ class RecommendItemView : LinearLayout {
layoutParams
=
params
layoutParams
=
params
orientation
=
HORIZONTAL
orientation
=
HORIZONTAL
setPadding
(
RxImageTool
.
dp2px
(
15f
),
RxImageTool
.
dp2px
(
9f
),
0
,
RxImageTool
.
dp2px
(
11f
))
View
.
inflate
(
mContext
,
R
.
layout
.
consultant_expert_search_top_item_view
,
this
)
View
.
inflate
(
mContext
,
R
.
layout
.
consultant_expert_search_top_item_view
,
this
)
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
View file @
2b733d9f
...
@@ -85,6 +85,9 @@ class RecommendListView : LinearLayout {
...
@@ -85,6 +85,9 @@ class RecommendListView : LinearLayout {
.
filter
{
true
}
.
filter
{
true
}
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
.
subscribe
(
Consumer
{
mSceneSpecialTopicList
.
clear
()
mDoctorSpecialTopicsList
.
clear
()
itemListView
.
removeAllViews
()
if
(
null
!=
mContext
)
{
if
(
null
!=
mContext
)
{
if
(
it
.
sceneSpecialTopics
==
null
||
it
.
sceneSpecialTopics
.
size
==
0
)
{
if
(
it
.
sceneSpecialTopics
==
null
||
it
.
sceneSpecialTopics
.
size
==
0
)
{
recommendViewPager
.
visibility
=
View
.
GONE
recommendViewPager
.
visibility
=
View
.
GONE
...
@@ -130,6 +133,7 @@ class RecommendListView : LinearLayout {
...
@@ -130,6 +133,7 @@ class RecommendListView : LinearLayout {
private
fun
initViewPager
()
{
private
fun
initViewPager
()
{
mContext
?.
let
{
mContext
?.
let
{
mViewPagerList
.
clear
()
/**
/**
* 渲染第一页数据
* 渲染第一页数据
*/
*/
...
@@ -143,11 +147,17 @@ class RecommendListView : LinearLayout {
...
@@ -143,11 +147,17 @@ class RecommendListView : LinearLayout {
val
ll
=
getLinearLayout
(
mContext
!!
,
RxImageTool
.
dp2px
(
60f
),
HORIZONTAL
)
val
ll
=
getLinearLayout
(
mContext
!!
,
RxImageTool
.
dp2px
(
60f
),
HORIZONTAL
)
val
item
=
RecommendItemView
(
mContext
!!
)
val
item
=
RecommendItemView
(
mContext
!!
)
item
.
setPadding
(
RxImageTool
.
dp2px
(
15f
),
RxImageTool
.
dp2px
(
9f
),
RxImageTool
.
dp2px
(
15f
),
RxImageTool
.
dp2px
(
11f
))
item
.
setData
(
mSceneSpecialTopicList
[
index
])
item
.
setData
(
mSceneSpecialTopicList
[
index
])
ll
.
addView
(
item
)
ll
.
addView
(
item
)
if
(
index
+
1
<
mSceneSpecialTopicList
.
size
)
{
if
(
index
+
1
<
mSceneSpecialTopicList
.
size
)
{
val
item1
=
RecommendItemView
(
mContext
!!
)
val
item1
=
RecommendItemView
(
mContext
!!
)
item1
.
setData
(
mSceneSpecialTopicList
[
index
])
item1
.
setPadding
(
0
,
RxImageTool
.
dp2px
(
9f
),
RxImageTool
.
dp2px
(
15f
),
RxImageTool
.
dp2px
(
11f
))
item1
.
setData
(
mSceneSpecialTopicList
[
index
+
1
])
ll
.
addView
(
item1
)
ll
.
addView
(
item1
)
}
}
firstPager
.
addView
(
ll
)
firstPager
.
addView
(
ll
)
...
@@ -169,11 +179,17 @@ class RecommendListView : LinearLayout {
...
@@ -169,11 +179,17 @@ class RecommendListView : LinearLayout {
val
ll
=
getLinearLayout
(
mContext
!!
,
RxImageTool
.
dp2px
(
60f
),
HORIZONTAL
)
val
ll
=
getLinearLayout
(
mContext
!!
,
RxImageTool
.
dp2px
(
60f
),
HORIZONTAL
)
val
item
=
RecommendItemView
(
mContext
!!
)
val
item
=
RecommendItemView
(
mContext
!!
)
item
.
setPadding
(
RxImageTool
.
dp2px
(
15f
),
RxImageTool
.
dp2px
(
9f
),
RxImageTool
.
dp2px
(
15f
),
RxImageTool
.
dp2px
(
11f
))
item
.
setData
(
mSceneSpecialTopicList
[
index
])
item
.
setData
(
mSceneSpecialTopicList
[
index
])
ll
.
addView
(
item
)
ll
.
addView
(
item
)
if
(
index
+
1
<
mSceneSpecialTopicList
.
size
)
{
if
(
index
+
1
<
mSceneSpecialTopicList
.
size
)
{
val
item1
=
RecommendItemView
(
mContext
!!
)
val
item1
=
RecommendItemView
(
mContext
!!
)
item1
.
setData
(
mSceneSpecialTopicList
[
index
])
item1
.
setPadding
(
0
,
RxImageTool
.
dp2px
(
9f
),
RxImageTool
.
dp2px
(
15f
),
RxImageTool
.
dp2px
(
11f
))
item1
.
setData
(
mSceneSpecialTopicList
[
index
+
1
])
ll
.
addView
(
item1
)
ll
.
addView
(
item1
)
}
}
secondPager
.
addView
(
ll
)
secondPager
.
addView
(
ll
)
...
@@ -185,7 +201,7 @@ class RecommendListView : LinearLayout {
...
@@ -185,7 +201,7 @@ class RecommendListView : LinearLayout {
recommendViewPager
.
currentItem
=
0
recommendViewPager
.
currentItem
=
0
if
(
mSceneSpecialTopicList
.
size
<
4
)
{
if
(
mSceneSpecialTopicList
.
size
<
4
)
{
setOnlyOnePage
()
recommendViewPagerIndicator
.
visibility
=
View
.
GONE
}
else
{
}
else
{
setSelectedIndex
(
0
)
// 默认为左边选中
setSelectedIndex
(
0
)
// 默认为左边选中
}
}
...
@@ -237,13 +253,6 @@ class RecommendListView : LinearLayout {
...
@@ -237,13 +253,6 @@ class RecommendListView : LinearLayout {
}
}
}
}
private
fun
setOnlyOnePage
()
{
leftIndicator
.
layoutParams
=
LayoutParams
(
dp_15
,
dp_5
)
leftIndicator
.
setBackgroundResource
(
R
.
drawable
.
consultant_indicator_selected
)
rightIndicator
.
visibility
=
View
.
GONE
}
private
fun
getMinData
(
a
:
Int
,
b
:
Int
):
Int
{
private
fun
getMinData
(
a
:
Int
,
b
:
Int
):
Int
{
return
if
(
a
<
b
)
a
else
b
return
if
(
a
<
b
)
a
else
b
}
}
...
...
m-consultant/src/main/res/layout/consultant_expert_search_top_item_view.xml
View file @
2b733d9f
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
android:gravity=
"left|top"
android:gravity=
"left|top"
android:text=
"标题"
android:text=
"标题"
android:textSize=
"14dp"
android:textSize=
"14dp"
android:maxLines=
"1"
android:textColor=
"#242424"
android:textColor=
"#242424"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -41,6 +42,7 @@
...
@@ -41,6 +42,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"left|top"
android:gravity=
"left|top"
android:text=
"我是描述"
android:text=
"我是描述"
android:maxLines=
"1"
android:textSize=
"11dp"
android:textSize=
"11dp"
android:textColor=
"#999999"
/>
android:textColor=
"#999999"
/>
</LinearLayout>
</LinearLayout>
...
...
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