Commit ccb40b64 authored by zhangyanni's avatar zhangyanni

文章列表页面+详情推荐阅读

parent d4a72605
......@@ -20,4 +20,18 @@ export default {
getArticleDetailById(params,params1){
return api.fetchLogin('/business/content/selectContentById?contentId='+params+"&isAddBrowse="+params1);
},
//获取文章详情推荐阅读
getArticleDetailRecommendById(params){
return api.fetchLoadingLogin("/business/content/selectRecommendContentById",params);
},
praiseAxios(params){
return api.fetchLogin("/business/content/addOrSubtractHot",params);
},
collectionAxios(params){
return api.fetchLogin("/business/content/addCollection",params);
},
}
\ No newline at end of file
This diff is collapsed.
......@@ -193,7 +193,9 @@
if(response.result.records.length>0){
response.result.records.forEach((item)=>{
if(item.contentUrl){
if(item.contentUrl.indexOf(',')>-1) item.contentUrlList = item.contentUrl.split(",").length>3?item.contentUrl.split(",").slice(0,3):item.contentUrl.split(",");
if(item.contentUrl.indexOf(',')>-1) {
item.contentUrlList = item.contentUrl.split(",").length>3?item.contentUrl.split(",").slice(0,3):item.contentUrl.split(",");
}
else item.contentUrlList = [item.contentUrl];
}
else item.contentUrlList = [];
......
......@@ -333,6 +333,7 @@
this.$router.push({path:"/tabconnect",query:{tabIndex:1}});
}
else if(data==3){
this.publicFun.setUserInfoCookie("ismobile",1)
this.$router.push({path:"/articleList"});
}
else {
......
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