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
836b1fad
Commit
836b1fad
authored
Feb 03, 2020
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
ef30999e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
35 deletions
+14
-35
config.gradle
config.gradle
+1
-1
ConfideHomeUtils.kt
m-confide/src/main/java/com/ydl/confide/home/util/ConfideHomeUtils.kt
+9
-8
HomeImpl.kt
m-home/src/xlzx/java/com/yidianling/home/event/HomeImpl.kt
+4
-26
No files found.
config.gradle
View file @
836b1fad
ext
{
kotlin_version
=
"1.3.21"
dev_mode
=
fals
e
dev_mode
=
tru
e
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
...
...
m-confide/src/main/java/com/ydl/confide/home/util/ConfideHomeUtils.kt
View file @
836b1fad
package
com.ydl.confide.home.util
import
android.content.Context
import
android.content.Intent
import
android.support.v4.content.ContextCompat
import
android.support.v7.widget.AppCompatTextView
import
android.support.v7.widget.LinearLayoutManager
...
...
@@ -24,8 +23,8 @@ import com.ydl.confide.home.listener.ConfideHomeRecycleViewListener
import
com.ydl.confide.home.section.*
import
com.ydl.confide.home.widget.ConfideHomeFilterView
import
com.ydl.confide.home.widget.ConfidePlayerFloatView
import
com.ydl.confide.router.PhoneCallIn
import
com.ydl.ydlcommon.adapter.section.SectionAdapter
import
com.ydl.ydlcommon.utils.MainUtils
import
com.yidianling.common.tools.LogUtil
import
java.io.BufferedInputStream
import
java.io.IOException
...
...
@@ -391,12 +390,14 @@ class ConfideHomeUtils {
* 跳转个人中心
*/
fun
buildJumpMine
(
context
:
Context
)
{
val
intent
=
Intent
()
intent
.
putExtra
(
MainUtils
.
ACTION_TAG
,
MainUtils
.
JUMP_MAIN_TAB_CHANGE
)
intent
.
putExtra
(
MainUtils
.
MAIN_TAB_INDEX
,
4
)
intent
.
setClassName
(
context
,
"com.cxzapp.yidianling.MainActivity"
)
intent
.
flags
=
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
context
.
startActivity
(
intent
)
// val intent = Intent()
// intent.putExtra(MainUtils.ACTION_TAG, MainUtils.JUMP_MAIN_TAB_CHANGE)
// intent.putExtra(MainUtils.MAIN_TAB_INDEX, 4)
// intent.setClassName(context, "com.cxzapp.yidianling.MainActivity")
// intent.flags = Intent.FLAG_ACTIVITY_CLEAR_TOP
// context.startActivity(intent)
PhoneCallIn
.
getAppService
().
mainIntent
(
context
,
4
,
false
)
}
/**
...
...
m-home/src/xlzx/java/com/yidianling/home/event/HomeImpl.kt
View file @
836b1fad
package
com.yidianling.home.event
import
android.content.Context
import
android.content.Intent
import
android.graphics.drawable.AnimationDrawable
import
android.net.Uri
import
android.os.Bundle
import
android.support.v7.app.AppCompatActivity
import
android.support.v7.widget.RecyclerView
import
android.text.TextUtils
import
android.view.View
import
android.widget.ImageView
import
android.widget.RelativeLayout
import
com.alibaba.android.arouter.launcher.ARouter
import
com.ydl.media.audio.AudioPlayer
import
com.ydl.media.audio.model.Music
import
com.ydl.media.view.PlayTypeEnum
import
com.ydl.media.view.PlayerFloatHelper
import
com.ydl.media.view.PlayerFloatView
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.yidianling.home.R
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.yidianling.home.constract.IHomeContract
import
com.yidianling.home.model.bean.*
import
com.yidianling.home.model.bean.CouponBean
import
com.yidianling.home.model.bean.HomeConfideBean
import
com.yidianling.home.ui.view.CouponDialog
import
com.ydl.ydl_router.manager.YDLRouterManager
import
com.ydl.ydl_router.manager.YDLRouterParams
import
com.ydl.ydl_router.util.YDLRouterParamsUrls
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.base.config.HttpConfig
import
com.ydl.ydlcommon.bean.ShareData
import
com.ydl.ydlcommon.data.PlatformRamImpl
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.ydl.ydlcommon.view.dialog.CommonDialog
import
com.yidianling.tests.api.service.ITestsApiService
import
com.yidianling.user.api.service.IUserService
import
org.json.JSONObject
/**
...
...
@@ -71,6 +48,7 @@ class HomeImpl(context: Context, homeView: IHomeContract.View) : HomeBaseImpl(co
val
music
=
Music
()
music
.
title
=
bean
.
confidedName
music
.
coverPath
=
bean
.
confidedIcon
music
.
path
=
bean
.
confideVoice
AudioPlayer
.
get
().
singlePlay
(
music
,
false
)
PlayerFloatHelper
.
playingType
=
PlayTypeEnum
.
PLAY_TYPE_CONFIDE
...
...
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