<template>
	<view class="content">
		<view class="list">
			<view class="item" v-for="item in 5">
				<view class="icon">
					<image src="./icon/gaikuang.png" mode=""></image>
				</view>
				<view class="name">概况</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"t-i-icon",
		props: [
			"base_url"
		],
		data() {
			return {
				list:[]
			};
		},
		created() {
			this.get_list()
		},
		methods:{
			get_list(){
				uni.request({
					url: this.base_url + "/homeNav/list",
					method: "GET",
					success: (res) => {
						// console.log(res.data.data.data)
						
						this.list = res.data.data.data.slice(0,5)
						console.log(this.list)
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.content{
		margin-bottom: 30rpx;
		background-color: #FFFFFF;
		
		box-sizing: border-box;
		padding: 50rpx 25rpx;
	}
	
	.list{
		display: flex;
		justify-content: space-between;
		.item{
			width: 104rpx;
			.icon{
				image{
					width: 104rpx;
					height: 104rpx;
				}
			}
			.name{
				text-align: center;
			}
		}
	}
</style>
