feat: 套餐包含内容组件
This commit is contained in:
38
src/pages/goods/components/GoodPackage/index.vue
Normal file
38
src/pages/goods/components/GoodPackage/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user