| 1234567891011121314151617181920212223242526272829303132 |
- import App from './App'
- import Vue from 'vue'
- import './uni.promisify.adaptor'
- import uView from "uview-ui";
- // #ifdef H5
- // 提交前需要注释 本地调试使用 使用vconsole
- // const vconsole = require('vconsole')
- // Vue.prototype.$vconsole = new vconsole()
- // #endif
- import api from './common/js/api'
- import env from './common/js/env.js';
- Vue.prototype.$phonePattern = '^1[3-9][0-9]\\d{8}$';
- 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]$';
- //后端接口地址
- Vue.prototype.$baseUrl = env.baseUrl;
- //小程序地址
- Vue.prototype.$xcxUrl = 'https://jje.xinyuekj.com.cn/spread/spread';
- //拓客端地址
- Vue.prototype.$tkUrl = 'http://tk.gzzzyd.com/#/pages/register/register';
- //微信授权回调地址
- Vue.prototype.$callbackUrl = 'http://tk.gzzzyd.com';
- Vue.prototype.$api = api;
- Vue.use(uView);
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
|