Files
yshopb2c-uniapp/components/PromotionGood.vue

38 lines
1.1 KiB
Vue
Raw Normal View History

2020-03-15 13:59:43 +08:00
<template>
<view class="promotionGood" v-if="benefit.length > 0">
<view class="item acea-row row-between-wrapper" v-for="(item, promotionGoodIndex) in benefit" :key="promotionGoodIndex" @click="routerGo(item)">
<view class="pictrue"><image :src="item.image" class="image" /></view>
<view class="text">
<view class="name line1">{{ item.storeName }}</view>
<view class="sp-money acea-row">
<view class="moneyCon">
2020-03-16 01:40:52 +08:00
促销价:
<text class="num">{{ item.price }}</text>
</view>
</view>
<view class="acea-row row-between-wrapper">
<view class="money">日常价{{ item.otPrice }}</view>
<view>仅剩{{ item.stock }}{{ item.unitName }}</view>
</view>
</view>
</view>
</view>
2020-03-15 13:59:43 +08:00
</template>
<script>
export default {
2020-03-16 01:40:52 +08:00
name: 'PromotionGood',
props: ['benefit'],
data: function() {
return {};
},
methods: {
routerGo(item) {
this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', query: { id: item.id } });
}
},
mounted() {
console.log(this, 999);
}
2020-03-15 13:59:43 +08:00
};
</script>