main.js 637 B

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