Commit c3fd09af3e535203a613de417282b1b26fee72a9

Authored by boyang
1 parent 29276e29

添加商品属性

Showing 1 changed file with 5 additions and 0 deletions
components/ProductDetail.vue
... ... @@ -29,6 +29,11 @@
29 29 <span class="tw-leading-[10px] tw-m-[16px]">{{ info.basename3 }}:{{ info.basecore3 }}</span>
30 30 </div>
31 31 </div>
  32 + <div class="tw-flex tw-flex-wrap" v-if="info.productAttributeList && info.productAttributeList.length > 0">
  33 + <div v-for="(attribute, index) in info.productAttributeList" :key="index" class="tw-w-1/2 tw-mb-[12px]">
  34 + <span class="tw-leading-[10px] tw-m-[16px]">{{ attribute.name }}:{{ attribute.value }}</span>
  35 + </div>
  36 + </div>
32 37 <v-table density="comfortable" class="table1 tw-mt-[32px]" v-if="info.ticketTypes?.length">
33 38 <thead>
34 39 <tr class="bg-grey-lighten-3">
... ...