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
3eb42a8f
Commit
3eb42a8f
authored
May 30, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:半屏webview添加cateid
parent
e893a877
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
2 deletions
+15
-2
ServiceItemBean.java
m-im/src/main/java/com/yidianling/uikit/custom/http/response/ServiceItemBean.java
+8
-0
ExpertConsultServiceListDialog.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog.kt
+3
-1
ExpertConsultServiceView.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceView.kt
+1
-0
ExpertConsultWebview.kt
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultWebview.kt
+3
-1
No files found.
m-im/src/main/java/com/yidianling/uikit/custom/http/response/ServiceItemBean.java
View file @
3eb42a8f
...
@@ -47,10 +47,17 @@ public class ServiceItemBean {
...
@@ -47,10 +47,17 @@ public class ServiceItemBean {
*/
*/
private
ProductDtoBean
productDto
;
private
ProductDtoBean
productDto
;
private
int
catenewId
;
private
ProductCategoryDtoBean
productCategoryDto
;
private
ProductCategoryDtoBean
productCategoryDto
;
private
int
isPushToBg
;
private
int
isPushToBg
;
private
List
<
ProductSpecDtosBean
>
productSpecDtos
;
private
List
<
ProductSpecDtosBean
>
productSpecDtos
;
public
int
getcatenewId
()
{
return
catenewId
;
}
public
void
setcatenewId
(
int
cateId
)
{
this
.
catenewId
=
cateId
;
}
public
ProductDtoBean
getProductDto
()
{
public
ProductDtoBean
getProductDto
()
{
return
productDto
;
return
productDto
;
}
}
...
@@ -83,6 +90,7 @@ public class ServiceItemBean {
...
@@ -83,6 +90,7 @@ public class ServiceItemBean {
this
.
productSpecDtos
=
productSpecDtos
;
this
.
productSpecDtos
=
productSpecDtos
;
}
}
public
static
class
ProductDtoBean
{
public
static
class
ProductDtoBean
{
/**
/**
* id : 91170418024616
* id : 91170418024616
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceListDialog.kt
View file @
3eb42a8f
...
@@ -32,7 +32,8 @@ import kotlinx.android.synthetic.main.im_expert_consult_service_list_dialog_layo
...
@@ -32,7 +32,8 @@ import kotlinx.android.synthetic.main.im_expert_consult_service_list_dialog_layo
*
*
* @param mIsBusy 咨询师是否是繁忙状态
* @param mIsBusy 咨询师是否是繁忙状态
*/
*/
class
ExpertConsultServiceListDialog
(
val
mContext
:
Context
,
val
mList
:
List
<
ServiceItemBean
>,
val
mIsBusy
:
Boolean
,
val
toUid
:
String
,
val
doctorID
:
String
):
Dialog
(
mContext
,
R
.
style
.
dialog_default_style
)
{
class
ExpertConsultServiceListDialog
(
val
mContext
:
Context
,
val
mList
:
List
<
ServiceItemBean
>,
val
mIsBusy
:
Boolean
,
val
toUid
:
String
,
val
doctorID
:
String
):
Dialog
(
mContext
,
R
.
style
.
dialog_default_style
)
{
private
var
mConsultServiceListView
:
ExpertConsultServiceView
?
=
null
private
var
mConsultServiceListView
:
ExpertConsultServiceView
?
=
null
private
var
mConsultServiceDetailView
:
ExpertConsultServiceDetailView
?
=
null
private
var
mConsultServiceDetailView
:
ExpertConsultServiceDetailView
?
=
null
...
@@ -70,6 +71,7 @@ class ExpertConsultServiceListDialog(val mContext: Context, val mList: List<Serv
...
@@ -70,6 +71,7 @@ class ExpertConsultServiceListDialog(val mContext: Context, val mList: List<Serv
// mConsultServiceDetailView?.updateData(serviceBean)
// mConsultServiceDetailView?.updateData(serviceBean)
// dialog_bottom_scroll_view.currentItem = 1
// dialog_bottom_scroll_view.currentItem = 1
// }
// }
mWebviewView
?.
setData
(
serviceBean
)
mWebviewView
?.
setData
(
serviceBean
)
dialog_bottom_scroll_view
.
currentItem
=
1
dialog_bottom_scroll_view
.
currentItem
=
1
}
}
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultServiceView.kt
View file @
3eb42a8f
...
@@ -121,6 +121,7 @@ class ExpertConsultServiceView : LinearLayout {
...
@@ -121,6 +121,7 @@ class ExpertConsultServiceView : LinearLayout {
if
(
itemBean
.
cateName
==
mTypeList
[
typeSelectedIndex
]
||
typeSelectedIndex
==
0
)
{
if
(
itemBean
.
cateName
==
mTypeList
[
typeSelectedIndex
]
||
typeSelectedIndex
==
0
)
{
itemBean
.
products
.
forEach
{
itemBean
.
products
.
forEach
{
lastList
.
add
(
it
)
lastList
.
add
(
it
)
it
.
setcatenewId
(
itemBean
.
cateId
)
}
}
}
}
}
}
...
...
m-im/src/main/java/com/yidianling/uikit/custom/widget/expertConsultService/view/ExpertConsultWebview.kt
View file @
3eb42a8f
...
@@ -23,6 +23,7 @@ import com.yidianling.uikit.custom.widget.expertConsultService.callback.ConsultS
...
@@ -23,6 +23,7 @@ import com.yidianling.uikit.custom.widget.expertConsultService.callback.ConsultS
class
ExpertConsultWebview
:
RelativeLayout
{
class
ExpertConsultWebview
:
RelativeLayout
{
private
var
doctorID
:
String
private
var
doctorID
:
String
private
lateinit
var
productBean
:
ServiceItemBean
.
ProductsBean
private
lateinit
var
productBean
:
ServiceItemBean
.
ProductsBean
private
var
cateID
:
Int
=
0
private
var
jumpUrl
=
""
private
var
jumpUrl
=
""
private
lateinit
var
wv_content
:
ProgressWebView
private
lateinit
var
wv_content
:
ProgressWebView
constructor
(
context
:
Context
,
doctorID
:
String
)
:
super
(
context
)
{
constructor
(
context
:
Context
,
doctorID
:
String
)
:
super
(
context
)
{
...
@@ -48,8 +49,9 @@ class ExpertConsultWebview : RelativeLayout {
...
@@ -48,8 +49,9 @@ class ExpertConsultWebview : RelativeLayout {
fun
setData
(
productBean
:
ServiceItemBean
.
ProductsBean
)
{
fun
setData
(
productBean
:
ServiceItemBean
.
ProductsBean
)
{
this
.
productBean
=
productBean
this
.
productBean
=
productBean
// this.cateID=cateid
jumpUrl
=
jumpUrl
=
HttpConfig
.
MH5_URL
+
"wb/product/chat/template?doctorId=${doctorID}&productId=${productBean.productDto.id}"
HttpConfig
.
MH5_URL
+
"wb/product/chat/template?doctorId=${doctorID}&
cateId=${productBean.getcatenewId()}&
productId=${productBean.productDto.id}"
val
jtoJHandle
=
WebModularServiceUtils
.
getWebService
()
val
jtoJHandle
=
WebModularServiceUtils
.
getWebService
()
.
getJavascripHandler
(
mContext
as
Activity
,
tellData
=
TellData
())
.
getJavascripHandler
(
mContext
as
Activity
,
tellData
=
TellData
())
val
url
=
WebUrlParamsUtils
.
getSuffix
(
jumpUrl
,
jtoJHandle
.
getUriAppendSuffix
())
val
url
=
WebUrlParamsUtils
.
getSuffix
(
jumpUrl
,
jtoJHandle
.
getUriAppendSuffix
())
...
...
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