2019-03-04 15:28:16 +08:00
|
|
|
|
|
|
|
import Vue from 'vue';
|
|
|
|
import { router } from './config/router';
|
|
|
|
import './config/rem';
|
|
|
|
import App from './App.vue';
|
|
|
|
import VueLazyload from 'vue-lazyload'
|
|
|
|
import components from './config/components.js';
|
2019-03-28 19:19:04 +08:00
|
|
|
import { Dialog } from 'vant';
|
2019-04-18 22:46:27 +08:00
|
|
|
import { CouponCell, CouponList } from 'vant';
|
2019-03-28 19:19:04 +08:00
|
|
|
|
2019-04-08 21:47:23 +08:00
|
|
|
import { formatDate } from './utils/date.js';
|
|
|
|
|
2019-03-04 15:28:16 +08:00
|
|
|
Vue.use(components);
|
|
|
|
|
2019-03-28 19:19:04 +08:00
|
|
|
Vue.use(VueLazyload);
|
|
|
|
Vue.use(Dialog);
|
2019-04-18 22:46:27 +08:00
|
|
|
Vue.use(CouponCell).use(CouponList);
|
2019-03-04 15:28:16 +08:00
|
|
|
|
|
|
|
new Vue({
|
|
|
|
router,
|
|
|
|
el: '#app',
|
|
|
|
render: h => h(App)
|
2019-04-08 21:47:23 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
Vue.filter('formatDate', function(date, pattern) {
|
|
|
|
if (date) {
|
|
|
|
return formatDate(date, pattern);
|
|
|
|
}
|
|
|
|
});
|