share-box.vue 1.98 KB
<template>
    <div class="brand-share">
        <img class="brand-top-box" v-bind:src="shopInfo.brandBg | resize 750 478">
        <div class="brand-title">{{ shopInfo.brandName }}</div>
        <div class="brand-intro">{{ shopInfo.brandIntro }}</div>
        <div class="tip">进入 BLK 选购潮品</div>
        <div class="icon arrow">&#xe602;</div>
        <a href="//m.yohoblk.com"><img v-bind:src="shopInfo.brandBg | resize 752 365"></a>
    </div>
    <share-bottom></share-bottom>
</template>
<style>
    .brand-share {
        .brand-top-box {
            width: 100%;
        }

        .brand-title {
            margin: 30px;
            font-weight: 700;
            font-size: 32px;
            color: #000;
            font-style: italic;
        }

        .brand-intro {
            margin: 30px;
            min-height: 400px;
        }

        .tip {
            width: 100%;
            text-align: center;
            font-size: 36px;
            margin: 10px 0;
        }

        .arrow {
            width: 100%;
            text-align: center;
            margin-bottom: 20px;
        }

        img {
            width: 100%;
            height: 365px;
        }

    }
</style>
<script>
    const shareBottom = require('component/tool/share-bottom.vue');
    const qs = require('yoho-qs');
    const tip = require('common/tip');

    module.exports = {

        data() {
            return {
                shopInfo: {}
            };
        },
        methods: {

            /* 获取店铺简介相关数据 */
            getShopInfo() {
                $.get({
                    url: '/product/shop/info.json',
                    data: { domain: qs.domain }
                }).done(result => {
                    this.shopInfo = result;
                }).fail(() => {
                    tip('网络错误');
                });
            }
        },
        components: {
            shareBottom
        },
        created() {
            this.getShopInfo();
        }
    };
</script>