Blame view

public/js/home/refund-logistics.page.js 658 Bytes
郭成尧 authored
1
const Vue = require('vue');
王水玲 authored
2 3
const Logistics = require('home/refund/logistics.vue').default;
const LogisticsCompany = require('home/refund/logistics-company.vue').default;
郭成尧 authored
4
const bus = require('plugin/vue-bus');
郭成尧 authored
5 6 7 8 9 10 11 12 13 14 15 16

new Vue({
    el: '#logistics',
    data: {
        company_id: '',
        company_name: '',
        currentView: 'logistics',
    },
    components: {
        logistics: Logistics,
        logisticsCompany: LogisticsCompany
    },
郭成尧 authored
17
    created() {
郭成尧 authored
18
        bus.$on('changeView', obj => {
郭成尧 authored
19 20 21
            this.currentView = obj.view;
            this.company_id = obj.company_id;
            this.company_name = obj.company_name;
郭成尧 authored
22
        });
郭成尧 authored
23 24
    }
});