import App from './App'
import Vue from 'vue'

// vuex
import store from './store'

import api from '@/common/request.api.js'
Vue.prototype.$api = api

Vue.config.productionTip = false
App.mpType = 'app'

import {
	stringIsEmpty,
	stringIsNotEmpty
} from "@/common/empty.js"
Vue.prototype.stringIsEmpty = stringIsEmpty
Vue.prototype.stringIsNotEmpty = stringIsNotEmpty

import {
	getQueryString,
} from "@/common/getQuery.js"
Vue.prototype.getQueryString = getQueryString

import {
	shortToast,
	longToast
} from "@/common/toast.js"
Vue.prototype.shortToast = shortToast
Vue.prototype.longToast = longToast


import bus from './common/bus.js';

//挂载到this上
Vue.prototype.$bus = bus;


import {pay} from './uni_modules/common-pay/utils/pay.js'
//挂载到this上
Vue.prototype.$pay = pay;


import {convertPrice} from './common/price.js'
//挂载到this上
Vue.prototype.convertPrice = convertPrice;

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