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.

card-loop.vue 16KB

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. <!-- 存储卡圈存 -->
  2. <template>
  3. <view class="search-box">
  4. <image :src="`${$imgUrl}service/icon-search.png`" class="icon"></image>
  5. <input class="search" placeholder="储值卡圈存/ETC卡号" />
  6. </view>
  7. <view class="search-time">
  8. <view class="search-time-box" @click="show = true">
  9. <u-calendar v-model="show" mode="date" @change="changeHandle" max-date="2100-01-01"
  10. range-bg-color="#00B38B" active-bg-color="#00B38B" range-color="#fff"></u-calendar>
  11. <view class="show-info">
  12. <view class="show-text" v-if="chooseDate">
  13. <text class="date-text text-val">{{chooseDate}}</text>
  14. </view>
  15. <view class="show-text" v-else>
  16. <text class="date-text">圈存时间</text>
  17. </view>
  18. <u-icon name="calendar" :custom-style="{color:'#999999', size: '28rpx'}"></u-icon>
  19. </view>
  20. </view>
  21. <view class="search-payment-box" @click="isShowPayment = true">
  22. <u-picker mode="selector" v-model="isShowPayment" :range="payments" rangeKey="pay"
  23. @confirm="choosePayment" title="支付方式"></u-picker>
  24. <view class="show-text" v-if="payText">
  25. <text class="date-text text-val">{{payText}}</text>
  26. </view>
  27. <view class="show-text" v-else>
  28. <text class="date-text">支付方式</text>
  29. </view>
  30. <u-icon name="arrow-down" :custom-style="{color:'#999999', size: '28rpx'}"></u-icon>
  31. </view>
  32. <view class="time-btn">查询</view>
  33. </view>
  34. <view class="list bg-white">
  35. <view class="sub-tabs">
  36. <view class="sub-item active">全部</view>
  37. <view class="sub-item">半条流水</view>
  38. <view class="sub-item">已冲正</view>
  39. <view class="sub-item">圈存成功</view>
  40. <view class="sub-item">退款中</view>
  41. </view>
  42. <view class="item">
  43. <view class="head">
  44. <view class="name">
  45. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  46. <text class="title m-10">20230010330</text>
  47. </view>
  48. <view class="status text-green">退款中</view>
  49. </view>
  50. <view class="detail">
  51. <view class="orders">
  52. <view class="order-text">
  53. <text class="type">圈存单号:</text>
  54. <text class="value">GZ0000238100101</text>
  55. </view>
  56. <view class="order-text odd">
  57. <text class="type">业务类型:</text>
  58. <text class="value">储值卡圈存</text>
  59. </view>
  60. <view class="order-text">
  61. <text class="type">支付方式:</text>
  62. <text class="value">微信支付</text>
  63. </view>
  64. <view class="order-text odd">
  65. <text class="type">充值时间:</text>
  66. <text class="value">2023-01-08 10:09:23</text>
  67. </view>
  68. </view>
  69. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  70. </view>
  71. <view class="btns">
  72. <view class="btn btn-normal" @click="$util.navTo('/orders/cardAmountDetail')">查看进度</view>
  73. </view>
  74. </view>
  75. <view class="item">
  76. <view class="head">
  77. <view class="name">
  78. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  79. <text class="title m-10">20230010330</text>
  80. </view>
  81. <view class="status text-green">半条流水</view>
  82. </view>
  83. <view class="detail">
  84. <view class="orders">
  85. <view class="order-text">
  86. <text class="type">圈存单号:</text>
  87. <text class="value">GZ0000238100101</text>
  88. </view>
  89. <view class="order-text odd">
  90. <text class="type">业务类型:</text>
  91. <text class="value">储值卡圈存</text>
  92. </view>
  93. <view class="order-text">
  94. <text class="type">支付方式:</text>
  95. <text class="value">微信支付</text>
  96. </view>
  97. <view class="order-text odd">
  98. <text class="type">充值时间:</text>
  99. <text class="value">2023-01-08 10:09:23</text>
  100. </view>
  101. </view>
  102. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  103. </view>
  104. <view class="btns">
  105. <view class="btn btn-normal" @click="$util.navTo('/orders/refund-deposit-card')">申请退款</view>
  106. <view class="btn btn-primary" @click="$util.navTo('/pages/recharge/recharge')">圈存修复</view>
  107. </view>
  108. </view>
  109. <view class="item">
  110. <view class="head">
  111. <view class="name">
  112. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  113. <text class="title m-10">20230010330</text>
  114. </view>
  115. <view class="status text-green">已冲正</view>
  116. </view>
  117. <view class="detail">
  118. <view class="orders">
  119. <view class="order-text">
  120. <text class="type">圈存单号:</text>
  121. <text class="value">GZ0000238100101</text>
  122. </view>
  123. <view class="order-text odd">
  124. <text class="type">业务类型:</text>
  125. <text class="value">储值卡圈存</text>
  126. </view>
  127. <view class="order-text">
  128. <text class="type">支付方式:</text>
  129. <text class="value">微信支付</text>
  130. </view>
  131. <view class="order-text odd">
  132. <text class="type">充值时间:</text>
  133. <text class="value">2023-01-08 10:09:23</text>
  134. </view>
  135. </view>
  136. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  137. </view>
  138. <view class="btns">
  139. <view class="btn btn-primary" @click="$util.navTo('/pages/recharge/recharge')">圈存修复</view>
  140. </view>
  141. </view>
  142. <view class="item">
  143. <view class="head">
  144. <view class="name">
  145. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  146. <text class="title m-10">20230010330</text>
  147. </view>
  148. <view class="status text-orange">圈存成功</view>
  149. </view>
  150. <view class="detail">
  151. <view class="orders">
  152. <view class="order-text">
  153. <text class="type">圈存单号:</text>
  154. <text class="value">GZ0000238100101</text>
  155. </view>
  156. <view class="order-text odd">
  157. <text class="type">业务类型:</text>
  158. <text class="value">储值卡圈存</text>
  159. </view>
  160. <view class="order-text">
  161. <text class="type">支付方式:</text>
  162. <text class="value">微信支付</text>
  163. </view>
  164. <view class="order-text odd">
  165. <text class="type">充值时间:</text>
  166. <text class="value">2023-01-08 10:09:23</text>
  167. </view>
  168. </view>
  169. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  170. </view>
  171. <view class="btns">
  172. <view class="btn btn-primary" @click="$util.navTo('/orders/order-evaluate')">去评价</view>
  173. </view>
  174. </view>
  175. <view class="item finished">
  176. <view class="head">
  177. <view class="name">
  178. <image :src="`${$imgUrl}user/icon-ETC.png`" class="icon"></image>
  179. <text class="title m-10">20230010330</text>
  180. </view>
  181. <view class="status text-orange">退款完成</view>
  182. </view>
  183. <view class="detail">
  184. <view class="orders">
  185. <view class="order-text">
  186. <text class="type">圈存单号:</text>
  187. <text class="value">GZ0000238100101</text>
  188. </view>
  189. <view class="order-text odd">
  190. <text class="type">业务类型:</text>
  191. <text class="value">储值卡圈存</text>
  192. </view>
  193. <view class="order-text">
  194. <text class="type">支付方式:</text>
  195. <text class="value">微信支付</text>
  196. </view>
  197. <view class="order-text odd">
  198. <text class="type">充值时间:</text>
  199. <text class="value">2023-01-08 10:09:23</text>
  200. </view>
  201. </view>
  202. <view class="money"><text class="cny">¥</text><text class="amount">120.99</text></view>
  203. </view>
  204. <view class="btns">
  205. <view class="btn btn-primary" @click="$util.navTo('/orders/order-evaluate')">去评价</view>
  206. </view>
  207. </view>
  208. </view>
  209. </template>
  210. <script setup lang="ts">
  211. import {
  212. ref,
  213. reactive
  214. } from "vue";
  215. const chooseDate = ref(null);
  216. const show = ref(false);
  217. const isShowPayment = ref(false);
  218. const payText = ref(null)
  219. const payments = reactive([{
  220. id: 1,
  221. pay: '微信'
  222. }, {
  223. id: 2,
  224. pay: '云闪付'
  225. }, {
  226. id: 3,
  227. pay: '账户'
  228. }])
  229. const timeData = reactive({
  230. startDate: '',
  231. endDate: ""
  232. })
  233. /* 选择日期 */
  234. const changeHandle = (e) => {
  235. chooseDate.value = e.result
  236. if (e.startDate) {
  237. timeData.startDate = e.startDate
  238. timeData.endDate = e.endDate
  239. }
  240. }
  241. const choosePayment = (e) => {
  242. payText.value = payments[e].pay
  243. }
  244. </script>
  245. <style>
  246. page {
  247. background: #eef7f7;
  248. }
  249. </style>
  250. <style lang="scss" scoped>
  251. .search-btn{
  252. color: white;
  253. background-color: #00B38B;
  254. width: 140rpx;
  255. height: 75rpx;
  256. line-height: 75rpx;
  257. font-size: 32rpx;
  258. border-radius: 40rpx;
  259. text-align: center;
  260. margin-right: 30rpx;
  261. margin-top: 10rpx;
  262. }
  263. .search-box {
  264. margin: 30rpx 30rpx 20rpx 30rpx;
  265. height: 72rpx;
  266. height: 81rpx;
  267. background: #FFFFFF;
  268. border: 1px solid #DCDCDC;
  269. border-radius: 40rpx;
  270. display: flex;
  271. justify-content: center;
  272. align-items: center;
  273. box-sizing: border-box;
  274. flex: 1;
  275. }
  276. .search-box .icon {
  277. width: 48rpx;
  278. height: 48rpx;
  279. margin: 0 20rpx;
  280. }
  281. .search-box .search {
  282. flex: 1;
  283. margin-right: 20rpx;
  284. height: 100%;
  285. padding: 0 10rpx;
  286. font-size: 28rpx;
  287. color: #00b38b;
  288. }
  289. .scroll-view {
  290. white-space: nowrap;
  291. position: sticky;
  292. top: 0;
  293. background: #ffffff;
  294. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  295. }
  296. .top-menu {
  297. display: flex;
  298. }
  299. .top-menu .tab {
  300. font-size: 26rpx;
  301. padding: 38rpx 30rpx;
  302. color: #333;
  303. position: relative;
  304. }
  305. .top-menu .active .border {
  306. position: absolute;
  307. width: 70%;
  308. height: 16rpx;
  309. background: #00b38b;
  310. opacity: 0.3;
  311. bottom: 40rpx;
  312. z-index: -99;
  313. left: 15%;
  314. border-radius: 6rpx;
  315. }
  316. .top-menu .active {
  317. font-weight: bold;
  318. font-size: 28rpx;
  319. }
  320. .top-menu .active::before {
  321. width: 100%;
  322. height: 16rpx;
  323. background: #00b38b;
  324. opacity: 0.3;
  325. }
  326. .search-time {
  327. display: flex;
  328. margin: 20rpx 30rpx 48rpx 30rpx;
  329. justify-content: space-between;
  330. .time-btn {
  331. width: 230rpx;
  332. height: 80rpx;
  333. background: #00B38B;
  334. border-radius: 40rpx;
  335. color: #FFFFFF;
  336. font-size: 32rpx;
  337. line-height: 80rpx;
  338. text-align: center;
  339. }
  340. .show-info {
  341. width: 260rpx;
  342. height: 80rpx;
  343. padding: 0 31rpx;
  344. background: #FFFFFF;
  345. border: 1px solid #DCDCDC;
  346. border-radius: 40rpx;
  347. display: flex;
  348. justify-content: space-between;
  349. align-items: center;
  350. .show-text {
  351. display: flex;
  352. align-items: center;
  353. }
  354. .date-text {
  355. color: #999999;
  356. font-size: 28rpx;
  357. }
  358. .text-val {
  359. color: #333
  360. }
  361. .line {
  362. width: 25rpx;
  363. height: 1rpx;
  364. background: #999999;
  365. margin: 0 24rpx;
  366. }
  367. }
  368. .show-info2 {
  369. width: 541rpx;
  370. height: 80rpx;
  371. padding: 0 31rpx;
  372. background: #FFFFFF;
  373. border: 1px solid #DCDCDC;
  374. border-radius: 40rpx;
  375. display: flex;
  376. justify-content: space-between;
  377. align-items: center;
  378. .show-text {
  379. display: flex;
  380. align-items: center;
  381. flex: 1;
  382. justify-content: space-evenly;
  383. }
  384. .date-text {
  385. color: #999999;
  386. font-size: 28rpx;
  387. }
  388. .text-val {
  389. color: #333
  390. }
  391. .line {
  392. width: 25rpx;
  393. height: 1rpx;
  394. background: #999999;
  395. margin: 0 24rpx;
  396. }
  397. }
  398. }
  399. .count {
  400. margin: 0 30rpx 25rpx 30rpx;
  401. font-size: 28rpx;
  402. font-family: Noto Sans S Chinese;
  403. font-weight: 400;
  404. color: #999999;
  405. line-height: 36rpx;
  406. }
  407. .search-payment-box {
  408. width: 260rpx;
  409. height: 80rpx;
  410. padding: 0 31rpx;
  411. background: #FFFFFF;
  412. border: 1px solid #DCDCDC;
  413. border-radius: 40rpx;
  414. display: flex;
  415. justify-content: space-between;
  416. align-items: center;
  417. color: #999999;
  418. }
  419. .list {
  420. padding: 0 30rpx;
  421. display: flex;
  422. flex-direction: column;
  423. }
  424. .bg-white {
  425. background: #FFFFFF;
  426. border-radius: 30rpx 30rpx 0 0;
  427. }
  428. .bg-white .sub-tabs{
  429. display: flex;
  430. justify-content: space-evenly;
  431. align-items: center;
  432. }
  433. .bg-white .sub-item{
  434. padding: 10rpx 0;
  435. margin: 20rpx 0 30rpx;
  436. border-bottom: 6rpx solid #fff;
  437. font-size: 26rpx;
  438. }
  439. .bg-white .active{
  440. border-bottom: 6rpx solid #00B38B;
  441. color: #00B38B;
  442. font-size: 30rpx;
  443. font-weight: bold;
  444. }
  445. .bg-none {
  446. background: none;
  447. border-radius: 30rpx 30rpx 0 0;
  448. }
  449. .list .item {
  450. background: #ffffff;
  451. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  452. border-radius: 20rpx;
  453. box-sizing: border-box;
  454. display: flex;
  455. flex-direction: column;
  456. margin-bottom: 30rpx;
  457. }
  458. .list.bg-white .item {
  459. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  460. }
  461. .list .item .head {
  462. display: flex;
  463. justify-content: space-between;
  464. align-items: center;
  465. padding: 20rpx 28rpx;
  466. border-bottom: 1px solid #dcdcdc;
  467. }
  468. .list .item .head {
  469. .head-row {
  470. display: flex;
  471. width: 100%;
  472. justify-content: space-between;
  473. align-items: center;
  474. }
  475. .name {}
  476. .name>text {
  477. font-size: 26rpx;
  478. font-family: Noto Sans S Chinese;
  479. font-weight: 400;
  480. color: #999999;
  481. line-height: 36rpx;
  482. }
  483. }
  484. .list .item .head .icon {
  485. width: 48rpx;
  486. height: 48rpx;
  487. }
  488. .list .item .head .name {
  489. display: flex;
  490. align-items: center;
  491. }
  492. .list .text-green {
  493. font-size: 26rpx;
  494. color: #00b38b;
  495. }
  496. .list .text-orange {
  497. font-size: 26rpx;
  498. color: #ff8000;
  499. }
  500. .list .text-black {
  501. font-size: 28rpx;
  502. color: #333;
  503. font-weight: 500;
  504. }
  505. .list .title {
  506. font-size: 30rpx;
  507. color: #333;
  508. }
  509. .list .tag-green {
  510. font-size: 22rpx;
  511. height: 40rpx;
  512. line-height: 40rpx;
  513. padding: 0 12rpx;
  514. border-radius: 6rpx;
  515. background: #d9f4ee;
  516. color: #00b38b;
  517. }
  518. .list .tag-grey {
  519. font-size: 22rpx;
  520. height: 40rpx;
  521. line-height: 40rpx;
  522. padding: 0 12rpx;
  523. border-radius: 6rpx;
  524. background: #e8e8e8;
  525. color: #666;
  526. }
  527. .list .detail {
  528. display: flex;
  529. justify-content: space-between;
  530. align-items: center;
  531. padding: 30rpx 32rpx;
  532. }
  533. .list .detail .type {
  534. font-size: 26rpx;
  535. color: #999;
  536. }
  537. .list .detail .value {
  538. font-size: 26rpx;
  539. color: #333;
  540. }
  541. .list .finished .detail .value {
  542. color: #999;
  543. }
  544. .list .detail .odd {
  545. margin: 20rpx 0;
  546. }
  547. .list .cny {
  548. font-size: 26rpx;
  549. color: #333;
  550. }
  551. .list .finished .cny {
  552. color: #999;
  553. }
  554. .list .amount {
  555. font-size: 40rpx;
  556. font-weight: bold;
  557. }
  558. .list .bottom .amount {
  559. color: #ff8000;
  560. }
  561. .list .finished .amount {
  562. color: #999;
  563. }
  564. .list .btns {
  565. position: relative;
  566. display: flex;
  567. align-items: center;
  568. justify-content: flex-end;
  569. border-top: 1px solid #dcdcdc;
  570. margin: 0 30rpx;
  571. padding: 20rpx 0;
  572. }
  573. .list .bottom {
  574. display: flex;
  575. justify-content: space-between;
  576. align-items: center;
  577. border-top: 1px solid #dcdcdc;
  578. margin: 0 30rpx;
  579. padding: 20rpx 0;
  580. }
  581. .list .btn {
  582. height: 60rpx;
  583. line-height: 58rpx;
  584. border-radius: 30rpx;
  585. padding: 0 24rpx;
  586. font-size: 26rpx;
  587. box-sizing: border-box;
  588. margin-right: 20rpx;
  589. }
  590. .list .btns .btn:last-child {
  591. margin: 0;
  592. }
  593. .list .btns .state {
  594. position: absolute;
  595. left: 0;
  596. font-size: 26rpx;
  597. font-family: Noto Sans S Chinese;
  598. font-weight: 400;
  599. color: #999999;
  600. line-height: 58rpx;
  601. text {
  602. font-size: 26rpx;
  603. font-family: Noto Sans S Chinese;
  604. font-weight: 400;
  605. color: #00B38B;
  606. line-height: 58rpx;
  607. }
  608. }
  609. .list .btn-primary {
  610. border: 1px solid #00b38b;
  611. color: #00b38b;
  612. }
  613. .list .btn-disable {
  614. border: 1px solid #999;
  615. color: #999;
  616. }
  617. .list .btn-normal {
  618. border: 1px solid #dcdcdc;
  619. color: #333;
  620. }
  621. .m-10 {
  622. margin: 0 10rpx;
  623. }
  624. //
  625. .detail2 {
  626. display: flex;
  627. justify-content: space-between;
  628. align-items: center;
  629. padding: 30rpx 32rpx;
  630. position: relative;
  631. view {
  632. text-align: center;
  633. text {
  634. display: block;
  635. margin: 20rpx 0;
  636. }
  637. view {
  638. font-size: 24rpx;
  639. font-family: Noto Sans S Chinese;
  640. font-weight: 400;
  641. color: #999999;
  642. line-height: 36rpx;
  643. text {
  644. margin: 0;
  645. }
  646. }
  647. }
  648. .indicator {
  649. position: absolute;
  650. left: 50%;
  651. top: 50%;
  652. transform: translate(-50%, -50%);
  653. display: flex;
  654. flex-direction: column;
  655. text {
  656. margin: 0;
  657. font-size: 26rpx;
  658. font-family: Noto Sans S Chinese;
  659. font-weight: 400;
  660. color: #666666;
  661. line-height: 36rpx;
  662. }
  663. image {
  664. width: 186rpx;
  665. height: 12rpx;
  666. }
  667. }
  668. .state {
  669. position: absolute;
  670. left: 0;
  671. font-size: 26rpx;
  672. font-family: Noto Sans S Chinese;
  673. font-weight: 400;
  674. color: #999999;
  675. line-height: 58rpx;
  676. }
  677. }
  678. </style>