constants_services.dart 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. import 'package:cs_resources/generated/l10n.dart';
  2. import 'modules/services/homeService/home_service_vm.dart';
  3. class servicesConstants {
  4. static const String dollarUnit = "\$";
  5. // homesevice sortBy options
  6. static Map<String, String> sortByOptionsMap = {
  7. S.current.most_likes: SortByType.likes_count.name,
  8. S.current.most_bookmarked: SortByType.orders_count.name,
  9. S.current.view_at_most: SortByType.clicks_count.name,
  10. };
  11. static Map<String, Map<String, dynamic>> servicesType = {
  12. "houseCleaning": {
  13. "text": S.current.house_cleaning,
  14. "type": "paid",
  15. 'code': "House Cleaning", // 业务做 标识 字段
  16. },
  17. "airConditioner": {
  18. "text": S.current.air_conditioning_cleaning,
  19. "type": "paid",
  20. 'code': "Air Conditioning Cleaning", // 业务做 标识 字段
  21. },
  22. "repairAirConditioner": {
  23. "text": S.current.maintenance,
  24. "type": "inquiry",
  25. 'code': "Repair air Conditioner", // 业务做 标识 字段
  26. }
  27. };
  28. static Map<String, dynamic> servicesStatus = {
  29. "0": {
  30. "text": S.current.wait_paid,
  31. "type": "Wait Paid",
  32. 'code': 0,
  33. },
  34. "1": {
  35. "text": S.current.wait_service,
  36. "type": "Wait Service",
  37. 'code': 1,
  38. },
  39. "2": {
  40. "text": S.current.completed,
  41. "type": "Completed",
  42. 'code': 2,
  43. },
  44. "3": {
  45. "text": S.current.canceled,
  46. "type": "Canceled",
  47. 'code': 3,
  48. }
  49. };
  50. static Map<String, List<Map<String, dynamic>>> servicesStatusActionBtnList = {
  51. // 0 waitPaid, 1 waitService, 2 completed, 3 canceled
  52. '0': [
  53. actionBtn['0'],
  54. actionBtn['2'],
  55. actionBtn['3'],
  56. ],
  57. '1': [
  58. actionBtn['1'],
  59. actionBtn['2'],
  60. actionBtn['3'],
  61. ],
  62. '2': [
  63. actionBtn['4'],
  64. actionBtn['5'],
  65. ],
  66. '3': [
  67. actionBtn['4'],
  68. ]
  69. };
  70. static Map<String, dynamic> actionBtn = {
  71. "0": {
  72. "text": S.current.proceed_with_payment,
  73. "type": "proceedWidthPayment",
  74. 'code': 0,
  75. 'btnColor': '#FFFE6C00',
  76. 'btnWidth': 65.0,
  77. 'btnHeight': 35.0,
  78. },
  79. "1": {
  80. "text": S.current.cancel,
  81. "type": "cancel",
  82. 'code': 1,
  83. 'btnColor': '#FFFE6C00',
  84. 'btnWidth': 65.0,
  85. 'btnHeight': 35.0,
  86. },
  87. "2": {
  88. "text": S.current.contact_merchant,
  89. "type": "contactMerchant",
  90. 'code': 2,
  91. 'btnColor': '#FF01B5EB',
  92. 'btnWidth': 115.0,
  93. 'btnHeight': 35.0,
  94. },
  95. "3": {
  96. "text": S.current.contact_service_personnel,
  97. "type": "contactServicePersonnel",
  98. 'code': 3,
  99. 'btnColor': '#FF01CA48',
  100. 'btnWidth': 115.0,
  101. 'btnHeight': 35.0,
  102. },
  103. "4": {
  104. "text": S.current.delete,
  105. "type": "delete",
  106. 'code': 4,
  107. 'btnColor': '#FFFE4066',
  108. 'btnWidth': 98.0,
  109. 'btnHeight': 30.0,
  110. },
  111. "5": {
  112. "text": S.current.evaluate,
  113. "type": "evaluate",
  114. 'code': 5,
  115. 'btnColor': '#FF01B5EB',
  116. 'btnWidth': 98.0,
  117. 'btnHeight': 30.0,
  118. }
  119. };
  120. // 咨询 类的 状态
  121. static Map<String, dynamic> servicesInquiryStatus = {
  122. "0": {
  123. "text": S.current.in_progress,
  124. "type": "inProgress",
  125. 'code': 0,
  126. },
  127. "1": {
  128. "text": S.current.completed,
  129. "type": "completed",
  130. 'code': 1,
  131. },
  132. };
  133. }