You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.2 KiB

5 years ago
<!--
Copyright (c) 2020.
author: bin
email: binbin0314@126.com
-->
<template>
<div>
5 years ago
<p>首页</p>
<rotation />
<p>界面</p>
</div>
</template>
<script>
5 years ago
import Rotation from 'components/Rotation/Rotation.vue';
import { FrontSearchFriend, FrontSearchCompany } from 'config/api';
export default {
5 years ago
components: { Rotation },
data() {
return {};
},
5 years ago
created() {
this.getData1();
this.getData2();
},
methods: {
async getData1() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 1,
typeOfPlatform: 1,
},
};
const res = await FrontSearchFriend(params);
const { data, code, msg } = res.data;
if (code === 200) {
console.log(data);
} else {
console.log(msg);
}
},
async getData2() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 2,
typeOfPlatform: 2,
},
};
const res = await FrontSearchCompany(params);
const { data, code, msg } = res.data;
if (code === 200) {
console.log(data);
} else {
console.log(msg);
}
},
},
};
</script>
5 years ago
<style lang="less" scoped>
</style>