Files
yshopb2c-uniapp/components/OrderGoods.vue

46 lines
1.4 KiB
Vue
Raw Normal View History

2020-03-15 13:59:43 +08:00
<template>
<view class="orderGoods">
<view class="total">{{ cartInfo.length }}件商品</view>
<view class="goodWrapper">
<view class="item acea-row row-between-wrapper" v-for="cart in cartInfo" :key="cart.id">
<view class="pictrue">
<image :src="cart.productInfo.image" class="image" />
</view>
<view class="text">
<view class="acea-row row-between-wrapper">
<view class="name line1">{{ cart.productInfo.storeName }}</view>
<view class="num">x {{ cart.cartNum }}</view>
</view>
2021-04-01 00:05:57 +08:00
<view class="attr line1" v-if="cart.productInfo.attrInfo">{{ cart.productInfo.attrInfo.sku }}</view>
<view class="money font-color-red">{{ cart.truePrice }}</view>
<view class="evaluate" v-if="evaluate == 3 && cart.isReply == 0" @click="routerGo(cart)">评价</view>
</view>
</view>
</view>
</view>
2020-03-15 13:59:43 +08:00
</template>
<script>
export default {
2021-04-01 00:05:57 +08:00
name: 'OrderGoods',
2020-03-15 13:59:43 +08:00
props: {
evaluate: Number,
cartInfo: {
type: Array,
2021-04-01 00:05:57 +08:00
default: () => [],
},
2020-03-15 13:59:43 +08:00
},
data: function() {
2021-04-01 00:05:57 +08:00
return {}
2020-03-15 13:59:43 +08:00
},
mounted: function() {},
methods: {
routerGo(cart) {
this.$yrouter.push({
2021-04-01 00:05:57 +08:00
path: '/pages/shop/GoodsEvaluate/index',
query: { id: cart.unique },
})
},
},
}
2020-03-15 13:59:43 +08:00
</script>