1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import App from './App'
- import Vue from 'vue'
- import store from './store'
- import uView from 'uview-ui'
- import { req, rootDocment, get, post, postJSON } from './config/util'
- import { api } from './config/api'
- import { api_jd } from './config/api_jd'
- import { api_pdd } from './config/api_pdd'
- import { api_dy } from './config/api_dy'
- import compareVersion from './utils/compareVersion'
- import { NumberHandle, getDay, copyEvent } from './utils/tools'
- import mixin from './utils/mixins/mixin.js' // 设置统一的分享页面信息
- import clipboard from '@/components/clipboard.vue'
- Vue.component('clipboard', clipboard)
- const router = require('./utils/router')
- Vue.use(uView)
- Vue.mixin(mixin)
- Vue.config.productionTip = false
- App.mpType = 'app'
- Vue.prototype.$api = api
- Vue.prototype.$api_jd = api_jd
- Vue.prototype.$api_pdd = api_pdd
- Vue.prototype.$api_dy = api_dy
- Vue.prototype.$rootDocment = rootDocment
- Vue.prototype.$req = req
- Vue.prototype.$get = get
- Vue.prototype.$post = post
- Vue.prototype.$postJSON = postJSON
- Vue.prototype.$compareVersion = compareVersion
- Vue.prototype.$NumberHandle = NumberHandle
- Vue.prototype.$getDay = getDay
- Vue.prototype.$copyEvent = copyEvent
- const app = new Vue({
- store,
- ...App
- })
- app.$mount()
|