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.

52 lines
960 B

2 years ago
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'
2 years ago
import {
stringIsEmpty,
stringIsNotEmpty
} from "@/common/empty.js"
Vue.prototype.stringIsEmpty = stringIsEmpty
Vue.prototype.stringIsNotEmpty = stringIsNotEmpty
2 years ago
import {
getQueryString,
} from "@/common/getQuery.js"
Vue.prototype.getQueryString = getQueryString
2 years ago
import {
shortToast,
longToast
} from "@/common/toast.js"
Vue.prototype.shortToast = shortToast
Vue.prototype.longToast = longToast
1 year ago
import bus from './common/bus.js';
1 year ago
1 year ago
//挂载到this上
Vue.prototype.$bus = bus;
1 year ago
1 year ago
import {pay} from './uni_modules/common-pay/utils/pay.js'
//挂载到this上
Vue.prototype.$pay = pay;
1 year ago
import {convertPrice} from './common/price.js'
//挂载到this上
Vue.prototype.convertPrice = convertPrice;
2 years ago
const app = new Vue({
2 years ago
store,
...App
2 years ago
})
2 years ago
app.$mount()