<template>
	<view class="box">
		<view v-if="flag == 1" class="boxlist">
			<view @click="nextTo(item)" class="bb vidLi dfsb" v-for="(item, ind) in list" :key="ind">
				<view class="imgbox">
					<image :src="item.logo" mode=""></image>
				</view>
				<view class="dffd flex1">
					<view class="title elli">{{item.name}}</view>
					<view class="textgrey fontsm">{{item.up_name}}</view>
				</view>
			</view> 
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	props: {
		list: {
			type: Array,
			default: []
		},
		flag: {
			type: [String, Number],
			default: 1
		}
	},
	methods: {
		nextTo(item){
			uni.navigateTo({
				url:'/pages/index/school/schoolInfo?id='+item.id
			})
		},
	}
};
</script>

<style scoped lang="scss">
.boxlist {
	.vidLi {
		width: 100%;
		padding: 27rpx 0;
		background-color: #fff; 
		.imgbox { 
			width: 120rpx;
			height: 120rpx;
			margin-right: 33rpx; 
			border-radius: 10rpx;
			image {
				width: 100%;
				height: 100%;
				border-radius: 50%;
			}
		}
		.title {
			font-size: 28rpx;
			line-height: 40rpx;
			margin-bottom: 43rpx;
		}
		.auth {
			margin-top: 15rpx;
			width: 100%;
		}
	}
}
</style>