main.js 669 B

123456789101112131415161718192021222324252627
  1. import Vue from 'vue'
  2. import App from './App'
  3. import https from './util/api.js'
  4. Vue.config.productionTip = false
  5. /*将全局方法挂在在 Vue 原型上--start*/
  6. import h_global from './_common/public/hGlobal.js' //全局方法 用户页面
  7. import h_util from './_common/public/Utils.class.js' //全局方法
  8. Vue.prototype.h_global = h_global;
  9. Vue.prototype.h_util = h_util;
  10. Vue.prototype.$http = https
  11. /* 使用uView组件库 */
  12. import uView from "uview-ui";
  13. Vue.use(uView);
  14. import common from './js_sdk/common.js'
  15. Vue.prototype.$noMultipleClicks = common.noMultipleClicks;
  16. App.mpType = 'app'
  17. const app = new Vue({
  18. ...App
  19. })
  20. app.$mount() //挂载Vue实例