Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
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
西魏
cms_sys
Commits
fa098cfc
Commit
fa098cfc
authored
Sep 14, 2022
by
zhouyk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板修复
parent
4c979cc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
34 deletions
+11
-34
news-detail.htm
src/main/webapp/template/1/default/news-detail.htm
+11
-34
No files found.
src/main/webapp/template/1/default/news-detail.htm
View file @
fa098cfc
...
...
@@ -52,20 +52,17 @@
<
#
else
>
已经没有了
</
#
if>
</div>
<div
class=
"news-next"
>
<span
class=
"label"
>
下一篇:
</span>
<
#
if
next
.
title
?
has_content
>
<a
href=
"{ms:global.url/}${next.link}"
>
${next.title}
</a>
<
#
else
>
已经没有了
</
#
if>
</div>
<el-badge
:value=
"Total"
class=
"item"
>
<el-button
@
click=
"save"
>
点赞
</el-button>
</el-badge>
</div>
<div
class=
"news-next"
>
<span
class=
"label"
>
下一篇:
</span>
<
#
if
next
.
title
?
has_content
>
<a
href=
"{ms:global.url/}${next.link}"
>
${next.title}
</a>
<
#
else
>
已经没有了
</
#
if>
</div>
</div>
</div>
<!--新闻详情-end-->
</div>
...
...
@@ -93,25 +90,6 @@
}
})
},
// 点赞关注(一个账号只允许关注一次)
save
:
function
()
{
var
that
=
this
;
//用户-关注接口
ms
.
http
.
post
(
"/people/attention/collectionLog/save.do"
,
that
.
collectionFrorm
).
then
(
function
(
data
)
{
if
(
data
.
result
)
{
that
.
$message
.
success
(
"点赞成功!"
);
}
})
that
.
likeTotal
()
},
// 点赞数
likeTotal
:
function
(){
var
that
=
this
;
//用户-关注接口
ms
.
http
.
post
(
"/attention/collection/list"
,
that
.
collectionFrorm
).
then
(
function
(
data
)
{
that
.
Total
=
data
.
data
.
rows
[
0
].
dataCount
})
}
},
created
()
{
this
.
likeTotal
()
...
...
@@ -660,4 +638,4 @@
}
</style>
</body>
</html>
\ No newline at end of file
</html>
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