金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
996 B

  1. import Vue from 'vue'
  2. import App from './App'
  3. import mixin from '@/common/js/mixin.js';
  4. import {sandBox} from './common/js/sandBox.js';
  5. import {cookieStorage,isBirthday} from './common/js/utils.js';
  6. import * as $shared from '@/common/js/shared.js';
  7. // 每个页面都会进入mixin
  8. Vue.mixin(mixin);
  9. // #ifdef H5
  10. import wechat from './common/js/wechat'
  11. if(wechat.isWechat()){
  12. Vue.prototype.$wechat =wechat;
  13. }
  14. // #endif
  15. import config from './common/js/config.js'
  16. import store from '@/store/index.js';
  17. Vue.config.productionTip = false
  18. import uView from 'uview-ui';
  19. Vue.use(uView);
  20. // 将无数据组件注入全局
  21. import lfNocontent from '@/components/lf-nocontent/lf-nocontent.vue';
  22. Vue.component('lf-nocontent', lfNocontent);
  23. Vue.prototype.$shared = $shared;
  24. Vue.prototype.$http = sandBox;
  25. Vue.prototype.$cookieStorage = cookieStorage;
  26. Vue.prototype.$config = config;
  27. Vue.prototype.$store = store;
  28. App.mpType = 'app'
  29. const app = new Vue({
  30. ...App,
  31. store
  32. })
  33. app.$mount()