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.
|
|
|
<!--
|
|
|
|
Copyright (c) 2020.
|
|
|
|
author: bin
|
|
|
|
email: binbin0314@126.com
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<p>首页</p>
|
|
|
|
<rotation />
|
|
|
|
<p>界面</p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Rotation from 'components/Rotation/Rotation.vue';
|
|
|
|
import { FrontSearchFriend, FrontSearchCompany } from 'config/api';
|
|
|
|
export default {
|
|
|
|
components: { Rotation },
|
|
|
|
data() {
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
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>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
</style>
|