index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view class="expense">
  3. <view class="block">
  4. <view class="item title">
  5. <view class="label">
  6. 起步价
  7. </view>
  8. <view class="value">
  9. 30元
  10. </view>
  11. </view>
  12. <view class="item title">
  13. <view class="label">
  14. 里程费(共30公里)
  15. </view>
  16. <view class="value">
  17. 42元
  18. </view>
  19. </view>
  20. <view class="item">
  21. <view class="label">
  22. 起步里程(含5.0公里)
  23. </view>
  24. <view class="value">
  25. 0元
  26. </view>
  27. </view>
  28. <view class="item">
  29. <view class="label">
  30. 收费里程(含6.0公里)
  31. </view>
  32. <view class="value">
  33. 10.05元
  34. </view>
  35. </view>
  36. <view class="item title border">
  37. <view class="label">
  38. 远途费
  39. </view>
  40. <view class="value">
  41. 10.05元
  42. </view>
  43. </view>
  44. <view class="item">
  45. <view class="label">
  46. 合计
  47. </view>
  48. <view class="value">
  49. 72.05元
  50. </view>
  51. </view>
  52. <view class="total">
  53. 预估金额 <text class="num">72.15</text> 元
  54. </view>
  55. <view class="notice">
  56. 预付费用是根据实时交通情况、预估行驶里程、时间等因素计算
  57. 得出,存在波动,仅供参考。(行程调整、路线修改、高速费等
  58. 将影响最终价格)
  59. </view>
  60. </view>
  61. <view class="block">
  62. <view class="item title">
  63. <view class="label">
  64. 计费规则
  65. </view>
  66. <image class="jiantou" src="../../static/jiantou-icon.png" mode=""></image>
  67. </view>
  68. <view class="item title">
  69. <view class="label">
  70. 常见问题
  71. </view>
  72. <image class="jiantou" src="../../static/jiantou-icon.png" mode=""></image>
  73. </view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. export default {
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .expense {
  83. background: #f5f5f5;
  84. height: 100vh;
  85. padding-top: 20rpx;
  86. .block {
  87. margin-bottom: 20rpx;
  88. background: #fff;
  89. padding: 28rpx 34rpx;
  90. }
  91. .item {
  92. display: flex;
  93. align-items: center;
  94. justify-content: space-between;
  95. color: #AAAAAA;
  96. font-size: 28rpx;
  97. line-height: 70rpx;
  98. position: relative;
  99. .jiantou{
  100. position: absolute;
  101. top: 50%;
  102. right: 0%;
  103. transform: translateY(-50%);
  104. width: 20rpx;
  105. height: 20rpx;
  106. }
  107. }
  108. .item.title {
  109. color: #222222;
  110. }
  111. .item.border {
  112. border-bottom: 2rpx solid #F0F0F0;
  113. padding-bottom: 20rpx;
  114. margin-bottom: 20rpx;
  115. }
  116. .total{
  117. text-align: right;
  118. color: #222222;
  119. font-size: 28rpx;
  120. margin: 28rpx 0;
  121. .num{
  122. font-weight: bold;
  123. font-size: 36rpx;
  124. }
  125. }
  126. .notice{
  127. color: #AAAAAA;
  128. font-size: 24rpx;
  129. }
  130. }
  131. </style>