Commit fc86b7af by 范玉宾

commentList share done

parent 4be77c5d
......@@ -23,10 +23,10 @@ ext {
//mdt 组件
"ydl-tuicore" : "0.0.25",
//第一步
"ydl-platform" : "0.0.41.44",
"ydl-platform" : "0.0.41.48",
//第二步 若干
"ydl-webview" : "0.0.38.96",
"ydl-webview" : "0.0.38.97",
"ydl-media" : "0.0.21.52",
"ydl-pay" : "0.0.18.21",
"m-audioim" : "0.0.49.30.23",
......@@ -110,10 +110,10 @@ ext {
//mdt 组件
"ydl-tuicore" : "0.0.25",
//第一步
"ydl-platform" : "0.0.41.44",
"ydl-platform" : "0.0.41.48",
//第二步 若干
"ydl-webview" : "0.0.38.96",
"ydl-webview" : "0.0.38.97",
"ydl-media" : "0.0.21.52",
"ydl-pay" : "0.0.18.21",
"m-audioim" : "0.0.49.30.23",
......
......@@ -17,6 +17,8 @@ class ShareData : Serializable {
// just for Meditation
var type:String? = null
var isDarkMode = false
// 兼容评价列表分享H5传参数据结构
var imageBase64:String?=null
//分享到动态url
var url: String? = null
......
......@@ -41,6 +41,7 @@ import com.ydl.view.ShareMeditationDialog;
import com.ydl.ydl_router.manager.YDLRouterManager;
import com.ydl.ydlcommon.base.BaseActivity;
import com.ydl.ydlcommon.base.BaseApp;
import com.ydl.ydlcommon.bean.ShareData;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.ydl.ydlcommon.event.MeditationEvent;
import com.ydl.ydlcommon.modular.ModularServiceManager;
......@@ -118,6 +119,8 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
protected String shareTitle;
protected String shareDesc;
private String cover;
// 评价2.0新增字段 区分评价列表
private H5JsBean.H5JsCmd.Params paramsForCommentList;
private boolean isDarkMode = false;
......@@ -521,6 +524,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
shareTitle = params.getShare().getTitle();
shareDesc = params.getShare().getDesc();
cover = params.getShare().getCover();
paramsForCommentList = params;
LogUtil.d("title: " + shareTitle + " url: " + shareUrl + " desc: " + shareDesc + " cover: " + cover);
new Handler(getMainLooper()).post(() -> initShareMenu());
}
......@@ -547,9 +551,6 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
shareMeditationDialog.show(getSupportFragmentManager(),"share_meditation");
}
}else {
if ("commentList".equals(params.getShare().getType())) {
ActionCountUtils.Companion.baiDuCountSign3("experts_comment_list_page", "comment_share_click", "", "", "");
}
purl = params.getShare().getUrl();
shareUrl = params.getShare().getShare_url();
shareTitle = params.getShare().getTitle();
......@@ -1051,7 +1052,13 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
private void initShareMenu() {
tb_title.setRightIcon(getResources().getDrawable(R.drawable.web_common_share));
tb_title.setOnRightTextClick((view, isActive) -> {
ShareData shareData = paramsForCommentList.getShare();
if (shareData!=null && "commentList".equals(shareData.getType())){
ActionCountUtils.Companion.baiDuCountSign3("experts_comment_list_page", "comment_share_click", "", "", "");
share(shareData.getImageBase64(),paramsForCommentList);
}else {
share(null, null);
}
});
LogUtil.d("setSeccessful");
}
......
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