import Vue from 'vue'
import App from './App'
//接口请求方式一
import api from '@/common/api'
Vue.prototype.$api = api
// 接口请求方式二 （url,method,data(请求参数),noToken, noLoading）
import { myRequest } from '@/common/request.js'
Vue.prototype.$http = myRequest

import store from './store'
Vue.prototype.$store = store
//提示框
import layer from '@/common/layer'
Vue.prototype.$layer = layer
// 页面跳转
import * as navTo from '@/common/navTo'
Vue.prototype.$navTo = navTo
// 验证登入有效等...
import method from '@/common/methodTool'
Vue.prototype.$method = method
import filters from './filters/index.js'
//import share from '@/js_sdk/share.js'
//Vue.mixin(share)
import uView from "uview-ui";
Vue.use(uView);

// 全局过滤器
Vue.filter('formate', filters['formDate'])

Vue.config.productionTip = false

App.mpType = 'app'


const app = new Vue({
	...App
})
app.$mount()
