<template>
	<view class="bodys">
		<block v-if="companyList.length>0" v-for="(item,index) in companyList" :key="item.id">
			<companyList :companyitem="item" :comment='true' :noApply="false"></companyList>
			<view class="baddd"></view>
		</block>
		<view v-if="companyList.length<=0">
			<image src="../../static/img/pic_nocom.svg" mode="" class="nothing"></image>
			<view class="nothingContnt">
				暂无评价信息
			</view>
		</view>
	</view>
</template>

<script>
	import companyList from '@/components/companyList/companyList.vue';
	import testData from '@/common/textdata.js';
	import {myRate} from '@/api/rate.js';
	export default {
		components: {  companyList },
		data() {
			return {
				companyList: []
			}
		},
		onShow: function() {
			myRate().then(res => {
				this.companyList = res.data.data.records;
			})
		},
		methods: {
			
		}
	}
</script>

<style>
	.nothingContnt{
		font-family: PingFangSC-Regular;
		font-size: 28rpx;
		color: #666;
		margin-top: 30rpx;
		text-align: center;
	}
	.nothing{
		width: 400rpx;
		height: 200rpx;
		display: block;
		margin: 0 auto;
		margin-top: 50%;
	}
	.baddd{
		background: #f6f6f6;
		height: 20rpx;
	}
	.bodys{background-color: #fefefe;}
page{background-color: #fff;}
</style>
