提交 19a766ab 编写于 作者: yubinCloud's avatar yubinCloud

10-6 首页显示电子书的阅读量、点赞量等 Footer 信息

上级 2533ba00
......@@ -23,6 +23,7 @@ public class SpringMvcConfig implements WebMvcConfigurer {
"/category/all",
"/ebook/query",
"/doc/all/**",
"/doc/vote/**",
"/doc/read-content/**"
);
}
......
......@@ -31,9 +31,17 @@
<template #renderItem="{ item }">
<a-list-item key="item.name">
<template #actions>
<span v-for="{ type, text } in actions" :key="type">
<component v-bind:is="type" style="margin-right: 8px" />
{{ text }}
<span>
<component v-bind:is="'FileOutlined'" style="margin-right: 8px" />
{{ item.docCount }}
</span>
<span>
<component v-bind:is="'UserOutlined'" style="margin-right: 8px" />
{{ item.viewCount }}
</span>
<span>
<component v-bind:is="'LikeOutlined'" style="margin-right: 8px" />
{{ item.voteCount }}
</span>
</template>
<a-list-item-meta :description="item.description">
......@@ -82,12 +90,6 @@ export default defineComponent({
pageSize: 3,
};
const actions: Record<string, string>[] = [
{ type: 'StarOutlined', text: '156' },
{ type: 'LikeOutlined', text: '156' },
{ type: 'MessageOutlined', text: '2' },
];
/**
* 查询所有分类
**/
......@@ -141,7 +143,6 @@ export default defineComponent({
return {
ebooks,
pagination,
actions,
level1,
isShowWelcome,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册