main.js 788 B

12345678910111213141516171819202122232425262728293031
  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. //后端接口地址
  14. Vue.prototype.$baseUrl = env.baseUrl;
  15. //小程序地址
  16. Vue.prototype.$xcxUrl = 'https://jje.admin.xinyuekj.com.cn/recharge/recharge';
  17. //拓客端地址
  18. Vue.prototype.$tkUrl = 'http://tk.gzzzyd.com/#/pages/register/register';
  19. Vue.prototype.$api = api;
  20. Vue.use(uView);
  21. Vue.config.productionTip = false
  22. App.mpType = 'app'
  23. const app = new Vue({
  24. ...App
  25. })
  26. app.$mount()