cate-resource-box.vue 885 Bytes
<template>
    <div class="tab-top-fixed">
        <tab v-bind:page="page"></tab>
    </div>
    <div class="resources">
        <resources v-bind:content-code.sync="contentCode"></resources>
    </div>
</template>
<style>
    .tab-top-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 99;
    }

    .resources {
        margin-top: 100px;
    }
</style>
<script>
    const contentCode = require('content-code');
    const qs = require('yoho-qs');

    const tab = require('channel/tab.vue');
    const resources = require('component/resources/index.vue');

    module.exports = {
        data() {
            return {
                page: 'cate',
                contentCode: contentCode.cate[qs.channel || 'men']
            };
        },
        components: {
            tab,
            resources
        }
    };
</script>