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
e3175a48
Commit
e3175a48
authored
Jun 23, 2022
by
fengquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复离线可预约
parent
d7001ffe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
14 deletions
+25
-14
config.gradle
config.gradle
+2
-2
ItemIntroHolder.kt
m-confide/src/main/java/com/ydl/confide/intro/ItemIntroHolder.kt
+23
-12
No files found.
config.gradle
View file @
e3175a48
...
...
@@ -5,7 +5,7 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.50.4
1
"
,
"m-confide"
:
"0.0.50.4
2
"
,
"m-consultant"
:
"0.0.60.68"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.55"
,
...
...
@@ -91,7 +91,7 @@ ext {
ydlCompileVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.50.4
1
"
,
"m-confide"
:
"0.0.50.4
2
"
,
"m-consultant"
:
"0.0.60.68"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.55"
,
...
...
m-confide/src/main/java/com/ydl/confide/intro/ItemIntroHolder.kt
View file @
e3175a48
...
...
@@ -82,20 +82,24 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) :
val
status
=
item
.
lineStatus
.
get
()
when
(
status
)
{
5
->
{
if
(!
TextUtils
.
isEmpty
(
item
.
linkedUrl
.
get
())){
if
(!
TextUtils
.
isEmpty
(
item
.
linkedUrl
.
get
()))
{
val
linkUri
=
Uri
.
parse
(
item
.
linkedUrl
.
get
())
if
(
linkUri
!=
null
)
{
val
host
=
linkUri
.
host
if
(!
TextUtils
.
isEmpty
(
host
)
&&
host
==
"h5"
)
{
//如果是h5,跳转至NewH5Activity
try
{
var
params
=
URLDecoder
.
decode
(
linkUri
.
getQueryParameter
(
"params"
),
"UTF-8"
)
ARouter
.
getInstance
().
build
(
"/new_h5/h5"
).
withSerializable
(
"routerParam"
,
params
).
navigation
()
}
catch
(
e
:
NullPointerException
){
var
params
=
URLDecoder
.
decode
(
linkUri
.
getQueryParameter
(
"params"
),
"UTF-8"
)
ARouter
.
getInstance
().
build
(
"/new_h5/h5"
)
.
withSerializable
(
"routerParam"
,
params
).
navigation
()
}
catch
(
e
:
NullPointerException
)
{
com
.
yidianling
.
common
.
tools
.
LogUtil
.
e
(
"params参数为空"
)
}
catch
(
e
:
UnsupportedEncodingException
)
{
}
catch
(
e
:
UnsupportedEncodingException
)
{
com
.
yidianling
.
common
.
tools
.
LogUtil
.
e
(
"解码错误"
)
}
catch
(
e
:
UnsupportedOperationException
)
{
}
catch
(
e
:
UnsupportedOperationException
)
{
com
.
yidianling
.
common
.
tools
.
LogUtil
.
e
(
"这不是一个uri格式的地址"
)
}
}
...
...
@@ -118,7 +122,12 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) :
}
else
->
{
if
(!
item
.
confideId
.
isNullOrBlank
())
{
ConfideWebServiceImpl
().
connectionJava
(
item
.
confideId
!!
.
toInt
(),
3
,
it
.
context
as
Activity
,
null
)
{
ConfideWebServiceImpl
().
connectionJava
(
item
.
confideId
!!
.
toInt
(),
3
,
it
.
context
as
Activity
,
null
)
{
showDoctorDetail
(
item
,
true
)
}
}
...
...
@@ -165,7 +174,7 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) :
item
.
confideId
?:
""
,
"4"
)
showDoctorDetail
(
item
,
false
)
showDoctorDetail
(
item
,
false
)
}
binding
.
ivAvatar
.
setOnClickListener
{
ActionCountUtils
.
record
(
...
...
@@ -181,7 +190,7 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) :
item
.
confideId
?:
""
,
"3"
)
showDoctorDetail
(
item
,
false
)
showDoctorDetail
(
item
,
false
)
}
binding
.
vDisableClick
.
setOnClickListener
{
}
binding
.
btnShare
.
setOnClickListener
{
...
...
@@ -363,16 +372,18 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) :
disposable
?.
dispose
()
}
private
fun
showDoctorDetail
(
item
:
VideoViewModel
,
toPay
:
Boolean
)
{
private
fun
showDoctorDetail
(
item
:
VideoViewModel
,
toPay
:
Boolean
)
{
item
.
confideId
?.
let
{
val
url
=
HttpConfig
.
MH5_URL
+
ConfideRoute
.
h5ConfideIntro
(
it
)+
if
(
toPay
)
"&payPage=1"
else
""
val
url
=
HttpConfig
.
MH5_URL
+
ConfideRoute
.
h5ConfideIntro
(
it
)
+
if
(
toPay
)
"&payPage=1"
else
""
ConfideBottomSheetDialogFragment
()
.
showBottomSheetDialog
(
itemView
.
context
as
FragmentActivity
,
url
,
item
.
doctorId
!!
,
uid
=
item
.
uid
,
listenFree
=
item
.
listenFree
.
get
()
listenFree
=
item
.
listenFree
.
get
(),
expertUrl
=
item
.
linkedUrl
.
get
()
?:
""
)
}
}
...
...
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