Authored by chenly5

文章查看详情页面添加信息流结构和分发渠道字段

... ... @@ -1538,6 +1538,9 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
String isPublished = grassArticle.getCreateTime() >= System.currentTimeMillis() ? "N" : "Y";
rspBo.setHasPublished(isPublished);
rspBo.setSort(grassArticle.getSort());
//分发渠道,信息流结构
rspBo.setDispatchChannel(grassArticle.getDispatchChannel());
rspBo.setFlowType(grassArticle.getFlowType());
//1)文章内容
List<GrassArticleBlock> grassArticleContentList = grassArticleBlockDao.selectByArticleId(articleId);
List<String> imageList = new ArrayList<>();
... ...
... ... @@ -29,6 +29,10 @@
<br>
内容来源: <span id="sourceStr"></span>
<br>
分发渠道:<span id="dispatchChannelDetail"></span>
<br>
信息流结构:<span id="flowTypeDetail"></span>
<br>
内容统计: 文字-<span id="contentLength" ></span>&nbsp;&nbsp;&nbsp; 图片-<span
id="imgSize"></span>&nbsp;&nbsp;&nbsp;关联商品-<span id="productSize"></span>
<br>
... ... @@ -159,6 +163,29 @@
var detailInfo = data.data;
$("#authorUid").html(detailInfo.authorUid);
$("#nickName").html(detailInfo.nickName);
//分发渠道
var dispatchChannelStr = "";
var dispatchChannelDetail = detailInfo.dispatchChannel;
if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
dispatchChannelStr = "全部";
// $("#authBtn").attr("style", "display:block");
} else if (dispatchChannelDetail == 1) {
dispatchChannelStr = "社区";
} else if (dispatchChannelDetail == '2') {
dispatchChannelStr = "导购";
}
$("#dispatchChannelDetail").html(dispatchChannelStr);
//信息流结构
var flowTypeStr = "";
var flowTypeDetail = detailInfo.flowType;
if (flowTypeDetail == null || flowTypeDetail == 1) {
flowTypeStr = "长图";
// $("#authBtn").attr("style", "display:block");
} else if (flowTypeDetail == 2) {
flowTypeStr = "方图";
}
$("#flowTypeDetail").html(flowTypeStr);
$("#sourceStr").html(detailInfo.sourceStr);
$("#contentLength").html(detailInfo.articleContent == null ? 0 : detailInfo.articleContent.length);
$("#articleContent").html(detailInfo.articleContent == null || detailInfo.articleContent.length == 0 ? "空" : detailInfo.articleContent);
... ...
... ... @@ -23,6 +23,10 @@
用户uid: <span id="authorUid"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;昵称:<span
id="nickName" style="margin-left: 10px"></span>
<br>
分发渠道:<span id="dispatchChannelDetail"></span>
<br>
信息流结构:<span id="flowTypeDetail"></span>
<br>
内容来源: <span id="sourceStr"></span>
<br>
<br>
... ... @@ -101,6 +105,9 @@
</td>
</tr>
<tr style=",height: 60px">
<td id="goodstd">
<div style="float: left;margin-left: 30px">
... ... @@ -200,6 +207,29 @@
debugger;
var detailInfo = data.data;
$("#authorUid").html(detailInfo.authorUid);
//分发渠道
var dispatchChannelStr = "";
var dispatchChannelDetail = detailInfo.dispatchChannel;
if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
dispatchChannelStr = "全部";
// $("#authBtn").attr("style", "display:block");
} else if (dispatchChannelDetail == 1) {
dispatchChannelStr = "社区";
} else if (dispatchChannelDetail == '2') {
dispatchChannelStr = "导购";
}
$("#dispatchChannelDetail").html(dispatchChannelStr);
//信息流结构
var flowTypeStr = "";
var flowTypeDetail = detailInfo.flowType;
if (flowTypeDetail == null || flowTypeDetail == 1) {
flowTypeStr = "长图";
// $("#authBtn").attr("style", "display:block");
} else if (flowTypeDetail == 2) {
flowTypeStr = "方图";
}
$("#flowTypeDetail").html(flowTypeStr);
$("#nickName").html(detailInfo.nickName);
$("#sourceStr").html(detailInfo.sourceStr);
$("#title").html(detailInfo.articleTitle);
... ...
... ... @@ -18,6 +18,10 @@
内容类型:长文章<br>
内容来源: <span id="sourceStr"></span>
<br>
分发渠道:<span id="dispatchChannelDetail"></span>
<br>
信息流结构:<span id="flowTypeDetail"></span>
<br>
版权声明: <span id="copyright"></span>
<br>
审核状态:<strong><span id="authStatusStr" style="font-size: 14px"></span></strong>
... ... @@ -133,6 +137,31 @@
debugger;
var detailInfo = data.data;
$("#authorUid").html(detailInfo.authorUid);
//分发渠道
var dispatchChannelStr = "";
var dispatchChannelDetail = detailInfo.dispatchChannel;
if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
dispatchChannelStr = "全部";
// $("#authBtn").attr("style", "display:block");
} else if (dispatchChannelDetail == 1) {
dispatchChannelStr = "社区";
} else if (dispatchChannelDetail == '2') {
dispatchChannelStr = "导购";
}
$("#dispatchChannelDetail").html(dispatchChannelStr);
//信息流结构
var flowTypeStr = "";
var flowTypeDetail = detailInfo.flowType;
if (flowTypeDetail == null || flowTypeDetail == 1) {
flowTypeStr = "长图";
// $("#authBtn").attr("style", "display:block");
} else if (flowTypeDetail == 2) {
flowTypeStr = "方图";
}
$("#dispatchChannelDetail").html(dispatchChannelStr);
$("#flowTypeDetail").html(flowTypeStr);
$("#nickName").html(detailInfo.nickName);
$("#sourceStr").html(detailInfo.sourceStr);
... ...
... ... @@ -28,6 +28,10 @@
内容类型:长文章<br>
内容来源: <span id="sourceStr"></span>
<br>
分发渠道:<span id="dispatchChannelDetail"></span>
<br>
信息流结构:<span id="flowTypeDetail"></span>
<br>
版权声明: <span id="copyright"></span>
<br>
审核状态:<span id="authStatusStr"></span>
... ... @@ -110,6 +114,30 @@
var detailInfo = data.data;
$("#authorUid").html(detailInfo.authorUid);
$("#nickName").html(detailInfo.nickName);
//分发渠道
var dispatchChannelStr = "";
var dispatchChannelDetail = detailInfo.dispatchChannel;
if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
dispatchChannelStr = "全部";
// $("#authBtn").attr("style", "display:block");
} else if (dispatchChannelDetail == 1) {
dispatchChannelStr = "社区";
} else if (dispatchChannelDetail == '2') {
dispatchChannelStr = "导购";
}
$("#dispatchChannelDetail").html(dispatchChannelStr);
//信息流结构
var flowTypeStr = "";
var flowTypeDetail = detailInfo.flowType;
if (flowTypeDetail == null || flowTypeDetail == 1) {
flowTypeStr = "长图";
// $("#authBtn").attr("style", "display:block");
} else if (flowTypeDetail == 2) {
flowTypeStr = "方图";
}
$("#flowTypeDetail").html(flowTypeStr);
$("#sourceStr").html(detailInfo.sourceStr);
if(detailInfo.sort == '2'){
$("#content").html(detailInfo.articleContent == null || detailInfo.articleContent.length == 0 ? "空" : handleGoodsAfterEdit(detailInfo.articleContent));
... ...