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
2f12450b
Commit
2f12450b
authored
Jul 15, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导医入口紧急修改
parent
fc454a68
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
11 deletions
+24
-11
config.gradle
config.gradle
+2
-2
ConsultBIConstants.kt
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
+1
-1
ConsultAssistantDialog.kt
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultAssistantDialog.kt
+1
-1
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+5
-4
HomeConsultItemView.kt
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeConsultItemView.kt
+15
-3
No files found.
config.gradle
View file @
2f12450b
...
@@ -6,10 +6,10 @@ ext {
...
@@ -6,10 +6,10 @@ ext {
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.48.74"
,
"m-confide"
:
"0.0.48.74"
,
"m-consultant"
:
"0.0.59.3
1
"
,
"m-consultant"
:
"0.0.59.3
4
"
,
"m-fm"
:
"0.0.30.00"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.23"
,
"m-user"
:
"0.0.60.23"
,
"m-home"
:
"0.0.22.3
0
"
,
"m-home"
:
"0.0.22.3
1
"
,
"m-im"
:
"0.0.18.15"
,
"m-im"
:
"0.0.18.15"
,
"m-dynamic"
:
"0.0.7.13"
,
"m-dynamic"
:
"0.0.7.13"
,
"m-article"
:
"0.0.0.6"
,
"m-article"
:
"0.0.0.6"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
View file @
2f12450b
...
@@ -16,7 +16,7 @@ class ConsultBIConstants {
...
@@ -16,7 +16,7 @@ class ConsultBIConstants {
const
val
POSITION_OTHER_CHOICE_CLICK
=
"other_choice_click"
//其他选择
const
val
POSITION_OTHER_CHOICE_CLICK
=
"other_choice_click"
//其他选择
const
val
POSITION_CONSULT_FILTER_RESET_CLICK
=
"consult_filter_reset_click"
//重置
const
val
POSITION_CONSULT_FILTER_RESET_CLICK
=
"consult_filter_reset_click"
//重置
const
val
POSITION_CONSULT_FILTER_CHECKOUT_CLICK
=
"consult_filter_checkoutallconsultants_click"
//查看XXX位咨询师
const
val
POSITION_CONSULT_FILTER_CHECKOUT_CLICK
=
"consult_filter_checkoutallconsultants_click"
//查看XXX位咨询师
const
val
POSITION_DAOYI_ADVERTISEMENT_CLICK
=
"daoyi_advertisement_click"
const
val
POSITION_DAOYI_ADVERTISEMENT_CLICK
=
"daoyi_advertisement_
page|daoyi_advertisement_
click"
}
}
//====================APP咨询列表页(app_consult_list_page)====================
//====================APP咨询列表页(app_consult_list_page)====================
...
...
m-consultant/src/main/java/com/yidianling/consultant/dialog/ConsultAssistantDialog.kt
View file @
2f12450b
...
@@ -61,7 +61,7 @@ class ConsultAssistantDialog(
...
@@ -61,7 +61,7 @@ class ConsultAssistantDialog(
// ConsultAssistantDialogUtils.INSTANCE.ASSISTANT_DIALOG_SP_TAG,
// ConsultAssistantDialogUtils.INSTANCE.ASSISTANT_DIALOG_SP_TAG,
// System.currentTimeMillis().toString()
// System.currentTimeMillis().toString()
// )
// )
ConsultAssistantDialogUtils
.
INSTANCE
.
isSHowDesc
=
false
ConsultAssistantDialogUtils
.
isSHowDesc
=
false
animate
=
ObjectAnimator
.
ofFloat
(
animate
=
ObjectAnimator
.
ofFloat
(
consultant_assistant_dialog_desc_ll
,
consultant_assistant_dialog_desc_ll
,
"translationX"
,
"translationX"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
2f12450b
...
@@ -25,6 +25,7 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -25,6 +25,7 @@ class ConsultAssistantDialogUtils private constructor() {
companion
object
{
companion
object
{
val
INSTANCE
by
lazy
{
ConsultAssistantDialogUtils
()
}
val
INSTANCE
by
lazy
{
ConsultAssistantDialogUtils
()
}
var
isSHowDesc
=
true
}
}
var
consultAssistantDialogFromHomePage
:
ConsultAssistantDialog
?
=
null
// 首页展示的dialog
var
consultAssistantDialogFromHomePage
:
ConsultAssistantDialog
?
=
null
// 首页展示的dialog
...
@@ -35,7 +36,7 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -35,7 +36,7 @@ class ConsultAssistantDialogUtils private constructor() {
var
expertSearchActivityPageHasShown
:
Boolean
=
false
// 专家咨询列表activity页面是否已经展示
var
expertSearchActivityPageHasShown
:
Boolean
=
false
// 专家咨询列表activity页面是否已经展示
// var ASSISTANT_DIALOG_SP_TAG = "assistant_dialog_sp_tag" // 是否展示左侧文本的缓存key
// var ASSISTANT_DIALOG_SP_TAG = "assistant_dialog_sp_tag" // 是否展示左侧文本的缓存key
var
minWidth
=
0
// 最小宽度
var
minWidth
=
0
// 最小宽度
var
isSHowDesc
=
true
/**
/**
...
@@ -110,7 +111,7 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -110,7 +111,7 @@ class ConsultAssistantDialogUtils private constructor() {
//获取用户uid
//获取用户uid
ActionCountUtils
.
count
(
"main_page|main_daoyi_entry_click"
)
ActionCountUtils
.
count
(
"main_page|main_daoyi_entry_click"
)
YdlBuryPointUtil
.
sendClick
(
"home_page_assistant_click"
)
YdlBuryPointUtil
.
sendClick
(
"home_page_assistant_click"
)
ActionCountUtils
.
count
(
"daoyi_advertisement_click"
,
"1"
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
POSITION_DAOYI_ADVERTISEMENT_CLICK
,
"1"
)
getConsultAssistantUid
(
activity
,
1
)
getConsultAssistantUid
(
activity
,
1
)
}
}
...
@@ -143,7 +144,7 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -143,7 +144,7 @@ class ConsultAssistantDialogUtils private constructor() {
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
override
fun
onClickAction
()
{
override
fun
onClickAction
()
{
//获取用户uid
//获取用户uid
ActionCountUtils
.
count
(
"daoyi_advertisement_click"
,
"4"
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
POSITION_DAOYI_ADVERTISEMENT_CLICK
,
"4"
)
getConsultAssistantUid
(
activity
,
4
)
getConsultAssistantUid
(
activity
,
4
)
}
}
...
@@ -197,7 +198,7 @@ class ConsultAssistantDialogUtils private constructor() {
...
@@ -197,7 +198,7 @@ class ConsultAssistantDialogUtils private constructor() {
activity
,
activity
,
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
override
fun
onClickAction
()
{
override
fun
onClickAction
()
{
ActionCountUtils
.
count
(
"daoyi_advertisement_click"
,
"6"
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
POSITION_DAOYI_ADVERTISEMENT_CLICK
,
"6"
)
ActionCountUtils
.
count
(
"app_consult_list_page|app_consult_list_daoyi_entry_click"
)
ActionCountUtils
.
count
(
"app_consult_list_page|app_consult_list_daoyi_entry_click"
)
YdlBuryPointUtil
.
sendClick
(
"assistant_list_click"
)
YdlBuryPointUtil
.
sendClick
(
"assistant_list_click"
)
// 咨询师列表页面且未登录情况下,跳转登录页面
// 咨询师列表页面且未登录情况下,跳转登录页面
...
...
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeConsultItemView.kt
View file @
2f12450b
package
com.yidianling.home.ui.view
package
com.yidianling.home.ui.view
import
android.app.Activity
import
android.content.Context
import
android.content.Context
import
android.text.TextUtils
import
android.text.TextUtils
import
android.view.View
import
android.view.View
...
@@ -7,9 +8,11 @@ import android.view.ViewGroup
...
@@ -7,9 +8,11 @@ import android.view.ViewGroup
import
android.widget.FrameLayout
import
android.widget.FrameLayout
import
com.ydl.ydl_image.config.SimpleImageOpConfiger
import
com.ydl.ydl_image.config.SimpleImageOpConfiger
import
com.ydl.ydl_image.manager.YDLImageCacheManager
import
com.ydl.ydl_image.manager.YDLImageCacheManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.utils.StringUtils
import
com.ydl.ydlcommon.utils.StringUtils
import
com.ydl.ydlcommon.utils.URLUtils
import
com.ydl.ydlcommon.utils.URLUtils
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.consultant.api.IConsultantService
import
com.yidianling.home.R
import
com.yidianling.home.R
import
com.yidianling.home.event.IHomeBaseEvent
import
com.yidianling.home.event.IHomeBaseEvent
import
com.yidianling.home.model.bean.HomeConsultBean
import
com.yidianling.home.model.bean.HomeConsultBean
...
@@ -58,8 +61,13 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
...
@@ -58,8 +61,13 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
//设置红包、原价
//设置红包、原价
setPrice
(
bean
)
setPrice
(
bean
)
this
.
setOnClickListener
{
this
.
setOnClickListener
{
val
url
=
URLUtils
.
appendParmas
(
bean
.
linkUrl
,
"cateId"
,
cateId
)
// val url = URLUtils.appendParmas(bean.linkUrl,"cateId",cateId)
homeEvent
!!
.
consultItemClick
(
url
,
bean
.
doctorId
)
// homeEvent!!.consultItemClick(url,bean.doctorId)
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
).
jumpConsultAssistant
(
mContext
as
Activity
,
11
)
}
}
}
}
...
@@ -113,7 +121,11 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
...
@@ -113,7 +121,11 @@ class HomeConsultItemView(private var mContext: Context, private var homeEvent:
*/
*/
private
fun
setConfideButton
(
bodyBean
:
HomeConsultBean
.
ListBean
)
{
private
fun
setConfideButton
(
bodyBean
:
HomeConsultBean
.
ListBean
)
{
tv_consult_chat
.
setOnClickListener
{
tv_consult_chat
.
setOnClickListener
{
homeEvent
!!
.
consultChatClick
(
bodyBean
.
uid
.
toString
())
// homeEvent!!.consultChatClick(bodyBean.uid.toString())
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
).
jumpConsultAssistant
(
mContext
as
Activity
,
11
)
}
}
}
}
...
...
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