金诚优选前端代码
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.

31 lines
801 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. Vue.prototype.$shared = $shared;
  19. Vue.prototype.$http = sandBox;
  20. Vue.prototype.$cookieStorage = cookieStorage;
  21. Vue.prototype.$config = config;
  22. Vue.prototype.$store = store;
  23. App.mpType = 'app'
  24. const app = new Vue({
  25. ...App,
  26. store
  27. })
  28. app.$mount()