Commit fe2aab27 by 刘鹏

feat : 点击头像跳转医生详情

parent 4d2fb21f
...@@ -11,7 +11,7 @@ ext { ...@@ -11,7 +11,7 @@ ext {
"m-user" : "0.0.61.90", "m-user" : "0.0.61.90",
"m-user-medical" : "0.0.61.99", "m-user-medical" : "0.0.61.99",
"m-home" : "0.0.22.70", "m-home" : "0.0.22.70",
"m-im-medical" : "0.0.20.88", "m-im-medical" : "0.0.20.92",
"m-im" : "0.0.20.76", "m-im" : "0.0.20.76",
"m-dynamic" : "0.0.7.28", "m-dynamic" : "0.0.7.28",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
...@@ -97,7 +97,7 @@ ext { ...@@ -97,7 +97,7 @@ ext {
"m-user" : "0.0.61.90", "m-user" : "0.0.61.90",
"m-user-medical" : "0.0.61.99", "m-user-medical" : "0.0.61.99",
"m-home" : "0.0.22.70", "m-home" : "0.0.22.70",
"m-im-medical" : "0.0.20.88", "m-im-medical" : "0.0.20.92",
"m-im" : "0.0.20.76", "m-im" : "0.0.20.76",
"m-dynamic" : "0.0.7.28", "m-dynamic" : "0.0.7.28",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -11,6 +11,7 @@ import androidx.appcompat.app.AppCompatActivity; ...@@ -11,6 +11,7 @@ import androidx.appcompat.app.AppCompatActivity;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.View; import android.view.View;
import com.alibaba.android.arouter.launcher.ARouter;
import com.google.gson.internal.LinkedTreeMap; import com.google.gson.internal.LinkedTreeMap;
import com.netease.nimlib.sdk.NIMClient; import com.netease.nimlib.sdk.NIMClient;
import com.netease.nimlib.sdk.RequestCallback; import com.netease.nimlib.sdk.RequestCallback;
...@@ -646,7 +647,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -646,7 +647,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
showCallDialog(); showCallDialog();
break; break;
case "访问专家主页": case "访问专家主页":
// skip2ExpertHome(); skip2ExpertHome();
break; break;
case "历史聊天记录": case "历史聊天记录":
historyMsg(); historyMsg();
...@@ -753,21 +754,11 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -753,21 +754,11 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
private void skip2ExpertHome() { private void skip2ExpertHome() {
// 跳转到专家主页 // 跳转到专家主页
if (docInfo.doctorId != null) { if (docInfo.doctorId != null) {
String junmpurl = ImIn.INSTANCE.getExpertHost() + docInfo.doctorId; // 跳转到专家主页
String share_title = docInfo.name + "咨询工作室"; ARouter.getInstance()
String share_head = docInfo.cover; .build("/app/doctorDetail")
String share_context = ""; .withInt("doctorId", Integer.valueOf(docInfo.doctorId))
String share_url = ImIn.INSTANCE.getShareExpertHost() + docInfo.doctorId; .navigation();
H5Params h5Params = new H5Params(junmpurl, null);
if (!TextUtils.isEmpty(share_url)) {
ShareData shareData1 = new ShareData(junmpurl, share_title, share_head, share_context);
h5Params.setShareData(shareData1);
}
h5Params.setShowMenu(true);
if (mActivity != null) {
NewH5Activity.start(mActivity, h5Params);
}
} }
} }
...@@ -929,7 +920,8 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -929,7 +920,8 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
@Override @Override
public void showZhuanjPage() { public void showZhuanjPage() {
// skip2ExpertHome(); // 跳转到专家主页
skip2ExpertHome();
} }
/** /**
......
...@@ -44,7 +44,7 @@ class MsgViewHolderInquiryreceive(adapter: BaseMultiItemFetchLoadAdapter<*, *>?) ...@@ -44,7 +44,7 @@ class MsgViewHolderInquiryreceive(adapter: BaseMultiItemFetchLoadAdapter<*, *>?)
item?.setOnClickListener { view: View? -> item?.setOnClickListener { view: View? ->
NewH5Activity.start( NewH5Activity.start(
view!!.context, H5Params( view!!.context, H5Params(
"${HttpConfig.MEDICAL_H5URL}ct/orderDetails?orderId=${itemBean?.keyFromOrderid}&hideNavBar=1", "${HttpConfig.MEDICAL_H5URL}ct/inquiry/order/details?orderId=${itemBean?.keyFromOrderid}&hideNavBar=1",
null null
) )
) )
......
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