main.js 585 B

1234567891011121314151617181920212223242526
  1. import App from './App'
  2. import Vue from 'vue'
  3. import './uni.promisify.adaptor'
  4. import uView from "uview-ui";
  5. // #ifdef H5
  6. // 提交前需要注释 本地调试使用 使用vconsole
  7. // const vconsole = require('vconsole')
  8. // Vue.prototype.$vconsole = new vconsole()
  9. // #endif
  10. import api from './common/js/api'
  11. import env from './common/js/env.js';
  12. Vue.prototype.$phonePattern = '^1[3-9][0-9]\\d{8}$';
  13. Vue.prototype.$baseUrl = env.baseUrl;
  14. Vue.prototype.$api = api;
  15. Vue.use(uView);
  16. Vue.config.productionTip = false
  17. App.mpType = 'app'
  18. const app = new Vue({
  19. ...App
  20. })
  21. app.$mount()