| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- import Vue from 'vue'
- import App from './App'
- Vue.config.productionTip = false
- // import uView from "uview-ui";
- // Vue.use(uView);
- import md5 from 'js-md5';
- Vue.prototype.$md5 = md5;
- import dayjs from 'dayjs';
- Vue.prototype.$day = dayjs;
- // 微信全局分享
- import share from '@/utils/share.js'
- Vue.mixin(share)
- import cof from '@/static/config/in';
- Vue.prototype.$cof = cof;
- import hosts from "@/request/config";
- Vue.prototype.$hosts = hosts;
- import { up } from "@/utils/up";
- Vue.prototype.$up = up;
- import { goto } from '@/utils/myfun.js';
- Vue.prototype.goto = goto;
- //注册为全局组件 - 通告
- import noticeBar from "@/components/noticeBar";
- Vue.component('noticeBar', noticeBar);
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- Array.prototype.indexOf = function (val) {
- for (var i = 0; i < this.length; i++) {
- if (this[i] == val) return i;
- }
- return -1;
- };
- Array.prototype.remove = function (val) {
- var index = this.indexOf(val);
- if (index > -1) {
- this.splice(index, 1);
- }
- };
- Vue.directive('myfocus', {
- inserted: (el, binding) => {
- if (binding.value == true || binding.value == undefined) {
- el.focus()
- }
- }
- });
|