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
e31b306e
Commit
e31b306e
authored
Jul 08, 2022
by
fengquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: im咨询服务弹框样式调整
parent
e0a4873f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
10 deletions
+24
-10
ExpertConsultServiceItemView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
+10
-5
ExpertConsultServiceView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceView.kt
+1
-1
im_expert_service_list_btn_bg.xml
m-im/src/main/res/drawable/im_expert_service_list_btn_bg.xml
+1
-1
im_expert_service_list_busy_btn_bg.xml
m-im/src/main/res/drawable/im_expert_service_list_busy_btn_bg.xml
+9
-0
im_expert_consult_service_item_view.xml
m-im/src/main/res/layout/im_expert_consult_service_item_view.xml
+0
-0
im_expert_consult_service_view.xml
m-im/src/main/res/layout/im_expert_consult_service_view.xml
+3
-3
No files found.
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
View file @
e31b306e
...
...
@@ -61,14 +61,15 @@ class ExpertConsultServiceItemView : LinearLayout {
@SuppressLint
(
"SetTextI18n"
)
fun
setData
(
bean
:
ServiceItemBean
.
ProductsBean
)
{
if
(
mIsBusy
)
{
// 是否繁忙 true繁忙
ll_not_busy
.
visibility
=
View
.
GONE
ll_busy
.
visibility
=
View
.
VISIBLE
im_expert_service_list_btn
.
visibility
=
View
.
GONE
tv_add
.
visibility
=
View
.
VISIBLE
tv_add
.
setOnClickListener
{
mListener
?.
addTime
()
}
}
else
{
ll_not_busy
.
visibility
=
View
.
VISIBLE
ll_busy
.
visibility
=
View
.
GONE
im_expert_service_list_btn
.
visibility
=
View
.
VISIBLE
tv_add
.
visibility
=
View
.
GONE
}
//是否是套餐
if
(
bean
.
productDto
.
isPackage
==
2
)
{
...
...
@@ -87,6 +88,7 @@ class ExpertConsultServiceItemView : LinearLayout {
//隐藏起售次数限制
service_item_low_buy_time
.
visibility
=
View
.
GONE
}
val
mCompare
:
Comparator
<
ServiceItemBean
.
ProductsBean
.
ProductSpecDtosBean
>
=
Comparator
{
o1
,
o2
->
val
res
=
o1
.
price
.
compareTo
(
o2
.
price
)
...
...
@@ -105,6 +107,8 @@ class ExpertConsultServiceItemView : LinearLayout {
mBean
.
price
)
service_item_price
.
paint
.
isFakeBoldText
=
true
//时间,取productSpecDtos数组最后一个的时间
// service_item_time.text = "/${bean.productDto.minOrderTime}分钟"
}
...
...
@@ -129,7 +133,8 @@ class ExpertConsultServiceItemView : LinearLayout {
//销量
service_item_saleout_num
.
text
=
"销量${bean.productDto.saleAmount}"
// service_item_saleout_num.text = "销量${bean.productDto.saleAmount}"
service_item_saleout_num
.
text
=
"${bean.productDto.saleAmount}"
setOnClickListener
{
mListener
?.
onItemClick
(
bean
)
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceView.kt
View file @
e31b306e
...
...
@@ -101,7 +101,7 @@ class ExpertConsultServiceView : LinearLayout {
}
}
}
tv_title
.
paint
.
isFakeBoldText
=
true
typeSelectedIndex
=
0
// 初始化为全部选中
mServiceList
.
clear
()
mServiceList
.
addAll
(
allServiceList
)
...
...
m-im/src/main/res/drawable/im_expert_service_list_btn_bg.xml
View file @
e31b306e
...
...
@@ -2,7 +2,7 @@
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"
14dp
"
/>
<corners
android:radius=
"
@dimen/platform_dp_18
"
/>
<gradient
android:startColor=
"#FF7A5C"
android:endColor=
"#FF406C"
/>
...
...
m-im/src/main/res/drawable/im_expert_service_list_busy_btn_bg.xml
0 → 100644
View file @
e31b306e
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"@dimen/platform_dp_18"
/>
<solid
android:color=
"#1DA1F2"
/>
</shape>
\ No newline at end of file
m-im/src/main/res/layout/im_expert_consult_service_item_view.xml
View file @
e31b306e
This diff is collapsed.
Click to expand it.
m-im/src/main/res/layout/im_expert_consult_service_view.xml
View file @
e31b306e
...
...
@@ -8,12 +8,12 @@
android:layout_height=
"24dp"
android:layout_marginTop=
"@dimen/platform_dp_5"
>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"选择服务主题"
android:textColor=
"#242424"
android:textSize=
"18dp"
android:textStyle=
"bold"
android:textColor=
"#1C1F28"
android:textSize=
"18sp"
android:layout_centerInParent=
"true"
/>
</RelativeLayout>
...
...
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