Commit 3eb42a8f by 霍志良

feat:半屏webview添加cateid

parent e893a877
...@@ -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
......
...@@ -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
} }
......
...@@ -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)
} }
} }
} }
......
...@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment