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.

71 lines
1.2 KiB

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