Authored by chenly5

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

@@ -1538,6 +1538,9 @@ public class GrassArticleServiceImpl implements IGrassArticleService { @@ -1538,6 +1538,9 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
1538 String isPublished = grassArticle.getCreateTime() >= System.currentTimeMillis() ? "N" : "Y"; 1538 String isPublished = grassArticle.getCreateTime() >= System.currentTimeMillis() ? "N" : "Y";
1539 rspBo.setHasPublished(isPublished); 1539 rspBo.setHasPublished(isPublished);
1540 rspBo.setSort(grassArticle.getSort()); 1540 rspBo.setSort(grassArticle.getSort());
  1541 + //分发渠道,信息流结构
  1542 + rspBo.setDispatchChannel(grassArticle.getDispatchChannel());
  1543 + rspBo.setFlowType(grassArticle.getFlowType());
1541 //1)文章内容 1544 //1)文章内容
1542 List<GrassArticleBlock> grassArticleContentList = grassArticleBlockDao.selectByArticleId(articleId); 1545 List<GrassArticleBlock> grassArticleContentList = grassArticleBlockDao.selectByArticleId(articleId);
1543 List<String> imageList = new ArrayList<>(); 1546 List<String> imageList = new ArrayList<>();
@@ -29,6 +29,10 @@ @@ -29,6 +29,10 @@
29 <br> 29 <br>
30 内容来源: <span id="sourceStr"></span> 30 内容来源: <span id="sourceStr"></span>
31 <br> 31 <br>
  32 + 分发渠道:<span id="dispatchChannelDetail"></span>
  33 + <br>
  34 + 信息流结构:<span id="flowTypeDetail"></span>
  35 + <br>
32 内容统计: 文字-<span id="contentLength" ></span>&nbsp;&nbsp;&nbsp; 图片-<span 36 内容统计: 文字-<span id="contentLength" ></span>&nbsp;&nbsp;&nbsp; 图片-<span
33 id="imgSize"></span>&nbsp;&nbsp;&nbsp;关联商品-<span id="productSize"></span> 37 id="imgSize"></span>&nbsp;&nbsp;&nbsp;关联商品-<span id="productSize"></span>
34 <br> 38 <br>
@@ -159,6 +163,29 @@ @@ -159,6 +163,29 @@
159 var detailInfo = data.data; 163 var detailInfo = data.data;
160 $("#authorUid").html(detailInfo.authorUid); 164 $("#authorUid").html(detailInfo.authorUid);
161 $("#nickName").html(detailInfo.nickName); 165 $("#nickName").html(detailInfo.nickName);
  166 + //分发渠道
  167 + var dispatchChannelStr = "";
  168 + var dispatchChannelDetail = detailInfo.dispatchChannel;
  169 + if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
  170 + dispatchChannelStr = "全部";
  171 +// $("#authBtn").attr("style", "display:block");
  172 + } else if (dispatchChannelDetail == 1) {
  173 + dispatchChannelStr = "社区";
  174 + } else if (dispatchChannelDetail == '2') {
  175 + dispatchChannelStr = "导购";
  176 + }
  177 + $("#dispatchChannelDetail").html(dispatchChannelStr);
  178 +
  179 + //信息流结构
  180 + var flowTypeStr = "";
  181 + var flowTypeDetail = detailInfo.flowType;
  182 + if (flowTypeDetail == null || flowTypeDetail == 1) {
  183 + flowTypeStr = "长图";
  184 +// $("#authBtn").attr("style", "display:block");
  185 + } else if (flowTypeDetail == 2) {
  186 + flowTypeStr = "方图";
  187 + }
  188 + $("#flowTypeDetail").html(flowTypeStr);
