Files
taimed/main.js
liuyuan 56ee2fee9e 提交
2025-05-23 17:23:44 +08:00

53 lines
1.3 KiB
JavaScript

import Vue from 'vue'
import App from './App'
import qs from 'qs'
// uView组件库
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
//挂载全局http请求
import http from '@/config/requestConfig.js';
Vue.prototype.$http = http
import commonJS from '@/common/commonJS.js'
Vue.prototype.$commonJS = commonJS
//数据管理中心
import store from '@/store'
Vue.prototype.$store = store;
//权限配置中心
import base from '@/config/baseUrl.js'
Vue.prototype.$base = base;
Vue.config.productionTip = false
//判断是否登录
import { judgeLogin } from '@/config/login';
Vue.prototype.judgeLogin = judgeLogin;
Vue.prototype.isShowHtml = store.state.loadingShow;
Vue.prototype.$baseUrl = "https://api.nuttyreading.com/"
//Vue.prototype.$baseUrl = "http://192.168.110.100:9200/pb/"
//判断手机型号
uni.getSystemInfo({
success: function (res) {
Vue.prototype.$platform = res.platform;
Vue.prototype.iosHidden = true;
if (res.platform == 'ios') {
Vue.prototype.iosHidden = false; //ios临时隐藏听书
Vue.prototype.iosHide = true;
} else {
Vue.prototype.iosHide = true;
}
}
})
import commonList from '@/pages/component/commonComponents/list.vue'
Vue.component('common-list', commonList);
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()