pad-app/main.js

53 lines
1.0 KiB
JavaScript
Raw Permalink Normal View History

2023-07-03 17:49:29 +08:00
import App from './App'
2023-07-10 17:11:31 +08:00
import store from './store'
2023-07-03 17:49:29 +08:00
import config from '@/config';
2023-07-10 17:11:31 +08:00
const {
local,
mapkey,
imgSrc
} = config;
2023-07-03 17:49:29 +08:00
Vue.prototype.$local = local;
Vue.prototype.$imgSrc = imgSrc;
2023-07-10 17:11:31 +08:00
// 配置公共方法
import util from './common/util.js';
Vue.prototype.$util = util;
import Vue from 'vue'
2023-07-03 17:49:29 +08:00
Vue.config.productionTip = false
App.mpType = 'app'
import uniPop from './uni_modules/uni-popup/components/uni-popup/uni-popup'
import liuStepBar from './uni_modules/liu-step-bar/components/liu-step-bar/liu-step-bar'
2023-07-10 17:11:31 +08:00
Vue.component('uni-pop', uniPop)
Vue.component('liu-step-bar', liuStepBar)
import Vant from 'vant';
2023-07-11 15:31:39 +08:00
console.log(Vant)
2023-07-10 17:11:31 +08:00
import 'vant/lib/index.less';
Vue.use(Vant);
import {
RadioGroup,
Radio,
Button,
Uploader,
Field,
Checkbox,
2023-07-12 18:06:16 +08:00
CheckboxGroup,
Progress
2023-07-10 17:11:31 +08:00
} from 'vant';
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Button);
Vue.use(Uploader);
Vue.use(Field);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
2023-07-03 17:49:29 +08:00
const app = new Vue({
store,
2023-07-10 17:11:31 +08:00
...App
2023-07-03 17:49:29 +08:00
})
2023-07-10 17:11:31 +08:00
app.$mount()