main.js 987 B

1234567891011121314151617181920212223242526272829303132
  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.$idCardPattern = '^([1-6][1-9]|50)\\d{4}(18|19|20)\\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$';
  14. //后端接口地址
  15. Vue.prototype.$baseUrl = env.baseUrl;
  16. //小程序地址
  17. Vue.prototype.$xcxUrl = 'https://jje.xinyuekj.com.cn/spread/spread';
  18. //拓客端地址
  19. Vue.prototype.$tkUrl = 'http://tk.gzzzyd.com/#/pages/register/register';
  20. //微信授权回调地址
  21. Vue.prototype.$callbackUrl = 'http://tk.gzzzyd.com';
  22. Vue.prototype.$api = api;
  23. Vue.use(uView);
  24. Vue.config.productionTip = false
  25. App.mpType = 'app'
  26. const app = new Vue({
  27. ...App
  28. })
  29. app.$mount()