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
7b03f3b9
Commit
7b03f3b9
authored
Jun 04, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 动态专家主页链接更新
parent
186a94d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
23 deletions
+30
-23
DynamicIn.kt
m-dynamic/src/main/java/com/yidianling/dynamic/router/DynamicIn.kt
+30
-23
No files found.
m-dynamic/src/main/java/com/yidianling/dynamic/router/DynamicIn.kt
View file @
7b03f3b9
...
...
@@ -3,8 +3,8 @@ package com.yidianling.dynamic.router
import
android.app.Activity
import
android.content.Context
import
android.content.Intent
import
androidx.fragment.app.DialogFragment
import
androidx.appcompat.app.AppCompatActivity
import
androidx.fragment.app.DialogFragment
import
com.ydl.confide.api.IConfideService
import
com.ydl.course.api.ICourseService
import
com.ydl.ydlcommon.base.config.HttpConfig
...
...
@@ -60,20 +60,20 @@ object DynamicIn {
fun
getConfideService
():
IConfideService
{
return
ModularServiceManager
.
provide
(
IConfideService
::
class
.
java
)
}
/**
* 获取专家主页url
*/
fun
getExpertHost
():
String
{
return
HttpConfig
.
H5_URL
+
"
experts/"
return
HttpConfig
.
MH5_URL
+
"jy/
experts/"
}
fun
getShareExpertHost
():
String
{
return
HttpConfig
.
MH5_URL
+
"experts/"
return
HttpConfig
.
MH5_URL
+
"experts/"
}
fun
isLogin
():
Boolean
{
return
getUserService
().
isLogin
()
?:
false
return
getUserService
().
isLogin
()
?:
false
}
fun
getUserInfo
():
UserResponseBean
.
UserInfo
?
=
getUserService
().
getUserInfo
()
...
...
@@ -82,7 +82,7 @@ object DynamicIn {
return
getUserService
().
loginWayIntent
(
activity
)
}
fun
personalInfoIntent
(
activity
:
Activity
){
fun
personalInfoIntent
(
activity
:
Activity
)
{
getAppService
().
personalInfoIntent
(
activity
)
}
...
...
@@ -90,23 +90,28 @@ object DynamicIn {
return
getUserService
().
inputPhoneIntent
(
activity
,
smsAction
)
}
fun
mainIntent
(
activity
:
Activity
){
fun
mainIntent
(
activity
:
Activity
)
{
getAppService
().
mainIntent
(
activity
)
}
fun
mainIntent
(
activity
:
Activity
,
tab
:
Int
)
{
getAppService
().
mainIntent
(
activity
,
tab
,
false
)
fun
mainIntent
(
activity
:
Activity
,
tab
:
Int
)
{
getAppService
().
mainIntent
(
activity
,
tab
,
false
)
}
fun
expertSearchIntent
(
activity
:
Activity
,
category
:
Int
,
showType
:
Int
,
isInitShowHot
:
Boolean
):
Intent
?
{
fun
expertSearchIntent
(
activity
:
Activity
,
category
:
Int
,
showType
:
Int
,
isInitShowHot
:
Boolean
):
Intent
?
{
return
getConsultService
().
expertSearchIntent
(
activity
,
category
,
showType
,
isInitShowHot
)
}
fun
testResultH5
(
testResultId
:
Int
){
fun
testResultH5
(
testResultId
:
Int
)
{
getTestsService
().
testH5Result
(
testResultId
.
toString
())
}
fun
testDetailH5
(
testId
:
Int
){
fun
testDetailH5
(
testId
:
Int
)
{
getTestsService
().
testDetailH5
(
testId
.
toString
());
}
...
...
@@ -122,7 +127,7 @@ object DynamicIn {
return
getFMService
().
getFmId
()
?:
0
}
fun
rechargeIntent
(
activity
:
Activity
){
fun
rechargeIntent
(
activity
:
Activity
)
{
getAppService
().
rechargeIntent
(
activity
)
}
...
...
@@ -143,23 +148,23 @@ object DynamicIn {
return
getCourseService
().
isPlaying
()
?:
false
}
fun
playCourse
(){
if
(!
isCoursePlaying
()){
fun
playCourse
()
{
if
(!
isCoursePlaying
())
{
getCourseService
().
play
()
}
}
fun
pauseCourse
(){
if
(
isCoursePlaying
()){
fun
pauseCourse
()
{
if
(
isCoursePlaying
())
{
getCourseService
().
pause
()
}
}
fun
rePlayFM
(){
fun
rePlayFM
()
{
getFMService
().
replay
()
}
fun
pauseFm
(){
fun
pauseFm
()
{
getFMService
().
pause
()
}
...
...
@@ -170,15 +175,16 @@ object DynamicIn {
/**
* 课程播放页
*/
fun
startCoursePlayPage
(
activity
:
Activity
){
getCourseService
().
startCoursePlayPage
(
activity
,
1
)
fun
startCoursePlayPage
(
activity
:
Activity
)
{
getCourseService
().
startCoursePlayPage
(
activity
,
1
)
}
/**
* 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @return true:已登录,不触发登录跳转,false:未登录,优先一键登录
* */
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
{
return
getUserService
().
loginByOneKeyLogin
(
context
,
isOpenDialog
)
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
{
return
getUserService
().
loginByOneKeyLogin
(
context
,
isOpenDialog
)
}
}
\ No newline at end of file
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