|
@@ -2,23 +2,98 @@
|
|
|
<div id="index">
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="main">
|
|
|
- test
|
|
|
+ <el-col :span="24" class="top">
|
|
|
+ <top topType="1" @search="search"></top>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }">
|
|
|
+ <list :list="refuteList"></list>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="foot">
|
|
|
+ <page limit="5" :total="total" @search="search"></page>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import list from './parts/list.vue';
|
|
|
+import top from '@/layout/common/top.vue';
|
|
|
+import page from '@/layout/common/page.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ list,
|
|
|
+ top,
|
|
|
+ page,
|
|
|
+ },
|
|
|
data: function() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+ clientHeight: '',
|
|
|
+ refuteList: [
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imgUrl: require('@a/news1.jpg'),
|
|
|
+ title: '文章标题',
|
|
|
+ renew_time: '2021-03-25 21:12:44',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ total: 0,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ async created() {
|
|
|
+ await this.search();
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 80;
|
|
|
+ this.$set(this, `clientHeight`, clientHeight);
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ search({ skip = 0, limit = 10, searchName, ...info } = {}) {
|
|
|
+ console.log(searchName);
|
|
|
+ },
|
|
|
},
|
|
|
- created() {},
|
|
|
- methods: {},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
},
|
|
@@ -35,4 +110,21 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+.main {
|
|
|
+ .top {
|
|
|
+ height: 40px;
|
|
|
+ overflow: hidden;
|
|
|
+ border-bottom: 1px solid #f1f1f1;
|
|
|
+ }
|
|
|
+ .info {
|
|
|
+ overflow-x: hidden;
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
+ .foot {
|
|
|
+ height: 40px;
|
|
|
+ overflow: hidden;
|
|
|
+ border-top: 1px solid #f1f1f1;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|