162 $("#sourceStr").html(detailInfo.sourceStr); 189 $("#sourceStr").html(detailInfo.sourceStr);
163 $("#contentLength").html(detailInfo.articleContent == null ? 0 : detailInfo.articleContent.length); 190 $("#contentLength").html(detailInfo.articleContent == null ? 0 : detailInfo.articleContent.length);
164 $("#articleContent").html(detailInfo.articleContent == null || detailInfo.articleContent.length == 0 ? "空" : detailInfo.articleContent); 191 $("#articleContent").html(detailInfo.articleContent == null || detailInfo.articleContent.length == 0 ? "空" : detailInfo.articleContent);
@@ -23,6 +23,10 @@ @@ -23,6 +23,10 @@
23 用户uid: <span id="authorUid"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;昵称:<span 23 用户uid: <span id="authorUid"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;昵称:<span
24 id="nickName" style="margin-left: 10px"></span> 24 id="nickName" style="margin-left: 10px"></span>
25 <br> 25 <br>
  26 + 分发渠道:<span id="dispatchChannelDetail"></span>
  27 + <br>
  28 + 信息流结构:<span id="flowTypeDetail"></span>
  29 + <br>
26 内容来源: <span id="sourceStr"></span> 30 内容来源: <span id="sourceStr"></span>
27 <br> 31 <br>
28 <br> 32 <br>
@@ -101,6 +105,9 @@ @@ -101,6 +105,9 @@
101 </td> 105 </td>
102 106
103 </tr> 107 </tr>
  108 +
  109 +
  110 +
104 <tr style=",height: 60px"> 111 <tr style=",height: 60px">
105 <td id="goodstd"> 112 <td id="goodstd">
106 <div style="float: left;margin-left: 30px"> 113 <div style="float: left;margin-left: 30px">
@@ -200,6 +207,29 @@ @@ -200,6 +207,29 @@
200 debugger; 207 debugger;
201 var detailInfo = data.data; 208 var detailInfo = data.data;
202 $("#authorUid").html(detailInfo.authorUid); 209 $("#authorUid").html(detailInfo.authorUid);
  210 + //分发渠道
  211 + var dispatchChannelStr = "";
  212 + var dispatchChannelDetail = detailInfo.dispatchChannel;
  213 + if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
  214 + dispatchChannelStr = "全部";
  215 +// $("#authBtn").attr("style", "display:block");
  216 + } else if (dispatchChannelDetail == 1) {
  217 + dispatchChannelStr = "社区";
  218 + } else if (dispatchChannelDetail == '2') {
  219 + dispatchChannelStr = "导购";
  220 + }
  221 + $("#dispatchChannelDetail").html(dispatchChannelStr);
  222 +
  223 + //信息流结构
  224 + var flowTypeStr = "";
  225 + var flowTypeDetail = detailInfo.flowType;
  226 + if (flowTypeDetail == null || flowTypeDetail == 1) {
  227 + flowTypeStr = "长图";
  228 +// $("#authBtn").attr("style", "display:block");
  229 + } else if (flowTypeDetail == 2) {
  230 + flowTypeStr = "方图";
  231 + }
  232 + $("#flowTypeDetail").html(flowTypeStr);
203 $("#nickName").html(detailInfo.nickName); 233 $("#nickName").html(detailInfo.nickName);
204 $("#sourceStr").html(detailInfo.sourceStr); 234 $("#sourceStr").html(detailInfo.sourceStr);
205 $("#title").html(detailInfo.articleTitle); 235 $("#title").html(detailInfo.articleTitle);
@@ -18,6 +18,10 @@ @@ -18,6 +18,10 @@
18 内容类型:长文章<br> 18 内容类型:长文章<br>
19 内容来源: <span id="sourceStr"></span> 19 内容来源: <span id="sourceStr"></span>
20 <br> 20 <br>
  21 + 分发渠道:<span id="dispatchChannelDetail"></span>
  22 + <br>
  23 + 信息流结构:<span id="flowTypeDetail"></span>
  24 + <br>
