import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from "./lang"; // internationalization
import validate from '@/utils/js_sdk/fshjie-formvalidate/ys-validate.js'
import liff from '@line/liff' //line liff
import './permission' // 路由守卫 
import "@/assets/font/iconfont.css";
//全局样式引入
import './assets/styles/index.scss'
Vue.config.productionTip = false
Vue.prototype.$validate = validate
//按需引入vant-ui组件
import {
  Swipe,
  SwipeItem,
  Icon,
  Skeleton,
  Overlay,
  Loading,
  NavBar,
  Cell,
  CellGroup,
  Button,
  Field,
  Search,
  Grid,
  GridItem,
  Image as VanImage,
  Empty,
  Checkbox,
  CheckboxGroup,
  Popup,
  Calendar,
  Radio,
  RadioGroup,
  Stepper,
  Form,
  Notify,
  Toast,
  Dialog,
  CountDown,
  Picker,
  DropdownMenu,
  DropdownItem,
} from "vant";
let vantList = [
  Swipe,
  SwipeItem,
  Icon,
  Skeleton,
  Overlay,
  Loading,
  Cell,
  CellGroup,
  NavBar,
  Button,
  Field,
  Search,
  Grid,
  GridItem,
  VanImage,
  Empty,
  Checkbox,
  CheckboxGroup,
  Popup,
  Calendar,
  Radio,
  RadioGroup,
  Stepper,
  Form,
  Notify,
  Toast,
  Dialog,
  CountDown,
  Picker,
  DropdownMenu,
  DropdownItem,
]
import 'vant/lib/index.css';
for (let i = 0; i < vantList.length; i++) {
  Vue.use(vantList[i]);
}
new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')