您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

week.js 713B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* eslint-disable no-restricted-syntax */
  2. /* eslint-disable guard-for-in */
  3. import axios from 'axios';
  4. export default {
  5. namespaced: true,
  6. state: {
  7. week: {
  8. id: '',
  9. unit: '',
  10. week: '',
  11. module: '',
  12. price: '',
  13. currentLevy: '',
  14. },
  15. contactDetails: {
  16. name: '',
  17. number: '',
  18. email: '',
  19. },
  20. },
  21. mutations: {
  22. setWeek(state, week) {
  23. state.week = week;
  24. },
  25. },
  26. getters: {},
  27. actions: {
  28. initWeek({
  29. commit,
  30. }, weekId) {
  31. commit('setWeek', {
  32. id: weekId,
  33. unit: '359',
  34. week: 'N18',
  35. module: '359/N18 River View',
  36. price: 85000,
  37. currentLevy: 5455,
  38. });
  39. },
  40. },
  41. };