main.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * @Author: liuzhenlin 461480418@qq.ocm
  3. * @Date: 2023-01-12 11:57:48
  4. * @LastEditors: liuzhenlin
  5. * @LastEditTime: 2023-01-19 16:53:09
  6. * @Description: file content
  7. * @FilePath: \crm\main.js
  8. */
  9. import Vue from 'vue'
  10. // //引用并设置环境变量
  11. import '.env.js'
  12. import App from './App'
  13. import store from './store'
  14. import uView from 'uview-ui'
  15. import { parseTime, translateDataToTree, formatPrice, selectDictLabel } from './utils'
  16. import dictApi from '@/api/system/dict'
  17. Vue.prototype.parseTime = parseTime
  18. Vue.prototype.translateDataToTree = translateDataToTree
  19. Vue.prototype.formatPrice = formatPrice
  20. Vue.prototype.selectDictLabel = selectDictLabel
  21. Vue.prototype.getDicts = dictApi.getDictDataByType
  22. Vue.use(uView)
  23. Vue.config.productionTip = false
  24. Vue.prototype.$store = store
  25. App.mpType = 'app'
  26. uni.$u.setConfig({
  27. // 修改$u.props对象的属性
  28. props: {
  29. // 修改radio组件的size参数的默认值,相当于执行 uni.$u.props.radio.size = 30
  30. input: {
  31. placeholderStyle: 'color:#969696;font-size:32rpx',
  32. },
  33. },
  34. })
  35. const app = new Vue({
  36. ...App,
  37. })
  38. app.$mount()