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.

trajectory.vue 4.1KB

1 rok temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <template>
  2. <view class="content">
  3. <view class="des">请查收您的通行记忆,让每段行程都有意义。</view>
  4. <view class="choice-content">
  5. <view class="choice-car">
  6. <picker @change="bindPickerChange" :value="state.index" :range="state.array">
  7. <view class="uni-input">{{state.array[state.index]}}</view>
  8. </picker>
  9. </view>
  10. <view class="content-det">
  11. <view class="left">
  12. <view class="left-item">
  13. <image src="../../static/image/home-on.png" ></image>
  14. <view>
  15. <view class="data">0km</view>
  16. <view>高速通行总里程</view>
  17. </view>
  18. </view>
  19. <view class="left-item">
  20. <image src="../../static/image/home-on.png" ></image>
  21. <view>
  22. <view class="data">0元</view>
  23. <view>高速通行总金额</view>
  24. </view>
  25. </view>
  26. <view class="left-item">
  27. <image src="../../static/image/home-on.png" ></image>
  28. <view>
  29. <view class="data">0次</view>
  30. <view>高速通行总消费次数</view>
  31. </view>
  32. </view>
  33. <view class="left-item">
  34. <image src="../../static/image/home-on.png" ></image>
  35. <view>
  36. <view class="data">5个</view>
  37. <view>高速通行曾抵达过的城市教</view>
  38. </view>
  39. </view>
  40. <view class="left-item" style="margin-bottom: 30rpx;">
  41. <image src="../../static/image/home-on.png"></image>
  42. <view>
  43. <view class="data">暂无</view>
  44. <view>您最喜爱的目的地,曾累计到访过0次</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="right">
  49. <view>您超过了1%的九州ETC用户</view>
  50. <image src="../../../static/image/home-on.png" mode="" ></image>
  51. <view class="see" @click="see()">查看我的轨迹图</view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="record">
  56. <view class="current">
  57. <text>6月通行</text>
  58. <view class="more">查看历史月度统计 <image src="../../../static/image/icon-back.png"></image></view>
  59. </view>
  60. <view class="detail">木月九州EC比你通行了0次高速通行查看历史月度统计要消费0元要通行</view>
  61. </view>
  62. </view>
  63. </template>
  64. <script setup lang="ts">
  65. import { reactive } from "vue";
  66. import {request} from "@/utils/network/request.js";
  67. import {stringToJson} from "@/utils/network/encryption.js";
  68. import { onLoad} from "@dcloudio/uni-app";
  69. import {} from "@/utils/network/api.js";
  70. const state = reactive({
  71. array: ['贵Z11111', '贵Z22222'],
  72. index: 0,
  73. })
  74. onLoad((option : any) => {
  75. })
  76. const bindPickerChange=(e)=> {
  77. console.log('picker发送选择改变,携带值为', e.detail.value)
  78. state.index = e.detail.value
  79. }
  80. const see=()=>{
  81. uni.navigateTo({
  82. url:"/subpackage/personal-center/trajectory/trajectory-map"
  83. })
  84. }
  85. </script>
  86. <style scoped>
  87. .content{
  88. font-size: 32rpx;
  89. }
  90. .des{
  91. margin: 20rpx 0 20rpx 40rpx;
  92. }
  93. .choice-content{
  94. width:90%;
  95. margin: 0 auto;
  96. min-height:500rpx;
  97. box-shadow: 0px 0px 8px 2px rgb(218, 247, 247) inset;
  98. overflow: hidden;
  99. }
  100. .choice-car{
  101. width: 180rpx;
  102. background-color: rgb(158, 247, 247);
  103. margin-top: 30rpx;
  104. padding: 10rpx;
  105. }
  106. .left-item{
  107. display: flex;
  108. margin-bottom: 50rpx;
  109. }
  110. .left-item>image{
  111. width: 70rpx;
  112. height: 70rpx;
  113. display: inline-block;
  114. margin-right: 30rpx;
  115. flex-shrink: 0;
  116. }
  117. .data{
  118. font-weight: bold;
  119. }
  120. .content-det{
  121. padding: 30rpx;
  122. box-sizing: border-box;
  123. display: flex;
  124. }
  125. .right>image{
  126. width: 120rpx;
  127. height: 120rpx;
  128. display: inline-block;
  129. margin: 30rpx auto;
  130. margin-left: 40rpx;
  131. }
  132. .see{
  133. background-color: rgb(158, 247, 247);
  134. border-radius: 20rpx;
  135. text-align: center;
  136. height: 54rpx;
  137. line-height: 54rpx;
  138. font-size: 28rpx;
  139. }
  140. .left{
  141. flex: 2;
  142. }
  143. .right{
  144. flex: 1;
  145. }
  146. .record{
  147. width: 90%;
  148. min-height: 220rpx;
  149. box-shadow: 0px 0px 8px 2px rgb(218, 247, 247) inset;
  150. margin: 20rpx auto;
  151. padding: 30rpx;
  152. box-sizing: border-box;
  153. }
  154. .current{
  155. border-bottom: 1rpx solid #ccc;
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. padding-bottom: 20rpx;
  160. }
  161. .more>image{
  162. transform: rotate(180deg);
  163. width: 30rpx;
  164. height: 30rpx;
  165. vertical-align: middle;
  166. }
  167. .detail{
  168. margin-top: 20rpx;
  169. line-height: 40rpx;
  170. }
  171. </style>