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
c2159b02
Commit
c2159b02
authored
Jun 22, 2022
by
范玉宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 18713
parent
56fee5a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
23 deletions
+45
-23
ConfideOrderInfoView.java
m-im/src/main/java/com/yidianling/uikit/custom/widget/ConfideOrderInfoView.java
+45
-23
No files found.
m-im/src/main/java/com/yidianling/uikit/custom/widget/ConfideOrderInfoView.java
View file @
c2159b02
...
...
@@ -12,6 +12,8 @@ import android.widget.TextView;
import
androidx.fragment.app.FragmentActivity
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.google.gson.Gson
;
import
com.netease.nimlib.sdk.NIMClient
;
import
com.netease.nimlib.sdk.RequestCallback
;
import
com.netease.nimlib.sdk.msg.MessageBuilder
;
...
...
@@ -20,12 +22,17 @@ import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum;
import
com.netease.nimlib.sdk.msg.model.IMMessage
;
import
com.ydl.confide.api.ConfideRoute
;
import
com.ydl.confide.api.IConfideService
;
import
com.ydl.webview.TellData
;
import
com.ydl.ydlcommon.base.config.HttpConfig
;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.ydl.ydlcommon.router.IYDLRouterConstant
;
import
com.ydl.ydlcommon.utils.ActivityManager
;
import
com.ydl.ydlcommon.utils.LogUtil
;
import
com.ydl.ydlcommon.utils.Utils
;
import
com.yidianling.common.tools.RxImageTool
;
import
com.yidianling.common.tools.ToastUtil
;
import
com.yidianling.im.R
;
import
com.yidianling.im.api.service.IImService
;
import
com.yidianling.uikit.business.session.helper.MessageListPanelHelper
;
import
com.yidianling.uikit.custom.bridge.ActionHandlerStorage
;
import
com.yidianling.uikit.custom.bridge.IP2PCustomActionHandler
;
...
...
@@ -117,9 +124,38 @@ public class ConfideOrderInfoView extends RelativeLayout {
void
setClick
()
{
iv_call
.
setOnClickListener
(
view
->
{
if
(
info
.
is_online
==
1
||
info
.
is_online
==
4
)
{
//通话中
//跳转专家倾述主页
ActionHandlerStorage
.
getL
(
mSessionId
).
confide
();
// if (info.is_online == 1 || info.is_online == 4) {//通话中
// //跳转专家倾述主页
// ActionHandlerStorage.getL(mSessionId).confide();
// }
if
(
Utils
.
isFastClick
())
{
return
;
}
if
(
ActionHandlerStorage
.
getL
(
mSessionId
)
!=
null
&&
ActionHandlerStorage
.
getL
(
mSessionId
).
getInfo
()
!=
null
)
{
IP2PCustomActionHandler
.
DocInfo
docInfo
=
ActionHandlerStorage
.
getL
(
mSessionId
).
getInfo
();
String
remainTime
=
docInfo
.
listenOrderRemainTime
;
if
(
TextUtils
.
isEmpty
(
remainTime
))
{
if
(
docInfo
!=
null
)
{
String
confideId
=
docInfo
.
listenerId
;
findRouteService
(
IConfideService
.
class
)
.
showExpertDetailDialog
(
(
FragmentActivity
)
mContext
,
HttpConfig
.
Companion
.
getMH5_URL
()
+
ConfideRoute
.
INSTANCE
.
h5ConfideIntro
(
confideId
),
docInfo
.
doctorId
,
docInfo
.
toUid
);
}
}
else
{
try
{
((
IConfideService
)
ARouter
.
getInstance
().
build
(
"/confide/ConfideService"
).
navigation
())
.
connectionJava
(
Integer
.
parseInt
(
docInfo
.
listenerId
)
,
3
,
ActivityManager
.
Companion
.
getInstance
().
getTopTaskActivity
(),
null
,
"3"
);
}
catch
(
Exception
e
)
{
}
}
}
});
tv_action
.
setOnClickListener
(
view
->
{
...
...
@@ -145,29 +181,12 @@ public class ConfideOrderInfoView extends RelativeLayout {
//点击整个view,跳转订单详情页面
setOnClickListener
(
view
->
{
if
(
Utils
.
isFastClick
())
{
return
;
}
String
remainTime
=
ActionHandlerStorage
.
getL
(
mSessionId
).
getInfo
().
listenOrderRemainTime
;
if
(
TextUtils
.
isEmpty
(
remainTime
))
{
Pair
<
String
,
String
>
confideId
=
new
Pair
<>(
IYDLRouterConstant
.
EXTRA_CONFIDEDID
,
info
.
listenerId
);
Pair
<
String
,
String
>
doctorId
=
new
Pair
<>(
IYDLRouterConstant
.
EXTRA_DOCTORID
,
info
.
doctorId
);
route
(
getContext
(),
ConfideRoute
.
R_CONFIDE_HOME
,
confideId
,
doctorId
);
}
else
{
if
(
info
!=
null
)
{
String
confideId
=
info
.
listenerId
;
findRouteService
(
IConfideService
.
class
)
.
showExpertDetailDialog
(
(
FragmentActivity
)
mContext
,
HttpConfig
.
Companion
.
getMH5_URL
()
+
ConfideRoute
.
INSTANCE
.
h5ConfideIntro
(
confideId
),
info
.
doctorId
,
info
.
toUid
);
}
if
(!
TextUtils
.
isEmpty
(
info
.
listenOrderUrl
))
{
H5Params
h5Params
=
new
H5Params
(
info
.
listenOrderUrl
,
"订单详情"
);
NewH5Activity
.
start
(
mContext
,
h5Params
);
}
});
}
...
...
@@ -218,5 +237,8 @@ public class ConfideOrderInfoView extends RelativeLayout {
}
private
void
toConfide
(){
}
}
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