zhouhao
2022-01-06 5b342cbbff11503595623891b9802a6e1570f092
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 * @Descripttion: 修改配置
 * @Author: TM丶
 * @Date: 2019-08-14 14:05:51
 * @LastEditors: 小明丶
 * @LastEditTime: 2020-09-03 10:44:01
 */
 
 
import Vue from 'vue';
// import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { Button, Select } from 'element-ui'
import vantRegister from '@/components/vant_register'; //vant组件
import Validator from '@/utils/formValidator'; //vant组件
import log from '@/utils/console';
import { Uploader,Toast  } from 'vant';
import store from "@/store/index";
import router from "@/router/index";
import App from "./App.vue";
import api from "@/api"; //接口
import filters from '@/utils/filters';
import { Image as VanImage } from 'vant';
import { Form } from 'vant';
import { Popup } from 'vant';
import { Overlay } from 'vant';
 
Vue.use(Popup);
 
// import androidBack from './utils/pageBackByAndroid';
Vue.config.productionTip = false; // 关闭生产的提示
 
 
import "@/style/normalize.less";
import "@/style/common.less";
import "@/style/vant_reset.less";
 
Vue.use(Form);
Vue.use(api)
Vue.use(filters)
Vue.use(Validator)
// Vue.use(vuxRegister)
Vue.use(vantRegister)
// Vue.use(customerComponents)
Vue.use(Select)
Vue.use(log);
Vue.use(VanImage);
Vue.use(Uploader);
Vue.use(Toast);
Vue.use(Overlay);
new Vue({
    store,
    router,
    mounted() {
        // var u = navigator.userAgent;
        // if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {
        //     window.addEventListener("resize", function() {
        //         let el = document.activeElement;
        //         if(el.tagName=="INPUT" || el.tagName=="TEXTAREA") {
        //             window.setTimeout(function() {
        //                 el.scrollIntoView({
        //                     behavior:'smooth',
        //                 });
        //             },16.7);
        //         }
        //     })
        // }
    },
    render: h => h(App)
}).$mount("#app")
 
// androidBack.androidBackBtn();