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
b447274c
Commit
b447274c
authored
Dec 02, 2019
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程列表页促销标签
parent
9f6ab835
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+5
-3
Course.java
m-course/src/main/java/com/yidianling/course/bean/Course.java
+4
-0
CourseItemNewView.kt
m-course/src/main/java/com/yidianling/course/widget/CourseItemNewView.kt
+4
-4
No files found.
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
b447274c
...
...
@@ -2,11 +2,13 @@
package
com
.
ydl
.
component
.
base
;
import
android.content.Context
;
import
com.ydl.component.BuildConfig
;
import
com.ydl.ydlcommon.base.config.GlobalConfig
;
import
com.ydl.ydlcommon.base.config.IConfigModule
;
import
com.ydl.ydlcommon.base.config.YDLConstants
;
import
com.ydl.ydlcommon.base.delegate.IAppLifecycles
;
import
com.ydl.ydlcommon.base.config.GlobalConfig
;
import
org.jetbrains.annotations.NotNull
;
import
java.util.List
;
...
...
@@ -25,9 +27,9 @@ public final class DemoGlobalConfig implements IConfigModule {
@Override
public
void
applyOptions
(
@NotNull
Context
context
,
@NotNull
GlobalConfig
.
Builder
builder
)
{
builder
.
setFrom
(
"ydl"
.
equals
(
BuildConfig
.
FLAVOR
)
?
YDLConstants
.
FROM_YDL
:
YDLConstants
.
FROM_XLZX
)
builder
.
setFrom
(
"ydl"
.
equals
(
BuildConfig
.
FLAVOR
)
?
YDLConstants
.
FROM_YDL
:
YDLConstants
.
FROM_XLZX
)
.
addUrl
(
"github"
,
APP_DOMAIN
)
.
setEnv
(
YDLConstants
.
ENV_
PROD
)
.
setEnv
(
YDLConstants
.
ENV_
TEST
)
.
setDebug
(
BuildConfig
.
DEBUG
);
}
}
m-course/src/main/java/com/yidianling/course/bean/Course.java
View file @
b447274c
...
...
@@ -102,6 +102,9 @@ public class Course {
*/
public
boolean
isBuy
=
false
;
public
boolean
joinActivity
=
false
;
public
String
activityImg
;
public
CourseHostInfoBean
courseHostInfo
;
}
\ No newline at end of file
m-course/src/main/java/com/yidianling/course/widget/CourseItemNewView.kt
View file @
b447274c
...
...
@@ -76,11 +76,11 @@ class CourseItemNewView : ConstraintLayout {
.
into
(
iv_head
)
//活动标签
if
(!
TextUtils
.
isEmpty
(
course
.
courseHostInfo
?.
activityImg
))
{
if
(
course
.
joinActivity
&&
!
TextUtils
.
isEmpty
(
course
.
activityImg
))
{
img_activity
.
visibility
=
View
.
VISIBLE
GlideApp
.
with
(
context
).
load
(
course
.
courseHostInfo
?.
activityImg
).
into
(
img_activity
)
tv_title
.
text
=
"\u3000\u3000\u3000\u0020"
+
course
.
title
}
else
{
GlideApp
.
with
(
context
).
load
(
course
.
activityImg
).
into
(
img_activity
)
tv_title
.
text
=
"\u3000\u3000\u3000\u0020"
+
course
.
title
}
else
{
img_activity
.
visibility
=
View
.
GONE
tv_title
.
text
=
course
.
title
}
...
...
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