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
1d422b3c
Commit
1d422b3c
authored
Nov 13, 2019
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程、支付
parent
0e1cad6c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
9 deletions
+43
-9
CourseListContainerActivity.kt
m-course/src/main/java/com/yidianling/course/courseNew/courseList/CourseListContainerActivity.kt
+0
-0
CoursePlugin.kt
m-course/src/main/java/com/yidianling/course/flutterPlugin/CoursePlugin.kt
+13
-2
SearchBarView.kt
m-course/src/main/java/com/yidianling/course/widget/SearchBarView.kt
+4
-0
course_icon_back_black.png
m-course/src/main/res/drawable-xhdpi/course_icon_back_black.png
+0
-0
activity_courses.xml
m-course/src/main/res/layout/activity_courses.xml
+22
-5
activity_my_course.xml
m-course/src/main/res/layout/activity_my_course.xml
+1
-1
build.gradle
ydl-platform/build.gradle
+1
-0
NetworkParamsUtils.java
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/NetworkParamsUtils.java
+2
-1
No files found.
m-course/src/main/java/com/yidianling/course/courseNew/courseList/CourseListContainerActivity.kt
View file @
1d422b3c
This diff is collapsed.
Click to expand it.
m-course/src/main/java/com/yidianling/course/flutterPlugin/CoursePlugin.kt
View file @
1d422b3c
import
android.content.Intent
import
android.content.Intent
import
android.net.Uri
import
android.net.Uri
import
android.os.Handler
import
android.text.TextUtils
import
android.text.TextUtils
import
com.ydl.media.audio.AudioPlayer
import
com.ydl.media.audio.AudioPlayer
import
com.ydl.media.audio.model.Music
import
com.ydl.media.audio.model.Music
...
@@ -11,6 +12,7 @@ import com.ydl.webview.NewH5Activity
...
@@ -11,6 +12,7 @@ import com.ydl.webview.NewH5Activity
import
com.ydl.ydl_router.manager.YDLRouterManager
import
com.ydl.ydl_router.manager.YDLRouterManager
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.base.flutter.base.BaseFlutterFragment
import
com.ydl.ydlcommon.base.flutter.base.BaseFlutterFragment
import
com.ydl.ydlcommon.data.PlatformDataManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.RxDeviceTool
import
com.yidianling.common.tools.RxDeviceTool
...
@@ -23,6 +25,7 @@ import com.yidianling.course.router.CourseIn
...
@@ -23,6 +25,7 @@ import com.yidianling.course.router.CourseIn
import
io.flutter.plugin.common.MethodCall
import
io.flutter.plugin.common.MethodCall
import
io.flutter.plugin.common.MethodChannel
import
io.flutter.plugin.common.MethodChannel
import
io.flutter.view.FlutterView
import
io.flutter.view.FlutterView
import
org.json.JSONObject
/**
/**
* @author jiucheng
* @author jiucheng
...
@@ -60,6 +63,7 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
...
@@ -60,6 +63,7 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
mMap
[
"accessToken"
]
=
loginBean
?.
token
?:
""
mMap
[
"accessToken"
]
=
loginBean
?.
token
?:
""
?:
""
?:
""
mMap
[
"isFromApp"
]
=
"1"
mMap
[
"isFromApp"
]
=
"1"
mMap
[
"ffrom"
]
=
PlatformDataManager
.
getRam
().
getChannelName
()
mMap
[
"version"
]
=
RxDeviceTool
.
getAppVersionName
(
BaseApp
.
getApp
())
mMap
[
"version"
]
=
RxDeviceTool
.
getAppVersionName
(
BaseApp
.
getApp
())
mMap
[
"osBuild"
]
=
mMap
[
"osBuild"
]
=
RxDeviceTool
.
getBuildMANUFACTURER
()
+
","
+
RxDeviceTool
.
getBuildBrandModel
()
+
","
+
RxDeviceTool
.
getOsBuileVersion
()
+
","
+
RxDeviceTool
.
getAppVersionName
(
RxDeviceTool
.
getBuildMANUFACTURER
()
+
","
+
RxDeviceTool
.
getBuildBrandModel
()
+
","
+
RxDeviceTool
.
getOsBuileVersion
()
+
","
+
RxDeviceTool
.
getAppVersionName
(
...
@@ -70,6 +74,11 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
...
@@ -70,6 +74,11 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
JUMPURL
->
{
JUMPURL
->
{
var
jumpUrl
:
String
?
=
methodCall
.
arguments
.
toString
()
var
jumpUrl
:
String
?
=
methodCall
.
arguments
.
toString
()
if
(!
TextUtils
.
isEmpty
(
jumpUrl
))
{
if
(!
TextUtils
.
isEmpty
(
jumpUrl
))
{
if
(
jumpUrl
!!
.
startsWith
(
"http"
))
{
val
h5Params
=
H5Params
(
jumpUrl
,
""
)
NewH5Activity
.
start
(
mFragment
!!
.
activity
,
h5Params
)
return
}
when
{
when
{
jumpUrl
!!
.
contains
(
"user/login"
)
->
mFragment
!!
.
startActivity
(
jumpUrl
!!
.
contains
(
"user/login"
)
->
mFragment
!!
.
startActivity
(
CourseIn
.
loginWayIntent
(
CourseIn
.
loginWayIntent
(
...
@@ -86,8 +95,9 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
...
@@ -86,8 +95,9 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
)
)
jumpUrl
.
contains
(
"course/detail"
)
->
{
jumpUrl
.
contains
(
"course/detail"
)
->
{
var
uri
=
Uri
.
parse
(
jumpUrl
)
var
uri
=
Uri
.
parse
(
jumpUrl
)
var
id
=
uri
.
getQueryParameter
(
"id"
)
var
resultParams
=
uri
.
getQueryParameter
(
"params"
)
val
h5Params
=
H5Params
(
CourseConstants
.
COURSE_DETAIL_H5
+
id
,
"课程详情"
)
val
jsonObject
=
JSONObject
(
resultParams
)
val
h5Params
=
H5Params
(
CourseConstants
.
COURSE_DETAIL_H5
+
jsonObject
.
getString
(
"id"
),
"课程详情"
)
NewH5Activity
.
start
(
mFragment
!!
.
activity
,
h5Params
)
NewH5Activity
.
start
(
mFragment
!!
.
activity
,
h5Params
)
}
}
else
->
YDLRouterManager
.
router
(
jumpUrl
)
else
->
YDLRouterManager
.
router
(
jumpUrl
)
...
@@ -141,6 +151,7 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
...
@@ -141,6 +151,7 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
// PlayerFloatHelper.show(mFragment!!.activity)
// PlayerFloatHelper.show(mFragment!!.activity)
}
}
Handler
().
postDelayed
({
CourseSendPlugin
.
sendMsg
(
true
)
},
300
)
PlayerFloatHelper
.
addClickListener
(
object
:
PlayerFloatView
.
FloatViewPlayListener
{
PlayerFloatHelper
.
addClickListener
(
object
:
PlayerFloatView
.
FloatViewPlayListener
{
override
fun
onStartClick
()
{
override
fun
onStartClick
()
{
...
...
m-course/src/main/java/com/yidianling/course/widget/SearchBarView.kt
View file @
1d422b3c
...
@@ -97,6 +97,10 @@ class SearchBarView : LinearLayout {
...
@@ -97,6 +97,10 @@ class SearchBarView : LinearLayout {
}
}
fun
setTextTitle
(
title
:
String
)
{
common_search_bar_btn
.
text
=
title
}
private
fun
setEditTextVisibility
(
boolean
:
Boolean
)
{
private
fun
setEditTextVisibility
(
boolean
:
Boolean
)
{
if
(
boolean
)
{
if
(
boolean
)
{
common_search_bar_text
.
visibility
=
View
.
GONE
common_search_bar_text
.
visibility
=
View
.
GONE
...
...
m-course/src/main/res/drawable-xhdpi/course_icon_back_black.png
0 → 100644
View file @
1d422b3c
375 Bytes
m-course/src/main/res/layout/activity_courses.xml
View file @
1d422b3c
...
@@ -8,12 +8,29 @@
...
@@ -8,12 +8,29 @@
android:orientation=
"vertical"
android:orientation=
"vertical"
>
>
<include
layout=
"@layout/course_layout_title_bar"
/>
<LinearLayout
<com.yidianling.course.widget.SearchBarView
android:id=
"@+id/search_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"44dp"
android:background=
"@color/course_color_FFFFFF"
android:gravity=
"center"
android:orientation=
"horizontal"
android:paddingLeft=
"16dp"
>
<ImageView
android:id=
"@+id/iv_back"
android:layout_width=
"13dp"
android:layout_height=
"22dp"
android:scaleType=
"centerCrop"
android:src=
"@drawable/course_icon_back_black"
/>
<com.yidianling.course.widget.SearchBarView
android:id=
"@+id/search_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
</LinearLayout>
<View
<View
android:id=
"@+id/divider_line"
android:id=
"@+id/divider_line"
...
...
m-course/src/main/res/layout/activity_my_course.xml
View file @
1d422b3c
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
<com.y
dl.base_module.ui.searchbarview
.SearchBarView
<com.y
idianling.course.widget
.SearchBarView
android:id=
"@+id/search_bar"
android:id=
"@+id/search_bar"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
...
...
ydl-platform/build.gradle
View file @
1d422b3c
...
@@ -77,6 +77,7 @@ dependencies {
...
@@ -77,6 +77,7 @@ dependencies {
api
rootProject
.
ext
.
dependencies
[
"ydl-hnet"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-hnet"
]
api
rootProject
.
ext
.
dependencies
[
"imagepicker"
]
api
rootProject
.
ext
.
dependencies
[
"imagepicker"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-utils"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-utils"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-js"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-flutter"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-flutter"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-net"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-net"
]
api
(
'com.ydl:device-id:0.0.7@aar'
){
api
(
'com.ydl:device-id:0.0.7@aar'
){
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/NetworkParamsUtils.java
View file @
1d422b3c
...
@@ -4,6 +4,7 @@ import com.ydl.ydlcommon.base.BaseApp;
...
@@ -4,6 +4,7 @@ import com.ydl.ydlcommon.base.BaseApp;
import
com.ydl.ydlcommon.data.PlatformDataManager
;
import
com.ydl.ydlcommon.data.PlatformDataManager
;
import
com.ydl.ydlcommon.data.http.BaseCommand
;
import
com.ydl.ydlcommon.data.http.BaseCommand
;
import
com.ydl.ydlcommon.data.http.FormatText
;
import
com.ydl.ydlcommon.data.http.FormatText
;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.ydl.ydlcommon.router.YdlCommonRouterManager
;
import
com.ydl.ydlcommon.router.YdlCommonRouterManager
;
import
com.ydl.ydlcommon.router.YdlUserInfo
;
import
com.ydl.ydlcommon.router.YdlUserInfo
;
import
com.yidianling.common.tools.RxAppTool
;
import
com.yidianling.common.tools.RxAppTool
;
...
@@ -132,7 +133,7 @@ public class NetworkParamsUtils {
...
@@ -132,7 +133,7 @@ public class NetworkParamsUtils {
public
static
String
getCommonParam
()
{
public
static
String
getCommonParam
()
{
StringBuffer
sb
=
new
StringBuffer
();
StringBuffer
sb
=
new
StringBuffer
();
YdlUserInfo
userInfo
=
YdlCommonRouterManager
.
INSTANCE
.
getYdlCommonRoute
().
getUserInfo
();
YdlUserInfo
userInfo
=
ModularServiceManager
.
INSTANCE
.
getPlatformUserService
().
getUser
();
sb
.
append
(
"ffrom"
).
append
(
"="
).
append
(
PlatformDataManager
.
INSTANCE
.
getRam
().
getChannelName
())
sb
.
append
(
"ffrom"
).
append
(
"="
).
append
(
PlatformDataManager
.
INSTANCE
.
getRam
().
getChannelName
())
.
append
(
"&"
).
append
(
"isFromApp"
).
append
(
"="
).
append
(
"1"
)
.
append
(
"&"
).
append
(
"isFromApp"
).
append
(
"="
).
append
(
"1"
)
.
append
(
"&"
).
append
(
"osBuild"
).
append
(
"="
).
append
(
RxDeviceTool
.
getBuildBrandModel
()).
append
(
","
)
.
append
(
"&"
).
append
(
"osBuild"
).
append
(
"="
).
append
(
RxDeviceTool
.
getBuildBrandModel
()).
append
(
","
)
...
...
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