Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

flowingWater.vue 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. <template>
  2. <view class="wrapper">
  3. <!-- 背景颜色充满屏 -->
  4. <view class="bg-color"></view>
  5. <!-- 补卡额订单列表-->
  6. <view class="search-box">
  7. <image :src="`${$imgUrl}service/icon-search.png`" class="icon"></image>
  8. <input class="search" placeholder="请输入充车牌/流水编号/出入站名/ETC卡号" />
  9. </view>
  10. <view class="search-time">
  11. <view class="search-time-box" @click="showCalender">
  12. <u-calendar
  13. v-model="show"
  14. mode="range"
  15. @change="changeHandle"
  16. max-date="2100-01-01"
  17. range-bg-color="#00B38B"
  18. active-bg-color="#00B38B"
  19. range-color="#fff"
  20. ></u-calendar>
  21. <view class="show-info">
  22. <view class="show-text" v-if="dataTime.startDate">
  23. <text class="date-text text-val">{{dataTime.startDate}}</text>
  24. <text class="line"></text>
  25. <text class="date-text text-val">{{dataTime.endDate}}</text>
  26. </view>
  27. <view class="show-text" v-else>
  28. <text class="date-text">开始时间</text>
  29. <text class="line"></text>
  30. <text class="date-text">结束时间</text>
  31. </view>
  32. <u-icon name="calendar" :custom-style="{color:'#999999', size: '28rpx'}"></u-icon>
  33. </view>
  34. </view>
  35. <view class="time-btn">查询</view>
  36. </view>
  37. <view class="total-num">金额合计:XXXXXX</view>
  38. <view class="list-wrap">
  39. <view class="card-info" v-for="item in listData" :key="item.id">
  40. <view class="info-wrap">
  41. <view class="info-left">
  42. <view class="info-left-text">
  43. <text class="label">流水单号:</text>
  44. <text class="val">MA89200010</text>
  45. </view>
  46. <view>
  47. <text class="label">ETC卡号:</text>
  48. <text class="val">0110200001</text>
  49. </view>
  50. </view>
  51. <view class="info-right">
  52. <view class="price-label">
  53. 交易金额
  54. </view>
  55. <view class="price-val">
  56. <u-icon name="rmb"></u-icon>
  57. <text class="price-val-text">104.00</text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="card-text-wrap">
  62. <view class="text-box">
  63. <text class="name-text">贵阳西</text>
  64. <text class="time-text">12:09</text>
  65. <text class="date-text">2023-01-08</text>
  66. </view>
  67. <view class="arrow-wrap">
  68. <text class="arrow-text">粤A12345</text>
  69. <image class="d-img" :src="`${$imgUrl}order/arrowCard.png`"></image>
  70. </view>
  71. <view class="text-box">
  72. <text class="name-text">XXXXX</text>
  73. <text class="time-text">18:52</text>
  74. <text class="date-text">2023-01-08</text>
  75. </view>
  76. </view>
  77. <view class="btn-wrap">
  78. <view>
  79. <text v-if="item.status === 2" class="status-wrap">审核进度:<text class="status-text">审核中</text></text>
  80. <text v-if="item.status === 3" class="status-wrap">审核进度:<text>已完成</text></text>
  81. </view>
  82. <view class="btn-1 btn" v-if="item.status === 1" @click="toApply(item)">补卡额申请</view>
  83. <view class="btn-1 btn" v-if="item.status === 2" @click="toView(item)">查看进度</view>
  84. <view class="btn-1 btn" v-if="item.status === 3" @click="toEvaluate(item)">去评价</view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </template>
  90. <script lang="ts" setup>
  91. import {
  92. reactive,
  93. ref
  94. } from "vue";
  95. const show = ref(false);
  96. const dataTime = reactive({
  97. startDate: "",
  98. endDate: ""
  99. })
  100. const listData = reactive([
  101. {
  102. id: 1,
  103. status: 1 // 补卡
  104. },
  105. {
  106. id: 2,
  107. status: 2 // 查看进度
  108. },
  109. {
  110. id: 3,
  111. status: 3 // 去评价
  112. },
  113. ])
  114. // 日期修改
  115. function changeHandle(e) {
  116. dataTime.startDate = e.startDate;
  117. dataTime.endDate = e.endDate;
  118. }
  119. // 展示日历
  120. function showCalender() {
  121. show.value = true
  122. }
  123. // 补卡申请
  124. function toApply(item) {
  125. uni.navigateTo({
  126. url: `/orders/cardAmount?id=${item.id}`
  127. });
  128. }
  129. // 去评价
  130. function toEvaluate(item) {
  131. uni.navigateTo({
  132. url: `/orders/order-evaluate?id=${item.id}`
  133. });
  134. }
  135. // 查看进度
  136. function toView(item) {
  137. uni.navigateTo({
  138. url: `/orders/cardAmountDetail?id=${item.id}`
  139. });
  140. }
  141. </script>
  142. <style lang="scss" scoped>
  143. .bg-color {
  144. position: fixed;
  145. top: 0;
  146. left: 0;
  147. right: 0;
  148. bottom: 0;
  149. background: #EEF7F7;
  150. z-index: -1;
  151. }
  152. .search-box {
  153. margin: 30rpx 30rpx 20rpx 30rpx;
  154. height: 72rpx;
  155. height: 81rpx;
  156. background: #FFFFFF;
  157. border: 1px solid #DCDCDC;
  158. border-radius: 40rpx;
  159. display: flex;
  160. justify-content: center;
  161. align-items: center;
  162. box-sizing: border-box;
  163. }
  164. .search-box .icon {
  165. width: 48rpx;
  166. height: 48rpx;
  167. margin: 0 20rpx;
  168. }
  169. .search-box .search {
  170. flex: 1;
  171. margin-right: 20rpx;
  172. height: 100%;
  173. padding: 0 10rpx;
  174. font-size: 28rpx;
  175. color: #00b38b;
  176. }
  177. .scroll-view {
  178. white-space: nowrap;
  179. position: sticky;
  180. top: 0;
  181. background: #ffffff;
  182. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  183. }
  184. .search-time {
  185. // width: 100%;
  186. display: flex;
  187. padding: 10rpx 30rpx 30rpx;
  188. .search-time-box{
  189. flex: 1;
  190. }
  191. .time-btn {
  192. width: 130rpx;
  193. height: 80rpx;
  194. background: #00B38B;
  195. border-radius: 40rpx;
  196. color: #FFFFFF;
  197. font-size: 32rpx;
  198. line-height: 80rpx;
  199. text-align: center;
  200. margin-left: 20rpx;
  201. }
  202. .show-info {
  203. // width: 541rpx;
  204. width: 85%;
  205. height: 81rpx;
  206. padding: 0 31rpx;
  207. background: #FFFFFF;
  208. border: 1px solid #DCDCDC;
  209. border-radius: 40rpx;
  210. display: flex;
  211. justify-content: space-between;
  212. align-items: center;
  213. .show-text {
  214. display: flex;
  215. align-items: center;
  216. }
  217. .date-text {
  218. color: #999999;
  219. font-size: 28rpx;
  220. }
  221. .text-val {
  222. color: #333
  223. }
  224. .line {
  225. width: 25rpx;
  226. height: 1rpx;
  227. background: #999999;
  228. margin: 0 24rpx;
  229. }
  230. }
  231. }
  232. .total-num {
  233. font-size: 28rpx;
  234. color: #999999;
  235. margin-left: 30rpx;
  236. }
  237. .list-wrap {
  238. margin: 30rpx;
  239. padding-bottom: 20rpx;
  240. }
  241. .card-info {
  242. background: #FFFFFF;
  243. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  244. border-radius: 20rpx;
  245. margin-bottom: 30rpx;
  246. padding: 30rpx 30px 13rpx 30rpx;
  247. .info-wrap {
  248. display: flex;
  249. justify-content: space-between;
  250. align-items: center;
  251. border-bottom: 1px solid #dcdcdc;
  252. padding-bottom: 30rpx;
  253. .info-left-text {
  254. margin-bottom: 39rpx;
  255. }
  256. .label {
  257. color: #999999;
  258. font-size: 26rpx;
  259. font-weight: 400;
  260. }
  261. .val {
  262. color: #333333;
  263. font-size: 26rpx;
  264. font-weight: 400;
  265. }
  266. .price-label {
  267. color: #999999;
  268. font-size: 24rpx;
  269. font-weight: 400;
  270. margin-bottom: 22rpx;
  271. text-align: center;
  272. }
  273. .price-val-text {
  274. font-size: 36rpx;
  275. font-weight: 700;
  276. color: #333333;
  277. margin-left: 9rpx;
  278. }
  279. .price-val {
  280. font-size: 26rpx;
  281. color: #333333;
  282. }
  283. }
  284. .card-text-wrap {
  285. display: flex;
  286. justify-content: space-between;
  287. align-items: center;
  288. margin: 38rpx 0 46rpx 0;
  289. .text-box {
  290. display: flex;
  291. flex-direction: column;
  292. align-items: center;
  293. .name-text {
  294. font-size: 30rpx;
  295. font-weight: 400;
  296. color: #333333;
  297. }
  298. .time-text {
  299. font-size: 30rpx;
  300. color: #333333;
  301. font-weight: 400;
  302. margin-top: 8rpx;
  303. }
  304. .date-text {
  305. font-size: 24rpx;
  306. color: #999999;
  307. font-weight: 400;
  308. margin-top: 8rpx;
  309. }
  310. }
  311. .arrow-wrap {
  312. display: flex;
  313. flex-direction: column;
  314. align-items: center;
  315. .d-img {
  316. width: 186rpx;
  317. height: 12rpx;
  318. }
  319. .arrow-text {
  320. color: #666666;
  321. font-size: 26rpx;
  322. }
  323. }
  324. }
  325. .btn-wrap {
  326. margin-top: 30rpx;
  327. display: flex;
  328. justify-content: space-between;
  329. align-items: center;
  330. .status-wrap {
  331. color: #999999;
  332. font-size: 26rpx;
  333. margin-right: 23rpx;
  334. }
  335. .status-text {
  336. color: #00B38B;
  337. }
  338. .btn{
  339. background: #FFFFFF;
  340. border: 1px solid #00B38B;
  341. border-radius: 30rpx;
  342. line-height: 61rpx;
  343. text-align: center;
  344. color: #00B38B;
  345. font-size: 26rpx;
  346. }
  347. .btn-1 {
  348. width: 171rpx;
  349. height: 61rpx;
  350. }
  351. .btn-2 {
  352. width: 141rpx;
  353. height: 61rpx;
  354. }
  355. .btn-3 {
  356. width: 121rpx;
  357. height: 61rpx;
  358. }
  359. }
  360. }
  361. </style>