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
a0c62ec0
Commit
a0c62ec0
authored
Jun 22, 2022
by
范玉宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set free logo status
parent
b6429ada
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
20 deletions
+25
-20
config.gradle
config.gradle
+4
-4
HomeConfideBean.kt
m-home/src/main/java/com/yidianling/home/model/bean/HomeConfideBean.kt
+3
-1
HomeConfideExpertInfoView.kt
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeConfideExpertInfoView.kt
+17
-15
home_confide_item_layout.xml
m-home/src/ydl/res/layout/home_confide_item_layout.xml
+1
-0
No files found.
config.gradle
View file @
a0c62ec0
...
...
@@ -9,8 +9,8 @@ ext {
"m-consultant"
:
"0.0.60.68"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.55"
,
"m-home"
:
"0.0.23.9
4
"
,
"m-im"
:
"0.0.21.
59
"
,
"m-home"
:
"0.0.23.9
5
"
,
"m-im"
:
"0.0.21.
60
"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.10"
,
"m-muse"
:
"0.0.28.81"
,
...
...
@@ -95,8 +95,8 @@ ext {
"m-consultant"
:
"0.0.60.68"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.55"
,
"m-home"
:
"0.0.23.9
4
"
,
"m-im"
:
"0.0.21.
59
"
,
"m-home"
:
"0.0.23.9
5
"
,
"m-im"
:
"0.0.21.
60
"
,
"m-dynamic"
:
"0.0.7.74"
,
"m-article"
:
"0.0.0.10"
,
...
...
m-home/src/main/java/com/yidianling/home/model/bean/HomeConfideBean.kt
View file @
a0c62ec0
...
...
@@ -38,7 +38,7 @@ class HomeConfideBean : HomeItemBaseBean {
var
confideLine
:
Int
=
0
var
confideAddress
:
String
?
=
null
var
confidePraise
:
String
?
=
null
var
confidePraiseScore
:
String
?=
null
var
confidePraiseScore
:
String
?
=
null
/**
* 实际费用
*/
...
...
@@ -64,5 +64,7 @@ class HomeConfideBean : HomeItemBaseBean {
* 红包展示文本
*/
var
couponText
:
String
?
=
null
var
listenFree
:
Boolean
?
=
null
}
}
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeConfideExpertInfoView.kt
View file @
a0c62ec0
...
...
@@ -2,7 +2,6 @@ package com.yidianling.home.ui.view
import
android.annotation.SuppressLint
import
android.content.Context
import
android.graphics.Paint
import
android.text.TextUtils
import
android.view.View
import
android.view.ViewGroup
...
...
@@ -10,8 +9,6 @@ import android.widget.FrameLayout
import
com.blankj.utilcode.util.SpanUtils
import
com.bumptech.glide.Glide
import
com.bumptech.glide.load.engine.DiskCacheStrategy
import
com.ydl.ydl_image.config.SimpleImageOpConfiger
import
com.ydl.ydl_image.manager.YDLImageCacheManager
import
com.ydl.ydl_image.module.GlideApp
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.home.R
...
...
@@ -51,6 +48,8 @@ class HomeConfideExpertInfoView(private var mContext: Context, private var homeE
setListenAndScore
(
bean
)
setFreeStatus
(
bean
)
setConfideTag
(
bean
)
setLineStatus
(
bean
)
...
...
@@ -68,16 +67,16 @@ class HomeConfideExpertInfoView(private var mContext: Context, private var homeE
//设置向TA倾诉按钮状态
setConfideButton
(
bean
)
//设置红包、原价
setCoupon
(
bean
)
//
setCoupon(bean)
//设置咨询师简介
tv_content
.
text
=
bean
.
confideContent
//最后一项显示分割线
if
(
isLast
)
{
//
view_line.visibility = View.GONE
view_line
.
visibility
=
View
.
GONE
}
else
{
//
view_line.visibility = View.VISIBLE
view_line
.
visibility
=
View
.
VISIBLE
}
this
.
setOnClickListener
{
homeEvent
!!
.
confideClick
(
bean
.
linkUrl
,
bean
.
confidedId
.
toString
(),
bean
.
doctorId
,
bean
.
uid
.
toString
())
...
...
@@ -171,15 +170,6 @@ class HomeConfideExpertInfoView(private var mContext: Context, private var homeE
.
setFontSize
(
11
,
true
)
.
create
()
tv_score
.
text
=
bodyBean
.
confidePraiseScore
if
(
bodyBean
.
confideFee
==
"0"
&&
bodyBean
.
confideLine
==
1
)
{
confide_free_logo
.
visibility
=
VISIBLE
Glide
.
with
(
context
)
.
load
(
R
.
drawable
.
home_confide__free
)
.
diskCacheStrategy
(
DiskCacheStrategy
.
RESOURCE
)
.
into
(
confide_free_logo
)
}
else
{
confide_free_logo
.
visibility
=
GONE
}
}
/**
...
...
@@ -219,6 +209,18 @@ class HomeConfideExpertInfoView(private var mContext: Context, private var homeE
flowlayout_tag
.
text
=
sb
.
toString
()
}
private
fun
setFreeStatus
(
bodyBean
:
HomeConfideBean
.
BodyBean
)
{
if
(
bodyBean
.
listenFree
==
true
&&
bodyBean
.
confideLine
==
1
)
{
confide_free_logo
.
visibility
=
VISIBLE
Glide
.
with
(
context
)
.
load
(
R
.
drawable
.
home_confide__free
)
.
diskCacheStrategy
(
DiskCacheStrategy
.
RESOURCE
)
.
into
(
confide_free_logo
)
}
else
{
confide_free_logo
.
visibility
=
GONE
}
}
/**
* 设置红包、原价
*/
...
...
m-home/src/ydl/res/layout/home_confide_item_layout.xml
View file @
a0c62ec0
...
...
@@ -217,6 +217,7 @@
</FrameLayout>
<View
android:id=
"@+id/view_line"
android:layout_width=
"match_parent"
android:layout_height=
"0.5dp"
app:layout_constraintTop_toBottomOf=
"@id/tv_content"
...
...
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