cate-resource-box.vue 1.43 KB
<template>
    <div class="cate-res">
        <brand-search></brand-search>
        <tab :page="page" class="fixed-tab"></tab>
        <resources :content-code="contentCode" class="fixed-resource"></resources>
    </div>
</template>
<style>
    .cate-res {
        .channel-tab {
            top: 88px;
        }

        .resources {
            padding-top: 174px;

            .recommend-content-five {
                margin-top: 0;
            }
        }

        .fixed-top {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 999;
            height: 168px;
        }

        .fixed-tab {
            position: fixed;
            top: 88px;
            z-index: 999;
        }
    }

</style>
<script>
    import contentCode from 'content-code';
    import qs from 'yoho-qs';
    import cookie from 'yoho-cookie';

    import yoho from 'yoho';
    import tab from 'channel/tab.vue';
    import resources from 'component/resources/index.vue';
    import brandSearch from 'channel/brand-search.vue';


    const detaultChannel = qs.channel || cookie.get('_Channel') || 'men';

    export default {
        data() {
            return {
                page: 'cate',
                contentCode: contentCode.cate[detaultChannel],
            };
        },
        components: {
            tab,
            resources,
            brandSearch
        },
        created() {
        }
    };
</script>