index.vue 885 Bytes
<template>
    <div class="ipage-wrapper ipage-mall-day">
        <ipage-option ref="ipageOption" pVal="account_day" @reportData="reportData"></ipage-option>
        <component @reportEvt="reportEvt" :emitData="emitData" ref="comWrap" :is="reportVal"></component>
    </div>
</template>

<script>
import ipageOption from '../common/option/option';
import account from './account';
export default {
    data() {
        return {
            reportVal:'account',
            emitData:{}
        }
    },
    components: {
        ipageOption,
        account:account
    },
    watch: {

    },
    methods: {
        reportData(emitData){
           this.emitData = emitData;

        },
        reportEvt(data){
            this.$refs.ipageOption.setOption(data);
        }
    },
    created() {
         
    },
    mounted() {
        
    }
}
</script>

<style scoped>

</style>