import Vue from 'vue' import App from './App' Vue.config.productionTip = false App.mpType = 'app' // main.js // 引入全局 uView 框架 import uView from '@/uni_modules/uview-ui' Vue.use(uView) Vue.prototype.vuePrototype = '' const app = new Vue({ // store, ...App }) // Vue.prototype.$appVersion = 'v1.0.3' //APP当前版本 //圣沣版本 Vue.prototype.$appVersion = 'v1.0.1' //APP当前版本 //大岛版本 // Vue.prototype.$baseUrl = 'http://121.196.36.24:8021/api' //本地产品 巨力的数据库 // Vue.prototype.$baseUrl = 'http://122.227.18.22:8000/api' //本地产品 巨立防护(客户地址) // Vue.prototype.$baseUrl = 'http://121.196.36.24:8019/api' // // Vue.prototype.$baseUrl = 'http://121.196.36.24:8032/api' //圣沣项目 // Vue.prototype.$baseUrl = 'http://192.168.2.254:8000/api' //圣沣项目 客户现场实际服务器ip // Vue.prototype.$baseUrl = 'http://121.196.36.24:8039/api' //大岛项目(2.0) // Vue.prototype.$baseUrl = 'http://192.168.2.138:8080/api' //大岛项目(2.0) 客户现场实际服务器ip Vue.prototype.$baseUrl = 'http://121.196.36.24:9090/api' //最新产品 2025/5/8 Vue.prototype.$companyType = 'B' //企业类型(项目类型) A:巨力,B:圣沣,、B: 产品 // A: http://121.196.36.24:8021/api http://122.227.18.22:8000/api // B: http://121.196.36.24:8032/api import global from '@/static/js/global.js'; //引入自定义全局 js方法 Vue.prototype.global = global; setTimeout(() => { uni.getSystemInfo({ success: (res) => { console.log(res, 9999) Vue.prototype.$DeviceInformation = res } }) }, 1000) // 引入请求封装,将app参数传递到配置中 require('./config/request')(app) app.$mount() // // #ifndef VUE3 // import Vue from 'vue' // import './uni.promisify.adaptor' // Vue.config.productionTip = false // App.mpType = 'app' // const app = new Vue({ // ...App // }) // app.$mount() // // #endif // // #ifdef VUE3 // import { createSSRApp } from 'vue' // export function createApp() { // const app = createSSRApp(App) // return { // app // } // } // // #endif