voyageCard.js 448 B

123456789101112131415161718192021222324252627282930313233
  1. // components/voyageCard/voyageCard.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. item: {
  8. type: Object
  9. },
  10. cardStyle:{
  11. type:String
  12. }
  13. },
  14. /**
  15. * 组件的初始数据
  16. */
  17. data: {
  18. status: {
  19. 未开航: "not-started",
  20. 运输中: "transit",
  21. 卸货中: "transit",
  22. 卸货完成: "unload-finish"
  23. }
  24. },
  25. /**
  26. * 组件的方法列表
  27. */
  28. methods: {
  29. }
  30. })