/*
 * @Author: liuzhenlin 461480418@qq.ocm
 * @Date: 2023-01-12 11:57:48
 * @LastEditors: liuzhenlin
 * @LastEditTime: 2023-01-19 16:53:09
 * @Description: file content
 * @FilePath: \crm\main.js
 */

import Vue from 'vue'
// //引用并设置环境变量
import '.env.js'
import App from './App'
import store from './store'
import uView from 'uview-ui'
import { parseTime, translateDataToTree, formatPrice, selectDictLabel } from './utils'
import dictApi from '@/api/system/dict'

Vue.prototype.parseTime = parseTime
Vue.prototype.translateDataToTree = translateDataToTree
Vue.prototype.formatPrice = formatPrice
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.getDicts = dictApi.getDictDataByType

Vue.use(uView)
Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'

uni.$u.setConfig({
  // 修改$u.props对象的属性
  props: {
    // 修改radio组件的size参数的默认值，相当于执行 uni.$u.props.radio.size = 30
    input: {
      placeholderStyle: 'color:#969696;font-size:32rpx',
    },
  },
})

const app = new Vue({
  ...App,
})
app.$mount()
