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.

66 lines
1.1 KiB

3 months ago
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store' // store
  4. import plugins from './plugins' // plugins
  5. import './permission' // permission
  6. import share from 'utils/share.js'//share.js
  7. import uView from '@/uni_modules/uview-ui'
  8. Vue.use(uView)
  9. Vue.use(plugins)
  10. Vue.config.productionTip = false
  11. Vue.prototype.$store = store
  12. App.mpType = 'app'
  13. Vue.mixin(share)
  14. // 创建一个空的Vue实例作为事件中心
  15. Vue.prototype.$eventHub = new Vue()
  16. // 创建全局变量
  17. Vue.prototype.$globalData = {
  18. isAgree:false,
  19. submitData: {
  20. "phone": "",
  21. "wechatId": "",
  22. "note": "",
  23. "totalPrice": "",
  24. "address": {
  25. "province": "",
  26. "city": "",
  27. "district": "",
  28. "detailAddress": ""
  29. },
  30. "skuList": [],
  31. "service": {
  32. "serviceFrequency": "once_a_day",
  33. "serviceDate": [],
  34. "serviceTimeFirst": "",
  35. "serviceTimeSecond": "",
  36. "pet": []
  37. }
  38. },
  39. mainSku:[],
  40. augmentedSku:[],
  41. itemPrices:[],
  42. servicePrices:[],
  43. openIdStr:'',
  44. confirmData: {
  45. phone: "",
  46. wechatId: "",
  47. note: "",
  48. },
  49. newOrderData:{
  50. currentAddress:{},
  51. currentPets:[],
  52. totalPrice:0,
  53. needPreFamiliarize:[]
  54. }
  55. }
  56. const app = new Vue({
  57. ...App
  58. })
  59. app.$mount()