import Vue from 'vue'
import App from './App'
import { all } from 'vue-client'
import GetAppDataService from './stores/AppData'
import GetStringData from './plugins/GetStringData'
/* require('./assets/fonttype/fontAndroid.less')*/

/** **************************通用组件******************************/

export default function () {
  Vue.use(GetAppDataService)
  Vue.use(GetStringData)
// 测试
  Vue.component('test', (resolve) => {
    require(['./components/Test'], resolve)
  })
// android登录
  Vue.component('login-app', (resolve) => {
    require(['./components/LoginApp'], resolve)
  })
// 导航
  Vue.component('nav-bottom', (resolve) => {
    require(['./components/gaomi/NavBottomV'], resolve)
  })
  Vue.component('nav-bottomss', (resolve) => {
    require(['./components/gaomi/NavBottomVVVV'], resolve)
  })
// 导航
  Vue.component('scroller', (resolve) => {
    require(['./components/gaomi/Scroller'], resolve)
  })
  // 导航
  Vue.component('tab-bar', (resolve) => {
    require(['./components/TabBarPhone'], resolve)
  })
// 只加载参数（只有下拉框所需参数）
  Vue.component('load-appdata', (resolve) => {
    require(['./components/LoadAppdata'], resolve)
  })
  // 头部标题
  Vue.component('tools-page', (resolve) => {
    require(['./components/gaomi/ToolsPage'], resolve)
  })
  // 用户信息查找
  Vue.component('phone-user-find', (resolve) => {
    require(['./components/PhoneUserFind'], resolve)
  })
  // 用户信息查找
  Vue.component('phone-info-table', (resolve) => {
    require(['./components/PhoneInfoTable'], resolve)
  })
  // 用户信息查找
  Vue.component('phone-sell-info', (resolve) => {
    require(['./components/PhoneSellInfo'], resolve)
  })
  // 用户购气记录查询
  Vue.component('phone-sell-info-lite', (resolve) => {
    require(['./components/PhoneSellInfoLite'], resolve)
  })
  // 用户信息查找
  Vue.component('phone-changemeter-info', (resolve) => {
    require(['./components/PhoneChangemeterInfo'], resolve)
  })
  // 用户信息查找
  Vue.component('phone-repair-info', (resolve) => {
    require(['./components/PhoneRepairInfo'], resolve)
  })
  // 设置
  Vue.component('system-setup', (resolve) => {
    require(['./components/gaomi/SystemSetUp'], resolve)
  })
  // 待办工作
  Vue.component('attend-manage', (resolve) => {
    require(['./components/AttendManage'], resolve)
  })
  // 上传工作
  Vue.component('upload-manage', (resolve) => {
    require(['./components/UploadManage'], resolve)
  })
  // 已办工作
  Vue.component('already-service', (resolve) => {
    require(['./components/AlreadyService'], resolve)
  })
  // 在线业务
  Vue.component('online-manage', (resolve) => {
    require(['./components/OnlineManage'], resolve)
  })
  // 修改密码
  Vue.component('modify-pass-word', (resolve) => {
    require(['./components/ModifyPassWord'], resolve)
  })
  Vue.component('wasm-test', (resolve) => {
    require(['./components/wasm'], resolve)
  })
  Vue.component('right-tree', (resolve) => {
    require(['./components/RightTree'], resolve)
  })
  Vue.component('apply-online', (resolve) => {
    require(['./components/online/ApplyOnline'], resolve)
  })


// // 只加载参数（只有下拉框所需参数）
// Vue.component('alone-load-params', (resolve) => { require(['./components/AloneLoadParams'], resolve) })
}
