<template>
	<view class="omit">
		<view class="omit-ul">
			<view class="omit-li" v-for="(item, index) in viewModel" :key="index" :style="{backgroundColor: item.bgcolor}">
				<text class="omit-li-text">{{item.name}}</text>
				<view class="omit-li-bottom">
					<text class="omit-li-num">{{item.value}}</text>
				</view>
				<view class="omit-li-right">
					<x-icon class="omit-li-right-icon" size="30" :color="item.icon.color" :name="item.icon.name" ></x-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			count: {},
			viewModel: {}
		}
	} 
</script>

<style lang="scss" scoped>
	.omit {
		padding: 30rpx 10rpx;
		padding-bottom: 10rpx;
		&-ul{
			display: flex;
			flex-wrap: wrap;
		}
		&-li {
			width: 345rpx;
			height: 140rpx;
			margin: 0 10rpx;
			box-sizing: border-box;
			padding: 15rpx;
			margin-bottom: 20rpx;
			border-radius: 5rpx;
			background-color: #5867DD;
			position: relative;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			&-text{
				@include styleFont(#fff, 26rpx);
				line-height: 26rpx;
			}
			&-bottom{
				// margin-top: 30rpx;
				margin-bottom: 10rpx;
			}
			&-num{
				@include styleFont(#fff, 32rpx, 1);
			}
			&-right{
				position: absolute;
				top: 50%;
				right: 20rpx;
				width: 100rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				transform: translate(0, -50%);
				&-icon {
					height: 30px;
					opacity: 0.13;
					transform:rotate(-40deg);
					color: rgba($color: #fff, $alpha: 0.7);
				}
			}
		}
	}
</style>
