时空网前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

64 lines
1.3 KiB

import Vue from 'vue'
import App from './App'
import mixin from '@/common/mixin.js';
import * as API from '@/common/api.js';
Vue.config.productionTip = false
App.mpType = 'app'
Vue.mixin(mixin);
// 将API注入全局
Vue.prototype.API = API;
// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);
import { $http } from '@/common/http.js';
Vue.prototype.$http = $http;
//color-ui-标题组件
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)
// 上拉加载、下拉刷新
import MescrollBody from './components/mescroll-uni/mescroll-body.vue'
Vue.component('mescroll-body', MescrollBody)
//骨架屏
import Skeleton from './components/my-uni-skeleton/index.vue'
Vue.component('skeleton', Skeleton);
// 无数据
import myNocontent from './components/my-nocontent/my-nocontent.vue';
Vue.component('my-nocontent', myNocontent);
//金融数字
import aMount from './components/amount/index.vue'
Vue.component('amount', aMount)
Vue.prototype.$toast=msg=>{
uni.showToast({
icon:'none',
title:msg
})
}
//路由跳转
Vue.prototype.$routerGo = (obj) => {
uni.navigateTo({
url: obj
})
}
const app = new Vue({
...App
})
// 引入http拦截器
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app);
app.$mount();