feat: 套餐包含内容组件

This commit is contained in:
2026-03-10 23:27:03 +08:00
parent c141913a2c
commit 05cc24d5f3
3 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
<template>
<view class="border-box border-top-8 pl-12 pr-12">
<ModuleTitle
v-if="showTitle"
title="套餐包含内容"
/>
<view class="flex flex-items-start flex-col"
v-for="(moduleItem, index) in goodsData.commodityPurchaseInstruction
.commodityPurchaseInstructionModuleEntityList"
:key="index"
>
<text class="ml-4 font-size-14 color-171717 line-height-20">
{{ moduleItem.moduleTitle }}
</text>
</view>
</view>
</template>
<script setup>
import ModuleTitle from "@/components/ModuleTitle/index.vue";
import { defineProps } from "vue";
// Props定义
const props = defineProps({
goodsData: {
type: Object,
default: () => ({}),
},
showTitle: {
type: Boolean,
default: true,
},
});
</script>
<style scoped lang="scss">
</style>