Commit fe2aab27 by 刘鹏

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

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