真食物配套的电商小程序.
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.

55 lines
1.7 KiB

<template>
<view class="orderGoods">
2 years ago
<view class="total">商品详情</view>
<!-- <view class="total">{{ cartInfo.length }}件商品</view> -->
<view class="goodWrapper">
2 years ago
<view class="item acea-row row-between" v-for="cart in cartInfo" :key="cart.id">
<view class="pictrue">
<image :src="cart.productInfo.image" class="image" />
</view>
<view class="text">
2 years ago
<view class="name line1">{{ cart.productInfo.storeName }}</view>
<view class="acea-row">
<view class="attr">{{ cart.productInfo.attrInfo.sku }}</view>
</view>
<view class="acea-row row-between-wrapper">
2 years ago
<view class="money" v-if="isIntegral">{{ cart.costPrice }}积分</view>
<view class="money" v-else>{{ cart.truePrice }}</view>
<view class="num">x {{ cart.cartNum }}</view>
</view>
2 years ago
<!-- <view class="attr line1" v-if="cart.productInfo.attrInfo">{{ cart.productInfo.attrInfo.sku }}</view> -->
<view class="acea-row row-right" v-if="evaluate == 3 && cart.isReply == 0">
<view class="evaluate" @click="routerGo(cart)">评价</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'OrderGoods',
props: {
evaluate: Number,
cartInfo: {
type: Array,
default: () => [],
},
isIntegral: Boolean,
},
data: function() {
return {}
},
mounted: function() {},
methods: {
routerGo(cart) {
this.$yrouter.push({
path: '/pages/shop/GoodsEvaluate/index',
query: { id: cart.unique },
})
},
},
}
</script>