页面修改

This commit is contained in:
熊丽君
2021-08-18 11:40:20 +08:00
parent 7dbcb3b57f
commit b5d5016423
8 changed files with 356 additions and 91 deletions

View File

@ -116,11 +116,11 @@
<p>
<span>
<i><img src="@/assets/image/icon1.png" alt="" /></i>
总浏览量1020</span
总浏览量{{total.count}}</span
>
<span>
<i><img src="@/assets/image/icon1.png" alt="" /></i>
今日浏览1020</span
今日浏览{{total.today}}</span
>
</p>
<div class="footer_two">
@ -176,7 +176,7 @@ import {
getInfo2,
getInfo3,
} from '@/api/search';
import { getPolicyList } from '@/api/home/notice';
import { getPolicyList, getRead } from '@/api/home/notice';
import { mapGetters } from 'vuex';
import { add, cancel } from '@/api/search';
import Editor from '@/components/Editor';
@ -190,6 +190,7 @@ export default {
type: '',
formData: {},
noticeList: [],
total: {},
};
},
watch: {
@ -256,6 +257,9 @@ export default {
this.formData = data;
});
}
getRead({ id }).then(({ data }) => {
this.total = data;
});
getPolicyList({ pageNum: 1, pageSize: 5 }).then(({ data }) => {
this.noticeList = data.list;
});