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
a981a8fd
Commit
a981a8fd
authored
Jul 29, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:定位筛选UI逻辑
parent
09d141b1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
SubRecyclerViewAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/SubRecyclerViewAdapter.kt
+2
-9
HomeCategoryContainer.kt
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeCategoryContainer.kt
+1
-1
HomePagerBannerCategoryItemView.kt
m-home/src/ydl/java/com/yidianling/home/ui/view/HomePagerBannerCategoryItemView.kt
+1
-1
No files found.
m-consultant/src/main/java/com/yidianling/consultant/adapter/SubRecyclerViewAdapter.kt
View file @
a981a8fd
...
...
@@ -29,15 +29,8 @@ class SubRecyclerViewAdapter(
if
(
subItem
.
locationCode
==
locationCode
)
{
holder
.
itemView
.
reLocation
.
visibility
=
View
.
GONE
holder
.
itemView
.
location_img
.
visibility
=
View
.
VISIBLE
holder
.
itemView
.
location_img
.
drawable
.
setTint
(
context
.
resources
.
getColor
(
R
.
color
.
platform_main_theme
))
//选中状态
holder
.
itemView
.
tvConsultTypeName
.
setTypeface
(
Typeface
.
DEFAULT_BOLD
)
holder
.
itemView
.
tvConsultTypeName
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
platform_main_theme
)
)
holder
.
itemView
.
location_img
.
drawable
.
setTint
(
context
.
resources
.
getColor
(
R
.
color
.
platform_color_black_333333
))
holder
.
itemView
.
isEnabled
=
true
}
else
if
(
subItem
.
locationCode
==
"NotAuth"
)
{
//未选中状态
...
...
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeCategoryContainer.kt
View file @
a981a8fd
...
...
@@ -52,7 +52,7 @@ class HomeCategoryContainer(private val mContext: Context, private var homeEvent
*/
fun
initData
(
bean
:
HomeHeaderBean
?)
{
mHomeCategoryAdapter
?.
updateItems
(
bean
?.
askCategoryData
)
if
(
bean
?.
askCategoryData
?.
size
!!
>
=
PAGE_ITEM_SIZE
)
{
if
(
bean
?.
askCategoryData
?.
size
!!
>
PAGE_ITEM_SIZE
)
{
count
=
Math
.
ceil
(
Math
.
ceil
(
bean
.
askCategoryData
?.
size
?.
toFloat
()
?.
div
(
PAGE_ITEM_SIZE
.
toFloat
())
...
...
m-home/src/ydl/java/com/yidianling/home/ui/view/HomePagerBannerCategoryItemView.kt
View file @
a981a8fd
...
...
@@ -19,7 +19,7 @@ import kotlinx.android.synthetic.ydl.home_pager_banner_category_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
* @描述: 首页顶部模块-分类模块
* @描述: 首页顶部模块-分类模块
金刚位跳转H5或咨询列表页面
* @Copyright Copyright (c) 2019
* @Company 壹点灵
* @date 2019/02/16
...
...
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