123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import App from './App'
- import Vue from 'vue'
- import store from './store'
- import uView from 'uview-ui'
- import moment from 'moment'
- 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 { api_wph } from './config/api_wph'
- 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.$api_wph = api_wph
- 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
- Vue.prototype.$moment = moment
- const app = new Vue({
- store,
- ...App
- })
- app.$mount()
|