21 版权声明: <span id="copyright"></span> 25 版权声明: <span id="copyright"></span>
22 <br> 26 <br>
23 审核状态:<strong><span id="authStatusStr" style="font-size: 14px"></span></strong> 27 审核状态:<strong><span id="authStatusStr" style="font-size: 14px"></span></strong>
@@ -133,6 +137,31 @@ @@ -133,6 +137,31 @@
133 debugger; 137 debugger;
134 var detailInfo = data.data; 138 var detailInfo = data.data;
135 $("#authorUid").html(detailInfo.authorUid); 139 $("#authorUid").html(detailInfo.authorUid);
  140 +
  141 + //分发渠道
  142 + var dispatchChannelStr = "";
  143 + var dispatchChannelDetail = detailInfo.dispatchChannel;
  144 + if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
  145 + dispatchChannelStr = "全部";
  146 +// $("#authBtn").attr("style", "display:block");
  147 + } else if (dispatchChannelDetail == 1) {
  148 + dispatchChannelStr = "社区";
  149 + } else if (dispatchChannelDetail == '2') {
  150 + dispatchChannelStr = "导购";
  151 + }
  152 + $("#dispatchChannelDetail").html(dispatchChannelStr);
  153 +
  154 + //信息流结构
  155 + var flowTypeStr = "";
  156 + var flowTypeDetail = detailInfo.flowType;
  157 + if (flowTypeDetail == null || flowTypeDetail == 1) {
  158 + flowTypeStr = "长图";
  159 +// $("#authBtn").attr("style", "display:block");
  160 + } else if (flowTypeDetail == 2) {
  161 + flowTypeStr = "方图";
  162 + }
  163 + $("#dispatchChannelDetail").html(dispatchChannelStr);
  164 + $("#flowTypeDetail").html(flowTypeStr);
136 $("#nickName").html(detailInfo.nickName); 165 $("#nickName").html(detailInfo.nickName);
137 $("#sourceStr").html(detailInfo.sourceStr); 166 $("#sourceStr").html(detailInfo.sourceStr);
138 167
@@ -28,6 +28,10 @@ @@ -28,6 +28,10 @@
28 内容类型:长文章<br> 28 内容类型:长文章<br>
29 内容来源: <span id="sourceStr"></span> 29 内容来源: <span id="sourceStr"></span>
30 <br> 30 <br>
  31 + 分发渠道:<span id="dispatchChannelDetail"></span>
  32 + <br>
  33 + 信息流结构:<span id="flowTypeDetail"></span>
  34 + <br>
31 版权声明: <span id="copyright"></span> 35 版权声明: <span id="copyright"></span>
32 <br> 36 <br>
33 审核状态:<span id="authStatusStr"></span> 37 审核状态:<span id="authStatusStr"></span>
@@ -110,6 +114,30 @@ @@ -110,6 +114,30 @@
110 var detailInfo = data.data; 114 var detailInfo = data.data;
111 $("#authorUid").html(detailInfo.authorUid); 115 $("#authorUid").html(detailInfo.authorUid);
112 $("#nickName").html(detailInfo.nickName); 116 $("#nickName").html(detailInfo.nickName);
  117 + //分发渠道
  118 + var dispatchChannelStr = "";
  119 + var dispatchChannelDetail = detailInfo.dispatchChannel;
  120 + if (dispatchChannelDetail == null || dispatchChannelDetail == -1) {
  121 + dispatchChannelStr = "全部";
  122 +// $("#authBtn").attr("style", "display:block");
  123 + } else if (dispatchChannelDetail == 1) {
  124 + dispatchChannelStr = "社区";
  125 + } else if (dispatchChannelDetail == '2') {
  126 + dispatchChannelStr = "导购";
  127 + }
  128 + $("#dispatchChannelDetail").html(dispatchChannelStr);
  129 +
  130 + //信息流结构
  131 + var flowTypeStr = "";
  132 + var flowTypeDetail = detailInfo.flowType;
  133 + if (flowTypeDetail == null || flowTypeDetail == 1) {
  134 + flowTypeStr = "长图";
  135 +// $("#authBtn").attr("style", "display:block");
  136 + } else if (flowTypeDetail == 2) {
  137 + flowTypeStr = "方图";
  138 + }
  139 + $("#flowTypeDetail").html(flowTypeStr);
  140 +
113 $("#sourceStr").html(detailInfo.sourceStr); 141 $("#sourceStr").html(detailInfo.sourceStr);
114 if(detailInfo.sort == '2'){ 142 if(detailInfo.sort == '2'){
115 $("#content").html(detailInfo.articleContent == null || detailInfo.articleContent.length == 0 ? "空" : handleGoodsAfterEdit(detailInfo.articleContent)); 143 $("#content").html(detailInfo.articleContent == null || detailInfo.articleContent.length == 0 ? "空" : handleGoodsAfterEdit(detailInfo.articleContent));