template1.vue 826 B

12345678910111213141516171819202122232425262728293031323334
  1. <script>
  2. export default {
  3. inject: ['goMenuPage'],
  4. props: {
  5. menuData: {
  6. type: Object,
  7. default: () => {}
  8. }
  9. }
  10. };
  11. </script>
  12. <template>
  13. <view class="">
  14. <view class="pt-34 pb-36 bg--w111-fff rd-16rpx mt-20 service ml-20 mr-20">
  15. <view class="fs-30 fw-500 lh-42rpx text--w111-333 pl-32">{{ menuData.title }}</view>
  16. <view class="grid-column-4 grid-gap-x-40rpx grid-gap-y-54rpx mt-38 pl-14 pr-14">
  17. <view class="flex-col flex-center" v-for="(item, index) in menuData.list" :key="index" @click="goMenuPage(item.url, item.name)">
  18. <image :src="item.pic" class="image"></image>
  19. <text class="fs-26 lh-36rpx text--w111-282828 pt-22">{{ item.name }}</text>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <style scoped lang="scss">
  26. .service {
  27. .image {
  28. width: 48rpx;
  29. height: 48rpx;
  30. }
  31. }
  32. </style>