Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
fa098cfc
Commit
fa098cfc
authored
Sep 14, 2022
by
zhouyk
Browse files
模板修复
parent
4c979cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/template/1/default/news-detail.htm
View file @
fa098cfc
...
@@ -52,20 +52,17 @@
...
@@ -52,20 +52,17 @@
<
#else
>
<
#else
>
已经没有了
已经没有了
</
#
if>
</
#
if>
</div>
</div>
<div
class=
"news-next"
>
<div
class=
"news-next"
>
<span
class=
"label"
>
下一篇:
</span>
<span
class=
"label"
>
下一篇:
</span>
<
#if
next.title
?
has_content
>
<
#if
next.title
?
has_content
>
<a
href=
"{ms:global.url/}${next.link}"
>
${next.title}
</a>
<a
href=
"{ms:global.url/}${next.link}"
>
${next.title}
</a>
<
#else
>
<
#else
>
已经没有了
已经没有了
</
#
if>
</
#
if>
</div>
<el-badge
:value=
"Total"
class=
"item"
>
<el-button
@
click=
"save"
>
点赞
</el-button>
</el-badge>
</div>
</div>
</div>
</div>
</div>
<!--新闻详情-end-->
<!--新闻详情-end-->
</div>
</div>
...
@@ -93,25 +90,6 @@
...
@@ -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
()
{
created
()
{
this
.
likeTotal
()
this
.
likeTotal
()
...
@@ -660,4 +638,4 @@
...
@@ -660,4 +638,4 @@
}
</style>
}
</style>
</body>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Supports
Markdown
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