import Vue from 'vue' import App from './App' Vue.config.productionTip = false // import uView from "uview-ui"; // Vue.use(uView); // 此文件配置进入app即运行的方法 import "@/utils/run_now.js"; // require('@/utils/run_now.js'); import "@/static/font/DIN/din.css"; import md5 from 'js-md5'; Vue.prototype.$md5 = md5; import dayjs from 'dayjs'; Vue.prototype.$day = dayjs; import cof from '@/static/config/in'; Vue.prototype.$cof = cof; // 微信全局分享 import share from '@/utils/share.js' Vue.mixin(share) // js高精度计算 import highPrecision from "@/utils/highPrecision"; Vue.prototype.$h = highPrecision; // 自动适配接口域名 import hosts from "@/request/config"; Vue.prototype.$hosts = hosts; // 缓存封装 import { setCache, getCache } from "@/utils/storage.js" Vue.prototype.setCache = setCache; Vue.prototype.getCache = getCache; // 上传 import { up } from "@/utils/up"; Vue.prototype.$up = up; import { goto, tidyTpye, hotelStarf } from '@/utils/myfun.js'; Vue.prototype.goto = goto; // 页面跳转 Vue.prototype.tidyTpye = tidyTpye; // 专区判断 Vue.prototype.hotelStarF = hotelStarf; // 酒店星级判断 App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() Vue.directive('focus', { inserted: (el, binding) => { if (binding.value == true || binding.value == undefined) { el.focus() } } });