main.js 1.88 KB
import Vue from 'vue'
import { Popup, Toast, Picker, Tag, Tab, Tabs, Area, Search, Swipe,Col, Row , SwipeItem, Cell, List, Collapse, CollapseItem, Button, Field, Icon, Sticky, DropdownMenu, DropdownItem, Rate, Calendar, Checkbox, Empty, Lazyload, Radio, RadioGroup, CellGroup, Dialog, CheckboxGroup, NavBar, PullRefresh, Cascader , ImagePreview } from 'vant';
import App from './App.vue'
import router from './router'
import store from './store'

import Moment from 'moment'
Vue.prototype.Moment = Moment;

Vue.prototype.proxyUrl = 'https://proxy.shunzhi.net/prod';
Vue.prototype.yanxueUrl = 'https://yanxue.myjxt.com';
// Vue.prototype.dataUrl = 'http://47.110.50.251:9010'
Vue.prototype.dataUrl = 'https://proxy.shunzhi.net/consulte'
// Vue.prototype.kqUrl = 'http://47.110.50.251:9092/'
Vue.prototype.kqUrl = 'https://proxy.shunzhi.net/achieve'

import yxAxios from '@/https/yxAxios'
Vue.prototype.yxAxios = yxAxios;
Vue.prototype.dialog = Dialog;

import {zwlogPvGlobal}  from './common/zwUtil.js'
Vue.prototype.$zwlogPvGlobal = zwlogPvGlobal;

import common from './common/index'
Vue.prototype.common = common;

Vue
    .use(Popup)
    .use(Picker)
    .use(Tag)
    .use(Tab)
    .use(Tabs)
    .use(Area)
    .use(Search)
    .use(Swipe)
    .use(SwipeItem)
    .use(Cell)
    .use(CellGroup)
    .use(List)
    .use(Collapse)
    .use(CollapseItem)
    .use(Button)
    .use(Field)
    .use(Icon)
    .use(Sticky)
    .use(DropdownMenu)
    .use(DropdownItem)
    .use(Rate)
    .use(Calendar)
    .use(Checkbox)
    .use(CheckboxGroup)
    .use(Empty)
    .use(Lazyload)
    .use(Toast)
    .use(Dialog)
    .use(NavBar)
    .use(PullRefresh)
    .use(RadioGroup)
    .use(Cascader)
    .use(ImagePreview)
    .use(Radio)
    .use(Col)
    .use(Row);
Vue.config.productionTip = false;
Vue.config.ignoredElements = ['wx-open-launch-app'];
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')