<template> <view class="apply-list"> <view class="apply-list-item" v-for="(item,index) in list" :key="index"> <view class="apply-list-item-title"> {{item.title}} </view> <view class="apply-info"> <view @click="itemClick(item1,index1)" class="apply-info-item" v-for="(item1,index1) in item.childer" :key="index1"> <view class="apply-info-item-img"> <image style="width: 100%;height: 100%;" :src="item1.img" mode=""></image> </view> <view class="apply-info-item-text"> {{item1.title}} </view> </view> </view> </view> </view> </template> <script> export default { name: "applyList", props: { list: { type: Array, default: () => [] } }, data() { return { }; }, methods: { itemClick(item, index) { this.$emit('itemClick',item) } } } </script> <style lang="scss" scoped> .apply-list { width: 100%; .apply-list-item { padding: 32rpx 32rpx 0 32rpx; background-color: #fff; border-radius: 5.33px; box-shadow: 0px 0px 6.67px 0px rgba(147, 147, 147, 0.20); margin-bottom: 32rpx; .apply-list-item-title { font-size: 32rpx; margin-bottom: 32rpx; } } .apply-info { width: 100%; display: flex; flex-wrap: wrap; .apply-info-item { width: 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 32rpx; .apply-info-item-img { width: 50rpx; height: 50rpx; } .apply-info-item-text { font-size: 24rpx; } } } } </style>