refund-logistics.page.js 640 Bytes
import Vue from 'vue';
import Logistics from 'vues/home/refund/logistics.vue';
import LogisticsCompany from 'vues/home/refund/logistics-company.vue';
const bus = require('js/plugin/vue-bus');

new Vue({
    el: '#logistics',
    data: {
        company_id: '',
        company_name: '',
        currentView: 'logistics',
    },
    components: {
        logistics: Logistics,
        logisticsCompany: LogisticsCompany
    },
    created() {
        bus.$on('changeView', obj => {
            this.currentView = obj.view;
            this.company_id = obj.company_id;
            this.company_name = obj.company_name;
        });
    }
});