<!-- 订单组件 -->
<template>
    <div class="c-orderInfo">
        <div class="title">订单信息</div>
        <div class="goods">
            <div class="img">
                <img
                    :src="information.img?information.PrizeImg:'https://img.yzcdn.cn/vant/apple-3.jpg'"
                    alt
                />
            </div>
            <div class="right">
                <div class="goods-title">{{information.name}}</div>
                <div class="goods-price">￥{{information.Price}}</div>
                <div class="goods-transport">提货方式:快递运输</div>
            </div>
        </div>
    </div>
</template>
<script>
    export default {
        name: "c-orderInfo",
        props: {
            information: {
                type: Object,
                required: true
            }
        },
        data() {
            return {
                information: {}
            };
        }
    };
</script>
<style lang='less' scoped>
    .c-orderInfo {
        text-align: left;
        padding: 0 0.3rem;
        font-size: 0.32rem;
        .title {
            height: 0.76rem;
            line-height: 0.76rem;
            border-bottom: solid #f3f3f3 0.01rem;
            color: #333333;
        }
        .goods {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.3rem 0;
            .img {
                width: 1.8rem;
                height: 1.8rem;
                background-color: #ffffff;
                box-shadow: 0rem 0rem 0.18rem 0rem #eaeaea;
                border-radius: 0.1rem;
                overflow: hidden;
                img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .right {
                flex: 1;
                margin-left: 0.3rem;
                height: 1.8rem;
                display: flex;
                flex-direction: column;
                justify-content: space-around;
                .goods-title {
                    font-size: 0.3rem;
                    color: #000;
                }
                .goods-price {
                    color: red;
                }
                .goods-transport {
                    color: #666;
                    font-size: 0.28rem;
                }
            }
        }
    }
</style>