<template>
    <div class="home">
        <div class="home_top">
            <img :src="require('@assets/jiaoyichenggong@3x.png')" alt="" class="home_top_img" />
            <div class="home_top_title">
                <div class="home_top_title_one">上架成功</div>
                <div class="home_top_title_two">祝您早日成交</div>
            </div>
        </div>
        <div class="home_content">
            <div class="home_content_con">
                <van-image width="120px" height="120px" radius="18" :src="Image" fit="cover" />
                <div class="consignment_top_title">
                    <div class="consignment_top_title_one">{{ info.name }}</div>
                    <div class="consignment_top_title_two">
                        <div class="consignment_top_title_two_text1">{{info.collectionCategory}}</div>
                        <div class="consignment_top_title_two_text2">{{ info.category }}</div>
                    </div>
                    <div class="consignment_top_title_three">
                        <span class="consignment_top_title_three_text1">¥</span>{{ info.sellPrice }}
                    </div>
                </div>
                <img :src="require('@assets/dibuwenli.png')" alt="" class="bottom_texture" />
            </div>
        </div>
        <div class="home_button">
            <div class="home_button_con" @click="$router.go(-2)">完成</div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            info: {},
            Image: ''
        };
    },
    mounted() {
        this.$http.get('/asset/get/' + this.$route.query.id).then(res => {
            this.info = res;
            this.Image = this.info.pic[0].url;
        });
    }
};
</script>
<style lang="less" scoped>
.home {
    background: #201B15;
    .home_top {
        padding: 40px 0px 28px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        .home_top_img {
            width: 74px;
            height: 60px;
            margin-right: 5px;
        }
        .home_top_title_one {
            font-size: 19px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #ffffff;
            line-height: 26px;
            margin-bottom: 1px;
            margin-top: 8px;
        }
        .home_top_title_two {
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #ffffff;
            line-height: 20px;
            opacity: 0.5;
        }
    }
    .home_content {
        padding: 0px 15px;
        box-sizing: border-box;
        .home_content_con {
            display: flex;
            background: #2F2519;
            border-radius: 0px 18px 18px 0px;
            position: relative;
            .bottom_texture {
                width: 115px;
                height: 100px;
                position: absolute;
                right: 0;
                bottom: 0;
            }
            .consignment_top_title {
                width: calc(100% - 150px);
                margin-left: 12px;
                padding: 16px 0px;
                box-sizing: border-box;
                .consignment_top_title_one {
                    width: 100%;
                    font-size: 16px;
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #ffffff;
                    line-height: 22px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    margin-bottom: 12px;
                }
                .consignment_top_title_two {
                    display: flex;
                    margin-bottom: 12px;
                    font-size: 12px;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    .consignment_top_title_two_text1 {
                        padding: 0px 6px;
                        box-sizing: border-box;
                        height: 18px;
                        background: #f9ddb3;
                        color: #282d3a;
                        border-radius: 3px;
                        line-height: 18px;
                        margin-right: 6px;
                    }
                    .consignment_top_title_two_text2 {
                        padding: 0px 6px;
                        box-sizing: border-box;
                        height: 18px;
                        background: #323743;
                        border-radius: 3px;
                        color: #f9ddb3;
                        line-height: 18px;
                    }
                }
                .consignment_top_title_three {
                    font-size: 18px;
                    font-family: PingFangSC-Semibold, PingFang SC;
                    font-weight: 600;
                    color: #ffffff;
                    line-height: 24px;
                    .consignment_top_title_three_text1 {
                        font-size: 16px;
                        line-height: 22px;
                    }
                }
            }
        }
    }
    .home_button{
        width: 100%;
        padding: 0px 82px;
        box-sizing: border-box;
        position: fixed;
        bottom: 120px;
        .home_button_con{
            width: 100%;
            height: 50px;
            background: rgba(249, 221, 179, 0.1);
            border-radius: 8px;
            font-size: 18px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            text-align: center;
            line-height: 50px;
        }
    }
}
</style>