Commit 463b89e1 by 范玉宾

add article title for writedata

parent 693e5fca
......@@ -532,7 +532,7 @@ public class WVClickAbstractListener implements WebViewClientClickListener {
@Override
public void showCommentArticleDialog(H5JsBean.H5JsCmd.Params params) {
if (mContext instanceof NewH5Activity){
((NewH5Activity)mContext).showCommentArticleDialog();
((NewH5Activity)mContext).showCommentArticleDialog(params.getTitle());
}
}
......
ext {
dev_mode = false //组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.15-lo"
ydl2PublishVersion = "0.2.0.18-local"
ydlPublishVersion = [
// -------------- 业务模块 --------------
//第三步 若干
......
......@@ -1545,9 +1545,10 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
}
public void showCommentArticleDialog(){
public void showCommentArticleDialog(String title){
if (commentArticleDialog == null) {
commentArticleDialog = ArticleDialogFragment.newInstance(wv_content.getTitle());
String titleStr = title==null?wv_content.getTitle():title;
commentArticleDialog = ArticleDialogFragment.newInstance(titleStr);
commentArticleDialog.setOnPublishListener(comment -> {
callJSFunc("sendComment('"+comment+"')");
});
......
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