\n<\/div>"}],"programId":"a0f2f348b985442d84245a338294cf77","voteSubjectId":""};
console.log(detailObj)
vodVideoId = detailObj.id;
$("#objId").val(detailObj.id);
//评论对象的id
shareInfo.bdText = "一句话新闻";
shareInfo.bdDesc = "一句话新闻";
shareInfo.bdPic = "https:\/\/picture.gxtv.cn\/gxtvimg\/2024\/11\/9\/cf4644cd5d134295a92fa6642a5d5170.png";
var shareData = {
title: "一句话新闻",
desc: "一句话新闻",
link: window.location.href.split('#')[0],
imgUrl: "https:\/\/picture.gxtv.cn\/gxtvimg\/2024\/11\/9\/cf4644cd5d134295a92fa6642a5d5170.png"
};
wxShare(shareData);
if (detailObj.comment === 0 || detailObj.comment === '0') {
showCommentData("0", detailObj.id);
//评论公共js(https://www.gxtv.cn/static/web/js/gxtv.comment.js)中的方法
} else if (detailObj.comment === "1" || detailObj.comment === 1) {
$("#Comments").hide();
}
//detailObj.voteSubjectId="8631db9a037046fd8fe585689fb46333";
if (detailObj.voteSubjectId !== null && detailObj.voteSubjectId !== undefined && detailObj.voteSubjectId !== "") {
initVoteComponent(detailObj.voteSubjectId);
}
getArticleContent({data: detailObj});
clickRecord(detailObj.id, 0);
try {
window['gxtv_dsj'].browseContentPage(null, detailObj.id, detailObj.title, detailObj.source, false, "文稿","文稿");
} catch(err) {
console.log(err);
}
// 发表评论
/*$("#sendComments").on("click", function () {
var commentContent = $("#commentContent").val();
if (commentContent.trim() == "") {
layer.msg("请填写评论内容");
return false;
}
var token = http.getCookie("token");
if (token == "" || $.trim(token).length == 0 || token == undefined) {
ShowLoginForm();
return;
}
http.post("memberApi/comment/addComment", $('#ajaxform').serialize(), function (data) {
if (data.successful) {
layer.msg(data.message);
$("#commentContent").empty();
}
});
});*/
});