Authored by 张帅

修复页面问题

@@ -137,18 +137,19 @@ @@ -137,18 +137,19 @@
137 137
138 <script> 138 <script>
139 139
140 - // var articleId = paramObject.mkData;  
141 $(function () { 140 $(function () {
142 //加载数据 141 //加载数据
143 var data = paramObject.mkData; 142 var data = paramObject.mkData;
  143 + var articleId = data.articleId;
  144 +
144 //获取文章的详细信息 145 //获取文章的详细信息
145 - // $.ajax({  
146 - // type: "get",  
147 - // url: contextPath + "/grassArticle/getArticleById?articleId=" + articleId,  
148 - // success: function (data) { 146 + $.ajax({
  147 + type: "get",
  148 + url: contextPath + "/grassArticle/getArticleById?articleId=" + articleId,
  149 + success: function (data) {
149 debugger 150 debugger
150 if (data != null) {//成功的 151 if (data != null) {//成功的
151 - var detailInfo = data; 152 + var detailInfo = data.data;
152 $("#authorUid").html(detailInfo.authorUid); 153 $("#authorUid").html(detailInfo.authorUid);
153 $("#nickName").html(detailInfo.nickName); 154 $("#nickName").html(detailInfo.nickName);
154 $("#sourceStr").html(detailInfo.sourceStr); 155 $("#sourceStr").html(detailInfo.sourceStr);
@@ -230,8 +231,8 @@ @@ -230,8 +231,8 @@
230 $("#relatedProduct").html("关联商品: 无"); 231 $("#relatedProduct").html("关联商品: 无");
231 } 232 }
232 } 233 }
233 - // }  
234 - // }); 234 + }
  235 + });
235 236
236 237
237 }); 238 });