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.
 
 
 
 

65 lines
1.2 KiB

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 {
timeText,
timeFormat,
currentMillions,
getWeekStr,
getTodayEndTime
} from "./common/Time.js"
Vue.prototype.TimeText = timeText
Vue.prototype.TimeFormat = timeFormat
Vue.prototype.GetWeekStr = getWeekStr
Vue.prototype.CurrentMillions = currentMillions
Vue.prototype.GetTodayEndTime = getTodayEndTime
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()