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
4b4c4459
Commit
4b4c4459
authored
Jun 01, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:私聊咨询服务好评率,显示修改
parent
186a94d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
config.gradle
config.gradle
+2
-2
ExpertConsultServiceItemView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
+14
-5
im_expert_consult_service_item_view.xml
m-im/src/main/res/layout/im_expert_consult_service_item_view.xml
+14
-3
No files found.
config.gradle
View file @
4b4c4459
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.34"
,
"m-home"
:
"0.0.22.62"
,
"m-im"
:
"0.0.19.1
4
"
,
"m-im"
:
"0.0.19.1
5
"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.8"
,
...
...
@@ -93,7 +93,7 @@ ext {
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.34"
,
"m-home"
:
"0.0.22.62"
,
"m-im"
:
"0.0.19.1
4
"
,
"m-im"
:
"0.0.19.1
5
"
,
"m-dynamic"
:
"0.0.7.22"
,
"m-article"
:
"0.0.0.6"
,
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceItemView.kt
View file @
4b4c4459
...
...
@@ -83,17 +83,26 @@ class ExpertConsultServiceItemView : LinearLayout {
)
//时间,取productSpecDtos数组最后一个的时间
service_item_time
.
text
=
"/${bean.productDto.minOrderTime}分钟"
//
service_item_time.text = "/${bean.productDto.minOrderTime}分钟"
}
//好评率,*20后 保留1位小数
service_item_feddbackrate
.
visibility
=
VISIBLE
tv_feedbackRate
.
visibility
=
VISIBLE
service_item_feddbackrate
.
text
=
String
.
format
(
"%.1f"
,
(
bean
.
productDto
.
feedbackRate
)
*
100f
)
+
"%"
if
(
bean
.
productDto
.
feedbackRate
>
0
)
{
// 好评率大于0才展示出来,否则隐藏
//好评率,*20后 保留1位小数
service_item_feddbackrate
.
visibility
=
VISIBLE
tv_feedbackRate
.
visibility
=
VISIBLE
service_item_feddbackrate
.
text
=
String
.
format
(
"%.1f"
,
(
bean
.
productDto
.
feedbackRate
)
*
100f
)
+
"%"
}
else
{
service_item_feddbackrate
.
visibility
=
GONE
tv_feedbackRate
.
visibility
=
GONE
}
//销量
...
...
m-im/src/main/res/layout/im_expert_consult_service_item_view.xml
View file @
4b4c4459
...
...
@@ -58,9 +58,11 @@
android:layout_height=
"match_parent"
android:text=
"¥"
android:textColor=
"#FF5040"
android:textSize=
"
9d
p"
android:textSize=
"
12s
p"
android:textStyle=
"bold"
android:layout_marginTop=
"4dp"
/>
android:gravity=
"bottom"
android:paddingBottom=
"4dp"
/>
<TextView
android:id=
"@+id/service_item_price"
...
...
@@ -68,9 +70,17 @@
android:layout_height=
"wrap_content"
android:text=
"0"
android:textColor=
"#FF5040"
android:textSize=
"1
6d
p"
android:textSize=
"1
8s
p"
android:textStyle=
"bold"
android:layout_marginBottom=
"1dp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:gravity=
"bottom"
android:textColor=
"#999999"
android:textSize=
"12sp"
android:paddingBottom=
"4dp"
android:text=
"起"
/>
</LinearLayout>
<TextView
...
...
@@ -79,6 +89,7 @@
android:layout_height=
"wrap_content"
android:text=
"/0分钟"
android:textColor=
"#999999"
android:visibility=
"gone"
android:textSize=
"12dp"
/>
<TextView
android:id=
"@+id/service_item_low_buy_time"
...
...
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