1234567891011121314151617181920212223242526272829303132333435363738 |
- import Vue from 'vue'
- import App from './App'
- import Cookies from 'js-cookie'
- import pageHead from './components/page-head.vue'
- import pageFoot from './components/page-foot.vue'
- import pageNavbar from './components/page-navbar.vue'
- import uLink from '@/components/uLink.vue'
- import store from './store';
- import auth from '@/common/auth.js';
- import util from '@/common/util.js';
- import Vant from 'vant';
- import 'common/font-awesome-4.7.0/css/font-awesome.css';
- Vue.config.productionTip = false;
- //Vue.prototype.$store = store
- Vue.prototype.$backgroundAudioData = {
- playing: false,
- playTime: 0,
- formatedPlayTime: '00:00:00'
- }
- Vue.prototype.$adpid = "1111111111";
- /* 常用函数封装为一个js文件,并设置为vue实例的一个属性,以方便调用 */
- Vue.prototype.$util=util;
- Vue.prototype.getDate = util.getDate();
- Vue.component('page-head', pageHead)
- Vue.component('page-foot', pageFoot)
- Vue.component('page-navbar', pageNavbar)
- Vue.component('uLink', uLink)
- //Vue.use(Vant);
- App.mpType = 'app'
- const app = new Vue({
- store,
- ...App,
-
- })
- app.$mount() //挂载Vue实例
|