页面修改
This commit is contained in:
@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user