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
df05c6eb
Commit
df05c6eb
authored
May 30, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:JS方法添加
parent
3eb42a8f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
9 deletions
+32
-9
WVClickAbstractListener.java
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
+8
-0
WebJavascriptHandler.kt
app/src/main/java/com/ydl/component/service/web/WebJavascriptHandler.kt
+5
-0
WebViewClientClickListener.java
app/src/main/java/com/ydl/component/service/web/WebViewClientClickListener.java
+3
-0
CloseBottomWebviewEvent.kt
m-im/src/main/java/com/yidianling/im/event/CloseBottomWebviewEvent.kt
+4
-0
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+4
-0
ExpertConsultServiceListDialog.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog.kt
+8
-9
No files found.
app/src/main/java/com/ydl/component/service/web/WVClickAbstractListener.java
View file @
df05c6eb
...
...
@@ -11,6 +11,9 @@ import com.ydl.webview.NewH5Activity;
import
com.ydl.ydlcommon.modular.ModularServiceManager
;
import
com.yidianling.common.tools.LogUtil
;
import
com.yidianling.im.api.service.IImService
;
import
com.yidianling.im.event.CloseBottomWebviewEvent
;
import
de.greenrobot.event.EventBus
;
/**
* webview 点击事件监听 抽象类
...
...
@@ -446,5 +449,10 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
}
}
@Override
public
void
chatCloseBottomWebView
()
{
EventBus
.
getDefault
().
post
(
new
CloseBottomWebviewEvent
(
true
));
}
}
app/src/main/java/com/ydl/component/service/web/WebJavascriptHandler.kt
View file @
df05c6eb
...
...
@@ -381,6 +381,11 @@ class WebJavascriptHandler : IJavascriptHandler{
wvEnventPro
?.
setSelfPageType
(
it
.
selfPageType
)
}
}
"chat_close_bottom_webview"
->
{
jsData
.
cmd
!!
.
params
?.
let
{
wvEnventPro
?.
setSelfPageType
(
it
.
selfPageType
)
}
}
}
}
}
app/src/main/java/com/ydl/component/service/web/WebViewClientClickListener.java
View file @
df05c6eb
...
...
@@ -182,4 +182,7 @@ public interface WebViewClientClickListener {
//设置当前页面类型
void
setSelfPageType
(
int
selfType
);
//关闭私聊窗口立即咨询webview
void
chatCloseBottomWebView
();
}
m-im/src/main/java/com/yidianling/im/event/CloseBottomWebviewEvent.kt
0 → 100644
View file @
df05c6eb
package
com.yidianling.im.event
data class
CloseBottomWebviewEvent
(
var
close
:
Boolean
)
\ No newline at end of file
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
df05c6eb
...
...
@@ -71,6 +71,7 @@ import com.yidianling.common.tools.ToastUtil;
import
com.yidianling.im.R
;
import
com.yidianling.im.bean.RemoveHistory
;
import
com.yidianling.im.config.constants.ImConstants
;
import
com.yidianling.im.event.CloseBottomWebviewEvent
;
import
com.yidianling.im.event.MultipleAnswerBean
;
import
com.yidianling.im.event.MultipleSelectedEvent
;
import
com.yidianling.im.helper.IMChatUtil
;
...
...
@@ -1153,6 +1154,9 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
answerMultipleQuestion
(
multipleAnswerBean
);
}
}
public
void
onEvent
(
CloseBottomWebviewEvent
event
){
expertConsultServiceListDialog
.
changeItem
();
}
private
void
updateLocalMsg
(
Integer
position
,
ArrayList
<
String
>
selectedPosition
)
{
IMMessage
message
=
ImIn
.
INSTANCE
.
getImMessage
();
//更新本地消息
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog.kt
View file @
df05c6eb
package
com.yidianling.uikit.custom.widget.expertConsultService.view
import
`in`.srain.cube.views.GridViewWithHeaderAndFooter
import
android.app.Dialog
import
android.content.Context
import
android.os.Bundle
...
...
@@ -17,7 +16,6 @@ import com.netease.nimlib.sdk.msg.constant.SessionTypeEnum
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.common.tools.RxDeviceTool
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.im.R
import
com.yidianling.im.session.extension.CustomAttachSubScriptTime
import
com.yidianling.uikit.business.session.helper.MessageListPanelHelper
...
...
@@ -36,11 +34,12 @@ class ExpertConsultServiceListDialog(val mContext: Context, val mList: List<Serv
val
toUid
:
String
,
val
doctorID
:
String
):
Dialog
(
mContext
,
R
.
style
.
dialog_default_style
)
{
private
var
mConsultServiceListView
:
ExpertConsultServiceView
?
=
null
private
var
mConsultServiceDetailView
:
ExpertConsultServiceDetailView
?
=
null
private
var
mWebviewView
:
ExpertConsultWebview
?
=
null
private
var
mViewList
:
ArrayList
<
View
>
=
ArrayList
()
private
var
mSelectType
:
String
=
"全部"
fun
changeItem
(){
dialog_bottom_scroll_view
.
currentItem
=
0
}
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
...
...
@@ -103,11 +102,11 @@ class ExpertConsultServiceListDialog(val mContext: Context, val mList: List<Serv
mViewList
.
add
(
mConsultServiceListView
as
View
)
mConsultServiceDetailView
=
ExpertConsultServiceDetailView
(
mContext
,
object
:
ConsultServiceViewCallback
{
override
fun
onBackClick
()
{
dialog_bottom_scroll_view
.
currentItem
=
0
}
},
mIsBusy
,
toUid
)
//
mConsultServiceDetailView = ExpertConsultServiceDetailView(mContext, object : ConsultServiceViewCallback {
//
override fun onBackClick() {
//
dialog_bottom_scroll_view.currentItem = 0
//
}
//
},mIsBusy,toUid)
// mViewList.add(mConsultServiceDetailView as View)
mWebviewView
=
ExpertConsultWebview
(
mContext
,
doctorID
=
doctorID
)
...
...
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