|
|
<template>
|
|
|
<div class="product-info">
|
|
|
<div class="product-wrapper">
|
|
|
<div class="good-image">
|
|
|
<ImageFormat :src="data.goodImg" :width="180" :height="180"></ImageFormat>
|
...
|
...
|
@@ -9,9 +10,13 @@ |
|
|
<div class="price">{{data.colorName}},{{data.sizeName}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="!getLogin" class="no-login-tip">完成“有货”登录授权后将显示商品优惠及运费信息,请先完成登录查看最终支付金额</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex';
|
|
|
|
|
|
export default {
|
|
|
name: 'OrderProductInfo',
|
|
|
props: {
|
...
|
...
|
@@ -21,12 +26,20 @@ export default { |
|
|
return {};
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['getLogin'])
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.product-info {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
.good-image {
|
|
|
width: 180px;
|
|
|
height: 180px;
|
...
|
...
|
@@ -65,6 +78,10 @@ export default { |
|
|
line-height: 36px;
|
|
|
}
|
|
|
|
|
|
.no-login-tip {
|
|
|
color: #d0021b;
|
|
|
}
|
|
|
|
|
|
.red {
|
|
|
color: #d0021b;
|
|
|
font-size: 28px;
|
...
|
...
|
|