<script>
	export default {
		inject: ['goMenuPage'],
		props: {
			menuData: {
				type: Object,
				default: () => {}
			}
		}
	};
</script>

<template>
	<view class="">
		<view class="pt-34 pb-36 bgfot rd-16rpx mt-20 service ml-20 mr-20">
			<view class="fs-30 fw-500 lh-42rpx colorfff pl-32">{{ menuData.title }}</view>
			<view class="grid-column-4 grid-gap-x-40rpx grid-gap-y-54rpx mt-38 pl-14 pr-14">
				<view class="flex-col flex-center" v-for="(item, index) in menuData.list" :key="index"
					@click="goMenuPage(item.url, item.name)">
					<view class="flex-col flex-center" v-if="item.name!='联系客服'">
						<image :src="item.pic" class="image"></image>
						<text class="fs-26 lh-36rpx colorhui1 pt-22">{{ item.name }}
						</text>
					</view>
					<button class="flex-col flex-center backbtn" v-else open-type="contact">
						<image :src="item.pic" class="image"></image>
						<text class="fs-26 lh-36rpx colorhui1 pt-22">{{ item.name }}
						</text>
					</button>
				</view>
			</view>
		</view>
	</view>
</template>

<style scoped lang="scss">
	button::after{
		border: none; 
	}
	.backbtn{
		background: #1B1A1D;
	}
	.service {
		.image {
			width: 48rpx;
			height: 48rpx;
		}
	}
</style>