| | |
| | | v-for="(item, index) in commendData" |
| | | :key="index" |
| | | > |
| | | <img :src="'http:/' + item.logoUrl" alt="" /> |
| | | <img :src="'/httpImage/' + item.logoUrl" alt="" /> |
| | | <div class="title">{{ item.productName }}</div> |
| | | <div class="des limitoRow2">{{ item.description }}</div> |
| | | <price :priceNew="item.priceBase"></price> |
| | | <div class="button">立即购买</div> |
| | | <div class="button" @click="buyProduct(item.productName)">立即购买</div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | refresh() { |
| | | this.$emit("refresh"); |
| | | }, |
| | | buyProduct(productName) { |
| | | this.$router.push({ |
| | | path: "/productDetail", |
| | | query: { |
| | | name: productName, |
| | | }, |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |