Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
ccb40b64
Commit
ccb40b64
authored
May 14, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章列表页面+详情推荐阅读
parent
d4a72605
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
api.js
src/views/mobile/article/api.js
+15
-0
detail.vue
src/views/mobile/article/detail.vue
+0
-0
list.vue
src/views/mobile/article/list.vue
+3
-1
index.vue
src/views/mobile/index/index.vue
+1
-0
No files found.
src/views/mobile/article/api.js
View file @
ccb40b64
...
...
@@ -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
src/views/mobile/article/detail.vue
View file @
ccb40b64
This diff is collapsed.
Click to expand it.
src/views/mobile/article/list.vue
View file @
ccb40b64
...
...
@@ -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
=
[];
...
...
src/views/mobile/index/index.vue
View file @
ccb40b64
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment