detail.page.js 446 Bytes
const Vue = require('yoho-vue');
const app = require('product/detail/index.vue');
const loading = require('common/loading');
const _ = require('lodash');

require('../common/overlay');

new Vue({
    el: '#app',
    components: {
        app: app
    }
});

$(document).ajaxStart(()=> {
    _.debounce(()=> {
        loading.show();
    }, 100)();
});

$(document).ajaxStop(()=> {
    _.debounce(()=> {
        loading.hide();
    }, 500)();
});