ludu-cloud/mobile-web/src/main.js
YunaiV 7277ecb2d4 前后端:商品确认页,增加优惠劵接入
后端:修改了价格计算的逻辑
2019-04-18 22:46:27 +08:00

30 lines
603 B
JavaScript

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';
import { Dialog } from 'vant';
import { CouponCell, CouponList } from 'vant';
import { formatDate } from './utils/date.js';
Vue.use(components);
Vue.use(VueLazyload);
Vue.use(Dialog);
Vue.use(CouponCell).use(CouponList);
new Vue({
router,
el: '#app',
render: h => h(App)
});
Vue.filter('formatDate', function(date, pattern) {
if (date) {
return formatDate(date, pattern);
}
});