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
effb01e8
Commit
effb01e8
authored
May 26, 2020
by
ydl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backup
parent
eafe40c6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
61 deletions
+19
-61
config.gradle
config.gradle
+2
-2
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+2
-0
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+0
-1
ExpertSearchAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
+0
-25
consultant_activity_expert_search_list.xml
m-consultant/src/main/res/layout/consultant_activity_expert_search_list.xml
+1
-1
YdlHomeAdapter.kt
m-home/src/xlzx/java/com/yidianling/home/adapter/YdlHomeAdapter.kt
+13
-31
HomeImageBannerView.kt
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeImageBannerView.kt
+1
-1
home_banner_tip_select.png
m-home/src/xlzx/res/drawable-xhdpi/home_banner_tip_select.png
+0
-0
home_banner_tip_unselect.png
m-home/src/xlzx/res/drawable-xhdpi/home_banner_tip_unselect.png
+0
-0
No files found.
config.gradle
View file @
effb01e8
...
...
@@ -6,10 +6,10 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.71"
,
"m-consultant"
:
"0.0.59.2
0
"
,
"m-consultant"
:
"0.0.59.2
2
"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.20"
,
"m-home"
:
"0.0.22.
18
"
,
"m-home"
:
"0.0.22.
20
"
,
"m-im"
:
"0.0.18.12"
,
"m-dynamic"
:
"0.0.7.70"
,
"m-article"
:
"0.0.0.6"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
effb01e8
...
...
@@ -87,6 +87,8 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
window
.
setSoftInputMode
(
WindowManager
.
LayoutParams
.
SOFT_INPUT_ADJUST_RESIZE
or
WindowManager
.
LayoutParams
.
SOFT_INPUT_STATE_HIDDEN
)
initViews
()
initData
(
intent
)
rl_hot_fix_for_huawei
.
visibility
=
View
.
VISIBLE
}
override
fun
getStatusViewOptions
():
StatusBarOptions
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
effb01e8
...
...
@@ -79,7 +79,6 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
val
ffrom
=
PlatformDataManager
.
getRam
().
getChannelName
()
if
(!
TextUtils
.
isEmpty
(
ffrom
)
&&
(
ffrom
.
startsWith
(
"ATK_7"
)
&&
ffrom
.
endsWith
(
"huawei"
))||
(
ffrom
.
startsWith
(
"ATK_android_yyjlcs"
))
)
{
rl_hot_fix_for_huawei
.
visibility
=
View
.
GONE
...
...
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
View file @
effb01e8
...
...
@@ -52,8 +52,6 @@ class ExpertSearchAdapter(
const
val
EMPTY_VIEW
=
2
}
private
val
ffrom
=
PlatformDataManager
.
getRam
().
getChannelName
()
//记录当前选择主题的id
var
cateId
:
String
?
=
null
...
...
@@ -68,10 +66,6 @@ class ExpertSearchAdapter(
@SuppressLint
(
"SetTextI18n"
)
override
fun
onBindViewHolder
(
holder
:
RecyclerView
.
ViewHolder
?,
position
:
Int
)
{
if
(
holder
is
NormalViewHolder
)
{
val
isFromXinliZiXunHuawei
=
!
TextUtils
.
isEmpty
(
ffrom
)
&&
ffrom
.
startsWith
(
"ATK_7"
)
&&
ffrom
.
endsWith
(
"huawei"
)
val
itemBean
=
listData
[
position
]
//头像
val
headConfig
=
SimpleImageOpConfiger
()
...
...
@@ -304,25 +298,6 @@ class ExpertSearchAdapter(
}
if
(
isFromXinliZiXunHuawei
)
{
holder
.
ll_honor_layout
.
visibility
=
View
.
GONE
holder
.
ll_tags
.
visibility
=
View
.
GONE
holder
.
imgHead_online
.
visibility
=
View
.
GONE
holder
.
imgHead_online_server
.
visibility
=
View
.
GONE
holder
.
tvPrice
.
visibility
=
View
.
GONE
holder
.
tvPriceContent
.
visibility
=
View
.
GONE
holder
.
tv_money_symbol
.
visibility
=
View
.
GONE
holder
.
chat_people_in_question
.
visibility
=
View
.
GONE
holder
.
tvCity
.
visibility
=
View
.
GONE
holder
.
tvChat
.
visibility
=
View
.
GONE
holder
.
tvChat
.
text
=
"咨询"
val
params
=
holder
.
cv_head_view
.
layoutParams
params
.
width
=
RxImageTool
.
dp2px
(
92f
)
params
.
height
=
RxImageTool
.
dp2px
(
92f
)
holder
.
cv_head_view
.
layoutParams
=
params
}
}
else
if
(
holder
is
FooterViewHolder
)
{
if
(
hasMore
)
{
holder
.
itemView
.
visibility
=
View
.
VISIBLE
...
...
m-consultant/src/main/res/layout/consultant_activity_expert_search_list.xml
View file @
effb01e8
...
...
@@ -42,7 +42,7 @@
app:layout_scrollFlags=
"scroll|exitUntilCollapsed"
>
<!--
心理咨询app华为渠道紧急处理
,咨询师列表页先简单粗暴的隐藏顶部推荐模块-->
<!--
只剩抑郁焦虑测试需要隐藏
,咨询师列表页先简单粗暴的隐藏顶部推荐模块-->
<RelativeLayout
android:id=
"@+id/rl_hot_fix_for_huawei"
android:layout_width=
"match_parent"
...
...
m-home/src/xlzx/java/com/yidianling/home/adapter/YdlHomeAdapter.kt
View file @
effb01e8
...
...
@@ -29,7 +29,6 @@ class YdlHomeAdapter(
private
var
list
:
ArrayList
<
HomePagerDataBean
>
)
:
RecyclerView
.
Adapter
<
RecyclerView
.
ViewHolder
>()
{
private
val
ffrom
=
PlatformDataManager
.
getRam
().
getChannelName
()
private
val
mInflater
:
LayoutInflater
=
LayoutInflater
.
from
(
mContext
)
/**
* 倾述item的position
...
...
@@ -173,23 +172,13 @@ class YdlHomeAdapter(
// }
//课程*成长模块
is
HomeCourseViewHolder
->
{
if
(!
TextUtils
.
isEmpty
(
ffrom
)
&&
ffrom
.
endsWith
(
"huawei"
))
{
val
parm
=
holder
.
itemView
.
layoutParams
parm
.
height
=
0
holder
.
itemView
.
layoutParams
=
parm
}
else
{
holder
.
courseViewView
.
initData
(
list
[
position
].
courseBean
?.
list
)
}
holder
.
courseViewView
.
initData
(
list
[
position
].
courseBean
?.
list
)
}
//解忧*问答模块
is
HomeAssuageGriefViewHolder
->
{
if
(!
TextUtils
.
isEmpty
(
ffrom
)
&&
ffrom
.
endsWith
(
"huawei"
))
{
val
parm
=
holder
.
itemView
.
layoutParams
parm
.
height
=
0
holder
.
itemView
.
layoutParams
=
parm
}
else
{
holder
.
assuageGriefViewView
.
initData
(
position
,
list
[
position
].
askBean
?.
data
)
}
holder
.
assuageGriefViewView
.
initData
(
position
,
list
[
position
].
askBean
?.
data
)
}
//文章*阅读模块
is
HomeArticleViewHolder
->
{
...
...
@@ -197,22 +186,15 @@ class YdlHomeAdapter(
}
//咨询模块
is
HomeConsultViewHolder
->
{
if
(!
TextUtils
.
isEmpty
(
ffrom
)
&&
ffrom
.
endsWith
(
"huawei"
))
{
val
parm
=
holder
.
itemView
.
layoutParams
parm
.
height
=
0
holder
.
itemView
.
layoutParams
=
parm
}
else
{
holder
.
consultView
.
setTitle
(
list
[
position
].
headerBean
?.
consultCategoryData
,
consultSelectPosition
)
holder
.
consultView
.
setConsultInfoView
(
list
[
position
].
consultBean
?.
list
,
list
[
position
].
headerBean
?.
consultCategoryData
?.
get
(
consultSelectPosition
)
)
consultPosition
=
position
}
holder
.
consultView
.
setTitle
(
list
[
position
].
headerBean
?.
consultCategoryData
,
consultSelectPosition
)
holder
.
consultView
.
setConsultInfoView
(
list
[
position
].
consultBean
?.
list
,
list
[
position
].
headerBean
?.
consultCategoryData
?.
get
(
consultSelectPosition
)
)
consultPosition
=
position
}
//测试模块
is
HomeTestViewHolder
->
{
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeImageBannerView.kt
View file @
effb01e8
...
...
@@ -45,7 +45,7 @@ class HomeImageBannerView(val mContext: Context, val homeEvent: IHomeBaseEvent)
)
banner_search
.
layoutParams
=
bannerLayoutParams
banner_search
.
setIndicatorBottomPadding
(
10
)
// banner_search.setIndicatorBottomPadding(5
)
}
fun
initData
(
bean
:
HomePagerDataBean
)
{
...
...
m-home/src/xlzx/res/drawable-xhdpi/home_banner_tip_select.png
View replaced file @
eafe40c6
View file @
effb01e8
217 Bytes
|
W:
|
H:
1.46 KB
|
W:
|
H:
2-up
Swipe
Onion skin
m-home/src/xlzx/res/drawable-xhdpi/home_banner_tip_unselect.png
View replaced file @
eafe40c6
View file @
effb01e8
199 Bytes
|
W:
|
H:
1.45 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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