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

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