工行这里学车报名流程h5
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.

91 lines
1.8 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. import Vue from 'vue';
  2. import Vuex from 'vuex';
  3. import add from './modules/add';
  4. import getters from './getters';
  5. Vue.use(Vuex);
  6. const store = new Vuex.Store({
  7. state: {
  8. currentSchool: '',
  9. latLng: {},
  10. classChooseItem: {},
  11. pdfUrl: '',
  12. webViewUrl: '',
  13. havePay: 0, //tabbar 页面是否显示报错小图标
  14. currentMyMsg: {},
  15. billPrice: 0, //开发票的id
  16. TrainingOrderId: '', //退款流程里的驾校id
  17. bankInfo: {
  18. realName: uni.getStorageSync('userInfo').realName,
  19. phoneCode: ''
  20. },
  21. chooseCoachItem: {
  22. coachId: ''
  23. }, //报名时选择的教练
  24. realAuthsuccee: false,
  25. },
  26. getters,
  27. mutations: {
  28. upDateTrainingSchoolId(state, currentSchool) {
  29. state.currentSchool = currentSchool
  30. },
  31. updatePdfUrl(state, url) {
  32. state.pdfUrl = url
  33. },
  34. upDateRealAuthsuccee(state, flag) {
  35. state.realAuthsuccee = flag
  36. },
  37. updateWebVeiwUrl(state, url) {
  38. state.webViewUrl = url
  39. },
  40. updatePushMyMsg(state, item) {
  41. state.currentMyMsg = item
  42. },
  43. upDateBillPrice(state, billPrice) {
  44. state.billPrice = billPrice
  45. },
  46. upDateTrainingOrderId(state, trainingOrderId) {
  47. state.trainingOrderId = trainingOrderId
  48. },
  49. // tabbar 页面是否显示报错小图标
  50. updateHavePay(state, havePay) {
  51. state.havePay = havePay
  52. },
  53. // 报名时选择教练
  54. upDateCoachItem(state, item) {
  55. state.chooseCoachItem = item
  56. },
  57. // 申请退款时的银行卡信息
  58. upDateBankInfo(state, obj) {
  59. for (let k in obj) {
  60. if (state.bankInfo[k]) {
  61. state.bankInfo[k] = obj[k]
  62. } else {
  63. uni.$set(state.bankInfo, k, obj[k])
  64. }
  65. }
  66. },
  67. // 更新经纬度
  68. updateLatLng(state, item) {
  69. state.latLng = item
  70. },
  71. // 选中班型去报名
  72. ForecastClassType(state, item) {
  73. state.classChooseItem = item
  74. },
  75. // 获取广告位
  76. },
  77. actions: {
  78. },
  79. modules: {
  80. add,
  81. },
  82. });
  83. export default store;