工单小程序2024-11-20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
918 B

3 months ago
  1. import Vue from 'vue'
  2. import util from './utils.js'
  3. import time from './timeUtils.js'
  4. import 'dayjs/locale/zh-cn'
  5. import dayjs from 'dayjs'
  6. import md5 from './lib/md5.js'
  7. // #ifdef H5
  8. import jWeixin from './lib/jweixin-module.js'
  9. import { wxPay } from './pay.js'
  10. Vue.prototype.$jWeixin = jWeixin
  11. Vue.prototype.$wxPay = wxPay
  12. // #endif
  13. dayjs.locale('zh-cn')
  14. import Oss from '@/utils/oss-upload/oss/index.js'
  15. import { handleTree } from './tree.js'
  16. Vue.prototype.$handleTree = handleTree
  17. Vue.prototype.$Oss = Oss
  18. Vue.prototype.$dayjs = dayjs
  19. Vue.prototype.$timeUtils = time
  20. Vue.prototype.$utils = util
  21. Vue.prototype.$md5 = md5
  22. Vue.prototype.previewImage = (urls, current) => {
  23. uni.previewImage({
  24. urls,
  25. current,
  26. })
  27. }
  28. Vue.prototype.openLocation = (latitude, longitude) => {
  29. if(!latitude || !longitude){
  30. return
  31. }
  32. uni.openLocation({
  33. latitude : Number(latitude),
  34. longitude : Number(longitude),
  35. })
  36. }