<template>
	<view>
		<view class="section2 section  bg-white margin-top-sm margin-bottom-sm">
			<view class="cu-list grid col-3 no-border">
				<view class="cu-item justify-center align-center" @tap="goSiteList"  v-for="(item,index) in cuIconList" :key="index">
					<image :src="`${item.imgUrl}`" style="width:100rpx;height:100rpx"></image>
					<view class="cu-tag badge" v-if="item.badge!=0">
						<block class="cu-tag badge" v-if="item.badge!=1">{{item.badge>99?'99+':item.badge}}</block>
					</view>
					<text>{{item.name}}</text>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		props:[ 'cuIconList'] ,  //接收外界传过来的数据
		data() {
			return {

			}
		},
		methods: {
			goSiteList() {
				uni.navigateTo({
					url: '/pages/siteList/siteList',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			}
		}
	}
</script>

<style>

</style>
