You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
<template> |
|
<div class="promotionGood" v-if="benefit.length > 0"> |
|
<div |
|
@click="$yrouter.push({ path: '/pages/shop/GoodsCon/index',query:{id:item.id} })" |
|
class="item acea-row row-between-wrapper" |
|
v-for="(item, promotionGoodIndex) in benefit" |
|
:key="promotionGoodIndex" |
|
> |
|
<div class="pictrue"> |
|
<img :src="item.image" class="image" /> |
|
</div> |
|
<div class="text"> |
|
<div class="name line1">{{ item.storeName }}</div> |
|
<div class="sp-money acea-row"> |
|
<div class="moneyCon"> |
|
促销价: ¥ |
|
<span class="num">{{ item.price }}</span> |
|
</div> |
|
</div> |
|
<div class="acea-row row-between-wrapper"> |
|
<div class="money">日常价:¥{{ item.otPrice }}</div> |
|
<div>仅剩:{{ item.stock }}{{ item.unitName }}</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</template> |
|
<script> |
|
export default { |
|
name: "PromotionGood", |
|
props: { |
|
benefit: { |
|
type: Array, |
|
default: () => [] |
|
} |
|
}, |
|
data: function() { |
|
return {}; |
|
} |
|
}; |
|
</script>
|
|
|