<template v-for="sec in item.goods">
<div
v-if="item.showDetail"
class="foodInfo-sec"
:key="sec.wid"
>
<span class="name txtOverflow">{{ sec.title }}</span>
<span class="price">{{ sec.price }}</span>
<span class="num">x{{ sec.number }}</span>
</div>
</template>
这样写